[bfd]
[deliverable/binutils-gdb.git] / opcodes / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="z8k-dis.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir WIN32LDFLAGS WIN32LIBADD archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
844fi
845
846if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --enable-install-libbfd controls installation of libbfd and related headers
866 --disable-nls do not use Native Language Support
867 --enable-cgen-maint=dir build cgen generated files
868
869Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
872 --with-gnu-ld assume the C compiler uses GNU ld default=no
873 --with-pic try to use only PIC/non-PIC objects default=use both
874 --with-included-gettext use the GNU gettext library included here
875
876Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
888_ACEOF
889fi
890
891if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
897
898if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902else
903 ac_dir_suffix= ac_top_builddir=
904fi
905
906case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920esac
921
922# Do not use `cd foo && pwd` to compute absolute paths, because
923# the directories may not exist.
924case `pwd` in
925.) ac_abs_builddir="$ac_dir";;
926*)
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_top_builddir=${ac_top_builddir}.;;
935*)
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_srcdir=$ac_srcdir;;
944*)
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_srcdir=$ac_top_srcdir;;
953*)
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959esac
960
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 fi
976 cd $ac_popdir
977 done
978fi
979
980test -n "$ac_init_help" && exit 0
981if $ac_init_version; then
982 cat <<\_ACEOF
983
984Copyright (C) 2003 Free Software Foundation, Inc.
985This configure script is free software; the Free Software Foundation
986gives unlimited permission to copy, distribute and modify it.
987_ACEOF
988 exit 0
989fi
990exec 5>config.log
991cat >&5 <<_ACEOF
992This file contains any messages produced by compilers while
993running configure, to aid debugging if configure makes a mistake.
994
995It was created by $as_me, which was
996generated by GNU Autoconf 2.59. Invocation command line was
997
998 $ $0 $@
999
1000_ACEOF
1001{
1002cat <<_ASUNAME
1003## --------- ##
1004## Platform. ##
1005## --------- ##
1006
1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024_ASUNAME
1025
1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027for as_dir in $PATH
1028do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032done
1033
1034} >&5
1035
1036cat >&5 <<_ACEOF
1037
1038
1039## ----------- ##
1040## Core tests. ##
1041## ----------- ##
1042
1043_ACEOF
1044
1045
1046# Keep a trace of the command line.
1047# Strip out --no-create and --no-recursion so they do not pile up.
1048# Strip out --silent because we don't want to record it for future runs.
1049# Also quote any args containing shell meta-characters.
1050# Make two passes to allow for proper duplicate-argument suppression.
1051ac_configure_args=
1052ac_configure_args0=
1053ac_configure_args1=
1054ac_sep=
1055ac_must_keep_next=false
1056for ac_pass in 1 2
1057do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093done
1094$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097# When interrupted or exit'd, cleanup temporary files, and complete
1098# config.log. We remove comments because anyway the quotes in there
1099# would cause problems or look ugly.
1100# WARNING: Be sure not to use single quotes in there, as some shells,
1101# such as our DU 5.0 friend, will then `close' the trap.
1102trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108## ---------------- ##
1109## Cache variables. ##
1110## ---------------- ##
1111_ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114{
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127}
1128 echo
1129
1130 cat <<\_ASBOX
1131## ----------------- ##
1132## Output variables. ##
1133## ----------------- ##
1134_ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145## ------------- ##
1146## Output files. ##
1147## ------------- ##
1148_ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160## ----------- ##
1161## confdefs.h. ##
1162## ----------- ##
1163_ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178done
1179ac_signal=0
1180
1181# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182rm -rf conftest* confdefs.h
1183# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184echo >confdefs.h
1185
1186# Predefined preprocessor variables.
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_NAME "$PACKAGE_NAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_STRING "$PACKAGE_STRING"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210_ACEOF
1211
1212
1213# Let the site file select an alternate cache file if it wants to.
1214# Prefer explicitly selected file to automatically selected ones.
1215if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221fi
1222for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229done
1230
1231if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246fi
1247
1248# Check that the precious variables saved in the cache have kept the same
1249# value.
1250ac_cache_corrupted=false
1251for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290done
1291if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297fi
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325ac_aux_dir=
1326for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1327 if test -f $ac_dir/install-sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 break
1331 elif test -f $ac_dir/install.sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 break
1335 elif test -f $ac_dir/shtool; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 break
1339 fi
1340done
1341if test -z "$ac_aux_dir"; then
1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1343echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1344 { (exit 1); exit 1; }; }
1345fi
1346ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349
1350# Make sure we can run config.sub.
1351$ac_config_sub sun4 >/dev/null 2>&1 ||
1352 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1353echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1354 { (exit 1); exit 1; }; }
1355
1356echo "$as_me:$LINENO: checking build system type" >&5
1357echo $ECHO_N "checking build system type... $ECHO_C" >&6
1358if test "${ac_cv_build+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360else
1361 ac_cv_build_alias=$build_alias
1362test -z "$ac_cv_build_alias" &&
1363 ac_cv_build_alias=`$ac_config_guess`
1364test -z "$ac_cv_build_alias" &&
1365 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1366echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1367 { (exit 1); exit 1; }; }
1368ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1370echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1371 { (exit 1); exit 1; }; }
1372
1373fi
1374echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1375echo "${ECHO_T}$ac_cv_build" >&6
1376build=$ac_cv_build
1377build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380
1381
1382echo "$as_me:$LINENO: checking host system type" >&5
1383echo $ECHO_N "checking host system type... $ECHO_C" >&6
1384if test "${ac_cv_host+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386else
1387 ac_cv_host_alias=$host_alias
1388test -z "$ac_cv_host_alias" &&
1389 ac_cv_host_alias=$ac_cv_build_alias
1390ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1391 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1392echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1393 { (exit 1); exit 1; }; }
1394
1395fi
1396echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1397echo "${ECHO_T}$ac_cv_host" >&6
1398host=$ac_cv_host
1399host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404echo "$as_me:$LINENO: checking target system type" >&5
1405echo $ECHO_N "checking target system type... $ECHO_C" >&6
1406if test "${ac_cv_target+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 ac_cv_target_alias=$target_alias
1410test "x$ac_cv_target_alias" = "x" &&
1411 ac_cv_target_alias=$ac_cv_host_alias
1412ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1413 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1414echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1415 { (exit 1); exit 1; }; }
1416
1417fi
1418echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1419echo "${ECHO_T}$ac_cv_target" >&6
1420target=$ac_cv_target
1421target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426# The aliases save the names the user supplied, while $host etc.
1427# will get canonicalized.
1428test -n "$target_alias" &&
1429 test "$program_prefix$program_suffix$program_transform_name" = \
1430 NONENONEs,x,x, &&
1431 program_prefix=${target_alias}-
1432ac_ext=c
1433ac_cpp='$CPP $CPPFLAGS'
1434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437if test -n "$ac_tool_prefix"; then
1438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440echo "$as_me:$LINENO: checking for $ac_word" >&5
1441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442if test "${ac_cv_prog_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444else
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1447else
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459done
1460done
1461
1462fi
1463fi
1464CC=$ac_cv_prog_CC
1465if test -n "$CC"; then
1466 echo "$as_me:$LINENO: result: $CC" >&5
1467echo "${ECHO_T}$CC" >&6
1468else
1469 echo "$as_me:$LINENO: result: no" >&5
1470echo "${ECHO_T}no" >&6
1471fi
1472
1473fi
1474if test -z "$ac_cv_prog_CC"; then
1475 ac_ct_CC=$CC
1476 # Extract the first word of "gcc", so it can be a program name with args.
1477set dummy gcc; ac_word=$2
1478echo "$as_me:$LINENO: checking for $ac_word" >&5
1479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1482else
1483 if test -n "$ac_ct_CC"; then
1484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485else
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_ac_ct_CC="gcc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1496 fi
1497done
1498done
1499
1500fi
1501fi
1502ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503if test -n "$ac_ct_CC"; then
1504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505echo "${ECHO_T}$ac_ct_CC" >&6
1506else
1507 echo "$as_me:$LINENO: result: no" >&5
1508echo "${ECHO_T}no" >&6
1509fi
1510
1511 CC=$ac_ct_CC
1512else
1513 CC="$ac_cv_prog_CC"
1514fi
1515
1516if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519set dummy ${ac_tool_prefix}cc; ac_word=$2
1520echo "$as_me:$LINENO: checking for $ac_word" >&5
1521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1527else
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539done
1540done
1541
1542fi
1543fi
1544CC=$ac_cv_prog_CC
1545if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547echo "${ECHO_T}$CC" >&6
1548else
1549 echo "$as_me:$LINENO: result: no" >&5
1550echo "${ECHO_T}no" >&6
1551fi
1552
1553fi
1554if test -z "$ac_cv_prog_CC"; then
1555 ac_ct_CC=$CC
1556 # Extract the first word of "cc", so it can be a program name with args.
1557set dummy cc; ac_word=$2
1558echo "$as_me:$LINENO: checking for $ac_word" >&5
1559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565else
1566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="cc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1576 fi
1577done
1578done
1579
1580fi
1581fi
1582ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585echo "${ECHO_T}$ac_ct_CC" >&6
1586else
1587 echo "$as_me:$LINENO: result: no" >&5
1588echo "${ECHO_T}no" >&6
1589fi
1590
1591 CC=$ac_ct_CC
1592else
1593 CC="$ac_cv_prog_CC"
1594fi
1595
1596fi
1597if test -z "$CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599set dummy cc; ac_word=$2
1600echo "$as_me:$LINENO: checking for $ac_word" >&5
1601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607else
1608 ac_prog_rejected=no
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617 ac_prog_rejected=yes
1618 continue
1619 fi
1620 ac_cv_prog_CC="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624done
1625done
1626
1627if test $ac_prog_rejected = yes; then
1628 # We found a bogon in the path, so make sure we never use it.
1629 set dummy $ac_cv_prog_CC
1630 shift
1631 if test $# != 0; then
1632 # We chose a different compiler from the bogus one.
1633 # However, it has the same basename, so the bogon will be chosen
1634 # first if we set CC to just the basename; use the full file name.
1635 shift
1636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1637 fi
1638fi
1639fi
1640fi
1641CC=$ac_cv_prog_CC
1642if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644echo "${ECHO_T}$CC" >&6
1645else
1646 echo "$as_me:$LINENO: result: no" >&5
1647echo "${ECHO_T}no" >&6
1648fi
1649
1650fi
1651if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 for ac_prog in cl
1654 do
1655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657echo "$as_me:$LINENO: checking for $ac_word" >&5
1658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664else
1665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666for as_dir in $PATH
1667do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676done
1677done
1678
1679fi
1680fi
1681CC=$ac_cv_prog_CC
1682if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684echo "${ECHO_T}$CC" >&6
1685else
1686 echo "$as_me:$LINENO: result: no" >&5
1687echo "${ECHO_T}no" >&6
1688fi
1689
1690 test -n "$CC" && break
1691 done
1692fi
1693if test -z "$CC"; then
1694 ac_ct_CC=$CC
1695 for ac_prog in cl
1696do
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698set dummy $ac_prog; ac_word=$2
1699echo "$as_me:$LINENO: checking for $ac_word" >&5
1700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706else
1707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1717 fi
1718done
1719done
1720
1721fi
1722fi
1723ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724if test -n "$ac_ct_CC"; then
1725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726echo "${ECHO_T}$ac_ct_CC" >&6
1727else
1728 echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730fi
1731
1732 test -n "$ac_ct_CC" && break
1733done
1734
1735 CC=$ac_ct_CC
1736fi
1737
1738fi
1739
1740
1741test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1742See \`config.log' for more details." >&5
1743echo "$as_me: error: no acceptable C compiler found in \$PATH
1744See \`config.log' for more details." >&2;}
1745 { (exit 1); exit 1; }; }
1746
1747# Provide some information about the compiler.
1748echo "$as_me:$LINENO:" \
1749 "checking for C compiler version" >&5
1750ac_compiler=`set X $ac_compile; echo $2`
1751{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 ac_status=$?
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1761{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1766
1767cat >conftest.$ac_ext <<_ACEOF
1768/* confdefs.h. */
1769_ACEOF
1770cat confdefs.h >>conftest.$ac_ext
1771cat >>conftest.$ac_ext <<_ACEOF
1772/* end confdefs.h. */
1773
1774int
1775main ()
1776{
1777
1778 ;
1779 return 0;
1780}
1781_ACEOF
1782ac_clean_files_save=$ac_clean_files
1783ac_clean_files="$ac_clean_files a.out a.exe b.out"
1784# Try to create an executable without -o first, disregard a.out.
1785# It will help us diagnose broken compilers, and finding out an intuition
1786# of exeext.
1787echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1788echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1789ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1790if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1791 (eval $ac_link_default) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; then
1795 # Find the output, starting from the most likely. This scheme is
1796# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797# resort.
1798
1799# Be careful to initialize this variable, since it used to be cached.
1800# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801ac_cv_exeext=
1802# b.out is created by i960 compilers.
1803for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1804do
1805 test -f "$ac_file" || continue
1806 case $ac_file in
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1808 ;;
1809 conftest.$ac_ext )
1810 # This is the source file.
1811 ;;
1812 [ab].out )
1813 # We found the default executable, but exeext='' is most
1814 # certainly right.
1815 break;;
1816 *.* )
1817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818 # FIXME: I believe we export ac_cv_exeext for Libtool,
1819 # but it would be cool to find out if it's true. Does anybody
1820 # maintain Libtool? --akim.
1821 export ac_cv_exeext
1822 break;;
1823 * )
1824 break;;
1825 esac
1826done
1827else
1828 echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1832See \`config.log' for more details." >&5
1833echo "$as_me: error: C compiler cannot create executables
1834See \`config.log' for more details." >&2;}
1835 { (exit 77); exit 77; }; }
1836fi
1837
1838ac_exeext=$ac_cv_exeext
1839echo "$as_me:$LINENO: result: $ac_file" >&5
1840echo "${ECHO_T}$ac_file" >&6
1841
1842# Check the compiler produces executables we can run. If not, either
1843# the compiler is broken, or we cross compile.
1844echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1845echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1846# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1847# If not cross compiling, check that we can run a simple program.
1848if test "$cross_compiling" != yes; then
1849 if { ac_try='./$ac_file'
1850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 cross_compiling=no
1856 else
1857 if test "$cross_compiling" = maybe; then
1858 cross_compiling=yes
1859 else
1860 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1861If you meant to cross compile, use \`--host'.
1862See \`config.log' for more details." >&5
1863echo "$as_me: error: cannot run C compiled programs.
1864If you meant to cross compile, use \`--host'.
1865See \`config.log' for more details." >&2;}
1866 { (exit 1); exit 1; }; }
1867 fi
1868 fi
1869fi
1870echo "$as_me:$LINENO: result: yes" >&5
1871echo "${ECHO_T}yes" >&6
1872
1873rm -f a.out a.exe conftest$ac_cv_exeext b.out
1874ac_clean_files=$ac_clean_files_save
1875# Check the compiler produces executables we can run. If not, either
1876# the compiler is broken, or we cross compile.
1877echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1878echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1879echo "$as_me:$LINENO: result: $cross_compiling" >&5
1880echo "${ECHO_T}$cross_compiling" >&6
1881
1882echo "$as_me:$LINENO: checking for suffix of executables" >&5
1883echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1885 (eval $ac_link) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; then
1889 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1890# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1891# work properly (i.e., refer to `conftest.exe'), while it won't with
1892# `rm'.
1893for ac_file in conftest.exe conftest conftest.*; do
1894 test -f "$ac_file" || continue
1895 case $ac_file in
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1897 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 export ac_cv_exeext
1899 break;;
1900 * ) break;;
1901 esac
1902done
1903else
1904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1905See \`config.log' for more details." >&5
1906echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1907See \`config.log' for more details." >&2;}
1908 { (exit 1); exit 1; }; }
1909fi
1910
1911rm -f conftest$ac_cv_exeext
1912echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1913echo "${ECHO_T}$ac_cv_exeext" >&6
1914
1915rm -f conftest.$ac_ext
1916EXEEXT=$ac_cv_exeext
1917ac_exeext=$EXEEXT
1918echo "$as_me:$LINENO: checking for suffix of object files" >&5
1919echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1920if test "${ac_cv_objext+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922else
1923 cat >conftest.$ac_ext <<_ACEOF
1924/* confdefs.h. */
1925_ACEOF
1926cat confdefs.h >>conftest.$ac_ext
1927cat >>conftest.$ac_ext <<_ACEOF
1928/* end confdefs.h. */
1929
1930int
1931main ()
1932{
1933
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938rm -f conftest.o conftest.obj
1939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945 case $ac_file in
1946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948 break;;
1949 esac
1950done
1951else
1952 echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1956See \`config.log' for more details." >&5
1957echo "$as_me: error: cannot compute suffix of object files: cannot compile
1958See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1960fi
1961
1962rm -f conftest.$ac_cv_objext conftest.$ac_ext
1963fi
1964echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1965echo "${ECHO_T}$ac_cv_objext" >&6
1966OBJEXT=$ac_cv_objext
1967ac_objext=$OBJEXT
1968echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1969echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 cat >conftest.$ac_ext <<_ACEOF
1974/* confdefs.h. */
1975_ACEOF
1976cat confdefs.h >>conftest.$ac_ext
1977cat >>conftest.$ac_ext <<_ACEOF
1978/* end confdefs.h. */
1979
1980int
1981main ()
1982{
1983#ifndef __GNUC__
1984 choke me
1985#endif
1986
1987 ;
1988 return 0;
1989}
1990_ACEOF
1991rm -f conftest.$ac_objext
1992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>conftest.er1
1994 ac_status=$?
1995 grep -v '^ *+' conftest.er1 >conftest.err
1996 rm -f conftest.er1
1997 cat conftest.err >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
2000 { ac_try='test -z "$ac_c_werror_flag"
2001 || test ! -s conftest.err'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 (eval $ac_try) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 ac_compiler_gnu=yes
2014else
2015 echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018ac_compiler_gnu=no
2019fi
2020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2021ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022
2023fi
2024echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2025echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2026GCC=`test $ac_compiler_gnu = yes && echo yes`
2027ac_test_CFLAGS=${CFLAGS+set}
2028ac_save_CFLAGS=$CFLAGS
2029CFLAGS="-g"
2030echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2031echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2032if test "${ac_cv_prog_cc_g+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035 cat >conftest.$ac_ext <<_ACEOF
2036/* confdefs.h. */
2037_ACEOF
2038cat confdefs.h >>conftest.$ac_ext
2039cat >>conftest.$ac_ext <<_ACEOF
2040/* end confdefs.h. */
2041
2042int
2043main ()
2044{
2045
2046 ;
2047 return 0;
2048}
2049_ACEOF
2050rm -f conftest.$ac_objext
2051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2053 ac_status=$?
2054 grep -v '^ *+' conftest.er1 >conftest.err
2055 rm -f conftest.er1
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_prog_cc_g=yes
2073else
2074 echo "$as_me: failed program was:" >&5
2075sed 's/^/| /' conftest.$ac_ext >&5
2076
2077ac_cv_prog_cc_g=no
2078fi
2079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2080fi
2081echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2082echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2083if test "$ac_test_CFLAGS" = set; then
2084 CFLAGS=$ac_save_CFLAGS
2085elif test $ac_cv_prog_cc_g = yes; then
2086 if test "$GCC" = yes; then
2087 CFLAGS="-g -O2"
2088 else
2089 CFLAGS="-g"
2090 fi
2091else
2092 if test "$GCC" = yes; then
2093 CFLAGS="-O2"
2094 else
2095 CFLAGS=
2096 fi
2097fi
2098echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2099echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2100if test "${ac_cv_prog_cc_stdc+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103 ac_cv_prog_cc_stdc=no
2104ac_save_CC=$CC
2105cat >conftest.$ac_ext <<_ACEOF
2106/* confdefs.h. */
2107_ACEOF
2108cat confdefs.h >>conftest.$ac_ext
2109cat >>conftest.$ac_ext <<_ACEOF
2110/* end confdefs.h. */
2111#include <stdarg.h>
2112#include <stdio.h>
2113#include <sys/types.h>
2114#include <sys/stat.h>
2115/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2116struct buf { int x; };
2117FILE * (*rcsopen) (struct buf *, struct stat *, int);
2118static char *e (p, i)
2119 char **p;
2120 int i;
2121{
2122 return p[i];
2123}
2124static char *f (char * (*g) (char **, int), char **p, ...)
2125{
2126 char *s;
2127 va_list v;
2128 va_start (v,p);
2129 s = g (p, va_arg (v,int));
2130 va_end (v);
2131 return s;
2132}
2133
2134/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2135 function prototypes and stuff, but not '\xHH' hex character constants.
2136 These don't provoke an error unfortunately, instead are silently treated
2137 as 'x'. The following induces an error, until -std1 is added to get
2138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2139 array size at least. It's necessary to write '\x00'==0 to get something
2140 that's true only with -std1. */
2141int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2142
2143int test (int i, double x);
2144struct s1 {int (*f) (int a);};
2145struct s2 {int (*f) (double a);};
2146int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147int argc;
2148char **argv;
2149int
2150main ()
2151{
2152return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2153 ;
2154 return 0;
2155}
2156_ACEOF
2157# Don't try gcc -ansi; that turns off useful extensions and
2158# breaks some systems' header files.
2159# AIX -qlanglvl=ansi
2160# Ultrix and OSF/1 -std1
2161# HP-UX 10.20 and later -Ae
2162# HP-UX older versions -Aa -D_HPUX_SOURCE
2163# SVR4 -Xc -D__EXTENSIONS__
2164for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2165do
2166 CC="$ac_save_CC $ac_arg"
2167 rm -f conftest.$ac_objext
2168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_cv_prog_cc_stdc=$ac_arg
2190break
2191else
2192 echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195fi
2196rm -f conftest.err conftest.$ac_objext
2197done
2198rm -f conftest.$ac_ext conftest.$ac_objext
2199CC=$ac_save_CC
2200
2201fi
2202
2203case "x$ac_cv_prog_cc_stdc" in
2204 x|xno)
2205 echo "$as_me:$LINENO: result: none needed" >&5
2206echo "${ECHO_T}none needed" >&6 ;;
2207 *)
2208 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2209echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2210 CC="$CC $ac_cv_prog_cc_stdc" ;;
2211esac
2212
2213# Some people use a C++ compiler to compile C. Since we use `exit',
2214# in C++ we need to declare it. In case someone uses the same compiler
2215# for both compiling C and C++ we need to have the C++ compiler decide
2216# the declaration of exit, since it's the most demanding environment.
2217cat >conftest.$ac_ext <<_ACEOF
2218#ifndef __cplusplus
2219 choke me
2220#endif
2221_ACEOF
2222rm -f conftest.$ac_objext
2223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2225 ac_status=$?
2226 grep -v '^ *+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 for ac_declaration in \
2245 '' \
2246 'extern "C" void std::exit (int) throw (); using std::exit;' \
2247 'extern "C" void std::exit (int); using std::exit;' \
2248 'extern "C" void exit (int) throw ();' \
2249 'extern "C" void exit (int);' \
2250 'void exit (int);'
2251do
2252 cat >conftest.$ac_ext <<_ACEOF
2253/* confdefs.h. */
2254_ACEOF
2255cat confdefs.h >>conftest.$ac_ext
2256cat >>conftest.$ac_ext <<_ACEOF
2257/* end confdefs.h. */
2258$ac_declaration
2259#include <stdlib.h>
2260int
2261main ()
2262{
2263exit (42);
2264 ;
2265 return 0;
2266}
2267_ACEOF
2268rm -f conftest.$ac_objext
2269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>conftest.er1
2271 ac_status=$?
2272 grep -v '^ *+' conftest.er1 >conftest.err
2273 rm -f conftest.er1
2274 cat conftest.err >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 (eval $ac_try) 2>&5
2287 ac_status=$?
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2290 :
2291else
2292 echo "$as_me: failed program was:" >&5
2293sed 's/^/| /' conftest.$ac_ext >&5
2294
2295continue
2296fi
2297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2298 cat >conftest.$ac_ext <<_ACEOF
2299/* confdefs.h. */
2300_ACEOF
2301cat confdefs.h >>conftest.$ac_ext
2302cat >>conftest.$ac_ext <<_ACEOF
2303/* end confdefs.h. */
2304$ac_declaration
2305int
2306main ()
2307{
2308exit (42);
2309 ;
2310 return 0;
2311}
2312_ACEOF
2313rm -f conftest.$ac_objext
2314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>conftest.er1
2316 ac_status=$?
2317 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 break
2336else
2337 echo "$as_me: failed program was:" >&5
2338sed 's/^/| /' conftest.$ac_ext >&5
2339
2340fi
2341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342done
2343rm -f conftest*
2344if test -n "$ac_declaration"; then
2345 echo '#ifdef __cplusplus' >>confdefs.h
2346 echo $ac_declaration >>confdefs.h
2347 echo '#endif' >>confdefs.h
2348fi
2349
2350else
2351 echo "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354fi
2355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356ac_ext=c
2357ac_cpp='$CPP $CPPFLAGS'
2358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361
2362
2363echo "$as_me:$LINENO: checking for library containing strerror" >&5
2364echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2365if test "${ac_cv_search_strerror+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368 ac_func_search_save_LIBS=$LIBS
2369ac_cv_search_strerror=no
2370cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h. */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h. */
2376
2377/* Override any gcc2 internal prototype to avoid an error. */
2378#ifdef __cplusplus
2379extern "C"
2380#endif
2381/* We use char because int might match the return type of a gcc2
2382 builtin and then its argument prototype would still apply. */
2383char strerror ();
2384int
2385main ()
2386{
2387strerror ();
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392rm -f conftest.$ac_objext conftest$ac_exeext
2393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>conftest.er1
2395 ac_status=$?
2396 grep -v '^ *+' conftest.er1 >conftest.err
2397 rm -f conftest.er1
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -z "$ac_c_werror_flag"
2402 || test ! -s conftest.err'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 (eval $ac_try) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest$ac_exeext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2414 ac_cv_search_strerror="none required"
2415else
2416 echo "$as_me: failed program was:" >&5
2417sed 's/^/| /' conftest.$ac_ext >&5
2418
2419fi
2420rm -f conftest.err conftest.$ac_objext \
2421 conftest$ac_exeext conftest.$ac_ext
2422if test "$ac_cv_search_strerror" = no; then
2423 for ac_lib in cposix; do
2424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2425 cat >conftest.$ac_ext <<_ACEOF
2426/* confdefs.h. */
2427_ACEOF
2428cat confdefs.h >>conftest.$ac_ext
2429cat >>conftest.$ac_ext <<_ACEOF
2430/* end confdefs.h. */
2431
2432/* Override any gcc2 internal prototype to avoid an error. */
2433#ifdef __cplusplus
2434extern "C"
2435#endif
2436/* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2438char strerror ();
2439int
2440main ()
2441{
2442strerror ();
2443 ;
2444 return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext conftest$ac_exeext
2448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449 (eval $ac_link) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest$ac_exeext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 ac_cv_search_strerror="-l$ac_lib"
2470break
2471else
2472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475fi
2476rm -f conftest.err conftest.$ac_objext \
2477 conftest$ac_exeext conftest.$ac_ext
2478 done
2479fi
2480LIBS=$ac_func_search_save_LIBS
2481fi
2482echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2483echo "${ECHO_T}$ac_cv_search_strerror" >&6
2484if test "$ac_cv_search_strerror" != no; then
2485 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2486
2487fi
2488
2489
2490# We currently only use the version number for the name of any shared
2491# library. For user convenience, we always use the same version
2492# number that BFD is using.
2493BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2494
2495am__api_version="1.9"
2496# Find a good install program. We prefer a C program (faster),
2497# so one script is as good as another. But avoid the broken or
2498# incompatible versions:
2499# SysV /etc/install, /usr/sbin/install
2500# SunOS /usr/etc/install
2501# IRIX /sbin/install
2502# AIX /bin/install
2503# AmigaOS /C/install, which installs bootblocks on floppy discs
2504# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2505# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2506# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2507# OS/2's system install, which has a completely different semantic
2508# ./install, which can be erroneously created by make from ./install.sh.
2509echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2510echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2511if test -z "$INSTALL"; then
2512if test "${ac_cv_path_install+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516for as_dir in $PATH
2517do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 # Account for people who put trailing slashes in PATH elements.
2521case $as_dir/ in
2522 ./ | .// | /cC/* | \
2523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2524 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2525 /usr/ucb/* ) ;;
2526 *)
2527 # OSF1 and SCO ODT 3.0 have their own names for install.
2528 # Don't use installbsd from OSF since it installs stuff as root
2529 # by default.
2530 for ac_prog in ginstall scoinst install; do
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2533 if test $ac_prog = install &&
2534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # AIX install. It has an incompatible calling convention.
2536 :
2537 elif test $ac_prog = install &&
2538 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # program-specific install script used by HP pwplus--don't use.
2540 :
2541 else
2542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543 break 3
2544 fi
2545 fi
2546 done
2547 done
2548 ;;
2549esac
2550done
2551
2552
2553fi
2554 if test "${ac_cv_path_install+set}" = set; then
2555 INSTALL=$ac_cv_path_install
2556 else
2557 # As a last resort, use the slow shell script. We don't cache a
2558 # path for INSTALL within a source directory, because that will
2559 # break other packages using the cache if that directory is
2560 # removed, or if the path is relative.
2561 INSTALL=$ac_install_sh
2562 fi
2563fi
2564echo "$as_me:$LINENO: result: $INSTALL" >&5
2565echo "${ECHO_T}$INSTALL" >&6
2566
2567# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2568# It thinks the first close brace ends the variable substitution.
2569test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2570
2571test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2572
2573test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2574
2575echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2576echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2577# Just in case
2578sleep 1
2579echo timestamp > conftest.file
2580# Do `set' in a subshell so we don't clobber the current shell's
2581# arguments. Must try -L first in case configure is actually a
2582# symlink; some systems play weird games with the mod time of symlinks
2583# (eg FreeBSD returns the mod time of the symlink's containing
2584# directory).
2585if (
2586 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2587 if test "$*" = "X"; then
2588 # -L didn't work.
2589 set X `ls -t $srcdir/configure conftest.file`
2590 fi
2591 rm -f conftest.file
2592 if test "$*" != "X $srcdir/configure conftest.file" \
2593 && test "$*" != "X conftest.file $srcdir/configure"; then
2594
2595 # If neither matched, then we have a broken ls. This can happen
2596 # if, for instance, CONFIG_SHELL is bash and it inherits a
2597 # broken ls alias from the environment. This has actually
2598 # happened. Such a system could not be considered "sane".
2599 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2600alias in your environment" >&5
2601echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2602alias in your environment" >&2;}
2603 { (exit 1); exit 1; }; }
2604 fi
2605
2606 test "$2" = conftest.file
2607 )
2608then
2609 # Ok.
2610 :
2611else
2612 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2613Check your system clock" >&5
2614echo "$as_me: error: newly created file is older than distributed files!
2615Check your system clock" >&2;}
2616 { (exit 1); exit 1; }; }
2617fi
2618echo "$as_me:$LINENO: result: yes" >&5
2619echo "${ECHO_T}yes" >&6
2620test "$program_prefix" != NONE &&
2621 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2622# Use a double $ so make ignores it.
2623test "$program_suffix" != NONE &&
2624 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2625# Double any \ or $. echo might interpret backslashes.
2626# By default was `s,x,x', remove it if useless.
2627cat <<\_ACEOF >conftest.sed
2628s/[\\$]/&&/g;s/;s,x,x,$//
2629_ACEOF
2630program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2631rm conftest.sed
2632
2633# expand $ac_aux_dir to an absolute path
2634am_aux_dir=`cd $ac_aux_dir && pwd`
2635
2636test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2637# Use eval to expand $SHELL
2638if eval "$MISSING --run true"; then
2639 am_missing_run="$MISSING --run "
2640else
2641 am_missing_run=
2642 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2643echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2644fi
2645
2646if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2647 # We used to keeping the `.' as first argument, in order to
2648 # allow $(mkdir_p) to be used without argument. As in
2649 # $(mkdir_p) $(somedir)
2650 # where $(somedir) is conditionally defined. However this is wrong
2651 # for two reasons:
2652 # 1. if the package is installed by a user who cannot write `.'
2653 # make install will fail,
2654 # 2. the above comment should most certainly read
2655 # $(mkdir_p) $(DESTDIR)$(somedir)
2656 # so it does not work when $(somedir) is undefined and
2657 # $(DESTDIR) is not.
2658 # To support the latter case, we have to write
2659 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2660 # so the `.' trick is pointless.
2661 mkdir_p='mkdir -p --'
2662else
2663 # On NextStep and OpenStep, the `mkdir' command does not
2664 # recognize any option. It will interpret all options as
2665 # directories to create, and then abort because `.' already
2666 # exists.
2667 for d in ./-p ./--version;
2668 do
2669 test -d $d && rmdir $d
2670 done
2671 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2672 if test -f "$ac_aux_dir/mkinstalldirs"; then
2673 mkdir_p='$(mkinstalldirs)'
2674 else
2675 mkdir_p='$(install_sh) -d'
2676 fi
2677fi
2678
2679for ac_prog in gawk mawk nawk awk
2680do
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682set dummy $ac_prog; ac_word=$2
2683echo "$as_me:$LINENO: checking for $ac_word" >&5
2684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2685if test "${ac_cv_prog_AWK+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687else
2688 if test -n "$AWK"; then
2689 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698 ac_cv_prog_AWK="$ac_prog"
2699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702done
2703done
2704
2705fi
2706fi
2707AWK=$ac_cv_prog_AWK
2708if test -n "$AWK"; then
2709 echo "$as_me:$LINENO: result: $AWK" >&5
2710echo "${ECHO_T}$AWK" >&6
2711else
2712 echo "$as_me:$LINENO: result: no" >&5
2713echo "${ECHO_T}no" >&6
2714fi
2715
2716 test -n "$AWK" && break
2717done
2718
2719echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2720echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2721set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2722if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724else
2725 cat >conftest.make <<\_ACEOF
2726all:
2727 @echo 'ac_maketemp="$(MAKE)"'
2728_ACEOF
2729# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2730eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2731if test -n "$ac_maketemp"; then
2732 eval ac_cv_prog_make_${ac_make}_set=yes
2733else
2734 eval ac_cv_prog_make_${ac_make}_set=no
2735fi
2736rm -f conftest.make
2737fi
2738if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2739 echo "$as_me:$LINENO: result: yes" >&5
2740echo "${ECHO_T}yes" >&6
2741 SET_MAKE=
2742else
2743 echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6
2745 SET_MAKE="MAKE=${MAKE-make}"
2746fi
2747
2748rm -rf .tst 2>/dev/null
2749mkdir .tst 2>/dev/null
2750if test -d .tst; then
2751 am__leading_dot=.
2752else
2753 am__leading_dot=_
2754fi
2755rmdir .tst 2>/dev/null
2756
2757DEPDIR="${am__leading_dot}deps"
2758
2759 ac_config_commands="$ac_config_commands depfiles"
2760
2761
2762am_make=${MAKE-make}
2763cat > confinc << 'END'
2764am__doit:
2765 @echo done
2766.PHONY: am__doit
2767END
2768# If we don't find an include directive, just comment out the code.
2769echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2770echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2771am__include="#"
2772am__quote=
2773_am_result=none
2774# First try GNU make style include.
2775echo "include confinc" > confmf
2776# We grep out `Entering directory' and `Leaving directory'
2777# messages which can occur if `w' ends up in MAKEFLAGS.
2778# In particular we don't look at `^make:' because GNU make might
2779# be invoked under some other name (usually "gmake"), in which
2780# case it prints its new name instead of `make'.
2781if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2782 am__include=include
2783 am__quote=
2784 _am_result=GNU
2785fi
2786# Now try BSD make style include.
2787if test "$am__include" = "#"; then
2788 echo '.include "confinc"' > confmf
2789 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2790 am__include=.include
2791 am__quote="\""
2792 _am_result=BSD
2793 fi
2794fi
2795
2796
2797echo "$as_me:$LINENO: result: $_am_result" >&5
2798echo "${ECHO_T}$_am_result" >&6
2799rm -f confinc confmf
2800
2801# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2802if test "${enable_dependency_tracking+set}" = set; then
2803 enableval="$enable_dependency_tracking"
2804
2805fi;
2806if test "x$enable_dependency_tracking" != xno; then
2807 am_depcomp="$ac_aux_dir/depcomp"
2808 AMDEPBACKSLASH='\'
2809fi
2810
2811
2812if test "x$enable_dependency_tracking" != xno; then
2813 AMDEP_TRUE=
2814 AMDEP_FALSE='#'
2815else
2816 AMDEP_TRUE='#'
2817 AMDEP_FALSE=
2818fi
2819
2820
2821
2822# test to see if srcdir already configured
2823if test "`cd $srcdir && pwd`" != "`pwd`" &&
2824 test -f $srcdir/config.status; then
2825 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2826echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2827 { (exit 1); exit 1; }; }
2828fi
2829
2830# test whether we have cygpath
2831if test -z "$CYGPATH_W"; then
2832 if (cygpath --version) >/dev/null 2>/dev/null; then
2833 CYGPATH_W='cygpath -w'
2834 else
2835 CYGPATH_W=echo
2836 fi
2837fi
2838
2839
2840# Define the identity of the package.
2841 PACKAGE=opcodes
2842 VERSION=${BFD_VERSION}
2843
2844
2845cat >>confdefs.h <<_ACEOF
2846#define PACKAGE "$PACKAGE"
2847_ACEOF
2848
2849
2850cat >>confdefs.h <<_ACEOF
2851#define VERSION "$VERSION"
2852_ACEOF
2853
2854# Some tools Automake needs.
2855
2856ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2857
2858
2859AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2860
2861
2862AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2863
2864
2865AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2866
2867
2868MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2869
2870install_sh=${install_sh-"$am_aux_dir/install-sh"}
2871
2872# Installed binaries are usually stripped using `strip' when the user
2873# run `make install-strip'. However `strip' might not be the right
2874# tool to use in cross-compilation environments, therefore Automake
2875# will honor the `STRIP' environment variable to overrule this program.
2876if test "$cross_compiling" != no; then
2877 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2879set dummy ${ac_tool_prefix}strip; ac_word=$2
2880echo "$as_me:$LINENO: checking for $ac_word" >&5
2881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882if test "${ac_cv_prog_STRIP+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884else
2885 if test -n "$STRIP"; then
2886 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899done
2900done
2901
2902fi
2903fi
2904STRIP=$ac_cv_prog_STRIP
2905if test -n "$STRIP"; then
2906 echo "$as_me:$LINENO: result: $STRIP" >&5
2907echo "${ECHO_T}$STRIP" >&6
2908else
2909 echo "$as_me:$LINENO: result: no" >&5
2910echo "${ECHO_T}no" >&6
2911fi
2912
2913fi
2914if test -z "$ac_cv_prog_STRIP"; then
2915 ac_ct_STRIP=$STRIP
2916 # Extract the first word of "strip", so it can be a program name with args.
2917set dummy strip; ac_word=$2
2918echo "$as_me:$LINENO: checking for $ac_word" >&5
2919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2920if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922else
2923 if test -n "$ac_ct_STRIP"; then
2924 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933 ac_cv_prog_ac_ct_STRIP="strip"
2934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937done
2938done
2939
2940 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2941fi
2942fi
2943ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2944if test -n "$ac_ct_STRIP"; then
2945 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2946echo "${ECHO_T}$ac_ct_STRIP" >&6
2947else
2948 echo "$as_me:$LINENO: result: no" >&5
2949echo "${ECHO_T}no" >&6
2950fi
2951
2952 STRIP=$ac_ct_STRIP
2953else
2954 STRIP="$ac_cv_prog_STRIP"
2955fi
2956
2957fi
2958INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2959
2960# We need awk for the "check" target. The system "awk" is bad on
2961# some platforms.
2962# Always define AMTAR for backward compatibility.
2963
2964AMTAR=${AMTAR-"${am_missing_run}tar"}
2965
2966am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2967
2968
2969
2970
2971depcc="$CC" am_compiler_list=
2972
2973echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2974echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2975if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977else
2978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2979 # We make a subdir and do the tests there. Otherwise we can end up
2980 # making bogus files that we don't know about and never remove. For
2981 # instance it was reported that on HP-UX the gcc test will end up
2982 # making a dummy file named `D' -- because `-MD' means `put the output
2983 # in D'.
2984 mkdir conftest.dir
2985 # Copy depcomp to subdir because otherwise we won't find it if we're
2986 # using a relative directory.
2987 cp "$am_depcomp" conftest.dir
2988 cd conftest.dir
2989 # We will build objects and dependencies in a subdirectory because
2990 # it helps to detect inapplicable dependency modes. For instance
2991 # both Tru64's cc and ICC support -MD to output dependencies as a
2992 # side effect of compilation, but ICC will put the dependencies in
2993 # the current directory while Tru64 will put them in the object
2994 # directory.
2995 mkdir sub
2996
2997 am_cv_CC_dependencies_compiler_type=none
2998 if test "$am_compiler_list" = ""; then
2999 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3000 fi
3001 for depmode in $am_compiler_list; do
3002 # Setup a source with many dependencies, because some compilers
3003 # like to wrap large dependency lists on column 80 (with \), and
3004 # we should not choose a depcomp mode which is confused by this.
3005 #
3006 # We need to recreate these files for each test, as the compiler may
3007 # overwrite some of them when testing with obscure command lines.
3008 # This happens at least with the AIX C compiler.
3009 : > sub/conftest.c
3010 for i in 1 2 3 4 5 6; do
3011 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3012 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3013 # Solaris 8's {/usr,}/bin/sh.
3014 touch sub/conftst$i.h
3015 done
3016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3017
3018 case $depmode in
3019 nosideeffect)
3020 # after this tag, mechanisms are not by side-effect, so they'll
3021 # only be used when explicitly requested
3022 if test "x$enable_dependency_tracking" = xyes; then
3023 continue
3024 else
3025 break
3026 fi
3027 ;;
3028 none) break ;;
3029 esac
3030 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3031 # mode. It turns out that the SunPro C++ compiler does not properly
3032 # handle `-M -o', and we need to detect this.
3033 if depmode=$depmode \
3034 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3036 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3037 >/dev/null 2>conftest.err &&
3038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3039 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3041 # icc doesn't choke on unknown options, it will just issue warnings
3042 # or remarks (even with -Werror). So we grep stderr for any message
3043 # that says an option was ignored or not supported.
3044 # When given -MP, icc 7.0 and 7.1 complain thusly:
3045 # icc: Command line warning: ignoring option '-M'; no argument required
3046 # The diagnosis changed in icc 8.0:
3047 # icc: Command line remark: option '-MP' not supported
3048 if (grep 'ignoring option' conftest.err ||
3049 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3050 am_cv_CC_dependencies_compiler_type=$depmode
3051 break
3052 fi
3053 fi
3054 done
3055
3056 cd ..
3057 rm -rf conftest.dir
3058else
3059 am_cv_CC_dependencies_compiler_type=none
3060fi
3061
3062fi
3063echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3064echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3065CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3066
3067
3068
3069if
3070 test "x$enable_dependency_tracking" != xno \
3071 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3072 am__fastdepCC_TRUE=
3073 am__fastdepCC_FALSE='#'
3074else
3075 am__fastdepCC_TRUE='#'
3076 am__fastdepCC_FALSE=
3077fi
3078
3079
3080
3081
3082if test -n "$ac_tool_prefix"; then
3083 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3084set dummy ${ac_tool_prefix}ar; ac_word=$2
3085echo "$as_me:$LINENO: checking for $ac_word" >&5
3086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3087if test "${ac_cv_prog_AR+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089else
3090 if test -n "$AR"; then
3091 ac_cv_prog_AR="$AR" # Let the user override the test.
3092else
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_AR="${ac_tool_prefix}ar"
3101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104done
3105done
3106
3107fi
3108fi
3109AR=$ac_cv_prog_AR
3110if test -n "$AR"; then
3111 echo "$as_me:$LINENO: result: $AR" >&5
3112echo "${ECHO_T}$AR" >&6
3113else
3114 echo "$as_me:$LINENO: result: no" >&5
3115echo "${ECHO_T}no" >&6
3116fi
3117
3118fi
3119if test -z "$ac_cv_prog_AR"; then
3120 ac_ct_AR=$AR
3121 # Extract the first word of "ar", so it can be a program name with args.
3122set dummy ar; ac_word=$2
3123echo "$as_me:$LINENO: checking for $ac_word" >&5
3124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3125if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128 if test -n "$ac_ct_AR"; then
3129 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_ac_ct_AR="ar"
3139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142done
3143done
3144
3145fi
3146fi
3147ac_ct_AR=$ac_cv_prog_ac_ct_AR
3148if test -n "$ac_ct_AR"; then
3149 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3150echo "${ECHO_T}$ac_ct_AR" >&6
3151else
3152 echo "$as_me:$LINENO: result: no" >&5
3153echo "${ECHO_T}no" >&6
3154fi
3155
3156 AR=$ac_ct_AR
3157else
3158 AR="$ac_cv_prog_AR"
3159fi
3160
3161if test -n "$ac_tool_prefix"; then
3162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3163set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3164echo "$as_me:$LINENO: checking for $ac_word" >&5
3165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166if test "${ac_cv_prog_RANLIB+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168else
3169 if test -n "$RANLIB"; then
3170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183done
3184done
3185
3186fi
3187fi
3188RANLIB=$ac_cv_prog_RANLIB
3189if test -n "$RANLIB"; then
3190 echo "$as_me:$LINENO: result: $RANLIB" >&5
3191echo "${ECHO_T}$RANLIB" >&6
3192else
3193 echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6
3195fi
3196
3197fi
3198if test -z "$ac_cv_prog_RANLIB"; then
3199 ac_ct_RANLIB=$RANLIB
3200 # Extract the first word of "ranlib", so it can be a program name with args.
3201set dummy ranlib; ac_word=$2
3202echo "$as_me:$LINENO: checking for $ac_word" >&5
3203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206else
3207 if test -n "$ac_ct_RANLIB"; then
3208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3209else
3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH
3212do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_ac_ct_RANLIB="ranlib"
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221done
3222done
3223
3224 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3225fi
3226fi
3227ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3228if test -n "$ac_ct_RANLIB"; then
3229 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3230echo "${ECHO_T}$ac_ct_RANLIB" >&6
3231else
3232 echo "$as_me:$LINENO: result: no" >&5
3233echo "${ECHO_T}no" >&6
3234fi
3235
3236 RANLIB=$ac_ct_RANLIB
3237else
3238 RANLIB="$ac_cv_prog_RANLIB"
3239fi
3240
3241
3242# Check whether --enable-shared or --disable-shared was given.
3243if test "${enable_shared+set}" = set; then
3244 enableval="$enable_shared"
3245 p=${PACKAGE-default}
3246case $enableval in
3247yes) enable_shared=yes ;;
3248no) enable_shared=no ;;
3249*)
3250 enable_shared=no
3251 # Look at the argument we got. We use all the common list separators.
3252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3253 for pkg in $enableval; do
3254 if test "X$pkg" = "X$p"; then
3255 enable_shared=yes
3256 fi
3257 done
3258 IFS="$ac_save_ifs"
3259 ;;
3260esac
3261else
3262 enable_shared=no
3263fi;
3264
3265# Check whether --enable-static or --disable-static was given.
3266if test "${enable_static+set}" = set; then
3267 enableval="$enable_static"
3268 p=${PACKAGE-default}
3269case $enableval in
3270yes) enable_static=yes ;;
3271no) enable_static=no ;;
3272*)
3273 enable_static=no
3274 # Look at the argument we got. We use all the common list separators.
3275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3276 for pkg in $enableval; do
3277 if test "X$pkg" = "X$p"; then
3278 enable_static=yes
3279 fi
3280 done
3281 IFS="$ac_save_ifs"
3282 ;;
3283esac
3284else
3285 enable_static=yes
3286fi;
3287# Check whether --enable-fast-install or --disable-fast-install was given.
3288if test "${enable_fast_install+set}" = set; then
3289 enableval="$enable_fast_install"
3290 p=${PACKAGE-default}
3291case $enableval in
3292yes) enable_fast_install=yes ;;
3293no) enable_fast_install=no ;;
3294*)
3295 enable_fast_install=no
3296 # Look at the argument we got. We use all the common list separators.
3297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3298 for pkg in $enableval; do
3299 if test "X$pkg" = "X$p"; then
3300 enable_fast_install=yes
3301 fi
3302 done
3303 IFS="$ac_save_ifs"
3304 ;;
3305esac
3306else
3307 enable_fast_install=yes
3308fi;
3309
3310# Check whether --with-gnu-ld or --without-gnu-ld was given.
3311if test "${with_gnu_ld+set}" = set; then
3312 withval="$with_gnu_ld"
3313 test "$withval" = no || with_gnu_ld=yes
3314else
3315 with_gnu_ld=no
3316fi;
3317ac_prog=ld
3318if test "$GCC" = yes; then
3319 # Check if gcc -print-prog-name=ld gives a path.
3320 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3321echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3322 case $host in
3323 *-*-mingw*)
3324 # gcc leaves a trailing carriage return which upsets mingw
3325 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3326 *)
3327 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3328 esac
3329 case $ac_prog in
3330 # Accept absolute paths.
3331 [\\/]* | [A-Za-z]:[\\/]*)
3332 re_direlt='/[^/][^/]*/\.\./'
3333 # Canonicalize the path of ld
3334 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3335 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3336 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3337 done
3338 test -z "$LD" && LD="$ac_prog"
3339 ;;
3340 "")
3341 # If it fails, then pretend we aren't using GCC.
3342 ac_prog=ld
3343 ;;
3344 *)
3345 # If it is relative, then search for the first ld in PATH.
3346 with_gnu_ld=unknown
3347 ;;
3348 esac
3349elif test "$with_gnu_ld" = yes; then
3350 echo "$as_me:$LINENO: checking for GNU ld" >&5
3351echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3352else
3353 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3354echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3355fi
3356if test "${lt_cv_path_LD+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359 if test -z "$LD"; then
3360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3361 for ac_dir in $PATH; do
3362 test -z "$ac_dir" && ac_dir=.
3363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3364 lt_cv_path_LD="$ac_dir/$ac_prog"
3365 # Check to see if the program is GNU ld. I'd rather use --version,
3366 # but apparently some GNU ld's only accept -v.
3367 # Break only if it was the GNU/non-GNU ld that we prefer.
3368 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3369 test "$with_gnu_ld" != no && break
3370 else
3371 test "$with_gnu_ld" != yes && break
3372 fi
3373 fi
3374 done
3375 IFS="$ac_save_ifs"
3376else
3377 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3378fi
3379fi
3380
3381LD="$lt_cv_path_LD"
3382if test -n "$LD"; then
3383 echo "$as_me:$LINENO: result: $LD" >&5
3384echo "${ECHO_T}$LD" >&6
3385else
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
3388fi
3389test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3390echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3391 { (exit 1); exit 1; }; }
3392echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3393echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3394if test "${lt_cv_prog_gnu_ld+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3398if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3399 lt_cv_prog_gnu_ld=yes
3400else
3401 lt_cv_prog_gnu_ld=no
3402fi
3403fi
3404echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3405echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3406with_gnu_ld=$lt_cv_prog_gnu_ld
3407
3408
3409echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3410echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3411if test "${lt_cv_ld_reload_flag+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 lt_cv_ld_reload_flag='-r'
3415fi
3416echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3417echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3418reload_flag=$lt_cv_ld_reload_flag
3419test -n "$reload_flag" && reload_flag=" $reload_flag"
3420
3421echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3422echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3423if test "${lt_cv_path_NM+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425else
3426 if test -n "$NM"; then
3427 # Let the user override the test.
3428 lt_cv_path_NM="$NM"
3429else
3430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3431 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3432 test -z "$ac_dir" && ac_dir=.
3433 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3434 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3435 # Check to see if the nm accepts a BSD-compat flag.
3436 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3437 # nm: unknown option "B" ignored
3438 # Tru64's nm complains that /dev/null is an invalid object file
3439 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3440 lt_cv_path_NM="$tmp_nm -B"
3441 break
3442 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3443 lt_cv_path_NM="$tmp_nm -p"
3444 break
3445 else
3446 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3447 continue # so that we can try to find one that supports BSD flags
3448 fi
3449 fi
3450 done
3451 IFS="$ac_save_ifs"
3452 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3453fi
3454fi
3455
3456NM="$lt_cv_path_NM"
3457echo "$as_me:$LINENO: result: $NM" >&5
3458echo "${ECHO_T}$NM" >&6
3459
3460echo "$as_me:$LINENO: checking whether ln -s works" >&5
3461echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3462LN_S=$as_ln_s
3463if test "$LN_S" = "ln -s"; then
3464 echo "$as_me:$LINENO: result: yes" >&5
3465echo "${ECHO_T}yes" >&6
3466else
3467 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3468echo "${ECHO_T}no, using $LN_S" >&6
3469fi
3470
3471echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3472echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3473if test "${lt_cv_deplibs_check_method+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475else
3476 lt_cv_file_magic_cmd='$MAGIC_CMD'
3477lt_cv_file_magic_test_file=
3478lt_cv_deplibs_check_method='unknown'
3479# Need to set the preceding variable on all platforms that support
3480# interlibrary dependencies.
3481# 'none' -- dependencies not supported.
3482# `unknown' -- same as none, but documents that we really don't know.
3483# 'pass_all' -- all dependencies passed with no checks.
3484# 'test_compile' -- check by making test program.
3485# 'file_magic [regex]' -- check by looking for files in library path
3486# which responds to the $file_magic_cmd with a given egrep regex.
3487# If you have `file' or equivalent on your system and you're not sure
3488# whether `pass_all' will *always* work, you probably want this one.
3489
3490case $host_os in
3491aix*)
3492 lt_cv_deplibs_check_method=pass_all
3493 ;;
3494
3495beos*)
3496 lt_cv_deplibs_check_method=pass_all
3497 ;;
3498
3499bsdi4*)
3500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3501 lt_cv_file_magic_cmd='/usr/bin/file -L'
3502 lt_cv_file_magic_test_file=/shlib/libc.so
3503 ;;
3504
3505cygwin* | mingw* |pw32*)
3506 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3507 lt_cv_file_magic_cmd='$OBJDUMP -f'
3508 ;;
3509
3510darwin* | rhapsody*)
3511 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3512 lt_cv_file_magic_cmd='/usr/bin/file -L'
3513 case "$host_os" in
3514 rhapsody* | darwin1.012)
3515 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3516 ;;
3517 *) # Darwin 1.3 on
3518 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3519 ;;
3520 esac
3521 ;;
3522
3523freebsd* | kfreebsd*-gnu)
3524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3525 case $host_cpu in
3526 i*86 )
3527 # Not sure whether the presence of OpenBSD here was a mistake.
3528 # Let's accept both of them until this is cleared up.
3529 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3530 lt_cv_file_magic_cmd=/usr/bin/file
3531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3532 ;;
3533 esac
3534 else
3535 lt_cv_deplibs_check_method=pass_all
3536 fi
3537 ;;
3538
3539gnu*)
3540 lt_cv_deplibs_check_method=pass_all
3541 ;;
3542
3543hpux10.20*|hpux11*)
3544 case $host_cpu in
3545 hppa*)
3546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3547 lt_cv_file_magic_cmd=/usr/bin/file
3548 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3549 ;;
3550 ia64*)
3551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3552 lt_cv_file_magic_cmd=/usr/bin/file
3553 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3554 ;;
3555 esac
3556 ;;
3557
3558irix5* | irix6*)
3559 case $host_os in
3560 irix5*)
3561 # this will be overridden with pass_all, but let us keep it just in case
3562 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3563 ;;
3564 *)
3565 case $LD in
3566 *-32|*"-32 ") libmagic=32-bit;;
3567 *-n32|*"-n32 ") libmagic=N32;;
3568 *-64|*"-64 ") libmagic=64-bit;;
3569 *) libmagic=never-match;;
3570 esac
3571 # this will be overridden with pass_all, but let us keep it just in case
3572 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3573 ;;
3574 esac
3575 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3576 lt_cv_deplibs_check_method=pass_all
3577 ;;
3578
3579# This must be Linux ELF.
3580linux-gnu*)
3581 case $host_cpu in
3582 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3583 lt_cv_deplibs_check_method=pass_all ;;
3584 *)
3585 # glibc up to 2.1.1 does not perform some relocations on ARM
3586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3587 esac
3588 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3589 ;;
3590
3591netbsd* | knetbsd*-gnu)
3592 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3593 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3594 else
3595 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3596 fi
3597 ;;
3598
3599newsos6)
3600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3601 lt_cv_file_magic_cmd=/usr/bin/file
3602 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3603 ;;
3604
3605osf3* | osf4* | osf5*)
3606 # this will be overridden with pass_all, but let us keep it just in case
3607 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3608 lt_cv_file_magic_test_file=/shlib/libc.so
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611
3612sco3.2v5*)
3613 lt_cv_deplibs_check_method=pass_all
3614 ;;
3615
3616solaris*)
3617 lt_cv_deplibs_check_method=pass_all
3618 lt_cv_file_magic_test_file=/lib/libc.so
3619 ;;
3620
3621sysv5uw[78]* | sysv4*uw2*)
3622 lt_cv_deplibs_check_method=pass_all
3623 ;;
3624
3625sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3626 case $host_vendor in
3627 ncr)
3628 lt_cv_deplibs_check_method=pass_all
3629 ;;
3630 motorola)
3631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3632 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3633 ;;
3634 esac
3635 ;;
3636esac
3637
3638fi
3639echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3640echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3641file_magic_cmd=$lt_cv_file_magic_cmd
3642deplibs_check_method=$lt_cv_deplibs_check_method
3643
3644
3645
3646
3647# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3648
3649# Only perform the check for file, if the check method requires it
3650case $deplibs_check_method in
3651file_magic*)
3652 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3653 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3654echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3655if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658 case $MAGIC_CMD in
3659 /*)
3660 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3661 ;;
3662 ?:/*)
3663 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3664 ;;
3665 *)
3666 ac_save_MAGIC_CMD="$MAGIC_CMD"
3667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3668 ac_dummy="/usr/bin:$PATH"
3669 for ac_dir in $ac_dummy; do
3670 test -z "$ac_dir" && ac_dir=.
3671 if test -f $ac_dir/${ac_tool_prefix}file; then
3672 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3673 if test -n "$file_magic_test_file"; then
3674 case $deplibs_check_method in
3675 "file_magic "*)
3676 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3678 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3679 egrep "$file_magic_regex" > /dev/null; then
3680 :
3681 else
3682 cat <<EOF 1>&2
3683
3684*** Warning: the command libtool uses to detect shared libraries,
3685*** $file_magic_cmd, produces output that libtool cannot recognize.
3686*** The result is that libtool may fail to recognize shared libraries
3687*** as such. This will affect the creation of libtool libraries that
3688*** depend on shared libraries, but programs linked with such libtool
3689*** libraries will work regardless of this problem. Nevertheless, you
3690*** may want to report the problem to your system manager and/or to
3691*** bug-libtool@gnu.org
3692
3693EOF
3694 fi ;;
3695 esac
3696 fi
3697 break
3698 fi
3699 done
3700 IFS="$ac_save_ifs"
3701 MAGIC_CMD="$ac_save_MAGIC_CMD"
3702 ;;
3703esac
3704fi
3705
3706MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3707if test -n "$MAGIC_CMD"; then
3708 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3709echo "${ECHO_T}$MAGIC_CMD" >&6
3710else
3711 echo "$as_me:$LINENO: result: no" >&5
3712echo "${ECHO_T}no" >&6
3713fi
3714
3715if test -z "$lt_cv_path_MAGIC_CMD"; then
3716 if test -n "$ac_tool_prefix"; then
3717 echo "$as_me:$LINENO: checking for file" >&5
3718echo $ECHO_N "checking for file... $ECHO_C" >&6
3719if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722 case $MAGIC_CMD in
3723 /*)
3724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3725 ;;
3726 ?:/*)
3727 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3728 ;;
3729 *)
3730 ac_save_MAGIC_CMD="$MAGIC_CMD"
3731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3732 ac_dummy="/usr/bin:$PATH"
3733 for ac_dir in $ac_dummy; do
3734 test -z "$ac_dir" && ac_dir=.
3735 if test -f $ac_dir/file; then
3736 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3737 if test -n "$file_magic_test_file"; then
3738 case $deplibs_check_method in
3739 "file_magic "*)
3740 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3741 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3742 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3743 egrep "$file_magic_regex" > /dev/null; then
3744 :
3745 else
3746 cat <<EOF 1>&2
3747
3748*** Warning: the command libtool uses to detect shared libraries,
3749*** $file_magic_cmd, produces output that libtool cannot recognize.
3750*** The result is that libtool may fail to recognize shared libraries
3751*** as such. This will affect the creation of libtool libraries that
3752*** depend on shared libraries, but programs linked with such libtool
3753*** libraries will work regardless of this problem. Nevertheless, you
3754*** may want to report the problem to your system manager and/or to
3755*** bug-libtool@gnu.org
3756
3757EOF
3758 fi ;;
3759 esac
3760 fi
3761 break
3762 fi
3763 done
3764 IFS="$ac_save_ifs"
3765 MAGIC_CMD="$ac_save_MAGIC_CMD"
3766 ;;
3767esac
3768fi
3769
3770MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3771if test -n "$MAGIC_CMD"; then
3772 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3773echo "${ECHO_T}$MAGIC_CMD" >&6
3774else
3775 echo "$as_me:$LINENO: result: no" >&5
3776echo "${ECHO_T}no" >&6
3777fi
3778
3779 else
3780 MAGIC_CMD=:
3781 fi
3782fi
3783
3784 fi
3785 ;;
3786esac
3787
3788if test -n "$ac_tool_prefix"; then
3789 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3790set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3791echo "$as_me:$LINENO: checking for $ac_word" >&5
3792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793if test "${ac_cv_prog_RANLIB+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
3796 if test -n "$RANLIB"; then
3797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3798else
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH
3801do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3809 fi
3810done
3811done
3812
3813fi
3814fi
3815RANLIB=$ac_cv_prog_RANLIB
3816if test -n "$RANLIB"; then
3817 echo "$as_me:$LINENO: result: $RANLIB" >&5
3818echo "${ECHO_T}$RANLIB" >&6
3819else
3820 echo "$as_me:$LINENO: result: no" >&5
3821echo "${ECHO_T}no" >&6
3822fi
3823
3824fi
3825if test -z "$ac_cv_prog_RANLIB"; then
3826 ac_ct_RANLIB=$RANLIB
3827 # Extract the first word of "ranlib", so it can be a program name with args.
3828set dummy ranlib; ac_word=$2
3829echo "$as_me:$LINENO: checking for $ac_word" >&5
3830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3831if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834 if test -n "$ac_ct_RANLIB"; then
3835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3836else
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844 ac_cv_prog_ac_ct_RANLIB="ranlib"
3845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 break 2
3847 fi
3848done
3849done
3850
3851 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3852fi
3853fi
3854ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3855if test -n "$ac_ct_RANLIB"; then
3856 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3857echo "${ECHO_T}$ac_ct_RANLIB" >&6
3858else
3859 echo "$as_me:$LINENO: result: no" >&5
3860echo "${ECHO_T}no" >&6
3861fi
3862
3863 RANLIB=$ac_ct_RANLIB
3864else
3865 RANLIB="$ac_cv_prog_RANLIB"
3866fi
3867
3868if test -n "$ac_tool_prefix"; then
3869 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3870set dummy ${ac_tool_prefix}strip; ac_word=$2
3871echo "$as_me:$LINENO: checking for $ac_word" >&5
3872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3873if test "${ac_cv_prog_STRIP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876 if test -n "$STRIP"; then
3877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3878else
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890done
3891done
3892
3893fi
3894fi
3895STRIP=$ac_cv_prog_STRIP
3896if test -n "$STRIP"; then
3897 echo "$as_me:$LINENO: result: $STRIP" >&5
3898echo "${ECHO_T}$STRIP" >&6
3899else
3900 echo "$as_me:$LINENO: result: no" >&5
3901echo "${ECHO_T}no" >&6
3902fi
3903
3904fi
3905if test -z "$ac_cv_prog_STRIP"; then
3906 ac_ct_STRIP=$STRIP
3907 # Extract the first word of "strip", so it can be a program name with args.
3908set dummy strip; ac_word=$2
3909echo "$as_me:$LINENO: checking for $ac_word" >&5
3910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914 if test -n "$ac_ct_STRIP"; then
3915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3916else
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_ac_ct_STRIP="strip"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 break 2
3927 fi
3928done
3929done
3930
3931 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3932fi
3933fi
3934ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3935if test -n "$ac_ct_STRIP"; then
3936 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3937echo "${ECHO_T}$ac_ct_STRIP" >&6
3938else
3939 echo "$as_me:$LINENO: result: no" >&5
3940echo "${ECHO_T}no" >&6
3941fi
3942
3943 STRIP=$ac_ct_STRIP
3944else
3945 STRIP="$ac_cv_prog_STRIP"
3946fi
3947
3948
3949# Check for any special flags to pass to ltconfig.
3950libtool_flags="--cache-file=$cache_file"
3951test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3952test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3953test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3954test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3955test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3956
3957
3958# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3959if test "${enable_libtool_lock+set}" = set; then
3960 enableval="$enable_libtool_lock"
3961
3962fi;
3963test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3964test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3965
3966
3967# Check whether --with-pic or --without-pic was given.
3968if test "${with_pic+set}" = set; then
3969 withval="$with_pic"
3970 pic_mode="$withval"
3971else
3972 pic_mode=default
3973fi;
3974test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3975test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3976
3977# Some flags need to be propagated to the compiler or linker for good
3978# libtool support.
3979case $host in
3980*-*-irix6*)
3981 # Find out which ABI we are using.
3982 echo '#line 3982 "configure"' > conftest.$ac_ext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; then
3988 if test "$lt_cv_prog_gnu_ld" = yes; then
3989 case `/usr/bin/file conftest.$ac_objext` in
3990 *32-bit*)
3991 LD="${LD-ld} -melf32bsmip"
3992 ;;
3993 *N32*)
3994 LD="${LD-ld} -melf32bmipn32"
3995 ;;
3996 *64-bit*)
3997 LD="${LD-ld} -melf64bmip"
3998 ;;
3999 esac
4000 else
4001 case `/usr/bin/file conftest.$ac_objext` in
4002 *32-bit*)
4003 LD="${LD-ld} -32"
4004 ;;
4005 *N32*)
4006 LD="${LD-ld} -n32"
4007 ;;
4008 *64-bit*)
4009 LD="${LD-ld} -64"
4010 ;;
4011 esac
4012 fi
4013 fi
4014 rm -rf conftest*
4015 ;;
4016
4017ia64-*-hpux*)
4018 # Find out which ABI we are using.
4019 echo 'int i;' > conftest.$ac_ext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; then
4025 case "`/usr/bin/file conftest.o`" in
4026 *ELF-32*)
4027 HPUX_IA64_MODE="32"
4028 ;;
4029 *ELF-64*)
4030 HPUX_IA64_MODE="64"
4031 ;;
4032 esac
4033 fi
4034 rm -rf conftest*
4035 ;;
4036
4037*-*-sco3.2v5*)
4038 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4039 SAVE_CFLAGS="$CFLAGS"
4040 CFLAGS="$CFLAGS -belf"
4041 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4042echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4043if test "${lt_cv_cc_needs_belf+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046
4047
4048 ac_ext=c
4049ac_cpp='$CPP $CPPFLAGS'
4050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054 cat >conftest.$ac_ext <<_ACEOF
4055/* confdefs.h. */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h. */
4060
4061int
4062main ()
4063{
4064
4065 ;
4066 return 0;
4067}
4068_ACEOF
4069rm -f conftest.$ac_objext conftest$ac_exeext
4070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4071 (eval $ac_link) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest$ac_exeext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 lt_cv_cc_needs_belf=yes
4092else
4093 echo "$as_me: failed program was:" >&5
4094sed 's/^/| /' conftest.$ac_ext >&5
4095
4096lt_cv_cc_needs_belf=no
4097fi
4098rm -f conftest.err conftest.$ac_objext \
4099 conftest$ac_exeext conftest.$ac_ext
4100 ac_ext=c
4101ac_cpp='$CPP $CPPFLAGS'
4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106fi
4107echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4108echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4109 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4110 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4111 CFLAGS="$SAVE_CFLAGS"
4112 fi
4113 ;;
4114
4115
4116esac
4117
4118
4119# Save cache, so that ltconfig can load it
4120cat >confcache <<\_ACEOF
4121# This file is a shell script that caches the results of configure
4122# tests run on this system so they can be shared between configure
4123# scripts and configure runs, see configure's option --config-cache.
4124# It is not useful on other systems. If it contains results you don't
4125# want to keep, you may remove or edit it.
4126#
4127# config.status only pays attention to the cache file if you give it
4128# the --recheck option to rerun configure.
4129#
4130# `ac_cv_env_foo' variables (set or unset) will be overridden when
4131# loading this file, other *unset* `ac_cv_foo' will be assigned the
4132# following values.
4133
4134_ACEOF
4135
4136# The following way of writing the cache mishandles newlines in values,
4137# but we know of no workaround that is simple, portable, and efficient.
4138# So, don't put newlines in cache variables' values.
4139# Ultrix sh set writes to stderr and can't be redirected directly,
4140# and sets the high bit in the cache file unless we assign to the vars.
4141{
4142 (set) 2>&1 |
4143 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4144 *ac_space=\ *)
4145 # `set' does not quote correctly, so add quotes (double-quote
4146 # substitution turns \\\\ into \\, and sed turns \\ into \).
4147 sed -n \
4148 "s/'/'\\\\''/g;
4149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4150 ;;
4151 *)
4152 # `set' quotes correctly as required by POSIX, so do not add quotes.
4153 sed -n \
4154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4155 ;;
4156 esac;
4157} |
4158 sed '
4159 t clear
4160 : clear
4161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4162 t end
4163 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4164 : end' >>confcache
4165if diff $cache_file confcache >/dev/null 2>&1; then :; else
4166 if test -w $cache_file; then
4167 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4168 cat confcache >$cache_file
4169 else
4170 echo "not updating unwritable cache $cache_file"
4171 fi
4172fi
4173rm -f confcache
4174
4175# Actually configure libtool. ac_aux_dir is where install-sh is found.
4176AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4177MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4178LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4179AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4180objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4181deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4182${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4183$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4184|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4185echo "$as_me: error: libtool configure failed" >&2;}
4186 { (exit 1); exit 1; }; }
4187
4188# Reload cache, that may have been modified by ltconfig
4189if test -r "$cache_file"; then
4190 # Some versions of bash will fail to source /dev/null (special
4191 # files actually), so we avoid doing that.
4192 if test -f "$cache_file"; then
4193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4194echo "$as_me: loading cache $cache_file" >&6;}
4195 case $cache_file in
4196 [\\/]* | ?:[\\/]* ) . $cache_file;;
4197 *) . ./$cache_file;;
4198 esac
4199 fi
4200else
4201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4202echo "$as_me: creating cache $cache_file" >&6;}
4203 >$cache_file
4204fi
4205
4206
4207# This can be used to rebuild libtool when needed
4208LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4209
4210# Always use our own libtool.
4211LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4212
4213# Redirect the config.log output again, so that the ltconfig log is not
4214# clobbered by the next message.
4215exec 5>>./config.log
4216
4217
4218
4219
4220
4221
4222
4223# Check whether --enable-targets or --disable-targets was given.
4224if test "${enable_targets+set}" = set; then
4225 enableval="$enable_targets"
4226 case "${enableval}" in
4227 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4228echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4229 { (exit 1); exit 1; }; }
4230 ;;
4231 no) enable_targets= ;;
4232 *) enable_targets=$enableval ;;
4233esac
4234fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4235if test "${enable_commonbfdlib+set}" = set; then
4236 enableval="$enable_commonbfdlib"
4237 case "${enableval}" in
4238 yes) commonbfdlib=true ;;
4239 no) commonbfdlib=false ;;
4240 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
4241echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
4242 { (exit 1); exit 1; }; } ;;
4243esac
4244fi;
4245
4246WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4247
4248# Check whether --enable-werror or --disable-werror was given.
4249if test "${enable_werror+set}" = set; then
4250 enableval="$enable_werror"
4251 case "${enableval}" in
4252 yes | y) ERROR_ON_WARNING="yes" ;;
4253 no | n) ERROR_ON_WARNING="no" ;;
4254 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4255echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4256 { (exit 1); exit 1; }; } ;;
4257 esac
4258fi;
4259
4260# Enable -Werror by default when using gcc
4261if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4262 ERROR_ON_WARNING=yes
4263fi
4264
4265NO_WERROR=
4266if test "${ERROR_ON_WARNING}" = yes ; then
4267 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4268 NO_WERROR="-Wno-error"
4269fi
4270
4271# Check whether --enable-build-warnings or --disable-build-warnings was given.
4272if test "${enable_build_warnings+set}" = set; then
4273 enableval="$enable_build_warnings"
4274 case "${enableval}" in
4275 yes) ;;
4276 no) WARN_CFLAGS="-w";;
4277 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4278 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
4279 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4280 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4281 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4282esac
4283fi;
4284
4285if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4286 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4287fi
4288
4289
4290
4291
4292
4293 ac_config_headers="$ac_config_headers config.h:config.in"
4294
4295
4296if test -z "$target" ; then
4297 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4298echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4299 { (exit 1); exit 1; }; }
4300fi
4301
4302echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4303echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4304 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4305if test "${enable_maintainer_mode+set}" = set; then
4306 enableval="$enable_maintainer_mode"
4307 USE_MAINTAINER_MODE=$enableval
4308else
4309 USE_MAINTAINER_MODE=no
4310fi;
4311 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4312echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4313
4314
4315if test $USE_MAINTAINER_MODE = yes; then
4316 MAINTAINER_MODE_TRUE=
4317 MAINTAINER_MODE_FALSE='#'
4318else
4319 MAINTAINER_MODE_TRUE='#'
4320 MAINTAINER_MODE_FALSE=
4321fi
4322
4323 MAINT=$MAINTAINER_MODE_TRUE
4324
4325
4326 case ${build_alias} in
4327 "") build_noncanonical=${build} ;;
4328 *) build_noncanonical=${build_alias} ;;
4329esac
4330
4331 case ${host_alias} in
4332 "") host_noncanonical=${build_noncanonical} ;;
4333 *) host_noncanonical=${host_alias} ;;
4334esac
4335
4336 case ${target_alias} in
4337 "") target_noncanonical=${host_noncanonical} ;;
4338 *) target_noncanonical=${target_alias} ;;
4339esac
4340
4341echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4342echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4343 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4344if test "${enable_install_libbfd+set}" = set; then
4345 enableval="$enable_install_libbfd"
4346 install_libbfd_p=$enableval
4347else
4348 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4349 install_libbfd_p=yes
4350 else
4351 install_libbfd_p=no
4352 fi
4353fi;
4354 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4355echo "${ECHO_T}$install_libbfd_p" >&6
4356
4357
4358if test $install_libbfd_p = yes; then
4359 INSTALL_LIBBFD_TRUE=
4360 INSTALL_LIBBFD_FALSE='#'
4361else
4362 INSTALL_LIBBFD_TRUE='#'
4363 INSTALL_LIBBFD_FALSE=
4364fi
4365
4366 # Need _noncanonical variables for this.
4367
4368
4369
4370
4371 # libbfd.a is a host library containing target dependent code
4372 bfdlibdir='$(libdir)'
4373 bfdincludedir='$(includedir)'
4374 if test "${host}" != "${target}"; then
4375 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4376 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4377 fi
4378
4379
4380
4381
4382
4383
4384# host-specific stuff:
4385
4386ac_ext=c
4387ac_cpp='$CPP $CPPFLAGS'
4388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391if test -n "$ac_tool_prefix"; then
4392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4393set dummy ${ac_tool_prefix}gcc; ac_word=$2
4394echo "$as_me:$LINENO: checking for $ac_word" >&5
4395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396if test "${ac_cv_prog_CC+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398else
4399 if test -n "$CC"; then
4400 ac_cv_prog_CC="$CC" # Let the user override the test.
4401else
4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4412 fi
4413done
4414done
4415
4416fi
4417fi
4418CC=$ac_cv_prog_CC
4419if test -n "$CC"; then
4420 echo "$as_me:$LINENO: result: $CC" >&5
4421echo "${ECHO_T}$CC" >&6
4422else
4423 echo "$as_me:$LINENO: result: no" >&5
4424echo "${ECHO_T}no" >&6
4425fi
4426
4427fi
4428if test -z "$ac_cv_prog_CC"; then
4429 ac_ct_CC=$CC
4430 # Extract the first word of "gcc", so it can be a program name with args.
4431set dummy gcc; ac_word=$2
4432echo "$as_me:$LINENO: checking for $ac_word" >&5
4433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4434if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437 if test -n "$ac_ct_CC"; then
4438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4439else
4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441for as_dir in $PATH
4442do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_prog_ac_ct_CC="gcc"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4450 fi
4451done
4452done
4453
4454fi
4455fi
4456ac_ct_CC=$ac_cv_prog_ac_ct_CC
4457if test -n "$ac_ct_CC"; then
4458 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4459echo "${ECHO_T}$ac_ct_CC" >&6
4460else
4461 echo "$as_me:$LINENO: result: no" >&5
4462echo "${ECHO_T}no" >&6
4463fi
4464
4465 CC=$ac_ct_CC
4466else
4467 CC="$ac_cv_prog_CC"
4468fi
4469
4470if test -z "$CC"; then
4471 if test -n "$ac_tool_prefix"; then
4472 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4473set dummy ${ac_tool_prefix}cc; ac_word=$2
4474echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476if test "${ac_cv_prog_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479 if test -n "$CC"; then
4480 ac_cv_prog_CC="$CC" # Let the user override the test.
4481else
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_CC="${ac_tool_prefix}cc"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493done
4494done
4495
4496fi
4497fi
4498CC=$ac_cv_prog_CC
4499if test -n "$CC"; then
4500 echo "$as_me:$LINENO: result: $CC" >&5
4501echo "${ECHO_T}$CC" >&6
4502else
4503 echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6
4505fi
4506
4507fi
4508if test -z "$ac_cv_prog_CC"; then
4509 ac_ct_CC=$CC
4510 # Extract the first word of "cc", so it can be a program name with args.
4511set dummy cc; ac_word=$2
4512echo "$as_me:$LINENO: checking for $ac_word" >&5
4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 if test -n "$ac_ct_CC"; then
4518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_ac_ct_CC="cc"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531done
4532done
4533
4534fi
4535fi
4536ac_ct_CC=$ac_cv_prog_ac_ct_CC
4537if test -n "$ac_ct_CC"; then
4538 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4539echo "${ECHO_T}$ac_ct_CC" >&6
4540else
4541 echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6
4543fi
4544
4545 CC=$ac_ct_CC
4546else
4547 CC="$ac_cv_prog_CC"
4548fi
4549
4550fi
4551if test -z "$CC"; then
4552 # Extract the first word of "cc", so it can be a program name with args.
4553set dummy cc; ac_word=$2
4554echo "$as_me:$LINENO: checking for $ac_word" >&5
4555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556if test "${ac_cv_prog_CC+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
4559 if test -n "$CC"; then
4560 ac_cv_prog_CC="$CC" # Let the user override the test.
4561else
4562 ac_prog_rejected=no
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4571 ac_prog_rejected=yes
4572 continue
4573 fi
4574 ac_cv_prog_CC="cc"
4575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4577 fi
4578done
4579done
4580
4581if test $ac_prog_rejected = yes; then
4582 # We found a bogon in the path, so make sure we never use it.
4583 set dummy $ac_cv_prog_CC
4584 shift
4585 if test $# != 0; then
4586 # We chose a different compiler from the bogus one.
4587 # However, it has the same basename, so the bogon will be chosen
4588 # first if we set CC to just the basename; use the full file name.
4589 shift
4590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4591 fi
4592fi
4593fi
4594fi
4595CC=$ac_cv_prog_CC
4596if test -n "$CC"; then
4597 echo "$as_me:$LINENO: result: $CC" >&5
4598echo "${ECHO_T}$CC" >&6
4599else
4600 echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6
4602fi
4603
4604fi
4605if test -z "$CC"; then
4606 if test -n "$ac_tool_prefix"; then
4607 for ac_prog in cl
4608 do
4609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4610set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4611echo "$as_me:$LINENO: checking for $ac_word" >&5
4612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4613if test "${ac_cv_prog_CC+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616 if test -n "$CC"; then
4617 ac_cv_prog_CC="$CC" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4629 fi
4630done
4631done
4632
4633fi
4634fi
4635CC=$ac_cv_prog_CC
4636if test -n "$CC"; then
4637 echo "$as_me:$LINENO: result: $CC" >&5
4638echo "${ECHO_T}$CC" >&6
4639else
4640 echo "$as_me:$LINENO: result: no" >&5
4641echo "${ECHO_T}no" >&6
4642fi
4643
4644 test -n "$CC" && break
4645 done
4646fi
4647if test -z "$CC"; then
4648 ac_ct_CC=$CC
4649 for ac_prog in cl
4650do
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652set dummy $ac_prog; ac_word=$2
4653echo "$as_me:$LINENO: checking for $ac_word" >&5
4654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657else
4658 if test -n "$ac_ct_CC"; then
4659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4660else
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_ac_ct_CC="$ac_prog"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672done
4673done
4674
4675fi
4676fi
4677ac_ct_CC=$ac_cv_prog_ac_ct_CC
4678if test -n "$ac_ct_CC"; then
4679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4680echo "${ECHO_T}$ac_ct_CC" >&6
4681else
4682 echo "$as_me:$LINENO: result: no" >&5
4683echo "${ECHO_T}no" >&6
4684fi
4685
4686 test -n "$ac_ct_CC" && break
4687done
4688
4689 CC=$ac_ct_CC
4690fi
4691
4692fi
4693
4694
4695test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4696See \`config.log' for more details." >&5
4697echo "$as_me: error: no acceptable C compiler found in \$PATH
4698See \`config.log' for more details." >&2;}
4699 { (exit 1); exit 1; }; }
4700
4701# Provide some information about the compiler.
4702echo "$as_me:$LINENO:" \
4703 "checking for C compiler version" >&5
4704ac_compiler=`set X $ac_compile; echo $2`
4705{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4706 (eval $ac_compiler --version </dev/null >&5) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }
4710{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4711 (eval $ac_compiler -v </dev/null >&5) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }
4715{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4716 (eval $ac_compiler -V </dev/null >&5) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }
4720
4721echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4722echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4723if test "${ac_cv_c_compiler_gnu+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4725else
4726 cat >conftest.$ac_ext <<_ACEOF
4727/* confdefs.h. */
4728_ACEOF
4729cat confdefs.h >>conftest.$ac_ext
4730cat >>conftest.$ac_ext <<_ACEOF
4731/* end confdefs.h. */
4732
4733int
4734main ()
4735{
4736#ifndef __GNUC__
4737 choke me
4738#endif
4739
4740 ;
4741 return 0;
4742}
4743_ACEOF
4744rm -f conftest.$ac_objext
4745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -z "$ac_c_werror_flag"
4754 || test ! -s conftest.err'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 (eval $ac_try) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; } &&
4760 { ac_try='test -s conftest.$ac_objext'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 ac_compiler_gnu=yes
4767else
4768 echo "$as_me: failed program was:" >&5
4769sed 's/^/| /' conftest.$ac_ext >&5
4770
4771ac_compiler_gnu=no
4772fi
4773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4774ac_cv_c_compiler_gnu=$ac_compiler_gnu
4775
4776fi
4777echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4778echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4779GCC=`test $ac_compiler_gnu = yes && echo yes`
4780ac_test_CFLAGS=${CFLAGS+set}
4781ac_save_CFLAGS=$CFLAGS
4782CFLAGS="-g"
4783echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4784echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4785if test "${ac_cv_prog_cc_g+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788 cat >conftest.$ac_ext <<_ACEOF
4789/* confdefs.h. */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h. */
4794
4795int
4796main ()
4797{
4798
4799 ;
4800 return 0;
4801}
4802_ACEOF
4803rm -f conftest.$ac_objext
4804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 (eval $ac_try) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 ac_cv_prog_cc_g=yes
4826else
4827 echo "$as_me: failed program was:" >&5
4828sed 's/^/| /' conftest.$ac_ext >&5
4829
4830ac_cv_prog_cc_g=no
4831fi
4832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4833fi
4834echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4835echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4836if test "$ac_test_CFLAGS" = set; then
4837 CFLAGS=$ac_save_CFLAGS
4838elif test $ac_cv_prog_cc_g = yes; then
4839 if test "$GCC" = yes; then
4840 CFLAGS="-g -O2"
4841 else
4842 CFLAGS="-g"
4843 fi
4844else
4845 if test "$GCC" = yes; then
4846 CFLAGS="-O2"
4847 else
4848 CFLAGS=
4849 fi
4850fi
4851echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4852echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4853if test "${ac_cv_prog_cc_stdc+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 ac_cv_prog_cc_stdc=no
4857ac_save_CC=$CC
4858cat >conftest.$ac_ext <<_ACEOF
4859/* confdefs.h. */
4860_ACEOF
4861cat confdefs.h >>conftest.$ac_ext
4862cat >>conftest.$ac_ext <<_ACEOF
4863/* end confdefs.h. */
4864#include <stdarg.h>
4865#include <stdio.h>
4866#include <sys/types.h>
4867#include <sys/stat.h>
4868/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4869struct buf { int x; };
4870FILE * (*rcsopen) (struct buf *, struct stat *, int);
4871static char *e (p, i)
4872 char **p;
4873 int i;
4874{
4875 return p[i];
4876}
4877static char *f (char * (*g) (char **, int), char **p, ...)
4878{
4879 char *s;
4880 va_list v;
4881 va_start (v,p);
4882 s = g (p, va_arg (v,int));
4883 va_end (v);
4884 return s;
4885}
4886
4887/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4888 function prototypes and stuff, but not '\xHH' hex character constants.
4889 These don't provoke an error unfortunately, instead are silently treated
4890 as 'x'. The following induces an error, until -std1 is added to get
4891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4892 array size at least. It's necessary to write '\x00'==0 to get something
4893 that's true only with -std1. */
4894int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4895
4896int test (int i, double x);
4897struct s1 {int (*f) (int a);};
4898struct s2 {int (*f) (double a);};
4899int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4900int argc;
4901char **argv;
4902int
4903main ()
4904{
4905return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4906 ;
4907 return 0;
4908}
4909_ACEOF
4910# Don't try gcc -ansi; that turns off useful extensions and
4911# breaks some systems' header files.
4912# AIX -qlanglvl=ansi
4913# Ultrix and OSF/1 -std1
4914# HP-UX 10.20 and later -Ae
4915# HP-UX older versions -Aa -D_HPUX_SOURCE
4916# SVR4 -Xc -D__EXTENSIONS__
4917for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4918do
4919 CC="$ac_save_CC $ac_arg"
4920 rm -f conftest.$ac_objext
4921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922 (eval $ac_compile) 2>conftest.er1
4923 ac_status=$?
4924 grep -v '^ *+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try='test -z "$ac_c_werror_flag"
4930 || test ! -s conftest.err'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; } &&
4936 { ac_try='test -s conftest.$ac_objext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 ac_cv_prog_cc_stdc=$ac_arg
4943break
4944else
4945 echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948fi
4949rm -f conftest.err conftest.$ac_objext
4950done
4951rm -f conftest.$ac_ext conftest.$ac_objext
4952CC=$ac_save_CC
4953
4954fi
4955
4956case "x$ac_cv_prog_cc_stdc" in
4957 x|xno)
4958 echo "$as_me:$LINENO: result: none needed" >&5
4959echo "${ECHO_T}none needed" >&6 ;;
4960 *)
4961 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4962echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4963 CC="$CC $ac_cv_prog_cc_stdc" ;;
4964esac
4965
4966# Some people use a C++ compiler to compile C. Since we use `exit',
4967# in C++ we need to declare it. In case someone uses the same compiler
4968# for both compiling C and C++ we need to have the C++ compiler decide
4969# the declaration of exit, since it's the most demanding environment.
4970cat >conftest.$ac_ext <<_ACEOF
4971#ifndef __cplusplus
4972 choke me
4973#endif
4974_ACEOF
4975rm -f conftest.$ac_objext
4976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try='test -z "$ac_c_werror_flag"
4985 || test ! -s conftest.err'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; } &&
4991 { ac_try='test -s conftest.$ac_objext'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 (eval $ac_try) 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4997 for ac_declaration in \
4998 '' \
4999 'extern "C" void std::exit (int) throw (); using std::exit;' \
5000 'extern "C" void std::exit (int); using std::exit;' \
5001 'extern "C" void exit (int) throw ();' \
5002 'extern "C" void exit (int);' \
5003 'void exit (int);'
5004do
5005 cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h. */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
5010/* end confdefs.h. */
5011$ac_declaration
5012#include <stdlib.h>
5013int
5014main ()
5015{
5016exit (42);
5017 ;
5018 return 0;
5019}
5020_ACEOF
5021rm -f conftest.$ac_objext
5022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 :
5044else
5045 echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
5048continue
5049fi
5050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5051 cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h. */
5057$ac_declaration
5058int
5059main ()
5060{
5061exit (42);
5062 ;
5063 return 0;
5064}
5065_ACEOF
5066rm -f conftest.$ac_objext
5067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068 (eval $ac_compile) 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -z "$ac_c_werror_flag"
5076 || test ! -s conftest.err'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; } &&
5082 { ac_try='test -s conftest.$ac_objext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 break
5089else
5090 echo "$as_me: failed program was:" >&5
5091sed 's/^/| /' conftest.$ac_ext >&5
5092
5093fi
5094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095done
5096rm -f conftest*
5097if test -n "$ac_declaration"; then
5098 echo '#ifdef __cplusplus' >>confdefs.h
5099 echo $ac_declaration >>confdefs.h
5100 echo '#endif' >>confdefs.h
5101fi
5102
5103else
5104 echo "$as_me: failed program was:" >&5
5105sed 's/^/| /' conftest.$ac_ext >&5
5106
5107fi
5108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5109ac_ext=c
5110ac_cpp='$CPP $CPPFLAGS'
5111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115
5116ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi"
5117if test -n "$ac_tool_prefix"; then
5118 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5119set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5120echo "$as_me:$LINENO: checking for $ac_word" >&5
5121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5122if test "${ac_cv_prog_RANLIB+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125 if test -n "$RANLIB"; then
5126 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5127else
5128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129for as_dir in $PATH
5130do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5138 fi
5139done
5140done
5141
5142fi
5143fi
5144RANLIB=$ac_cv_prog_RANLIB
5145if test -n "$RANLIB"; then
5146 echo "$as_me:$LINENO: result: $RANLIB" >&5
5147echo "${ECHO_T}$RANLIB" >&6
5148else
5149 echo "$as_me:$LINENO: result: no" >&5
5150echo "${ECHO_T}no" >&6
5151fi
5152
5153fi
5154if test -z "$ac_cv_prog_RANLIB"; then
5155 ac_ct_RANLIB=$RANLIB
5156 # Extract the first word of "ranlib", so it can be a program name with args.
5157set dummy ranlib; ac_word=$2
5158echo "$as_me:$LINENO: checking for $ac_word" >&5
5159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5160if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162else
5163 if test -n "$ac_ct_RANLIB"; then
5164 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5165else
5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_prog_ac_ct_RANLIB="ranlib"
5174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177done
5178done
5179
5180 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5181fi
5182fi
5183ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5184if test -n "$ac_ct_RANLIB"; then
5185 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5186echo "${ECHO_T}$ac_ct_RANLIB" >&6
5187else
5188 echo "$as_me:$LINENO: result: no" >&5
5189echo "${ECHO_T}no" >&6
5190fi
5191
5192 RANLIB=$ac_ct_RANLIB
5193else
5194 RANLIB="$ac_cv_prog_RANLIB"
5195fi
5196
5197ac_ext=c
5198ac_cpp='$CPP $CPPFLAGS'
5199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5203echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5204# On Suns, sometimes $CPP names a directory.
5205if test -n "$CPP" && test -d "$CPP"; then
5206 CPP=
5207fi
5208if test -z "$CPP"; then
5209 if test "${ac_cv_prog_CPP+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211else
5212 # Double quotes because CPP needs to be expanded
5213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5214 do
5215 ac_preproc_ok=false
5216for ac_c_preproc_warn_flag in '' yes
5217do
5218 # Use a header file that comes with gcc, so configuring glibc
5219 # with a fresh cross-compiler works.
5220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221 # <limits.h> exists even on freestanding compilers.
5222 # On the NeXT, cc -E runs the code through the compiler's parser,
5223 # not just through cpp. "Syntax error" is here to catch this case.
5224 cat >conftest.$ac_ext <<_ACEOF
5225/* confdefs.h. */
5226_ACEOF
5227cat confdefs.h >>conftest.$ac_ext
5228cat >>conftest.$ac_ext <<_ACEOF
5229/* end confdefs.h. */
5230#ifdef __STDC__
5231# include <limits.h>
5232#else
5233# include <assert.h>
5234#endif
5235 Syntax error
5236_ACEOF
5237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } >/dev/null; then
5245 if test -s conftest.err; then
5246 ac_cpp_err=$ac_c_preproc_warn_flag
5247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5248 else
5249 ac_cpp_err=
5250 fi
5251else
5252 ac_cpp_err=yes
5253fi
5254if test -z "$ac_cpp_err"; then
5255 :
5256else
5257 echo "$as_me: failed program was:" >&5
5258sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 # Broken: fails on valid input.
5261continue
5262fi
5263rm -f conftest.err conftest.$ac_ext
5264
5265 # OK, works on sane cases. Now check whether non-existent headers
5266 # can be detected and how.
5267 cat >conftest.$ac_ext <<_ACEOF
5268/* confdefs.h. */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h. */
5273#include <ac_nonexistent.h>
5274_ACEOF
5275if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5277 ac_status=$?
5278 grep -v '^ *+' conftest.er1 >conftest.err
5279 rm -f conftest.er1
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } >/dev/null; then
5283 if test -s conftest.err; then
5284 ac_cpp_err=$ac_c_preproc_warn_flag
5285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5286 else
5287 ac_cpp_err=
5288 fi
5289else
5290 ac_cpp_err=yes
5291fi
5292if test -z "$ac_cpp_err"; then
5293 # Broken: success on invalid input.
5294continue
5295else
5296 echo "$as_me: failed program was:" >&5
5297sed 's/^/| /' conftest.$ac_ext >&5
5298
5299 # Passes both tests.
5300ac_preproc_ok=:
5301break
5302fi
5303rm -f conftest.err conftest.$ac_ext
5304
5305done
5306# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307rm -f conftest.err conftest.$ac_ext
5308if $ac_preproc_ok; then
5309 break
5310fi
5311
5312 done
5313 ac_cv_prog_CPP=$CPP
5314
5315fi
5316 CPP=$ac_cv_prog_CPP
5317else
5318 ac_cv_prog_CPP=$CPP
5319fi
5320echo "$as_me:$LINENO: result: $CPP" >&5
5321echo "${ECHO_T}$CPP" >&6
5322ac_preproc_ok=false
5323for ac_c_preproc_warn_flag in '' yes
5324do
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
5337#ifdef __STDC__
5338# include <limits.h>
5339#else
5340# include <assert.h>
5341#endif
5342 Syntax error
5343_ACEOF
5344if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5346 ac_status=$?
5347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } >/dev/null; then
5352 if test -s conftest.err; then
5353 ac_cpp_err=$ac_c_preproc_warn_flag
5354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5355 else
5356 ac_cpp_err=
5357 fi
5358else
5359 ac_cpp_err=yes
5360fi
5361if test -z "$ac_cpp_err"; then
5362 :
5363else
5364 echo "$as_me: failed program was:" >&5
5365sed 's/^/| /' conftest.$ac_ext >&5
5366
5367 # Broken: fails on valid input.
5368continue
5369fi
5370rm -f conftest.err conftest.$ac_ext
5371
5372 # OK, works on sane cases. Now check whether non-existent headers
5373 # can be detected and how.
5374 cat >conftest.$ac_ext <<_ACEOF
5375/* confdefs.h. */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
5379/* end confdefs.h. */
5380#include <ac_nonexistent.h>
5381_ACEOF
5382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5384 ac_status=$?
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } >/dev/null; then
5390 if test -s conftest.err; then
5391 ac_cpp_err=$ac_c_preproc_warn_flag
5392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5393 else
5394 ac_cpp_err=
5395 fi
5396else
5397 ac_cpp_err=yes
5398fi
5399if test -z "$ac_cpp_err"; then
5400 # Broken: success on invalid input.
5401continue
5402else
5403 echo "$as_me: failed program was:" >&5
5404sed 's/^/| /' conftest.$ac_ext >&5
5405
5406 # Passes both tests.
5407ac_preproc_ok=:
5408break
5409fi
5410rm -f conftest.err conftest.$ac_ext
5411
5412done
5413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414rm -f conftest.err conftest.$ac_ext
5415if $ac_preproc_ok; then
5416 :
5417else
5418 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5419See \`config.log' for more details." >&5
5420echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5421See \`config.log' for more details." >&2;}
5422 { (exit 1); exit 1; }; }
5423fi
5424
5425ac_ext=c
5426ac_cpp='$CPP $CPPFLAGS'
5427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429ac_compiler_gnu=$ac_cv_c_compiler_gnu
5430
5431
5432echo "$as_me:$LINENO: checking for egrep" >&5
5433echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5434if test "${ac_cv_prog_egrep+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5438 then ac_cv_prog_egrep='grep -E'
5439 else ac_cv_prog_egrep='egrep'
5440 fi
5441fi
5442echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5443echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5444 EGREP=$ac_cv_prog_egrep
5445
5446
5447echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5448echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5449if test "${ac_cv_header_stdc+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452 cat >conftest.$ac_ext <<_ACEOF
5453/* confdefs.h. */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
5457/* end confdefs.h. */
5458#include <stdlib.h>
5459#include <stdarg.h>
5460#include <string.h>
5461#include <float.h>
5462
5463int
5464main ()
5465{
5466
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471rm -f conftest.$ac_objext
5472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_c_werror_flag"
5481 || test ! -s conftest.err'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try='test -s conftest.$ac_objext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_header_stdc=yes
5494else
5495 echo "$as_me: failed program was:" >&5
5496sed 's/^/| /' conftest.$ac_ext >&5
5497
5498ac_cv_header_stdc=no
5499fi
5500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501
5502if test $ac_cv_header_stdc = yes; then
5503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5504 cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h. */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h. */
5510#include <string.h>
5511
5512_ACEOF
5513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5514 $EGREP "memchr" >/dev/null 2>&1; then
5515 :
5516else
5517 ac_cv_header_stdc=no
5518fi
5519rm -f conftest*
5520
5521fi
5522
5523if test $ac_cv_header_stdc = yes; then
5524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5525 cat >conftest.$ac_ext <<_ACEOF
5526/* confdefs.h. */
5527_ACEOF
5528cat confdefs.h >>conftest.$ac_ext
5529cat >>conftest.$ac_ext <<_ACEOF
5530/* end confdefs.h. */
5531#include <stdlib.h>
5532
5533_ACEOF
5534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5535 $EGREP "free" >/dev/null 2>&1; then
5536 :
5537else
5538 ac_cv_header_stdc=no
5539fi
5540rm -f conftest*
5541
5542fi
5543
5544if test $ac_cv_header_stdc = yes; then
5545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5546 if test "$cross_compiling" = yes; then
5547 :
5548else
5549 cat >conftest.$ac_ext <<_ACEOF
5550/* confdefs.h. */
5551_ACEOF
5552cat confdefs.h >>conftest.$ac_ext
5553cat >>conftest.$ac_ext <<_ACEOF
5554/* end confdefs.h. */
5555#include <ctype.h>
5556#if ((' ' & 0x0FF) == 0x020)
5557# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5558# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5559#else
5560# define ISLOWER(c) \
5561 (('a' <= (c) && (c) <= 'i') \
5562 || ('j' <= (c) && (c) <= 'r') \
5563 || ('s' <= (c) && (c) <= 'z'))
5564# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5565#endif
5566
5567#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5568int
5569main ()
5570{
5571 int i;
5572 for (i = 0; i < 256; i++)
5573 if (XOR (islower (i), ISLOWER (i))
5574 || toupper (i) != TOUPPER (i))
5575 exit(2);
5576 exit (0);
5577}
5578_ACEOF
5579rm -f conftest$ac_exeext
5580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5581 (eval $ac_link) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 :
5591else
5592 echo "$as_me: program exited with status $ac_status" >&5
5593echo "$as_me: failed program was:" >&5
5594sed 's/^/| /' conftest.$ac_ext >&5
5595
5596( exit $ac_status )
5597ac_cv_header_stdc=no
5598fi
5599rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5600fi
5601fi
5602fi
5603echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5604echo "${ECHO_T}$ac_cv_header_stdc" >&6
5605if test $ac_cv_header_stdc = yes; then
5606
5607cat >>confdefs.h <<\_ACEOF
5608#define STDC_HEADERS 1
5609_ACEOF
5610
5611fi
5612
5613echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5614echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5615if test "${ac_cv_c_const+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617else
5618 cat >conftest.$ac_ext <<_ACEOF
5619/* confdefs.h. */
5620_ACEOF
5621cat confdefs.h >>conftest.$ac_ext
5622cat >>conftest.$ac_ext <<_ACEOF
5623/* end confdefs.h. */
5624
5625int
5626main ()
5627{
5628/* FIXME: Include the comments suggested by Paul. */
5629#ifndef __cplusplus
5630 /* Ultrix mips cc rejects this. */
5631 typedef int charset[2];
5632 const charset x;
5633 /* SunOS 4.1.1 cc rejects this. */
5634 char const *const *ccp;
5635 char **p;
5636 /* NEC SVR4.0.2 mips cc rejects this. */
5637 struct point {int x, y;};
5638 static struct point const zero = {0,0};
5639 /* AIX XL C 1.02.0.0 rejects this.
5640 It does not let you subtract one const X* pointer from another in
5641 an arm of an if-expression whose if-part is not a constant
5642 expression */
5643 const char *g = "string";
5644 ccp = &g + (g ? g-g : 0);
5645 /* HPUX 7.0 cc rejects these. */
5646 ++ccp;
5647 p = (char**) ccp;
5648 ccp = (char const *const *) p;
5649 { /* SCO 3.2v4 cc rejects this. */
5650 char *t;
5651 char const *s = 0 ? (char *) 0 : (char const *) 0;
5652
5653 *t++ = 0;
5654 }
5655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5656 int x[] = {25, 17};
5657 const int *foo = &x[0];
5658 ++foo;
5659 }
5660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5661 typedef const int *iptr;
5662 iptr p = 0;
5663 ++p;
5664 }
5665 { /* AIX XL C 1.02.0.0 rejects this saying
5666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5667 struct s { int j; const int *ap[3]; };
5668 struct s *b; b->j = 5;
5669 }
5670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5671 const int foo = 10;
5672 }
5673#endif
5674
5675 ;
5676 return 0;
5677}
5678_ACEOF
5679rm -f conftest.$ac_objext
5680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5681 (eval $ac_compile) 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -z "$ac_c_werror_flag"
5689 || test ! -s conftest.err'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 (eval $ac_try) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; } &&
5695 { ac_try='test -s conftest.$ac_objext'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 (eval $ac_try) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5701 ac_cv_c_const=yes
5702else
5703 echo "$as_me: failed program was:" >&5
5704sed 's/^/| /' conftest.$ac_ext >&5
5705
5706ac_cv_c_const=no
5707fi
5708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5709fi
5710echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5711echo "${ECHO_T}$ac_cv_c_const" >&6
5712if test $ac_cv_c_const = no; then
5713
5714cat >>confdefs.h <<\_ACEOF
5715#define const
5716_ACEOF
5717
5718fi
5719
5720echo "$as_me:$LINENO: checking for inline" >&5
5721echo $ECHO_N "checking for inline... $ECHO_C" >&6
5722if test "${ac_cv_c_inline+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5724else
5725 ac_cv_c_inline=no
5726for ac_kw in inline __inline__ __inline; do
5727 cat >conftest.$ac_ext <<_ACEOF
5728/* confdefs.h. */
5729_ACEOF
5730cat confdefs.h >>conftest.$ac_ext
5731cat >>conftest.$ac_ext <<_ACEOF
5732/* end confdefs.h. */
5733#ifndef __cplusplus
5734typedef int foo_t;
5735static $ac_kw foo_t static_foo () {return 0; }
5736$ac_kw foo_t foo () {return 0; }
5737#endif
5738
5739_ACEOF
5740rm -f conftest.$ac_objext
5741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } &&
5749 { ac_try='test -z "$ac_c_werror_flag"
5750 || test ! -s conftest.err'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 (eval $ac_try) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; } &&
5756 { ac_try='test -s conftest.$ac_objext'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 (eval $ac_try) 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5762 ac_cv_c_inline=$ac_kw; break
5763else
5764 echo "$as_me: failed program was:" >&5
5765sed 's/^/| /' conftest.$ac_ext >&5
5766
5767fi
5768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5769done
5770
5771fi
5772echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5773echo "${ECHO_T}$ac_cv_c_inline" >&6
5774
5775
5776case $ac_cv_c_inline in
5777 inline | yes) ;;
5778 *)
5779 case $ac_cv_c_inline in
5780 no) ac_val=;;
5781 *) ac_val=$ac_cv_c_inline;;
5782 esac
5783 cat >>confdefs.h <<_ACEOF
5784#ifndef __cplusplus
5785#define inline $ac_val
5786#endif
5787_ACEOF
5788 ;;
5789esac
5790
5791# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5802 inttypes.h stdint.h unistd.h
5803do
5804as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5805echo "$as_me:$LINENO: checking for $ac_header" >&5
5806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5807if eval "test \"\${$as_ac_Header+set}\" = set"; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810 cat >conftest.$ac_ext <<_ACEOF
5811/* confdefs.h. */
5812_ACEOF
5813cat confdefs.h >>conftest.$ac_ext
5814cat >>conftest.$ac_ext <<_ACEOF
5815/* end confdefs.h. */
5816$ac_includes_default
5817
5818#include <$ac_header>
5819_ACEOF
5820rm -f conftest.$ac_objext
5821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 eval "$as_ac_Header=yes"
5843else
5844 echo "$as_me: failed program was:" >&5
5845sed 's/^/| /' conftest.$ac_ext >&5
5846
5847eval "$as_ac_Header=no"
5848fi
5849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850fi
5851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5853if test `eval echo '${'$as_ac_Header'}'` = yes; then
5854 cat >>confdefs.h <<_ACEOF
5855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5856_ACEOF
5857
5858fi
5859
5860done
5861
5862
5863echo "$as_me:$LINENO: checking for off_t" >&5
5864echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5865if test "${ac_cv_type_off_t+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868 cat >conftest.$ac_ext <<_ACEOF
5869/* confdefs.h. */
5870_ACEOF
5871cat confdefs.h >>conftest.$ac_ext
5872cat >>conftest.$ac_ext <<_ACEOF
5873/* end confdefs.h. */
5874$ac_includes_default
5875int
5876main ()
5877{
5878if ((off_t *) 0)
5879 return 0;
5880if (sizeof (off_t))
5881 return 0;
5882 ;
5883 return 0;
5884}
5885_ACEOF
5886rm -f conftest.$ac_objext
5887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888 (eval $ac_compile) 2>conftest.er1
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } &&
5895 { ac_try='test -z "$ac_c_werror_flag"
5896 || test ! -s conftest.err'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5908 ac_cv_type_off_t=yes
5909else
5910 echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913ac_cv_type_off_t=no
5914fi
5915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5916fi
5917echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5918echo "${ECHO_T}$ac_cv_type_off_t" >&6
5919if test $ac_cv_type_off_t = yes; then
5920 :
5921else
5922
5923cat >>confdefs.h <<_ACEOF
5924#define off_t long
5925_ACEOF
5926
5927fi
5928
5929echo "$as_me:$LINENO: checking for size_t" >&5
5930echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5931if test "${ac_cv_type_size_t+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933else
5934 cat >conftest.$ac_ext <<_ACEOF
5935/* confdefs.h. */
5936_ACEOF
5937cat confdefs.h >>conftest.$ac_ext
5938cat >>conftest.$ac_ext <<_ACEOF
5939/* end confdefs.h. */
5940$ac_includes_default
5941int
5942main ()
5943{
5944if ((size_t *) 0)
5945 return 0;
5946if (sizeof (size_t))
5947 return 0;
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952rm -f conftest.$ac_objext
5953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5954 (eval $ac_compile) 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } &&
5961 { ac_try='test -z "$ac_c_werror_flag"
5962 || test ! -s conftest.err'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try='test -s conftest.$ac_objext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 (eval $ac_try) 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 ac_cv_type_size_t=yes
5975else
5976 echo "$as_me: failed program was:" >&5
5977sed 's/^/| /' conftest.$ac_ext >&5
5978
5979ac_cv_type_size_t=no
5980fi
5981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5982fi
5983echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5984echo "${ECHO_T}$ac_cv_type_size_t" >&6
5985if test $ac_cv_type_size_t = yes; then
5986 :
5987else
5988
5989cat >>confdefs.h <<_ACEOF
5990#define size_t unsigned
5991_ACEOF
5992
5993fi
5994
5995# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5996# for constant arguments. Useless!
5997echo "$as_me:$LINENO: checking for working alloca.h" >&5
5998echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5999if test "${ac_cv_working_alloca_h+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008#include <alloca.h>
6009int
6010main ()
6011{
6012char *p = (char *) alloca (2 * sizeof (int));
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017rm -f conftest.$ac_objext conftest$ac_exeext
6018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -z "$ac_c_werror_flag"
6027 || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest$ac_exeext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 ac_cv_working_alloca_h=yes
6040else
6041 echo "$as_me: failed program was:" >&5
6042sed 's/^/| /' conftest.$ac_ext >&5
6043
6044ac_cv_working_alloca_h=no
6045fi
6046rm -f conftest.err conftest.$ac_objext \
6047 conftest$ac_exeext conftest.$ac_ext
6048fi
6049echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6050echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6051if test $ac_cv_working_alloca_h = yes; then
6052
6053cat >>confdefs.h <<\_ACEOF
6054#define HAVE_ALLOCA_H 1
6055_ACEOF
6056
6057fi
6058
6059echo "$as_me:$LINENO: checking for alloca" >&5
6060echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6061if test "${ac_cv_func_alloca_works+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063else
6064 cat >conftest.$ac_ext <<_ACEOF
6065/* confdefs.h. */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
6069/* end confdefs.h. */
6070#ifdef __GNUC__
6071# define alloca __builtin_alloca
6072#else
6073# ifdef _MSC_VER
6074# include <malloc.h>
6075# define alloca _alloca
6076# else
6077# if HAVE_ALLOCA_H
6078# include <alloca.h>
6079# else
6080# ifdef _AIX
6081 #pragma alloca
6082# else
6083# ifndef alloca /* predefined by HP cc +Olibcalls */
6084char *alloca ();
6085# endif
6086# endif
6087# endif
6088# endif
6089#endif
6090
6091int
6092main ()
6093{
6094char *p = (char *) alloca (1);
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099rm -f conftest.$ac_objext conftest$ac_exeext
6100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>conftest.er1
6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try='test -z "$ac_c_werror_flag"
6109 || test ! -s conftest.err'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 (eval $ac_try) 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest$ac_exeext'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6121 ac_cv_func_alloca_works=yes
6122else
6123 echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126ac_cv_func_alloca_works=no
6127fi
6128rm -f conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6130fi
6131echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6132echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6133
6134if test $ac_cv_func_alloca_works = yes; then
6135
6136cat >>confdefs.h <<\_ACEOF
6137#define HAVE_ALLOCA 1
6138_ACEOF
6139
6140else
6141 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6142# that cause trouble. Some versions do not even contain alloca or
6143# contain a buggy version. If you still want to use their alloca,
6144# use ar to extract alloca.o from them instead of compiling alloca.c.
6145
6146ALLOCA=alloca.$ac_objext
6147
6148cat >>confdefs.h <<\_ACEOF
6149#define C_ALLOCA 1
6150_ACEOF
6151
6152
6153echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6154echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6155if test "${ac_cv_os_cray+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157else
6158 cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h. */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h. */
6164#if defined(CRAY) && ! defined(CRAY2)
6165webecray
6166#else
6167wenotbecray
6168#endif
6169
6170_ACEOF
6171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6172 $EGREP "webecray" >/dev/null 2>&1; then
6173 ac_cv_os_cray=yes
6174else
6175 ac_cv_os_cray=no
6176fi
6177rm -f conftest*
6178
6179fi
6180echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6181echo "${ECHO_T}$ac_cv_os_cray" >&6
6182if test $ac_cv_os_cray = yes; then
6183 for ac_func in _getb67 GETB67 getb67; do
6184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6185echo "$as_me:$LINENO: checking for $ac_func" >&5
6186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6187if eval "test \"\${$as_ac_var+set}\" = set"; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189else
6190 cat >conftest.$ac_ext <<_ACEOF
6191/* confdefs.h. */
6192_ACEOF
6193cat confdefs.h >>conftest.$ac_ext
6194cat >>conftest.$ac_ext <<_ACEOF
6195/* end confdefs.h. */
6196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6198#define $ac_func innocuous_$ac_func
6199
6200/* System header to define __stub macros and hopefully few prototypes,
6201 which can conflict with char $ac_func (); below.
6202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6203 <limits.h> exists even on freestanding compilers. */
6204
6205#ifdef __STDC__
6206# include <limits.h>
6207#else
6208# include <assert.h>
6209#endif
6210
6211#undef $ac_func
6212
6213/* Override any gcc2 internal prototype to avoid an error. */
6214#ifdef __cplusplus
6215extern "C"
6216{
6217#endif
6218/* We use char because int might match the return type of a gcc2
6219 builtin and then its argument prototype would still apply. */
6220char $ac_func ();
6221/* The GNU C library defines this for functions which it implements
6222 to always fail with ENOSYS. Some functions are actually named
6223 something starting with __ and the normal name is an alias. */
6224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6225choke me
6226#else
6227char (*f) () = $ac_func;
6228#endif
6229#ifdef __cplusplus
6230}
6231#endif
6232
6233int
6234main ()
6235{
6236return f != $ac_func;
6237 ;
6238 return 0;
6239}
6240_ACEOF
6241rm -f conftest.$ac_objext conftest$ac_exeext
6242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6243 (eval $ac_link) 2>conftest.er1
6244 ac_status=$?
6245 grep -v '^ *+' conftest.er1 >conftest.err
6246 rm -f conftest.er1
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -z "$ac_c_werror_flag"
6251 || test ! -s conftest.err'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; } &&
6257 { ac_try='test -s conftest$ac_exeext'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 (eval $ac_try) 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 eval "$as_ac_var=yes"
6264else
6265 echo "$as_me: failed program was:" >&5
6266sed 's/^/| /' conftest.$ac_ext >&5
6267
6268eval "$as_ac_var=no"
6269fi
6270rm -f conftest.err conftest.$ac_objext \
6271 conftest$ac_exeext conftest.$ac_ext
6272fi
6273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6275if test `eval echo '${'$as_ac_var'}'` = yes; then
6276
6277cat >>confdefs.h <<_ACEOF
6278#define CRAY_STACKSEG_END $ac_func
6279_ACEOF
6280
6281 break
6282fi
6283
6284 done
6285fi
6286
6287echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6288echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6289if test "${ac_cv_c_stack_direction+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291else
6292 if test "$cross_compiling" = yes; then
6293 ac_cv_c_stack_direction=0
6294else
6295 cat >conftest.$ac_ext <<_ACEOF
6296/* confdefs.h. */
6297_ACEOF
6298cat confdefs.h >>conftest.$ac_ext
6299cat >>conftest.$ac_ext <<_ACEOF
6300/* end confdefs.h. */
6301int
6302find_stack_direction ()
6303{
6304 static char *addr = 0;
6305 auto char dummy;
6306 if (addr == 0)
6307 {
6308 addr = &dummy;
6309 return find_stack_direction ();
6310 }
6311 else
6312 return (&dummy > addr) ? 1 : -1;
6313}
6314
6315int
6316main ()
6317{
6318 exit (find_stack_direction () < 0);
6319}
6320_ACEOF
6321rm -f conftest$ac_exeext
6322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6323 (eval $ac_link) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 ac_cv_c_stack_direction=1
6333else
6334 echo "$as_me: program exited with status $ac_status" >&5
6335echo "$as_me: failed program was:" >&5
6336sed 's/^/| /' conftest.$ac_ext >&5
6337
6338( exit $ac_status )
6339ac_cv_c_stack_direction=-1
6340fi
6341rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6342fi
6343fi
6344echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6345echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6346
6347cat >>confdefs.h <<_ACEOF
6348#define STACK_DIRECTION $ac_cv_c_stack_direction
6349_ACEOF
6350
6351
6352fi
6353
6354
6355
6356for ac_header in stdlib.h unistd.h
6357do
6358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6359if eval "test \"\${$as_ac_Header+set}\" = set"; then
6360 echo "$as_me:$LINENO: checking for $ac_header" >&5
6361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6362if eval "test \"\${$as_ac_Header+set}\" = set"; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364fi
6365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6367else
6368 # Is the header compilable?
6369echo "$as_me:$LINENO: checking $ac_header usability" >&5
6370echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6371cat >conftest.$ac_ext <<_ACEOF
6372/* confdefs.h. */
6373_ACEOF
6374cat confdefs.h >>conftest.$ac_ext
6375cat >>conftest.$ac_ext <<_ACEOF
6376/* end confdefs.h. */
6377$ac_includes_default
6378#include <$ac_header>
6379_ACEOF
6380rm -f conftest.$ac_objext
6381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6382 (eval $ac_compile) 2>conftest.er1
6383 ac_status=$?
6384 grep -v '^ *+' conftest.er1 >conftest.err
6385 rm -f conftest.er1
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } &&
6389 { ac_try='test -z "$ac_c_werror_flag"
6390 || test ! -s conftest.err'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; } &&
6396 { ac_try='test -s conftest.$ac_objext'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 ac_header_compiler=yes
6403else
6404 echo "$as_me: failed program was:" >&5
6405sed 's/^/| /' conftest.$ac_ext >&5
6406
6407ac_header_compiler=no
6408fi
6409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6410echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6411echo "${ECHO_T}$ac_header_compiler" >&6
6412
6413# Is the header present?
6414echo "$as_me:$LINENO: checking $ac_header presence" >&5
6415echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6416cat >conftest.$ac_ext <<_ACEOF
6417/* confdefs.h. */
6418_ACEOF
6419cat confdefs.h >>conftest.$ac_ext
6420cat >>conftest.$ac_ext <<_ACEOF
6421/* end confdefs.h. */
6422#include <$ac_header>
6423_ACEOF
6424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } >/dev/null; then
6432 if test -s conftest.err; then
6433 ac_cpp_err=$ac_c_preproc_warn_flag
6434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6435 else
6436 ac_cpp_err=
6437 fi
6438else
6439 ac_cpp_err=yes
6440fi
6441if test -z "$ac_cpp_err"; then
6442 ac_header_preproc=yes
6443else
6444 echo "$as_me: failed program was:" >&5
6445sed 's/^/| /' conftest.$ac_ext >&5
6446
6447 ac_header_preproc=no
6448fi
6449rm -f conftest.err conftest.$ac_ext
6450echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6451echo "${ECHO_T}$ac_header_preproc" >&6
6452
6453# So? What about this header?
6454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6455 yes:no: )
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6460 ac_header_preproc=yes
6461 ;;
6462 no:yes:* )
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6470echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6475 (
6476 cat <<\_ASBOX
6477## ------------------------------------------ ##
6478## Report this to the AC_PACKAGE_NAME lists. ##
6479## ------------------------------------------ ##
6480_ASBOX
6481 ) |
6482 sed "s/^/$as_me: WARNING: /" >&2
6483 ;;
6484esac
6485echo "$as_me:$LINENO: checking for $ac_header" >&5
6486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6487if eval "test \"\${$as_ac_Header+set}\" = set"; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489else
6490 eval "$as_ac_Header=\$ac_header_preproc"
6491fi
6492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6494
6495fi
6496if test `eval echo '${'$as_ac_Header'}'` = yes; then
6497 cat >>confdefs.h <<_ACEOF
6498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6499_ACEOF
6500
6501fi
6502
6503done
6504
6505
6506for ac_func in getpagesize
6507do
6508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6509echo "$as_me:$LINENO: checking for $ac_func" >&5
6510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6511if eval "test \"\${$as_ac_var+set}\" = set"; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513else
6514 cat >conftest.$ac_ext <<_ACEOF
6515/* confdefs.h. */
6516_ACEOF
6517cat confdefs.h >>conftest.$ac_ext
6518cat >>conftest.$ac_ext <<_ACEOF
6519/* end confdefs.h. */
6520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6522#define $ac_func innocuous_$ac_func
6523
6524/* System header to define __stub macros and hopefully few prototypes,
6525 which can conflict with char $ac_func (); below.
6526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6527 <limits.h> exists even on freestanding compilers. */
6528
6529#ifdef __STDC__
6530# include <limits.h>
6531#else
6532# include <assert.h>
6533#endif
6534
6535#undef $ac_func
6536
6537/* Override any gcc2 internal prototype to avoid an error. */
6538#ifdef __cplusplus
6539extern "C"
6540{
6541#endif
6542/* We use char because int might match the return type of a gcc2
6543 builtin and then its argument prototype would still apply. */
6544char $ac_func ();
6545/* The GNU C library defines this for functions which it implements
6546 to always fail with ENOSYS. Some functions are actually named
6547 something starting with __ and the normal name is an alias. */
6548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6549choke me
6550#else
6551char (*f) () = $ac_func;
6552#endif
6553#ifdef __cplusplus
6554}
6555#endif
6556
6557int
6558main ()
6559{
6560return f != $ac_func;
6561 ;
6562 return 0;
6563}
6564_ACEOF
6565rm -f conftest.$ac_objext conftest$ac_exeext
6566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6567 (eval $ac_link) 2>conftest.er1
6568 ac_status=$?
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try='test -z "$ac_c_werror_flag"
6575 || test ! -s conftest.err'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest$ac_exeext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 eval "$as_ac_var=yes"
6588else
6589 echo "$as_me: failed program was:" >&5
6590sed 's/^/| /' conftest.$ac_ext >&5
6591
6592eval "$as_ac_var=no"
6593fi
6594rm -f conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6596fi
6597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6599if test `eval echo '${'$as_ac_var'}'` = yes; then
6600 cat >>confdefs.h <<_ACEOF
6601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6602_ACEOF
6603
6604fi
6605done
6606
6607echo "$as_me:$LINENO: checking for working mmap" >&5
6608echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6609if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611else
6612 if test "$cross_compiling" = yes; then
6613 ac_cv_func_mmap_fixed_mapped=no
6614else
6615 cat >conftest.$ac_ext <<_ACEOF
6616/* confdefs.h. */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */
6621$ac_includes_default
6622/* malloc might have been renamed as rpl_malloc. */
6623#undef malloc
6624
6625/* Thanks to Mike Haertel and Jim Avera for this test.
6626 Here is a matrix of mmap possibilities:
6627 mmap private not fixed
6628 mmap private fixed at somewhere currently unmapped
6629 mmap private fixed at somewhere already mapped
6630 mmap shared not fixed
6631 mmap shared fixed at somewhere currently unmapped
6632 mmap shared fixed at somewhere already mapped
6633 For private mappings, we should verify that changes cannot be read()
6634 back from the file, nor mmap's back from the file at a different
6635 address. (There have been systems where private was not correctly
6636 implemented like the infamous i386 svr4.0, and systems where the
6637 VM page cache was not coherent with the file system buffer cache
6638 like early versions of FreeBSD and possibly contemporary NetBSD.)
6639 For shared mappings, we should conversely verify that changes get
6640 propagated back to all the places they're supposed to be.
6641
6642 Grep wants private fixed already mapped.
6643 The main things grep needs to know about mmap are:
6644 * does it exist and is it safe to write into the mmap'd area
6645 * how to use it (BSD variants) */
6646
6647#include <fcntl.h>
6648#include <sys/mman.h>
6649
6650#if !STDC_HEADERS && !HAVE_STDLIB_H
6651char *malloc ();
6652#endif
6653
6654/* This mess was copied from the GNU getpagesize.h. */
6655#if !HAVE_GETPAGESIZE
6656/* Assume that all systems that can run configure have sys/param.h. */
6657# if !HAVE_SYS_PARAM_H
6658# define HAVE_SYS_PARAM_H 1
6659# endif
6660
6661# ifdef _SC_PAGESIZE
6662# define getpagesize() sysconf(_SC_PAGESIZE)
6663# else /* no _SC_PAGESIZE */
6664# if HAVE_SYS_PARAM_H
6665# include <sys/param.h>
6666# ifdef EXEC_PAGESIZE
6667# define getpagesize() EXEC_PAGESIZE
6668# else /* no EXEC_PAGESIZE */
6669# ifdef NBPG
6670# define getpagesize() NBPG * CLSIZE
6671# ifndef CLSIZE
6672# define CLSIZE 1
6673# endif /* no CLSIZE */
6674# else /* no NBPG */
6675# ifdef NBPC
6676# define getpagesize() NBPC
6677# else /* no NBPC */
6678# ifdef PAGESIZE
6679# define getpagesize() PAGESIZE
6680# endif /* PAGESIZE */
6681# endif /* no NBPC */
6682# endif /* no NBPG */
6683# endif /* no EXEC_PAGESIZE */
6684# else /* no HAVE_SYS_PARAM_H */
6685# define getpagesize() 8192 /* punt totally */
6686# endif /* no HAVE_SYS_PARAM_H */
6687# endif /* no _SC_PAGESIZE */
6688
6689#endif /* no HAVE_GETPAGESIZE */
6690
6691int
6692main ()
6693{
6694 char *data, *data2, *data3;
6695 int i, pagesize;
6696 int fd;
6697
6698 pagesize = getpagesize ();
6699
6700 /* First, make a file with some known garbage in it. */
6701 data = (char *) malloc (pagesize);
6702 if (!data)
6703 exit (1);
6704 for (i = 0; i < pagesize; ++i)
6705 *(data + i) = rand ();
6706 umask (0);
6707 fd = creat ("conftest.mmap", 0600);
6708 if (fd < 0)
6709 exit (1);
6710 if (write (fd, data, pagesize) != pagesize)
6711 exit (1);
6712 close (fd);
6713
6714 /* Next, try to mmap the file at a fixed address which already has
6715 something else allocated at it. If we can, also make sure that
6716 we see the same garbage. */
6717 fd = open ("conftest.mmap", O_RDWR);
6718 if (fd < 0)
6719 exit (1);
6720 data2 = (char *) malloc (2 * pagesize);
6721 if (!data2)
6722 exit (1);
6723 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6724 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6725 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6726 exit (1);
6727 for (i = 0; i < pagesize; ++i)
6728 if (*(data + i) != *(data2 + i))
6729 exit (1);
6730
6731 /* Finally, make sure that changes to the mapped area do not
6732 percolate back to the file as seen by read(). (This is a bug on
6733 some variants of i386 svr4.0.) */
6734 for (i = 0; i < pagesize; ++i)
6735 *(data2 + i) = *(data2 + i) + 1;
6736 data3 = (char *) malloc (pagesize);
6737 if (!data3)
6738 exit (1);
6739 if (read (fd, data3, pagesize) != pagesize)
6740 exit (1);
6741 for (i = 0; i < pagesize; ++i)
6742 if (*(data + i) != *(data3 + i))
6743 exit (1);
6744 close (fd);
6745 exit (0);
6746}
6747_ACEOF
6748rm -f conftest$ac_exeext
6749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750 (eval $ac_link) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 (eval $ac_try) 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6759 ac_cv_func_mmap_fixed_mapped=yes
6760else
6761 echo "$as_me: program exited with status $ac_status" >&5
6762echo "$as_me: failed program was:" >&5
6763sed 's/^/| /' conftest.$ac_ext >&5
6764
6765( exit $ac_status )
6766ac_cv_func_mmap_fixed_mapped=no
6767fi
6768rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6769fi
6770fi
6771echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6772echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6773if test $ac_cv_func_mmap_fixed_mapped = yes; then
6774
6775cat >>confdefs.h <<\_ACEOF
6776#define HAVE_MMAP 1
6777_ACEOF
6778
6779fi
6780rm -f conftest.mmap
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6793unistd.h values.h sys/param.h
6794do
6795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6796if eval "test \"\${$as_ac_Header+set}\" = set"; then
6797 echo "$as_me:$LINENO: checking for $ac_header" >&5
6798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6799if eval "test \"\${$as_ac_Header+set}\" = set"; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801fi
6802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6804else
6805 # Is the header compilable?
6806echo "$as_me:$LINENO: checking $ac_header usability" >&5
6807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6808cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h. */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h. */
6814$ac_includes_default
6815#include <$ac_header>
6816_ACEOF
6817rm -f conftest.$ac_objext
6818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819 (eval $ac_compile) 2>conftest.er1
6820 ac_status=$?
6821 grep -v '^ *+' conftest.er1 >conftest.err
6822 rm -f conftest.er1
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -z "$ac_c_werror_flag"
6827 || test ! -s conftest.err'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; } &&
6833 { ac_try='test -s conftest.$ac_objext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 ac_header_compiler=yes
6840else
6841 echo "$as_me: failed program was:" >&5
6842sed 's/^/| /' conftest.$ac_ext >&5
6843
6844ac_header_compiler=no
6845fi
6846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6848echo "${ECHO_T}$ac_header_compiler" >&6
6849
6850# Is the header present?
6851echo "$as_me:$LINENO: checking $ac_header presence" >&5
6852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6853cat >conftest.$ac_ext <<_ACEOF
6854/* confdefs.h. */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6858/* end confdefs.h. */
6859#include <$ac_header>
6860_ACEOF
6861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } >/dev/null; then
6869 if test -s conftest.err; then
6870 ac_cpp_err=$ac_c_preproc_warn_flag
6871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6872 else
6873 ac_cpp_err=
6874 fi
6875else
6876 ac_cpp_err=yes
6877fi
6878if test -z "$ac_cpp_err"; then
6879 ac_header_preproc=yes
6880else
6881 echo "$as_me: failed program was:" >&5
6882sed 's/^/| /' conftest.$ac_ext >&5
6883
6884 ac_header_preproc=no
6885fi
6886rm -f conftest.err conftest.$ac_ext
6887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6888echo "${ECHO_T}$ac_header_preproc" >&6
6889
6890# So? What about this header?
6891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6892 yes:no: )
6893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6897 ac_header_preproc=yes
6898 ;;
6899 no:yes:* )
6900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6912 (
6913 cat <<\_ASBOX
6914## ------------------------------------------ ##
6915## Report this to the AC_PACKAGE_NAME lists. ##
6916## ------------------------------------------ ##
6917_ASBOX
6918 ) |
6919 sed "s/^/$as_me: WARNING: /" >&2
6920 ;;
6921esac
6922echo "$as_me:$LINENO: checking for $ac_header" >&5
6923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6924if eval "test \"\${$as_ac_Header+set}\" = set"; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927 eval "$as_ac_Header=\$ac_header_preproc"
6928fi
6929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6931
6932fi
6933if test `eval echo '${'$as_ac_Header'}'` = yes; then
6934 cat >>confdefs.h <<_ACEOF
6935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6936_ACEOF
6937
6938fi
6939
6940done
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6953__argz_count __argz_stringify __argz_next
6954do
6955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6956echo "$as_me:$LINENO: checking for $ac_func" >&5
6957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6958if eval "test \"\${$as_ac_var+set}\" = set"; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961 cat >conftest.$ac_ext <<_ACEOF
6962/* confdefs.h. */
6963_ACEOF
6964cat confdefs.h >>conftest.$ac_ext
6965cat >>conftest.$ac_ext <<_ACEOF
6966/* end confdefs.h. */
6967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6969#define $ac_func innocuous_$ac_func
6970
6971/* System header to define __stub macros and hopefully few prototypes,
6972 which can conflict with char $ac_func (); below.
6973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6974 <limits.h> exists even on freestanding compilers. */
6975
6976#ifdef __STDC__
6977# include <limits.h>
6978#else
6979# include <assert.h>
6980#endif
6981
6982#undef $ac_func
6983
6984/* Override any gcc2 internal prototype to avoid an error. */
6985#ifdef __cplusplus
6986extern "C"
6987{
6988#endif
6989/* We use char because int might match the return type of a gcc2
6990 builtin and then its argument prototype would still apply. */
6991char $ac_func ();
6992/* The GNU C library defines this for functions which it implements
6993 to always fail with ENOSYS. Some functions are actually named
6994 something starting with __ and the normal name is an alias. */
6995#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6996choke me
6997#else
6998char (*f) () = $ac_func;
6999#endif
7000#ifdef __cplusplus
7001}
7002#endif
7003
7004int
7005main ()
7006{
7007return f != $ac_func;
7008 ;
7009 return 0;
7010}
7011_ACEOF
7012rm -f conftest.$ac_objext conftest$ac_exeext
7013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7014 (eval $ac_link) 2>conftest.er1
7015 ac_status=$?
7016 grep -v '^ *+' conftest.er1 >conftest.err
7017 rm -f conftest.er1
7018 cat conftest.err >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -z "$ac_c_werror_flag"
7022 || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest$ac_exeext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 eval "$as_ac_var=yes"
7035else
7036 echo "$as_me: failed program was:" >&5
7037sed 's/^/| /' conftest.$ac_ext >&5
7038
7039eval "$as_ac_var=no"
7040fi
7041rm -f conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043fi
7044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7045echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7046if test `eval echo '${'$as_ac_var'}'` = yes; then
7047 cat >>confdefs.h <<_ACEOF
7048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7049_ACEOF
7050
7051fi
7052done
7053
7054
7055 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7056
7057for ac_func in stpcpy
7058do
7059as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7060echo "$as_me:$LINENO: checking for $ac_func" >&5
7061echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7062if eval "test \"\${$as_ac_var+set}\" = set"; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064else
7065 cat >conftest.$ac_ext <<_ACEOF
7066/* confdefs.h. */
7067_ACEOF
7068cat confdefs.h >>conftest.$ac_ext
7069cat >>conftest.$ac_ext <<_ACEOF
7070/* end confdefs.h. */
7071/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7073#define $ac_func innocuous_$ac_func
7074
7075/* System header to define __stub macros and hopefully few prototypes,
7076 which can conflict with char $ac_func (); below.
7077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7078 <limits.h> exists even on freestanding compilers. */
7079
7080#ifdef __STDC__
7081# include <limits.h>
7082#else
7083# include <assert.h>
7084#endif
7085
7086#undef $ac_func
7087
7088/* Override any gcc2 internal prototype to avoid an error. */
7089#ifdef __cplusplus
7090extern "C"
7091{
7092#endif
7093/* We use char because int might match the return type of a gcc2
7094 builtin and then its argument prototype would still apply. */
7095char $ac_func ();
7096/* The GNU C library defines this for functions which it implements
7097 to always fail with ENOSYS. Some functions are actually named
7098 something starting with __ and the normal name is an alias. */
7099#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7100choke me
7101#else
7102char (*f) () = $ac_func;
7103#endif
7104#ifdef __cplusplus
7105}
7106#endif
7107
7108int
7109main ()
7110{
7111return f != $ac_func;
7112 ;
7113 return 0;
7114}
7115_ACEOF
7116rm -f conftest.$ac_objext conftest$ac_exeext
7117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118 (eval $ac_link) 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } &&
7125 { ac_try='test -z "$ac_c_werror_flag"
7126 || test ! -s conftest.err'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; } &&
7132 { ac_try='test -s conftest$ac_exeext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 (eval $ac_try) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 eval "$as_ac_var=yes"
7139else
7140 echo "$as_me: failed program was:" >&5
7141sed 's/^/| /' conftest.$ac_ext >&5
7142
7143eval "$as_ac_var=no"
7144fi
7145rm -f conftest.err conftest.$ac_objext \
7146 conftest$ac_exeext conftest.$ac_ext
7147fi
7148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7149echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7150if test `eval echo '${'$as_ac_var'}'` = yes; then
7151 cat >>confdefs.h <<_ACEOF
7152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7153_ACEOF
7154
7155fi
7156done
7157
7158 fi
7159 if test "${ac_cv_func_stpcpy}" = "yes"; then
7160
7161cat >>confdefs.h <<\_ACEOF
7162#define HAVE_STPCPY 1
7163_ACEOF
7164
7165 fi
7166
7167 if test $ac_cv_header_locale_h = yes; then
7168 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7169echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7170if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7172else
7173 cat >conftest.$ac_ext <<_ACEOF
7174/* confdefs.h. */
7175_ACEOF
7176cat confdefs.h >>conftest.$ac_ext
7177cat >>conftest.$ac_ext <<_ACEOF
7178/* end confdefs.h. */
7179#include <locale.h>
7180int
7181main ()
7182{
7183return LC_MESSAGES
7184 ;
7185 return 0;
7186}
7187_ACEOF
7188rm -f conftest.$ac_objext conftest$ac_exeext
7189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7190 (eval $ac_link) 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try='test -s conftest$ac_exeext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 am_cv_val_LC_MESSAGES=yes
7211else
7212 echo "$as_me: failed program was:" >&5
7213sed 's/^/| /' conftest.$ac_ext >&5
7214
7215am_cv_val_LC_MESSAGES=no
7216fi
7217rm -f conftest.err conftest.$ac_objext \
7218 conftest$ac_exeext conftest.$ac_ext
7219fi
7220echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7221echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7222 if test $am_cv_val_LC_MESSAGES = yes; then
7223
7224cat >>confdefs.h <<\_ACEOF
7225#define HAVE_LC_MESSAGES 1
7226_ACEOF
7227
7228 fi
7229 fi
7230 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7231echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7232 # Check whether --enable-nls or --disable-nls was given.
7233if test "${enable_nls+set}" = set; then
7234 enableval="$enable_nls"
7235 USE_NLS=$enableval
7236else
7237 USE_NLS=yes
7238fi;
7239 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7240echo "${ECHO_T}$USE_NLS" >&6
7241
7242
7243 USE_INCLUDED_LIBINTL=no
7244
7245 if test "$USE_NLS" = "yes"; then
7246 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7247echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7248
7249# Check whether --with-included-gettext or --without-included-gettext was given.
7250if test "${with_included_gettext+set}" = set; then
7251 withval="$with_included_gettext"
7252 nls_cv_force_use_gnu_gettext=$withval
7253else
7254 nls_cv_force_use_gnu_gettext=no
7255fi;
7256 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7257echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7258
7259 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7260 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7261 nls_cv_header_intl=
7262 nls_cv_header_libgt=
7263 CATOBJEXT=
7264
7265 if test "${ac_cv_header_libintl_h+set}" = set; then
7266 echo "$as_me:$LINENO: checking for libintl.h" >&5
7267echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7268if test "${ac_cv_header_libintl_h+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270fi
7271echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7272echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7273else
7274 # Is the header compilable?
7275echo "$as_me:$LINENO: checking libintl.h usability" >&5
7276echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7277cat >conftest.$ac_ext <<_ACEOF
7278/* confdefs.h. */
7279_ACEOF
7280cat confdefs.h >>conftest.$ac_ext
7281cat >>conftest.$ac_ext <<_ACEOF
7282/* end confdefs.h. */
7283$ac_includes_default
7284#include <libintl.h>
7285_ACEOF
7286rm -f conftest.$ac_objext
7287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_header_compiler=yes
7309else
7310 echo "$as_me: failed program was:" >&5
7311sed 's/^/| /' conftest.$ac_ext >&5
7312
7313ac_header_compiler=no
7314fi
7315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7316echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7317echo "${ECHO_T}$ac_header_compiler" >&6
7318
7319# Is the header present?
7320echo "$as_me:$LINENO: checking libintl.h presence" >&5
7321echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7322cat >conftest.$ac_ext <<_ACEOF
7323/* confdefs.h. */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
7327/* end confdefs.h. */
7328#include <libintl.h>
7329_ACEOF
7330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } >/dev/null; then
7338 if test -s conftest.err; then
7339 ac_cpp_err=$ac_c_preproc_warn_flag
7340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7341 else
7342 ac_cpp_err=
7343 fi
7344else
7345 ac_cpp_err=yes
7346fi
7347if test -z "$ac_cpp_err"; then
7348 ac_header_preproc=yes
7349else
7350 echo "$as_me: failed program was:" >&5
7351sed 's/^/| /' conftest.$ac_ext >&5
7352
7353 ac_header_preproc=no
7354fi
7355rm -f conftest.err conftest.$ac_ext
7356echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7357echo "${ECHO_T}$ac_header_preproc" >&6
7358
7359# So? What about this header?
7360case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7361 yes:no: )
7362 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7363echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7364 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7365echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7366 ac_header_preproc=yes
7367 ;;
7368 no:yes:* )
7369 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7370echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7371 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7372echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7373 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7374echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7376echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7378echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7380echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7381 (
7382 cat <<\_ASBOX
7383## ------------------------------------------ ##
7384## Report this to the AC_PACKAGE_NAME lists. ##
7385## ------------------------------------------ ##
7386_ASBOX
7387 ) |
7388 sed "s/^/$as_me: WARNING: /" >&2
7389 ;;
7390esac
7391echo "$as_me:$LINENO: checking for libintl.h" >&5
7392echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7393if test "${ac_cv_header_libintl_h+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7395else
7396 ac_cv_header_libintl_h=$ac_header_preproc
7397fi
7398echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7399echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7400
7401fi
7402if test $ac_cv_header_libintl_h = yes; then
7403 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7404echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7405if test "${gt_cv_func_gettext_libc+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408 cat >conftest.$ac_ext <<_ACEOF
7409/* confdefs.h. */
7410_ACEOF
7411cat confdefs.h >>conftest.$ac_ext
7412cat >>conftest.$ac_ext <<_ACEOF
7413/* end confdefs.h. */
7414#include <libintl.h>
7415int
7416main ()
7417{
7418return (int) gettext ("")
7419 ;
7420 return 0;
7421}
7422_ACEOF
7423rm -f conftest.$ac_objext conftest$ac_exeext
7424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425 (eval $ac_link) 2>conftest.er1
7426 ac_status=$?
7427 grep -v '^ *+' conftest.er1 >conftest.err
7428 rm -f conftest.er1
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } &&
7432 { ac_try='test -z "$ac_c_werror_flag"
7433 || test ! -s conftest.err'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 (eval $ac_try) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; } &&
7439 { ac_try='test -s conftest$ac_exeext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 gt_cv_func_gettext_libc=yes
7446else
7447 echo "$as_me: failed program was:" >&5
7448sed 's/^/| /' conftest.$ac_ext >&5
7449
7450gt_cv_func_gettext_libc=no
7451fi
7452rm -f conftest.err conftest.$ac_objext \
7453 conftest$ac_exeext conftest.$ac_ext
7454fi
7455echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7456echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7457
7458 if test "$gt_cv_func_gettext_libc" != "yes"; then
7459 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7460echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7461if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463else
7464 ac_check_lib_save_LIBS=$LIBS
7465LIBS="-lintl $LIBS"
7466cat >conftest.$ac_ext <<_ACEOF
7467/* confdefs.h. */
7468_ACEOF
7469cat confdefs.h >>conftest.$ac_ext
7470cat >>conftest.$ac_ext <<_ACEOF
7471/* end confdefs.h. */
7472
7473/* Override any gcc2 internal prototype to avoid an error. */
7474#ifdef __cplusplus
7475extern "C"
7476#endif
7477/* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */
7479char bindtextdomain ();
7480int
7481main ()
7482{
7483bindtextdomain ();
7484 ;
7485 return 0;
7486}
7487_ACEOF
7488rm -f conftest.$ac_objext conftest$ac_exeext
7489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7490 (eval $ac_link) 2>conftest.er1
7491 ac_status=$?
7492 grep -v '^ *+' conftest.er1 >conftest.err
7493 rm -f conftest.er1
7494 cat conftest.err >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try='test -z "$ac_c_werror_flag"
7498 || test ! -s conftest.err'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 (eval $ac_try) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; } &&
7504 { ac_try='test -s conftest$ac_exeext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 ac_cv_lib_intl_bindtextdomain=yes
7511else
7512 echo "$as_me: failed program was:" >&5
7513sed 's/^/| /' conftest.$ac_ext >&5
7514
7515ac_cv_lib_intl_bindtextdomain=no
7516fi
7517rm -f conftest.err conftest.$ac_objext \
7518 conftest$ac_exeext conftest.$ac_ext
7519LIBS=$ac_check_lib_save_LIBS
7520fi
7521echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7522echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7523if test $ac_cv_lib_intl_bindtextdomain = yes; then
7524 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7525echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7526if test "${gt_cv_func_gettext_libintl+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529 cat >conftest.$ac_ext <<_ACEOF
7530/* confdefs.h. */
7531_ACEOF
7532cat confdefs.h >>conftest.$ac_ext
7533cat >>conftest.$ac_ext <<_ACEOF
7534/* end confdefs.h. */
7535
7536int
7537main ()
7538{
7539return (int) gettext ("")
7540 ;
7541 return 0;
7542}
7543_ACEOF
7544rm -f conftest.$ac_objext conftest$ac_exeext
7545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7546 (eval $ac_link) 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } &&
7553 { ac_try='test -z "$ac_c_werror_flag"
7554 || test ! -s conftest.err'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; } &&
7560 { ac_try='test -s conftest$ac_exeext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 gt_cv_func_gettext_libintl=yes
7567else
7568 echo "$as_me: failed program was:" >&5
7569sed 's/^/| /' conftest.$ac_ext >&5
7570
7571gt_cv_func_gettext_libintl=no
7572fi
7573rm -f conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7575fi
7576echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7577echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7578fi
7579
7580 fi
7581
7582 if test "$gt_cv_func_gettext_libc" = "yes" \
7583 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7584
7585cat >>confdefs.h <<\_ACEOF
7586#define HAVE_GETTEXT 1
7587_ACEOF
7588
7589 # Extract the first word of "msgfmt", so it can be a program name with args.
7590set dummy msgfmt; ac_word=$2
7591echo "$as_me:$LINENO: checking for $ac_word" >&5
7592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593if test "${ac_cv_path_MSGFMT+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7595else
7596 case "$MSGFMT" in
7597 /*)
7598 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7599 ;;
7600 *)
7601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7602 for ac_dir in $PATH; do
7603 test -z "$ac_dir" && ac_dir=.
7604 if test -f $ac_dir/$ac_word; then
7605 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7606 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7607 break
7608 fi
7609 fi
7610 done
7611 IFS="$ac_save_ifs"
7612 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7613 ;;
7614esac
7615fi
7616MSGFMT="$ac_cv_path_MSGFMT"
7617if test -n "$MSGFMT"; then
7618 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7619echo "${ECHO_T}$MSGFMT" >&6
7620else
7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
7623fi
7624 if test "$MSGFMT" != "no"; then
7625
7626for ac_func in dcgettext
7627do
7628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7629echo "$as_me:$LINENO: checking for $ac_func" >&5
7630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7631if eval "test \"\${$as_ac_var+set}\" = set"; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634 cat >conftest.$ac_ext <<_ACEOF
7635/* confdefs.h. */
7636_ACEOF
7637cat confdefs.h >>conftest.$ac_ext
7638cat >>conftest.$ac_ext <<_ACEOF
7639/* end confdefs.h. */
7640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7642#define $ac_func innocuous_$ac_func
7643
7644/* System header to define __stub macros and hopefully few prototypes,
7645 which can conflict with char $ac_func (); below.
7646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7647 <limits.h> exists even on freestanding compilers. */
7648
7649#ifdef __STDC__
7650# include <limits.h>
7651#else
7652# include <assert.h>
7653#endif
7654
7655#undef $ac_func
7656
7657/* Override any gcc2 internal prototype to avoid an error. */
7658#ifdef __cplusplus
7659extern "C"
7660{
7661#endif
7662/* We use char because int might match the return type of a gcc2
7663 builtin and then its argument prototype would still apply. */
7664char $ac_func ();
7665/* The GNU C library defines this for functions which it implements
7666 to always fail with ENOSYS. Some functions are actually named
7667 something starting with __ and the normal name is an alias. */
7668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7669choke me
7670#else
7671char (*f) () = $ac_func;
7672#endif
7673#ifdef __cplusplus
7674}
7675#endif
7676
7677int
7678main ()
7679{
7680return f != $ac_func;
7681 ;
7682 return 0;
7683}
7684_ACEOF
7685rm -f conftest.$ac_objext conftest$ac_exeext
7686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7687 (eval $ac_link) 2>conftest.er1
7688 ac_status=$?
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try='test -z "$ac_c_werror_flag"
7695 || test ! -s conftest.err'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; } &&
7701 { ac_try='test -s conftest$ac_exeext'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 (eval $ac_try) 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; }; then
7707 eval "$as_ac_var=yes"
7708else
7709 echo "$as_me: failed program was:" >&5
7710sed 's/^/| /' conftest.$ac_ext >&5
7711
7712eval "$as_ac_var=no"
7713fi
7714rm -f conftest.err conftest.$ac_objext \
7715 conftest$ac_exeext conftest.$ac_ext
7716fi
7717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7719if test `eval echo '${'$as_ac_var'}'` = yes; then
7720 cat >>confdefs.h <<_ACEOF
7721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7722_ACEOF
7723
7724fi
7725done
7726
7727 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7728set dummy gmsgfmt; ac_word=$2
7729echo "$as_me:$LINENO: checking for $ac_word" >&5
7730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7731if test "${ac_cv_path_GMSGFMT+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733else
7734 case $GMSGFMT in
7735 [\\/]* | ?:[\\/]*)
7736 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7737 ;;
7738 *)
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750done
7751done
7752
7753 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7754 ;;
7755esac
7756fi
7757GMSGFMT=$ac_cv_path_GMSGFMT
7758
7759if test -n "$GMSGFMT"; then
7760 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7761echo "${ECHO_T}$GMSGFMT" >&6
7762else
7763 echo "$as_me:$LINENO: result: no" >&5
7764echo "${ECHO_T}no" >&6
7765fi
7766
7767 # Extract the first word of "xgettext", so it can be a program name with args.
7768set dummy xgettext; ac_word=$2
7769echo "$as_me:$LINENO: checking for $ac_word" >&5
7770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7771if test "${ac_cv_path_XGETTEXT+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773else
7774 case "$XGETTEXT" in
7775 /*)
7776 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7777 ;;
7778 *)
7779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7780 for ac_dir in $PATH; do
7781 test -z "$ac_dir" && ac_dir=.
7782 if test -f $ac_dir/$ac_word; then
7783 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7784 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7785 break
7786 fi
7787 fi
7788 done
7789 IFS="$ac_save_ifs"
7790 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7791 ;;
7792esac
7793fi
7794XGETTEXT="$ac_cv_path_XGETTEXT"
7795if test -n "$XGETTEXT"; then
7796 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7797echo "${ECHO_T}$XGETTEXT" >&6
7798else
7799 echo "$as_me:$LINENO: result: no" >&5
7800echo "${ECHO_T}no" >&6
7801fi
7802
7803 cat >conftest.$ac_ext <<_ACEOF
7804/* confdefs.h. */
7805_ACEOF
7806cat confdefs.h >>conftest.$ac_ext
7807cat >>conftest.$ac_ext <<_ACEOF
7808/* end confdefs.h. */
7809
7810int
7811main ()
7812{
7813extern int _nl_msg_cat_cntr;
7814 return _nl_msg_cat_cntr
7815 ;
7816 return 0;
7817}
7818_ACEOF
7819rm -f conftest.$ac_objext conftest$ac_exeext
7820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7821 (eval $ac_link) 2>conftest.er1
7822 ac_status=$?
7823 grep -v '^ *+' conftest.er1 >conftest.err
7824 rm -f conftest.er1
7825 cat conftest.err >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -z "$ac_c_werror_flag"
7829 || test ! -s conftest.err'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try='test -s conftest$ac_exeext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 CATOBJEXT=.gmo
7842 DATADIRNAME=share
7843else
7844 echo "$as_me: failed program was:" >&5
7845sed 's/^/| /' conftest.$ac_ext >&5
7846
7847CATOBJEXT=.mo
7848 DATADIRNAME=lib
7849fi
7850rm -f conftest.err conftest.$ac_objext \
7851 conftest$ac_exeext conftest.$ac_ext
7852 INSTOBJEXT=.mo
7853 fi
7854 fi
7855
7856fi
7857
7858
7859
7860
7861 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7862 # Neither gettext nor catgets in included in the C library.
7863 # Fall back on GNU gettext library (assuming it is present).
7864 nls_cv_use_gnu_gettext=yes
7865 fi
7866 fi
7867
7868 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7869 INTLOBJS="\$(GETTOBJS)"
7870 # Extract the first word of "msgfmt", so it can be a program name with args.
7871set dummy msgfmt; ac_word=$2
7872echo "$as_me:$LINENO: checking for $ac_word" >&5
7873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7874if test "${ac_cv_path_MSGFMT+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876else
7877 case "$MSGFMT" in
7878 /*)
7879 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7880 ;;
7881 *)
7882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7883 for ac_dir in $PATH; do
7884 test -z "$ac_dir" && ac_dir=.
7885 if test -f $ac_dir/$ac_word; then
7886 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7887 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7888 break
7889 fi
7890 fi
7891 done
7892 IFS="$ac_save_ifs"
7893 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7894 ;;
7895esac
7896fi
7897MSGFMT="$ac_cv_path_MSGFMT"
7898if test -n "$MSGFMT"; then
7899 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7900echo "${ECHO_T}$MSGFMT" >&6
7901else
7902 echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
7904fi
7905
7906 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7907set dummy gmsgfmt; ac_word=$2
7908echo "$as_me:$LINENO: checking for $ac_word" >&5
7909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7910if test "${ac_cv_path_GMSGFMT+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913 case $GMSGFMT in
7914 [\\/]* | ?:[\\/]*)
7915 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7916 ;;
7917 *)
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919for as_dir in $PATH
7920do
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7925 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 break 2
7928 fi
7929done
7930done
7931
7932 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7933 ;;
7934esac
7935fi
7936GMSGFMT=$ac_cv_path_GMSGFMT
7937
7938if test -n "$GMSGFMT"; then
7939 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7940echo "${ECHO_T}$GMSGFMT" >&6
7941else
7942 echo "$as_me:$LINENO: result: no" >&5
7943echo "${ECHO_T}no" >&6
7944fi
7945
7946 # Extract the first word of "xgettext", so it can be a program name with args.
7947set dummy xgettext; ac_word=$2
7948echo "$as_me:$LINENO: checking for $ac_word" >&5
7949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7950if test "${ac_cv_path_XGETTEXT+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952else
7953 case "$XGETTEXT" in
7954 /*)
7955 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7956 ;;
7957 *)
7958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7959 for ac_dir in $PATH; do
7960 test -z "$ac_dir" && ac_dir=.
7961 if test -f $ac_dir/$ac_word; then
7962 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7963 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7964 break
7965 fi
7966 fi
7967 done
7968 IFS="$ac_save_ifs"
7969 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7970 ;;
7971esac
7972fi
7973XGETTEXT="$ac_cv_path_XGETTEXT"
7974if test -n "$XGETTEXT"; then
7975 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7976echo "${ECHO_T}$XGETTEXT" >&6
7977else
7978 echo "$as_me:$LINENO: result: no" >&5
7979echo "${ECHO_T}no" >&6
7980fi
7981
7982
7983 USE_INCLUDED_LIBINTL=yes
7984 CATOBJEXT=.gmo
7985 INSTOBJEXT=.mo
7986 DATADIRNAME=share
7987 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7988 INTLLIBS=$INTLDEPS
7989 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7990 nls_cv_header_intl=libintl.h
7991 nls_cv_header_libgt=libgettext.h
7992 fi
7993
7994 if test "$XGETTEXT" != ":"; then
7995 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7996 : ;
7997 else
7998 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7999echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8000 XGETTEXT=":"
8001 fi
8002 fi
8003
8004 # We need to process the po/ directory.
8005 POSUB=po
8006 else
8007 DATADIRNAME=share
8008 nls_cv_header_intl=libintl.h
8009 nls_cv_header_libgt=libgettext.h
8010 fi
8011
8012 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8013 # because some of the sources are only built for this goal.
8014 if test "$PACKAGE" = gettext; then
8015 USE_NLS=yes
8016 USE_INCLUDED_LIBINTL=yes
8017 fi
8018
8019 for lang in $ALL_LINGUAS; do
8020 GMOFILES="$GMOFILES $lang.gmo"
8021 POFILES="$POFILES $lang.po"
8022 done
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035 if test "x$CATOBJEXT" != "x"; then
8036
8037cat >>confdefs.h <<\_ACEOF
8038#define ENABLE_NLS 1
8039_ACEOF
8040
8041 fi
8042
8043
8044 if test "x$CATOBJEXT" != "x"; then
8045 if test "x$ALL_LINGUAS" = "x"; then
8046 LINGUAS=
8047 else
8048 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8049echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8050 NEW_LINGUAS=
8051 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8052 case "$ALL_LINGUAS" in
8053 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8054 esac
8055 done
8056 LINGUAS=$NEW_LINGUAS
8057 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8058echo "${ECHO_T}$LINGUAS" >&6
8059 fi
8060
8061 if test -n "$LINGUAS"; then
8062 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8063 fi
8064 fi
8065
8066 if test $ac_cv_header_locale_h = yes; then
8067 INCLUDE_LOCALE_H="#include <locale.h>"
8068 else
8069 INCLUDE_LOCALE_H="\
8070/* The system does not provide the header <locale.h>. Take care yourself. */"
8071 fi
8072
8073
8074 if test -f $srcdir/po2tbl.sed.in; then
8075 if test "$CATOBJEXT" = ".cat"; then
8076 if test "${ac_cv_header_linux_version_h+set}" = set; then
8077 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8078echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8079if test "${ac_cv_header_linux_version_h+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081fi
8082echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8083echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8084else
8085 # Is the header compilable?
8086echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8087echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8088cat >conftest.$ac_ext <<_ACEOF
8089/* confdefs.h. */
8090_ACEOF
8091cat confdefs.h >>conftest.$ac_ext
8092cat >>conftest.$ac_ext <<_ACEOF
8093/* end confdefs.h. */
8094$ac_includes_default
8095#include <linux/version.h>
8096_ACEOF
8097rm -f conftest.$ac_objext
8098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -z "$ac_c_werror_flag"
8107 || test ! -s conftest.err'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try='test -s conftest.$ac_objext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 (eval $ac_try) 2>&5
8116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8119 ac_header_compiler=yes
8120else
8121 echo "$as_me: failed program was:" >&5
8122sed 's/^/| /' conftest.$ac_ext >&5
8123
8124ac_header_compiler=no
8125fi
8126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8127echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8128echo "${ECHO_T}$ac_header_compiler" >&6
8129
8130# Is the header present?
8131echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8132echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8133cat >conftest.$ac_ext <<_ACEOF
8134/* confdefs.h. */
8135_ACEOF
8136cat confdefs.h >>conftest.$ac_ext
8137cat >>conftest.$ac_ext <<_ACEOF
8138/* end confdefs.h. */
8139#include <linux/version.h>
8140_ACEOF
8141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } >/dev/null; then
8149 if test -s conftest.err; then
8150 ac_cpp_err=$ac_c_preproc_warn_flag
8151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8152 else
8153 ac_cpp_err=
8154 fi
8155else
8156 ac_cpp_err=yes
8157fi
8158if test -z "$ac_cpp_err"; then
8159 ac_header_preproc=yes
8160else
8161 echo "$as_me: failed program was:" >&5
8162sed 's/^/| /' conftest.$ac_ext >&5
8163
8164 ac_header_preproc=no
8165fi
8166rm -f conftest.err conftest.$ac_ext
8167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8168echo "${ECHO_T}$ac_header_preproc" >&6
8169
8170# So? What about this header?
8171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8172 yes:no: )
8173 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8174echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8175 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8176echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8177 ac_header_preproc=yes
8178 ;;
8179 no:yes:* )
8180 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8181echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8183echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8185echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8187echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8189echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8191echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8192 (
8193 cat <<\_ASBOX
8194## ------------------------------------------ ##
8195## Report this to the AC_PACKAGE_NAME lists. ##
8196## ------------------------------------------ ##
8197_ASBOX
8198 ) |
8199 sed "s/^/$as_me: WARNING: /" >&2
8200 ;;
8201esac
8202echo "$as_me:$LINENO: checking for linux/version.h" >&5
8203echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8204if test "${ac_cv_header_linux_version_h+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8206else
8207 ac_cv_header_linux_version_h=$ac_header_preproc
8208fi
8209echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8210echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8211
8212fi
8213if test $ac_cv_header_linux_version_h = yes; then
8214 msgformat=linux
8215else
8216 msgformat=xopen
8217fi
8218
8219
8220
8221 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8222 fi
8223 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8224 $srcdir/po2tbl.sed.in > po2tbl.sed
8225 fi
8226
8227 if test "$PACKAGE" = "gettext"; then
8228 GT_NO="#NO#"
8229 GT_YES=
8230 else
8231 GT_NO=
8232 GT_YES="#YES#"
8233 fi
8234
8235
8236
8237 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8238
8239
8240 l=
8241
8242
8243 if test -f $srcdir/po/POTFILES.in; then
8244 test -d po || mkdir po
8245 if test "x$srcdir" != "x."; then
8246 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8247 posrcprefix="$srcdir/"
8248 else
8249 posrcprefix="../$srcdir/"
8250 fi
8251 else
8252 posrcprefix="../"
8253 fi
8254 rm -f po/POTFILES
8255 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8256 < $srcdir/po/POTFILES.in > po/POTFILES
8257 fi
8258
8259
8260. ${srcdir}/../bfd/configure.host
8261
8262# Put a plausible default for CC_FOR_BUILD in Makefile.
8263if test -z "$CC_FOR_BUILD"; then
8264 if test "x$cross_compiling" = "xno"; then
8265 CC_FOR_BUILD='$(CC)'
8266 else
8267 CC_FOR_BUILD=gcc
8268 fi
8269fi
8270
8271# Also set EXEEXT_FOR_BUILD.
8272if test "x$cross_compiling" = "xno"; then
8273 EXEEXT_FOR_BUILD='$(EXEEXT)'
8274else
8275 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8276echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8277if test "${bfd_cv_build_exeext+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8279else
8280 rm -f conftest*
8281 echo 'int main () { return 0; }' > conftest.c
8282 bfd_cv_build_exeext=
8283 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8284 for file in conftest.*; do
8285 case $file in
8286 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8287 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8288 esac
8289 done
8290 rm -f conftest*
8291 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8292fi
8293echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8294echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8295 EXEEXT_FOR_BUILD=""
8296 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8297fi
8298
8299
8300
8301# Find a good install program. We prefer a C program (faster),
8302# so one script is as good as another. But avoid the broken or
8303# incompatible versions:
8304# SysV /etc/install, /usr/sbin/install
8305# SunOS /usr/etc/install
8306# IRIX /sbin/install
8307# AIX /bin/install
8308# AmigaOS /C/install, which installs bootblocks on floppy discs
8309# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8310# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8311# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8312# OS/2's system install, which has a completely different semantic
8313# ./install, which can be erroneously created by make from ./install.sh.
8314echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8315echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8316if test -z "$INSTALL"; then
8317if test "${ac_cv_path_install+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319else
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 # Account for people who put trailing slashes in PATH elements.
8326case $as_dir/ in
8327 ./ | .// | /cC/* | \
8328 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8329 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8330 /usr/ucb/* ) ;;
8331 *)
8332 # OSF1 and SCO ODT 3.0 have their own names for install.
8333 # Don't use installbsd from OSF since it installs stuff as root
8334 # by default.
8335 for ac_prog in ginstall scoinst install; do
8336 for ac_exec_ext in '' $ac_executable_extensions; do
8337 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8338 if test $ac_prog = install &&
8339 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8340 # AIX install. It has an incompatible calling convention.
8341 :
8342 elif test $ac_prog = install &&
8343 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8344 # program-specific install script used by HP pwplus--don't use.
8345 :
8346 else
8347 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8348 break 3
8349 fi
8350 fi
8351 done
8352 done
8353 ;;
8354esac
8355done
8356
8357
8358fi
8359 if test "${ac_cv_path_install+set}" = set; then
8360 INSTALL=$ac_cv_path_install
8361 else
8362 # As a last resort, use the slow shell script. We don't cache a
8363 # path for INSTALL within a source directory, because that will
8364 # break other packages using the cache if that directory is
8365 # removed, or if the path is relative.
8366 INSTALL=$ac_install_sh
8367 fi
8368fi
8369echo "$as_me:$LINENO: result: $INSTALL" >&5
8370echo "${ECHO_T}$INSTALL" >&6
8371
8372# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8373# It thinks the first close brace ends the variable substitution.
8374test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8375
8376test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8377
8378test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8379
8380
8381
8382
8383
8384for ac_header in string.h strings.h stdlib.h
8385do
8386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8387if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388 echo "$as_me:$LINENO: checking for $ac_header" >&5
8389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8390if eval "test \"\${$as_ac_Header+set}\" = set"; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8392fi
8393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8395else
8396 # Is the header compilable?
8397echo "$as_me:$LINENO: checking $ac_header usability" >&5
8398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8399cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */
8405$ac_includes_default
8406#include <$ac_header>
8407_ACEOF
8408rm -f conftest.$ac_objext
8409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410 (eval $ac_compile) 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -z "$ac_c_werror_flag"
8418 || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 (eval $ac_try) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest.$ac_objext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_header_compiler=yes
8431else
8432 echo "$as_me: failed program was:" >&5
8433sed 's/^/| /' conftest.$ac_ext >&5
8434
8435ac_header_compiler=no
8436fi
8437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8439echo "${ECHO_T}$ac_header_compiler" >&6
8440
8441# Is the header present?
8442echo "$as_me:$LINENO: checking $ac_header presence" >&5
8443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8444cat >conftest.$ac_ext <<_ACEOF
8445/* confdefs.h. */
8446_ACEOF
8447cat confdefs.h >>conftest.$ac_ext
8448cat >>conftest.$ac_ext <<_ACEOF
8449/* end confdefs.h. */
8450#include <$ac_header>
8451_ACEOF
8452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8454 ac_status=$?
8455 grep -v '^ *+' conftest.er1 >conftest.err
8456 rm -f conftest.er1
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } >/dev/null; then
8460 if test -s conftest.err; then
8461 ac_cpp_err=$ac_c_preproc_warn_flag
8462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8463 else
8464 ac_cpp_err=
8465 fi
8466else
8467 ac_cpp_err=yes
8468fi
8469if test -z "$ac_cpp_err"; then
8470 ac_header_preproc=yes
8471else
8472 echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 ac_header_preproc=no
8476fi
8477rm -f conftest.err conftest.$ac_ext
8478echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8479echo "${ECHO_T}$ac_header_preproc" >&6
8480
8481# So? What about this header?
8482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8483 yes:no: )
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8488 ac_header_preproc=yes
8489 ;;
8490 no:yes:* )
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8503 (
8504 cat <<\_ASBOX
8505## ------------------------------------------ ##
8506## Report this to the AC_PACKAGE_NAME lists. ##
8507## ------------------------------------------ ##
8508_ASBOX
8509 ) |
8510 sed "s/^/$as_me: WARNING: /" >&2
8511 ;;
8512esac
8513echo "$as_me:$LINENO: checking for $ac_header" >&5
8514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8515if eval "test \"\${$as_ac_Header+set}\" = set"; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8517else
8518 eval "$as_ac_Header=\$ac_header_preproc"
8519fi
8520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8522
8523fi
8524if test `eval echo '${'$as_ac_Header'}'` = yes; then
8525 cat >>confdefs.h <<_ACEOF
8526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8527_ACEOF
8528
8529fi
8530
8531done
8532
8533
8534echo "$as_me:$LINENO: checking whether basename is declared" >&5
8535echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8536if test "${ac_cv_have_decl_basename+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538else
8539 cat >conftest.$ac_ext <<_ACEOF
8540/* confdefs.h. */
8541_ACEOF
8542cat confdefs.h >>conftest.$ac_ext
8543cat >>conftest.$ac_ext <<_ACEOF
8544/* end confdefs.h. */
8545$ac_includes_default
8546int
8547main ()
8548{
8549#ifndef basename
8550 char *p = (char *) basename;
8551#endif
8552
8553 ;
8554 return 0;
8555}
8556_ACEOF
8557rm -f conftest.$ac_objext
8558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8559 (eval $ac_compile) 2>conftest.er1
8560 ac_status=$?
8561 grep -v '^ *+' conftest.er1 >conftest.err
8562 rm -f conftest.er1
8563 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } &&
8566 { ac_try='test -z "$ac_c_werror_flag"
8567 || test ! -s conftest.err'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; } &&
8573 { ac_try='test -s conftest.$ac_objext'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 (eval $ac_try) 2>&5
8576 ac_status=$?
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; }; then
8579 ac_cv_have_decl_basename=yes
8580else
8581 echo "$as_me: failed program was:" >&5
8582sed 's/^/| /' conftest.$ac_ext >&5
8583
8584ac_cv_have_decl_basename=no
8585fi
8586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8587fi
8588echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8589echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8590if test $ac_cv_have_decl_basename = yes; then
8591
8592cat >>confdefs.h <<_ACEOF
8593#define HAVE_DECL_BASENAME 1
8594_ACEOF
8595
8596
8597else
8598 cat >>confdefs.h <<_ACEOF
8599#define HAVE_DECL_BASENAME 0
8600_ACEOF
8601
8602
8603fi
8604
8605
8606
8607cgen_maint=no
8608cgendir='$(srcdir)/../cgen'
8609
8610# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
8611if test "${enable_cgen_maint+set}" = set; then
8612 enableval="$enable_cgen_maint"
8613 case "${enableval}" in
8614 yes) cgen_maint=yes ;;
8615 no) cgen_maint=no ;;
8616 *)
8617 # argument is cgen install directory (not implemented yet).
8618 # Having a `share' directory might be more appropriate for the .scm,
8619 # .cpu, etc. files.
8620 cgen_maint=yes
8621 cgendir=${cgen_maint}/lib/cgen
8622 ;;
8623esac
8624fi;
8625
8626if test x${cgen_maint} = xyes; then
8627 CGEN_MAINT_TRUE=
8628 CGEN_MAINT_FALSE='#'
8629else
8630 CGEN_MAINT_TRUE='#'
8631 CGEN_MAINT_FALSE=
8632fi
8633
8634
8635
8636using_cgen=no
8637
8638# Horrible hacks to build DLLs on Windows.
8639WIN32LDFLAGS=
8640WIN32LIBADD=
8641case "${host}" in
8642*-*-cygwin*)
8643 if test "$enable_shared" = "yes"; then
8644 WIN32LDFLAGS="-no-undefined"
8645 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
8646 fi
8647 ;;
8648esac
8649
8650
8651
8652# target-specific stuff:
8653
8654# Canonicalize the secondary target names.
8655if test -n "$enable_targets" ; then
8656 for targ in `echo $enable_targets | sed 's/,/ /g'`
8657 do
8658 result=`$ac_config_sub $targ 2>/dev/null`
8659 if test -n "$result" ; then
8660 canon_targets="$canon_targets $result"
8661 else
8662 # Allow targets that config.sub doesn't recognize, like "all".
8663 canon_targets="$canon_targets $targ"
8664 fi
8665 done
8666fi
8667
8668all_targets=false
8669selarchs=
8670for targ in $target $canon_targets
8671do
8672 if test "x$targ" = "xall" ; then
8673 all_targets=true
8674 else
8675 . $srcdir/../bfd/config.bfd
8676 selarchs="$selarchs $targ_archs"
8677 fi
8678done
8679
8680# Utility var, documents generic cgen support files.
8681
8682cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
8683
8684# We don't do any links based on the target system, just makefile config.
8685
8686if test x${all_targets} = xfalse ; then
8687
8688 # Target architecture .o files.
8689 ta=
8690
8691 for arch in $selarchs
8692 do
8693 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
8694 archdefs="$archdefs -DARCH_$ad"
8695 case "$arch" in
8696 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
8697 bfd_alliant_arch) ;;
8698 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
8699 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
8700 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
8701 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
8702 bfd_convex_arch) ;;
8703 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
8704 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
8705 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
8706 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
8707 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
8708 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
8709 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
8710 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
8711 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
8712 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
8713 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
8714 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
8715 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
8716 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
8717 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
8718 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
8719 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
8720 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8721 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8722 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
8723 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
8724 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
8725 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
8726 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
8727 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
8728 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
8729 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
8730 bfd_ms1_arch) ta="$ta ms1-asm.lo ms1-desc.lo ms1-dis.lo ms1-ibld.lo ms1-opc.lo" using_cgen=yes ;;
8731 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
8732 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
8733 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
8734 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
8735 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
8736 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
8737 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8738 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8739 bfd_pyramid_arch) ;;
8740 bfd_romp_arch) ;;
8741 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8742 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
8743 bfd_sh_arch)
8744 # We can't decide what we want just from the CPU family.
8745 # We want SH5 support unless a specific version of sh is
8746 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
8747 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
8748 for t in $target $canon_targets; do
8749 case $t in
8750 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
8751 sh-*-linux* | shl-*-linux*)
8752 ta="$ta sh64-dis.lo sh64-opc.lo"
8753 archdefs="$archdefs -DINCLUDE_SHMEDIA"
8754 break;;
8755 esac;
8756 done
8757 ta="$ta sh-dis.lo" ;;
8758 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
8759 bfd_tahoe_arch) ;;
8760 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
8761 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
8762 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
8763 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
8764 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8765 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8766 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8767 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
8768 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
8769 bfd_we32k_arch) ;;
8770 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
8771 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
8772 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
8773 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
8774 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
8775
8776 "") ;;
8777 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
8778echo "$as_me: error: *** unknown target architecture $arch" >&2;}
8779 { (exit 1); exit 1; }; } ;;
8780 esac
8781 done
8782
8783 if test $using_cgen = yes ; then
8784 ta="$ta $cgen_files"
8785 fi
8786
8787 # Weed out duplicate .o files.
8788 f=""
8789 for i in $ta ; do
8790 case " $f " in
8791 *" $i "*) ;;
8792 *) f="$f $i" ;;
8793 esac
8794 done
8795 ta="$f"
8796
8797 # And duplicate -D flags.
8798 f=""
8799 for i in $archdefs ; do
8800 case " $f " in
8801 *" $i "*) ;;
8802 *) f="$f $i" ;;
8803 esac
8804 done
8805 archdefs="$f"
8806
8807 BFD_MACHINES="$ta"
8808
8809else # all_targets is true
8810 archdefs=-DARCH_all
8811 BFD_MACHINES='$(ALL_MACHINES)'
8812fi
8813
8814
8815
8816
8817 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
8818
8819 ac_config_commands="$ac_config_commands default"
8820
8821cat >confcache <<\_ACEOF
8822# This file is a shell script that caches the results of configure
8823# tests run on this system so they can be shared between configure
8824# scripts and configure runs, see configure's option --config-cache.
8825# It is not useful on other systems. If it contains results you don't
8826# want to keep, you may remove or edit it.
8827#
8828# config.status only pays attention to the cache file if you give it
8829# the --recheck option to rerun configure.
8830#
8831# `ac_cv_env_foo' variables (set or unset) will be overridden when
8832# loading this file, other *unset* `ac_cv_foo' will be assigned the
8833# following values.
8834
8835_ACEOF
8836
8837# The following way of writing the cache mishandles newlines in values,
8838# but we know of no workaround that is simple, portable, and efficient.
8839# So, don't put newlines in cache variables' values.
8840# Ultrix sh set writes to stderr and can't be redirected directly,
8841# and sets the high bit in the cache file unless we assign to the vars.
8842{
8843 (set) 2>&1 |
8844 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8845 *ac_space=\ *)
8846 # `set' does not quote correctly, so add quotes (double-quote
8847 # substitution turns \\\\ into \\, and sed turns \\ into \).
8848 sed -n \
8849 "s/'/'\\\\''/g;
8850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8851 ;;
8852 *)
8853 # `set' quotes correctly as required by POSIX, so do not add quotes.
8854 sed -n \
8855 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8856 ;;
8857 esac;
8858} |
8859 sed '
8860 t clear
8861 : clear
8862 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8863 t end
8864 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8865 : end' >>confcache
8866if diff $cache_file confcache >/dev/null 2>&1; then :; else
8867 if test -w $cache_file; then
8868 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8869 cat confcache >$cache_file
8870 else
8871 echo "not updating unwritable cache $cache_file"
8872 fi
8873fi
8874rm -f confcache
8875
8876test "x$prefix" = xNONE && prefix=$ac_default_prefix
8877# Let make expand exec_prefix.
8878test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8879
8880# VPATH may cause trouble with some makes, so we remove $(srcdir),
8881# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8882# trailing colons and then remove the whole line if VPATH becomes empty
8883# (actually we leave an empty line to preserve line numbers).
8884if test "x$srcdir" = x.; then
8885 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8886s/:*\$(srcdir):*/:/;
8887s/:*\${srcdir}:*/:/;
8888s/:*@srcdir@:*/:/;
8889s/^\([^=]*=[ ]*\):*/\1/;
8890s/:*$//;
8891s/^[^=]*=[ ]*$//;
8892}'
8893fi
8894
8895DEFS=-DHAVE_CONFIG_H
8896
8897ac_libobjs=
8898ac_ltlibobjs=
8899for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8900 # 1. Remove the extension, and $U if already installed.
8901 ac_i=`echo "$ac_i" |
8902 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8903 # 2. Add them.
8904 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8905 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8906done
8907LIBOBJS=$ac_libobjs
8908
8909LTLIBOBJS=$ac_ltlibobjs
8910
8911
8912if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8913 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8914Usually this means the macro was only invoked conditionally." >&5
8915echo "$as_me: error: conditional \"AMDEP\" was never defined.
8916Usually this means the macro was only invoked conditionally." >&2;}
8917 { (exit 1); exit 1; }; }
8918fi
8919if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8920 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8921Usually this means the macro was only invoked conditionally." >&5
8922echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8923Usually this means the macro was only invoked conditionally." >&2;}
8924 { (exit 1); exit 1; }; }
8925fi
8926if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8927 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8928Usually this means the macro was only invoked conditionally." >&5
8929echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8930Usually this means the macro was only invoked conditionally." >&2;}
8931 { (exit 1); exit 1; }; }
8932fi
8933if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
8934 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
8935Usually this means the macro was only invoked conditionally." >&5
8936echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
8937Usually this means the macro was only invoked conditionally." >&2;}
8938 { (exit 1); exit 1; }; }
8939fi
8940if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
8941 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
8942Usually this means the macro was only invoked conditionally." >&5
8943echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
8944Usually this means the macro was only invoked conditionally." >&2;}
8945 { (exit 1); exit 1; }; }
8946fi
8947
8948: ${CONFIG_STATUS=./config.status}
8949ac_clean_files_save=$ac_clean_files
8950ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8951{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8952echo "$as_me: creating $CONFIG_STATUS" >&6;}
8953cat >$CONFIG_STATUS <<_ACEOF
8954#! $SHELL
8955# Generated by $as_me.
8956# Run this file to recreate the current configuration.
8957# Compiler output produced by configure, useful for debugging
8958# configure, is in config.log if it exists.
8959
8960debug=false
8961ac_cs_recheck=false
8962ac_cs_silent=false
8963SHELL=\${CONFIG_SHELL-$SHELL}
8964_ACEOF
8965
8966cat >>$CONFIG_STATUS <<\_ACEOF
8967## --------------------- ##
8968## M4sh Initialization. ##
8969## --------------------- ##
8970
8971# Be Bourne compatible
8972if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8973 emulate sh
8974 NULLCMD=:
8975 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8976 # is contrary to our usage. Disable this feature.
8977 alias -g '${1+"$@"}'='"$@"'
8978elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8979 set -o posix
8980fi
8981DUALCASE=1; export DUALCASE # for MKS sh
8982
8983# Support unset when possible.
8984if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8985 as_unset=unset
8986else
8987 as_unset=false
8988fi
8989
8990
8991# Work around bugs in pre-3.0 UWIN ksh.
8992$as_unset ENV MAIL MAILPATH
8993PS1='$ '
8994PS2='> '
8995PS4='+ '
8996
8997# NLS nuisances.
8998for as_var in \
8999 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9000 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9001 LC_TELEPHONE LC_TIME
9002do
9003 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9004 eval $as_var=C; export $as_var
9005 else
9006 $as_unset $as_var
9007 fi
9008done
9009
9010# Required to use basename.
9011if expr a : '\(a\)' >/dev/null 2>&1; then
9012 as_expr=expr
9013else
9014 as_expr=false
9015fi
9016
9017if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9018 as_basename=basename
9019else
9020 as_basename=false
9021fi
9022
9023
9024# Name of the executable.
9025as_me=`$as_basename "$0" ||
9026$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9027 X"$0" : 'X\(//\)$' \| \
9028 X"$0" : 'X\(/\)$' \| \
9029 . : '\(.\)' 2>/dev/null ||
9030echo X/"$0" |
9031 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9032 /^X\/\(\/\/\)$/{ s//\1/; q; }
9033 /^X\/\(\/\).*/{ s//\1/; q; }
9034 s/.*/./; q'`
9035
9036
9037# PATH needs CR, and LINENO needs CR and PATH.
9038# Avoid depending upon Character Ranges.
9039as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9040as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9041as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9042as_cr_digits='0123456789'
9043as_cr_alnum=$as_cr_Letters$as_cr_digits
9044
9045# The user is always right.
9046if test "${PATH_SEPARATOR+set}" != set; then
9047 echo "#! /bin/sh" >conf$$.sh
9048 echo "exit 0" >>conf$$.sh
9049 chmod +x conf$$.sh
9050 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9051 PATH_SEPARATOR=';'
9052 else
9053 PATH_SEPARATOR=:
9054 fi
9055 rm -f conf$$.sh
9056fi
9057
9058
9059 as_lineno_1=$LINENO
9060 as_lineno_2=$LINENO
9061 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9062 test "x$as_lineno_1" != "x$as_lineno_2" &&
9063 test "x$as_lineno_3" = "x$as_lineno_2" || {
9064 # Find who we are. Look in the path if we contain no path at all
9065 # relative or not.
9066 case $0 in
9067 *[\\/]* ) as_myself=$0 ;;
9068 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069for as_dir in $PATH
9070do
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
9073 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9074done
9075
9076 ;;
9077 esac
9078 # We did not find ourselves, most probably we were run as `sh COMMAND'
9079 # in which case we are not to be found in the path.
9080 if test "x$as_myself" = x; then
9081 as_myself=$0
9082 fi
9083 if test ! -f "$as_myself"; then
9084 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9085echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9086 { (exit 1); exit 1; }; }
9087 fi
9088 case $CONFIG_SHELL in
9089 '')
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9092do
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
9095 for as_base in sh bash ksh sh5; do
9096 case $as_dir in
9097 /*)
9098 if ("$as_dir/$as_base" -c '
9099 as_lineno_1=$LINENO
9100 as_lineno_2=$LINENO
9101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9102 test "x$as_lineno_1" != "x$as_lineno_2" &&
9103 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9104 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9105 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9106 CONFIG_SHELL=$as_dir/$as_base
9107 export CONFIG_SHELL
9108 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9109 fi;;
9110 esac
9111 done
9112done
9113;;
9114 esac
9115
9116 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9117 # uniformly replaced by the line number. The first 'sed' inserts a
9118 # line-number line before each line; the second 'sed' does the real
9119 # work. The second script uses 'N' to pair each line-number line
9120 # with the numbered line, and appends trailing '-' during
9121 # substitution so that $LINENO is not a special case at line end.
9122 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9123 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9124 sed '=' <$as_myself |
9125 sed '
9126 N
9127 s,$,-,
9128 : loop
9129 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9130 t loop
9131 s,-$,,
9132 s,^['$as_cr_digits']*\n,,
9133 ' >$as_me.lineno &&
9134 chmod +x $as_me.lineno ||
9135 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9136echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9137 { (exit 1); exit 1; }; }
9138
9139 # Don't try to exec as it changes $[0], causing all sort of problems
9140 # (the dirname of $[0] is not the place where we might find the
9141 # original and so on. Autoconf is especially sensible to this).
9142 . ./$as_me.lineno
9143 # Exit status is that of the last command.
9144 exit
9145}
9146
9147
9148case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9149 *c*,-n*) ECHO_N= ECHO_C='
9150' ECHO_T=' ' ;;
9151 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9152 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9153esac
9154
9155if expr a : '\(a\)' >/dev/null 2>&1; then
9156 as_expr=expr
9157else
9158 as_expr=false
9159fi
9160
9161rm -f conf$$ conf$$.exe conf$$.file
9162echo >conf$$.file
9163if ln -s conf$$.file conf$$ 2>/dev/null; then
9164 # We could just check for DJGPP; but this test a) works b) is more generic
9165 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9166 if test -f conf$$.exe; then
9167 # Don't use ln at all; we don't have any links
9168 as_ln_s='cp -p'
9169 else
9170 as_ln_s='ln -s'
9171 fi
9172elif ln conf$$.file conf$$ 2>/dev/null; then
9173 as_ln_s=ln
9174else
9175 as_ln_s='cp -p'
9176fi
9177rm -f conf$$ conf$$.exe conf$$.file
9178
9179if mkdir -p . 2>/dev/null; then
9180 as_mkdir_p=:
9181else
9182 test -d ./-p && rmdir ./-p
9183 as_mkdir_p=false
9184fi
9185
9186as_executable_p="test -f"
9187
9188# Sed expression to map a string onto a valid CPP name.
9189as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9190
9191# Sed expression to map a string onto a valid variable name.
9192as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9193
9194
9195# IFS
9196# We need space, tab and new line, in precisely that order.
9197as_nl='
9198'
9199IFS=" $as_nl"
9200
9201# CDPATH.
9202$as_unset CDPATH
9203
9204exec 6>&1
9205
9206# Open the log real soon, to keep \$[0] and so on meaningful, and to
9207# report actual input values of CONFIG_FILES etc. instead of their
9208# values after options handling. Logging --version etc. is OK.
9209exec 5>>config.log
9210{
9211 echo
9212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9213## Running $as_me. ##
9214_ASBOX
9215} >&5
9216cat >&5 <<_CSEOF
9217
9218This file was extended by $as_me, which was
9219generated by GNU Autoconf 2.59. Invocation command line was
9220
9221 CONFIG_FILES = $CONFIG_FILES
9222 CONFIG_HEADERS = $CONFIG_HEADERS
9223 CONFIG_LINKS = $CONFIG_LINKS
9224 CONFIG_COMMANDS = $CONFIG_COMMANDS
9225 $ $0 $@
9226
9227_CSEOF
9228echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9229echo >&5
9230_ACEOF
9231
9232# Files that config.status was made for.
9233if test -n "$ac_config_files"; then
9234 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9235fi
9236
9237if test -n "$ac_config_headers"; then
9238 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9239fi
9240
9241if test -n "$ac_config_links"; then
9242 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9243fi
9244
9245if test -n "$ac_config_commands"; then
9246 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9247fi
9248
9249cat >>$CONFIG_STATUS <<\_ACEOF
9250
9251ac_cs_usage="\
9252\`$as_me' instantiates files from templates according to the
9253current configuration.
9254
9255Usage: $0 [OPTIONS] [FILE]...
9256
9257 -h, --help print this help, then exit
9258 -V, --version print version number, then exit
9259 -q, --quiet do not print progress messages
9260 -d, --debug don't remove temporary files
9261 --recheck update $as_me by reconfiguring in the same conditions
9262 --file=FILE[:TEMPLATE]
9263 instantiate the configuration file FILE
9264 --header=FILE[:TEMPLATE]
9265 instantiate the configuration header FILE
9266
9267Configuration files:
9268$config_files
9269
9270Configuration headers:
9271$config_headers
9272
9273Configuration commands:
9274$config_commands
9275
9276Report bugs to <bug-autoconf@gnu.org>."
9277_ACEOF
9278
9279cat >>$CONFIG_STATUS <<_ACEOF
9280ac_cs_version="\\
9281config.status
9282configured by $0, generated by GNU Autoconf 2.59,
9283 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9284
9285Copyright (C) 2003 Free Software Foundation, Inc.
9286This config.status script is free software; the Free Software Foundation
9287gives unlimited permission to copy, distribute and modify it."
9288srcdir=$srcdir
9289INSTALL="$INSTALL"
9290_ACEOF
9291
9292cat >>$CONFIG_STATUS <<\_ACEOF
9293# If no file are specified by the user, then we need to provide default
9294# value. By we need to know if files were specified by the user.
9295ac_need_defaults=:
9296while test $# != 0
9297do
9298 case $1 in
9299 --*=*)
9300 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9301 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9302 ac_shift=:
9303 ;;
9304 -*)
9305 ac_option=$1
9306 ac_optarg=$2
9307 ac_shift=shift
9308 ;;
9309 *) # This is not an option, so the user has probably given explicit
9310 # arguments.
9311 ac_option=$1
9312 ac_need_defaults=false;;
9313 esac
9314
9315 case $ac_option in
9316 # Handling of the options.
9317_ACEOF
9318cat >>$CONFIG_STATUS <<\_ACEOF
9319 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9320 ac_cs_recheck=: ;;
9321 --version | --vers* | -V )
9322 echo "$ac_cs_version"; exit 0 ;;
9323 --he | --h)
9324 # Conflict between --help and --header
9325 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9326Try \`$0 --help' for more information." >&5
9327echo "$as_me: error: ambiguous option: $1
9328Try \`$0 --help' for more information." >&2;}
9329 { (exit 1); exit 1; }; };;
9330 --help | --hel | -h )
9331 echo "$ac_cs_usage"; exit 0 ;;
9332 --debug | --d* | -d )
9333 debug=: ;;
9334 --file | --fil | --fi | --f )
9335 $ac_shift
9336 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9337 ac_need_defaults=false;;
9338 --header | --heade | --head | --hea )
9339 $ac_shift
9340 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9341 ac_need_defaults=false;;
9342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9344 ac_cs_silent=: ;;
9345
9346 # This is an error.
9347 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9348Try \`$0 --help' for more information." >&5
9349echo "$as_me: error: unrecognized option: $1
9350Try \`$0 --help' for more information." >&2;}
9351 { (exit 1); exit 1; }; } ;;
9352
9353 *) ac_config_targets="$ac_config_targets $1" ;;
9354
9355 esac
9356 shift
9357done
9358
9359ac_configure_extra_args=
9360
9361if $ac_cs_silent; then
9362 exec 6>/dev/null
9363 ac_configure_extra_args="$ac_configure_extra_args --silent"
9364fi
9365
9366_ACEOF
9367cat >>$CONFIG_STATUS <<_ACEOF
9368if \$ac_cs_recheck; then
9369 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9370 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9371fi
9372
9373_ACEOF
9374
9375cat >>$CONFIG_STATUS <<_ACEOF
9376#
9377# INIT-COMMANDS section.
9378#
9379
9380AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9381
9382
9383_ACEOF
9384
9385
9386
9387cat >>$CONFIG_STATUS <<\_ACEOF
9388for ac_config_target in $ac_config_targets
9389do
9390 case "$ac_config_target" in
9391 # Handling of arguments.
9392 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9393 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9394 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9395 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9396 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9397 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9398echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9399 { (exit 1); exit 1; }; };;
9400 esac
9401done
9402
9403# If the user did not use the arguments to specify the items to instantiate,
9404# then the envvar interface is used. Set only those that are not.
9405# We use the long form for the default assignment because of an extremely
9406# bizarre bug on SunOS 4.1.3.
9407if $ac_need_defaults; then
9408 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9409 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9410 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9411fi
9412
9413# Have a temporary directory for convenience. Make it in the build tree
9414# simply because there is no reason to put it here, and in addition,
9415# creating and moving files from /tmp can sometimes cause problems.
9416# Create a temporary directory, and hook for its removal unless debugging.
9417$debug ||
9418{
9419 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9420 trap '{ (exit 1); exit 1; }' 1 2 13 15
9421}
9422
9423# Create a (secure) tmp directory for tmp files.
9424
9425{
9426 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9427 test -n "$tmp" && test -d "$tmp"
9428} ||
9429{
9430 tmp=./confstat$$-$RANDOM
9431 (umask 077 && mkdir $tmp)
9432} ||
9433{
9434 echo "$me: cannot create a temporary directory in ." >&2
9435 { (exit 1); exit 1; }
9436}
9437
9438_ACEOF
9439
9440cat >>$CONFIG_STATUS <<_ACEOF
9441
9442#
9443# CONFIG_FILES section.
9444#
9445
9446# No need to generate the scripts if there are no CONFIG_FILES.
9447# This happens for instance when ./config.status config.h
9448if test -n "\$CONFIG_FILES"; then
9449 # Protect against being on the right side of a sed subst in config.status.
9450 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9451 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9452s,@SHELL@,$SHELL,;t t
9453s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9454s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9455s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9456s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9457s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9458s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9459s,@exec_prefix@,$exec_prefix,;t t
9460s,@prefix@,$prefix,;t t
9461s,@program_transform_name@,$program_transform_name,;t t
9462s,@bindir@,$bindir,;t t
9463s,@sbindir@,$sbindir,;t t
9464s,@libexecdir@,$libexecdir,;t t
9465s,@datadir@,$datadir,;t t
9466s,@sysconfdir@,$sysconfdir,;t t
9467s,@sharedstatedir@,$sharedstatedir,;t t
9468s,@localstatedir@,$localstatedir,;t t
9469s,@libdir@,$libdir,;t t
9470s,@includedir@,$includedir,;t t
9471s,@oldincludedir@,$oldincludedir,;t t
9472s,@infodir@,$infodir,;t t
9473s,@mandir@,$mandir,;t t
9474s,@build_alias@,$build_alias,;t t
9475s,@host_alias@,$host_alias,;t t
9476s,@target_alias@,$target_alias,;t t
9477s,@DEFS@,$DEFS,;t t
9478s,@ECHO_C@,$ECHO_C,;t t
9479s,@ECHO_N@,$ECHO_N,;t t
9480s,@ECHO_T@,$ECHO_T,;t t
9481s,@LIBS@,$LIBS,;t t
9482s,@build@,$build,;t t
9483s,@build_cpu@,$build_cpu,;t t
9484s,@build_vendor@,$build_vendor,;t t
9485s,@build_os@,$build_os,;t t
9486s,@host@,$host,;t t
9487s,@host_cpu@,$host_cpu,;t t
9488s,@host_vendor@,$host_vendor,;t t
9489s,@host_os@,$host_os,;t t
9490s,@target@,$target,;t t
9491s,@target_cpu@,$target_cpu,;t t
9492s,@target_vendor@,$target_vendor,;t t
9493s,@target_os@,$target_os,;t t
9494s,@CC@,$CC,;t t
9495s,@CFLAGS@,$CFLAGS,;t t
9496s,@LDFLAGS@,$LDFLAGS,;t t
9497s,@CPPFLAGS@,$CPPFLAGS,;t t
9498s,@ac_ct_CC@,$ac_ct_CC,;t t
9499s,@EXEEXT@,$EXEEXT,;t t
9500s,@OBJEXT@,$OBJEXT,;t t
9501s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9502s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9503s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9504s,@CYGPATH_W@,$CYGPATH_W,;t t
9505s,@PACKAGE@,$PACKAGE,;t t
9506s,@VERSION@,$VERSION,;t t
9507s,@ACLOCAL@,$ACLOCAL,;t t
9508s,@AUTOCONF@,$AUTOCONF,;t t
9509s,@AUTOMAKE@,$AUTOMAKE,;t t
9510s,@AUTOHEADER@,$AUTOHEADER,;t t
9511s,@MAKEINFO@,$MAKEINFO,;t t
9512s,@install_sh@,$install_sh,;t t
9513s,@STRIP@,$STRIP,;t t
9514s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9515s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9516s,@mkdir_p@,$mkdir_p,;t t
9517s,@AWK@,$AWK,;t t
9518s,@SET_MAKE@,$SET_MAKE,;t t
9519s,@am__leading_dot@,$am__leading_dot,;t t
9520s,@AMTAR@,$AMTAR,;t t
9521s,@am__tar@,$am__tar,;t t
9522s,@am__untar@,$am__untar,;t t
9523s,@DEPDIR@,$DEPDIR,;t t
9524s,@am__include@,$am__include,;t t
9525s,@am__quote@,$am__quote,;t t
9526s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9527s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9528s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9529s,@CCDEPMODE@,$CCDEPMODE,;t t
9530s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9531s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9532s,@AR@,$AR,;t t
9533s,@ac_ct_AR@,$ac_ct_AR,;t t
9534s,@RANLIB@,$RANLIB,;t t
9535s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9536s,@LN_S@,$LN_S,;t t
9537s,@LIBTOOL@,$LIBTOOL,;t t
9538s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9539s,@NO_WERROR@,$NO_WERROR,;t t
9540s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9541s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9542s,@MAINT@,$MAINT,;t t
9543s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
9544s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
9545s,@host_noncanonical@,$host_noncanonical,;t t
9546s,@target_noncanonical@,$target_noncanonical,;t t
9547s,@bfdlibdir@,$bfdlibdir,;t t
9548s,@bfdincludedir@,$bfdincludedir,;t t
9549s,@CPP@,$CPP,;t t
9550s,@EGREP@,$EGREP,;t t
9551s,@ALLOCA@,$ALLOCA,;t t
9552s,@USE_NLS@,$USE_NLS,;t t
9553s,@MSGFMT@,$MSGFMT,;t t
9554s,@GMSGFMT@,$GMSGFMT,;t t
9555s,@XGETTEXT@,$XGETTEXT,;t t
9556s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9557s,@CATALOGS@,$CATALOGS,;t t
9558s,@CATOBJEXT@,$CATOBJEXT,;t t
9559s,@DATADIRNAME@,$DATADIRNAME,;t t
9560s,@GMOFILES@,$GMOFILES,;t t
9561s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9562s,@INTLDEPS@,$INTLDEPS,;t t
9563s,@INTLLIBS@,$INTLLIBS,;t t
9564s,@INTLOBJS@,$INTLOBJS,;t t
9565s,@POFILES@,$POFILES,;t t
9566s,@POSUB@,$POSUB,;t t
9567s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9568s,@GT_NO@,$GT_NO,;t t
9569s,@GT_YES@,$GT_YES,;t t
9570s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9571s,@l@,$l,;t t
9572s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9573s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
9574s,@HDEFINES@,$HDEFINES,;t t
9575s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
9576s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
9577s,@cgendir@,$cgendir,;t t
9578s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
9579s,@WIN32LIBADD@,$WIN32LIBADD,;t t
9580s,@archdefs@,$archdefs,;t t
9581s,@BFD_MACHINES@,$BFD_MACHINES,;t t
9582s,@LIBOBJS@,$LIBOBJS,;t t
9583s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9584CEOF
9585
9586_ACEOF
9587
9588 cat >>$CONFIG_STATUS <<\_ACEOF
9589 # Split the substitutions into bite-sized pieces for seds with
9590 # small command number limits, like on Digital OSF/1 and HP-UX.
9591 ac_max_sed_lines=48
9592 ac_sed_frag=1 # Number of current file.
9593 ac_beg=1 # First line for current file.
9594 ac_end=$ac_max_sed_lines # Line after last line for current file.
9595 ac_more_lines=:
9596 ac_sed_cmds=
9597 while $ac_more_lines; do
9598 if test $ac_beg -gt 1; then
9599 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9600 else
9601 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9602 fi
9603 if test ! -s $tmp/subs.frag; then
9604 ac_more_lines=false
9605 else
9606 # The purpose of the label and of the branching condition is to
9607 # speed up the sed processing (if there are no `@' at all, there
9608 # is no need to browse any of the substitutions).
9609 # These are the two extra sed commands mentioned above.
9610 (echo ':t
9611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9612 if test -z "$ac_sed_cmds"; then
9613 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9614 else
9615 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9616 fi
9617 ac_sed_frag=`expr $ac_sed_frag + 1`
9618 ac_beg=$ac_end
9619 ac_end=`expr $ac_end + $ac_max_sed_lines`
9620 fi
9621 done
9622 if test -z "$ac_sed_cmds"; then
9623 ac_sed_cmds=cat
9624 fi
9625fi # test -n "$CONFIG_FILES"
9626
9627_ACEOF
9628cat >>$CONFIG_STATUS <<\_ACEOF
9629for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9631 case $ac_file in
9632 - | *:- | *:-:* ) # input from stdin
9633 cat >$tmp/stdin
9634 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9635 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9636 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9637 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9638 * ) ac_file_in=$ac_file.in ;;
9639 esac
9640
9641 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9642 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9643$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9644 X"$ac_file" : 'X\(//\)[^/]' \| \
9645 X"$ac_file" : 'X\(//\)$' \| \
9646 X"$ac_file" : 'X\(/\)' \| \
9647 . : '\(.\)' 2>/dev/null ||
9648echo X"$ac_file" |
9649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9651 /^X\(\/\/\)$/{ s//\1/; q; }
9652 /^X\(\/\).*/{ s//\1/; q; }
9653 s/.*/./; q'`
9654 { if $as_mkdir_p; then
9655 mkdir -p "$ac_dir"
9656 else
9657 as_dir="$ac_dir"
9658 as_dirs=
9659 while test ! -d "$as_dir"; do
9660 as_dirs="$as_dir $as_dirs"
9661 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9662$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9663 X"$as_dir" : 'X\(//\)[^/]' \| \
9664 X"$as_dir" : 'X\(//\)$' \| \
9665 X"$as_dir" : 'X\(/\)' \| \
9666 . : '\(.\)' 2>/dev/null ||
9667echo X"$as_dir" |
9668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9670 /^X\(\/\/\)$/{ s//\1/; q; }
9671 /^X\(\/\).*/{ s//\1/; q; }
9672 s/.*/./; q'`
9673 done
9674 test ! -n "$as_dirs" || mkdir $as_dirs
9675 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9676echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9677 { (exit 1); exit 1; }; }; }
9678
9679 ac_builddir=.
9680
9681if test "$ac_dir" != .; then
9682 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9683 # A "../" for each directory in $ac_dir_suffix.
9684 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9685else
9686 ac_dir_suffix= ac_top_builddir=
9687fi
9688
9689case $srcdir in
9690 .) # No --srcdir option. We are building in place.
9691 ac_srcdir=.
9692 if test -z "$ac_top_builddir"; then
9693 ac_top_srcdir=.
9694 else
9695 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9696 fi ;;
9697 [\\/]* | ?:[\\/]* ) # Absolute path.
9698 ac_srcdir=$srcdir$ac_dir_suffix;
9699 ac_top_srcdir=$srcdir ;;
9700 *) # Relative path.
9701 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9702 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9703esac
9704
9705# Do not use `cd foo && pwd` to compute absolute paths, because
9706# the directories may not exist.
9707case `pwd` in
9708.) ac_abs_builddir="$ac_dir";;
9709*)
9710 case "$ac_dir" in
9711 .) ac_abs_builddir=`pwd`;;
9712 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9713 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9714 esac;;
9715esac
9716case $ac_abs_builddir in
9717.) ac_abs_top_builddir=${ac_top_builddir}.;;
9718*)
9719 case ${ac_top_builddir}. in
9720 .) ac_abs_top_builddir=$ac_abs_builddir;;
9721 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9722 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9723 esac;;
9724esac
9725case $ac_abs_builddir in
9726.) ac_abs_srcdir=$ac_srcdir;;
9727*)
9728 case $ac_srcdir in
9729 .) ac_abs_srcdir=$ac_abs_builddir;;
9730 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9731 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9732 esac;;
9733esac
9734case $ac_abs_builddir in
9735.) ac_abs_top_srcdir=$ac_top_srcdir;;
9736*)
9737 case $ac_top_srcdir in
9738 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9739 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9740 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9741 esac;;
9742esac
9743
9744
9745 case $INSTALL in
9746 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9747 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9748 esac
9749
9750 if test x"$ac_file" != x-; then
9751 { echo "$as_me:$LINENO: creating $ac_file" >&5
9752echo "$as_me: creating $ac_file" >&6;}
9753 rm -f "$ac_file"
9754 fi
9755 # Let's still pretend it is `configure' which instantiates (i.e., don't
9756 # use $as_me), people would be surprised to read:
9757 # /* config.h. Generated by config.status. */
9758 if test x"$ac_file" = x-; then
9759 configure_input=
9760 else
9761 configure_input="$ac_file. "
9762 fi
9763 configure_input=$configure_input"Generated from `echo $ac_file_in |
9764 sed 's,.*/,,'` by configure."
9765
9766 # First look for the input files in the build tree, otherwise in the
9767 # src tree.
9768 ac_file_inputs=`IFS=:
9769 for f in $ac_file_in; do
9770 case $f in
9771 -) echo $tmp/stdin ;;
9772 [\\/$]*)
9773 # Absolute (can't be DOS-style, as IFS=:)
9774 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9775echo "$as_me: error: cannot find input file: $f" >&2;}
9776 { (exit 1); exit 1; }; }
9777 echo "$f";;
9778 *) # Relative
9779 if test -f "$f"; then
9780 # Build tree
9781 echo "$f"
9782 elif test -f "$srcdir/$f"; then
9783 # Source tree
9784 echo "$srcdir/$f"
9785 else
9786 # /dev/null tree
9787 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9788echo "$as_me: error: cannot find input file: $f" >&2;}
9789 { (exit 1); exit 1; }; }
9790 fi;;
9791 esac
9792 done` || { (exit 1); exit 1; }
9793_ACEOF
9794cat >>$CONFIG_STATUS <<_ACEOF
9795 sed "$ac_vpsub
9796$extrasub
9797_ACEOF
9798cat >>$CONFIG_STATUS <<\_ACEOF
9799:t
9800/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9801s,@configure_input@,$configure_input,;t t
9802s,@srcdir@,$ac_srcdir,;t t
9803s,@abs_srcdir@,$ac_abs_srcdir,;t t
9804s,@top_srcdir@,$ac_top_srcdir,;t t
9805s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9806s,@builddir@,$ac_builddir,;t t
9807s,@abs_builddir@,$ac_abs_builddir,;t t
9808s,@top_builddir@,$ac_top_builddir,;t t
9809s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9810s,@INSTALL@,$ac_INSTALL,;t t
9811" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9812 rm -f $tmp/stdin
9813 if test x"$ac_file" != x-; then
9814 mv $tmp/out $ac_file
9815 else
9816 cat $tmp/out
9817 rm -f $tmp/out
9818 fi
9819
9820done
9821_ACEOF
9822cat >>$CONFIG_STATUS <<\_ACEOF
9823
9824#
9825# CONFIG_HEADER section.
9826#
9827
9828# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9829# NAME is the cpp macro being defined and VALUE is the value it is being given.
9830#
9831# ac_d sets the value in "#define NAME VALUE" lines.
9832ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9833ac_dB='[ ].*$,\1#\2'
9834ac_dC=' '
9835ac_dD=',;t'
9836# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9837ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9838ac_uB='$,\1#\2define\3'
9839ac_uC=' '
9840ac_uD=',;t'
9841
9842for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9843 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9844 case $ac_file in
9845 - | *:- | *:-:* ) # input from stdin
9846 cat >$tmp/stdin
9847 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9848 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9849 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9851 * ) ac_file_in=$ac_file.in ;;
9852 esac
9853
9854 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9855echo "$as_me: creating $ac_file" >&6;}
9856
9857 # First look for the input files in the build tree, otherwise in the
9858 # src tree.
9859 ac_file_inputs=`IFS=:
9860 for f in $ac_file_in; do
9861 case $f in
9862 -) echo $tmp/stdin ;;
9863 [\\/$]*)
9864 # Absolute (can't be DOS-style, as IFS=:)
9865 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9866echo "$as_me: error: cannot find input file: $f" >&2;}
9867 { (exit 1); exit 1; }; }
9868 # Do quote $f, to prevent DOS paths from being IFS'd.
9869 echo "$f";;
9870 *) # Relative
9871 if test -f "$f"; then
9872 # Build tree
9873 echo "$f"
9874 elif test -f "$srcdir/$f"; then
9875 # Source tree
9876 echo "$srcdir/$f"
9877 else
9878 # /dev/null tree
9879 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9880echo "$as_me: error: cannot find input file: $f" >&2;}
9881 { (exit 1); exit 1; }; }
9882 fi;;
9883 esac
9884 done` || { (exit 1); exit 1; }
9885 # Remove the trailing spaces.
9886 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9887
9888_ACEOF
9889
9890# Transform confdefs.h into two sed scripts, `conftest.defines' and
9891# `conftest.undefs', that substitutes the proper values into
9892# config.h.in to produce config.h. The first handles `#define'
9893# templates, and the second `#undef' templates.
9894# And first: Protect against being on the right side of a sed subst in
9895# config.status. Protect against being in an unquoted here document
9896# in config.status.
9897rm -f conftest.defines conftest.undefs
9898# Using a here document instead of a string reduces the quoting nightmare.
9899# Putting comments in sed scripts is not portable.
9900#
9901# `end' is used to avoid that the second main sed command (meant for
9902# 0-ary CPP macros) applies to n-ary macro definitions.
9903# See the Autoconf documentation for `clear'.
9904cat >confdef2sed.sed <<\_ACEOF
9905s/[\\&,]/\\&/g
9906s,[\\$`],\\&,g
9907t clear
9908: clear
9909s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9910t end
9911s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9912: end
9913_ACEOF
9914# If some macros were called several times there might be several times
9915# the same #defines, which is useless. Nevertheless, we may not want to
9916# sort them, since we want the *last* AC-DEFINE to be honored.
9917uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9918sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9919rm -f confdef2sed.sed
9920
9921# This sed command replaces #undef with comments. This is necessary, for
9922# example, in the case of _POSIX_SOURCE, which is predefined and required
9923# on some systems where configure will not decide to define it.
9924cat >>conftest.undefs <<\_ACEOF
9925s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9926_ACEOF
9927
9928# Break up conftest.defines because some shells have a limit on the size
9929# of here documents, and old seds have small limits too (100 cmds).
9930echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9931echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9932echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9933echo ' :' >>$CONFIG_STATUS
9934rm -f conftest.tail
9935while grep . conftest.defines >/dev/null
9936do
9937 # Write a limited-size here document to $tmp/defines.sed.
9938 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9939 # Speed up: don't consider the non `#define' lines.
9940 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9941 # Work around the forget-to-reset-the-flag bug.
9942 echo 't clr' >>$CONFIG_STATUS
9943 echo ': clr' >>$CONFIG_STATUS
9944 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9945 echo 'CEOF
9946 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9947 rm -f $tmp/in
9948 mv $tmp/out $tmp/in
9949' >>$CONFIG_STATUS
9950 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9951 rm -f conftest.defines
9952 mv conftest.tail conftest.defines
9953done
9954rm -f conftest.defines
9955echo ' fi # grep' >>$CONFIG_STATUS
9956echo >>$CONFIG_STATUS
9957
9958# Break up conftest.undefs because some shells have a limit on the size
9959# of here documents, and old seds have small limits too (100 cmds).
9960echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9961rm -f conftest.tail
9962while grep . conftest.undefs >/dev/null
9963do
9964 # Write a limited-size here document to $tmp/undefs.sed.
9965 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9966 # Speed up: don't consider the non `#undef'
9967 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9968 # Work around the forget-to-reset-the-flag bug.
9969 echo 't clr' >>$CONFIG_STATUS
9970 echo ': clr' >>$CONFIG_STATUS
9971 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9972 echo 'CEOF
9973 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9974 rm -f $tmp/in
9975 mv $tmp/out $tmp/in
9976' >>$CONFIG_STATUS
9977 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9978 rm -f conftest.undefs
9979 mv conftest.tail conftest.undefs
9980done
9981rm -f conftest.undefs
9982
9983cat >>$CONFIG_STATUS <<\_ACEOF
9984 # Let's still pretend it is `configure' which instantiates (i.e., don't
9985 # use $as_me), people would be surprised to read:
9986 # /* config.h. Generated by config.status. */
9987 if test x"$ac_file" = x-; then
9988 echo "/* Generated by configure. */" >$tmp/config.h
9989 else
9990 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9991 fi
9992 cat $tmp/in >>$tmp/config.h
9993 rm -f $tmp/in
9994 if test x"$ac_file" != x-; then
9995 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9996 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9997echo "$as_me: $ac_file is unchanged" >&6;}
9998 else
9999 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10000$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10001 X"$ac_file" : 'X\(//\)[^/]' \| \
10002 X"$ac_file" : 'X\(//\)$' \| \
10003 X"$ac_file" : 'X\(/\)' \| \
10004 . : '\(.\)' 2>/dev/null ||
10005echo X"$ac_file" |
10006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10008 /^X\(\/\/\)$/{ s//\1/; q; }
10009 /^X\(\/\).*/{ s//\1/; q; }
10010 s/.*/./; q'`
10011 { if $as_mkdir_p; then
10012 mkdir -p "$ac_dir"
10013 else
10014 as_dir="$ac_dir"
10015 as_dirs=
10016 while test ! -d "$as_dir"; do
10017 as_dirs="$as_dir $as_dirs"
10018 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10019$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10020 X"$as_dir" : 'X\(//\)[^/]' \| \
10021 X"$as_dir" : 'X\(//\)$' \| \
10022 X"$as_dir" : 'X\(/\)' \| \
10023 . : '\(.\)' 2>/dev/null ||
10024echo X"$as_dir" |
10025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10027 /^X\(\/\/\)$/{ s//\1/; q; }
10028 /^X\(\/\).*/{ s//\1/; q; }
10029 s/.*/./; q'`
10030 done
10031 test ! -n "$as_dirs" || mkdir $as_dirs
10032 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10033echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10034 { (exit 1); exit 1; }; }; }
10035
10036 rm -f $ac_file
10037 mv $tmp/config.h $ac_file
10038 fi
10039 else
10040 cat $tmp/config.h
10041 rm -f $tmp/config.h
10042 fi
10043# Compute $ac_file's index in $config_headers.
10044_am_stamp_count=1
10045for _am_header in $config_headers :; do
10046 case $_am_header in
10047 $ac_file | $ac_file:* )
10048 break ;;
10049 * )
10050 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10051 esac
10052done
10053echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10054$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10055 X$ac_file : 'X\(//\)[^/]' \| \
10056 X$ac_file : 'X\(//\)$' \| \
10057 X$ac_file : 'X\(/\)' \| \
10058 . : '\(.\)' 2>/dev/null ||
10059echo X$ac_file |
10060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10062 /^X\(\/\/\)$/{ s//\1/; q; }
10063 /^X\(\/\).*/{ s//\1/; q; }
10064 s/.*/./; q'`/stamp-h$_am_stamp_count
10065done
10066_ACEOF
10067cat >>$CONFIG_STATUS <<\_ACEOF
10068
10069#
10070# CONFIG_COMMANDS section.
10071#
10072for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10073 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10074 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10075 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10076$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10077 X"$ac_dest" : 'X\(//\)[^/]' \| \
10078 X"$ac_dest" : 'X\(//\)$' \| \
10079 X"$ac_dest" : 'X\(/\)' \| \
10080 . : '\(.\)' 2>/dev/null ||
10081echo X"$ac_dest" |
10082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10084 /^X\(\/\/\)$/{ s//\1/; q; }
10085 /^X\(\/\).*/{ s//\1/; q; }
10086 s/.*/./; q'`
10087 { if $as_mkdir_p; then
10088 mkdir -p "$ac_dir"
10089 else
10090 as_dir="$ac_dir"
10091 as_dirs=
10092 while test ! -d "$as_dir"; do
10093 as_dirs="$as_dir $as_dirs"
10094 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10095$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10096 X"$as_dir" : 'X\(//\)[^/]' \| \
10097 X"$as_dir" : 'X\(//\)$' \| \
10098 X"$as_dir" : 'X\(/\)' \| \
10099 . : '\(.\)' 2>/dev/null ||
10100echo X"$as_dir" |
10101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10103 /^X\(\/\/\)$/{ s//\1/; q; }
10104 /^X\(\/\).*/{ s//\1/; q; }
10105 s/.*/./; q'`
10106 done
10107 test ! -n "$as_dirs" || mkdir $as_dirs
10108 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10109echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10110 { (exit 1); exit 1; }; }; }
10111
10112 ac_builddir=.
10113
10114if test "$ac_dir" != .; then
10115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10116 # A "../" for each directory in $ac_dir_suffix.
10117 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10118else
10119 ac_dir_suffix= ac_top_builddir=
10120fi
10121
10122case $srcdir in
10123 .) # No --srcdir option. We are building in place.
10124 ac_srcdir=.
10125 if test -z "$ac_top_builddir"; then
10126 ac_top_srcdir=.
10127 else
10128 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10129 fi ;;
10130 [\\/]* | ?:[\\/]* ) # Absolute path.
10131 ac_srcdir=$srcdir$ac_dir_suffix;
10132 ac_top_srcdir=$srcdir ;;
10133 *) # Relative path.
10134 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10135 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10136esac
10137
10138# Do not use `cd foo && pwd` to compute absolute paths, because
10139# the directories may not exist.
10140case `pwd` in
10141.) ac_abs_builddir="$ac_dir";;
10142*)
10143 case "$ac_dir" in
10144 .) ac_abs_builddir=`pwd`;;
10145 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10146 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10147 esac;;
10148esac
10149case $ac_abs_builddir in
10150.) ac_abs_top_builddir=${ac_top_builddir}.;;
10151*)
10152 case ${ac_top_builddir}. in
10153 .) ac_abs_top_builddir=$ac_abs_builddir;;
10154 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10155 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10156 esac;;
10157esac
10158case $ac_abs_builddir in
10159.) ac_abs_srcdir=$ac_srcdir;;
10160*)
10161 case $ac_srcdir in
10162 .) ac_abs_srcdir=$ac_abs_builddir;;
10163 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10164 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10165 esac;;
10166esac
10167case $ac_abs_builddir in
10168.) ac_abs_top_srcdir=$ac_top_srcdir;;
10169*)
10170 case $ac_top_srcdir in
10171 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10172 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10173 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10174 esac;;
10175esac
10176
10177
10178 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10179echo "$as_me: executing $ac_dest commands" >&6;}
10180 case $ac_dest in
10181 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10182 # Strip MF so we end up with the name of the file.
10183 mf=`echo "$mf" | sed -e 's/:.*$//'`
10184 # Check whether this is an Automake generated Makefile or not.
10185 # We used to match only the files named `Makefile.in', but
10186 # some people rename them; so instead we look at the file content.
10187 # Grep'ing the first line is not enough: some people post-process
10188 # each Makefile.in and add a new line on top of each file to say so.
10189 # So let's grep whole file.
10190 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10191 dirpart=`(dirname "$mf") 2>/dev/null ||
10192$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10193 X"$mf" : 'X\(//\)[^/]' \| \
10194 X"$mf" : 'X\(//\)$' \| \
10195 X"$mf" : 'X\(/\)' \| \
10196 . : '\(.\)' 2>/dev/null ||
10197echo X"$mf" |
10198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10200 /^X\(\/\/\)$/{ s//\1/; q; }
10201 /^X\(\/\).*/{ s//\1/; q; }
10202 s/.*/./; q'`
10203 else
10204 continue
10205 fi
10206 # Extract the definition of DEPDIR, am__include, and am__quote
10207 # from the Makefile without running `make'.
10208 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10209 test -z "$DEPDIR" && continue
10210 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10211 test -z "am__include" && continue
10212 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10213 # When using ansi2knr, U may be empty or an underscore; expand it
10214 U=`sed -n 's/^U = //p' < "$mf"`
10215 # Find all dependency output files, they are included files with
10216 # $(DEPDIR) in their names. We invoke sed twice because it is the
10217 # simplest approach to changing $(DEPDIR) to its actual value in the
10218 # expansion.
10219 for file in `sed -n "
10220 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10221 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10222 # Make sure the directory exists.
10223 test -f "$dirpart/$file" && continue
10224 fdir=`(dirname "$file") 2>/dev/null ||
10225$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10226 X"$file" : 'X\(//\)[^/]' \| \
10227 X"$file" : 'X\(//\)$' \| \
10228 X"$file" : 'X\(/\)' \| \
10229 . : '\(.\)' 2>/dev/null ||
10230echo X"$file" |
10231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10233 /^X\(\/\/\)$/{ s//\1/; q; }
10234 /^X\(\/\).*/{ s//\1/; q; }
10235 s/.*/./; q'`
10236 { if $as_mkdir_p; then
10237 mkdir -p $dirpart/$fdir
10238 else
10239 as_dir=$dirpart/$fdir
10240 as_dirs=
10241 while test ! -d "$as_dir"; do
10242 as_dirs="$as_dir $as_dirs"
10243 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10244$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10245 X"$as_dir" : 'X\(//\)[^/]' \| \
10246 X"$as_dir" : 'X\(//\)$' \| \
10247 X"$as_dir" : 'X\(/\)' \| \
10248 . : '\(.\)' 2>/dev/null ||
10249echo X"$as_dir" |
10250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10252 /^X\(\/\/\)$/{ s//\1/; q; }
10253 /^X\(\/\).*/{ s//\1/; q; }
10254 s/.*/./; q'`
10255 done
10256 test ! -n "$as_dirs" || mkdir $as_dirs
10257 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10258echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10259 { (exit 1); exit 1; }; }; }
10260
10261 # echo "creating $dirpart/$file"
10262 echo '# dummy' > "$dirpart/$file"
10263 done
10264done
10265 ;;
10266 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
10267 esac
10268done
10269_ACEOF
10270
10271cat >>$CONFIG_STATUS <<\_ACEOF
10272
10273{ (exit 0); exit 0; }
10274_ACEOF
10275chmod +x $CONFIG_STATUS
10276ac_clean_files=$ac_clean_files_save
10277
10278
10279# configure is writing to config.log, and then calls config.status.
10280# config.status does its own redirection, appending to config.log.
10281# Unfortunately, on DOS this fails, as config.log is still kept open
10282# by configure, so config.status won't be able to write to it; its
10283# output is simply discarded. So we exec the FD to /dev/null,
10284# effectively closing config.log, so it can be properly (re)opened and
10285# appended to by config.status. When coming back to configure, we
10286# need to make the FD available again.
10287if test "$no_create" != yes; then
10288 ac_cs_success=:
10289 ac_config_status_args=
10290 test "$silent" = yes &&
10291 ac_config_status_args="$ac_config_status_args --quiet"
10292 exec 5>/dev/null
10293 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10294 exec 5>>config.log
10295 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10296 # would make configure fail if this is the last instruction.
10297 $ac_cs_success || { (exit 1); exit 1; }
10298fi
10299
This page took 0.067369 seconds and 4 git commands to generate.