*** empty log message ***
[deliverable/binutils-gdb.git] / opcodes / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
979273e3 3# Generated by GNU Autoconf 2.59.
252b5132 4#
979273e3 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
979273e3
NN
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`
252b5132 248
979273e3
NN
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
979273e3
NN
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
9e9b66a9 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'
979273e3 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
979273e3
NN
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
979273e3 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
979273e3
NN
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.
252b5132
RH
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
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
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
979273e3 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
979273e3 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979273e3 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
979273e3 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979273e3 377 build_alias=$ac_optarg ;;
252b5132
RH
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=*)
979273e3
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
979273e3 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
979273e3 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
979273e3
NN
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" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
979273e3 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
979273e3
NN
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"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
979273e3 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
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=*)
979273e3 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
979273e3
NN
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 ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
979273e3 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
979273e3 440 host_alias=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979273e3 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979273e3 457 libdir=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 464 libexecdir=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979273e3 478 mandir=$ac_optarg ;;
252b5132
RH
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 \
979273e3 485 | --no-cr | --no-c | -n)
252b5132
RH
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=*)
979273e3 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979273e3 504 prefix=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 511 program_prefix=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 518 program_suffix=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 535 program_transform_name=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 545 sbindir=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
979273e3 561 site=$ac_optarg ;;
1fe1f39c 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979273e3 566 srcdir=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
979273e3 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979273e3 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
979273e3
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
979273e3 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
979273e3
NN
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; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
979273e3
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
979273e3 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
979273e3 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
979273e3
NN
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" ;;
252b5132
RH
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=*)
979273e3 617 x_includes=$ac_optarg ;;
252b5132
RH
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=*)
979273e3 624 x_libraries=$ac_optarg ;;
252b5132 625
979273e3
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
979273e3
NN
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
252b5132 641 *)
979273e3
NN
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}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
979273e3
NN
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; }; }
252b5132 656fi
252b5132 657
979273e3
NN
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
252b5132 668
979273e3
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
979273e3
NN
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; }; };;
252b5132
RH
678 esac
679done
680
979273e3
NN
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
252b5132 698
979273e3
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
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.
979273e3
NN
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'`
252b5132
RH
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
979273e3
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
979273e3
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
979273e3
NN
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
252b5132 773
979273e3
NN
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.
252b5132 782
979273e3 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
979273e3
NN
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 787
979273e3 788Defaults for the options are specified in brackets.
ac48eca1 789
979273e3
NN
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]
ac48eca1 809
979273e3
NN
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'.
ac48eca1 814
979273e3 815For better control, use the options below.
ac48eca1 816
979273e3
NN
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
ac48eca1 831
979273e3 832 cat <<\_ACEOF
252b5132 833
979273e3
NN
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
252b5132 838
979273e3
NN
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
252b5132 844fi
252b5132 845
979273e3 846if test -n "$ac_init_help"; then
252b5132 847
979273e3 848 cat <<\_ACEOF
252b5132 849
979273e3
NN
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8ae85421
AM
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
979273e3
NN
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
241a6c40
AM
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings enable build-time compiler warnings
8ae85421
AM
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
979273e3
NN
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
252b5132 875
979273e3
NN
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
a2d91340 884
979273e3
NN
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
a2d91340
AC
889fi
890
979273e3
NN
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
a2d91340 905
979273e3
NN
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,/$,,'`
a2d91340 913 fi ;;
979273e3
NN
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 ;;
a2d91340
AC
920esac
921
979273e3
NN
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;;
a2d91340 932esac
979273e3
NN
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;;
a2d91340
AC
959esac
960
979273e3
NN
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
8ae85421 976 cd $ac_popdir
979273e3
NN
977 done
978fi
a2d91340 979
979273e3
NN
980test -n "$ac_init_help" && exit 0
981if $ac_init_version; then
982 cat <<\_ACEOF
252b5132 983
979273e3
NN
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.
2c73f9d8 994
979273e3
NN
995It was created by $as_me, which was
996generated by GNU Autoconf 2.59. Invocation command line was
252b5132 997
979273e3 998 $ $0 $@
252b5132 999
979273e3
NN
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
252b5132 1033
979273e3 1034} >&5
75798298 1035
979273e3 1036cat >&5 <<_ACEOF
252b5132 1037
252b5132 1038
979273e3
NN
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); } &&
8ae85421
AM
2000 { ac_try='test -z "$ac_c_werror_flag"
2001 || test ! -s conftest.err'
979273e3
NN
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); } &&
8ae85421
AM
2059 { ac_try='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
979273e3
NN
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); } &&
8ae85421
AM
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
979273e3
NN
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); } &&
8ae85421
AM
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
979273e3
NN
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); } &&
8ae85421
AM
2277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
979273e3
NN
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); } &&
8ae85421
AM
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
979273e3
NN
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
8ae85421
AM
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
979273e3
NN
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
8ae85421
AM
2368 ac_func_search_save_LIBS=$LIBS
2369ac_cv_search_strerror=no
979273e3
NN
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); } &&
8ae85421
AM
2401 { ac_try='test -z "$ac_c_werror_flag"
2402 || test ! -s conftest.err'
979273e3
NN
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
8ae85421 2414 ac_cv_search_strerror="none required"
979273e3
NN
2415else
2416 echo "$as_me: failed program was:" >&5
2417sed 's/^/| /' conftest.$ac_ext >&5
2418
979273e3
NN
2419fi
2420rm -f conftest.err conftest.$ac_objext \
2421 conftest$ac_exeext conftest.$ac_ext
8ae85421
AM
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
979273e3 2475fi
8ae85421
AM
2476rm -f conftest.err conftest.$ac_objext \
2477 conftest$ac_exeext conftest.$ac_ext
2478 done
979273e3 2479fi
8ae85421
AM
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"
979273e3 2486
8ae85421 2487fi
979273e3
NN
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
8ae85421 2495am__api_version="1.9"
979273e3
NN
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
252b5132 2506# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 2507# OS/2's system install, which has a completely different semantic
252b5132 2508# ./install, which can be erroneously created by make from ./install.sh.
979273e3
NN
2509echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2510echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2511if test -z "$INSTALL"; then
979273e3
NN
2512if test "${ac_cv_path_install+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2514else
979273e3
NN
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
252b5132 2533 if test $ac_prog = install &&
979273e3 2534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2535 # AIX install. It has an incompatible calling convention.
2536 :
979273e3
NN
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 :
252b5132 2541 else
979273e3
NN
2542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543 break 3
252b5132
RH
2544 fi
2545 fi
2546 done
979273e3
NN
2547 done
2548 ;;
2549esac
2550done
2551
252b5132
RH
2552
2553fi
2554 if test "${ac_cv_path_install+set}" = set; then
979273e3 2555 INSTALL=$ac_cv_path_install
252b5132
RH
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.
979273e3 2561 INSTALL=$ac_install_sh
252b5132
RH
2562 fi
2563fi
979273e3
NN
2564echo "$as_me:$LINENO: result: $INSTALL" >&5
2565echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
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
979273e3 2571test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2572
2573test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2574
979273e3
NN
2575echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2576echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2577# Just in case
2578sleep 1
8ae85421 2579echo timestamp > conftest.file
252b5132
RH
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 (
8ae85421 2586 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2587 if test "$*" = "X"; then
2588 # -L didn't work.
8ae85421 2589 set X `ls -t $srcdir/configure conftest.file`
252b5132 2590 fi
8ae85421
AM
2591 rm -f conftest.file
2592 if test "$*" != "X $srcdir/configure conftest.file" \
2593 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
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".
979273e3
NN
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; }; }
252b5132
RH
2604 fi
2605
8ae85421 2606 test "$2" = conftest.file
252b5132
RH
2607 )
2608then
2609 # Ok.
2610 :
2611else
979273e3
NN
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; }; }
252b5132 2617fi
979273e3
NN
2618echo "$as_me:$LINENO: result: yes" >&5
2619echo "${ECHO_T}yes" >&6
252b5132 2620test "$program_prefix" != NONE &&
979273e3 2621 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2622# Use a double $ so make ignores it.
2623test "$program_suffix" != NONE &&
979273e3
NN
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
8ae85421
AM
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
979273e3
NN
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
252b5132 2726all:
979273e3
NN
2727 @echo 'ac_maketemp="$(MAKE)"'
2728_ACEOF
252b5132 2729# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
979273e3 2730eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
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
979273e3 2736rm -f conftest.make
252b5132
RH
2737fi
2738if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
979273e3
NN
2739 echo "$as_me:$LINENO: result: yes" >&5
2740echo "${ECHO_T}yes" >&6
252b5132
RH
2741 SET_MAKE=
2742else
979273e3
NN
2743 echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6
252b5132
RH
2745 SET_MAKE="MAKE=${MAKE-make}"
2746fi
2747
8ae85421
AM
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
252b5132 2819
252b5132 2820
252b5132 2821
8ae85421
AM
2822# test to see if srcdir already configured
2823if test "`cd $srcdir && pwd`" != "`pwd`" &&
2824 test -f $srcdir/config.status; then
979273e3
NN
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; }; }
252b5132 2828fi
979273e3 2829
8ae85421
AM
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
979273e3 2845cat >>confdefs.h <<_ACEOF
252b5132 2846#define PACKAGE "$PACKAGE"
979273e3 2847_ACEOF
252b5132 2848
979273e3
NN
2849
2850cat >>confdefs.h <<_ACEOF
252b5132 2851#define VERSION "$VERSION"
979273e3 2852_ACEOF
252b5132 2853
8ae85421 2854# Some tools Automake needs.
252b5132 2855
8ae85421 2856ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
252b5132 2857
8ae85421
AM
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
252b5132 2908else
8ae85421
AM
2909 echo "$as_me:$LINENO: result: no" >&5
2910echo "${ECHO_T}no" >&6
252b5132
RH
2911fi
2912
8ae85421
AM
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
252b5132 2947else
8ae85421
AM
2948 echo "$as_me:$LINENO: result: no" >&5
2949echo "${ECHO_T}no" >&6
252b5132
RH
2950fi
2951
8ae85421 2952 STRIP=$ac_ct_STRIP
252b5132 2953else
8ae85421 2954 STRIP="$ac_cv_prog_STRIP"
252b5132
RH
2955fi
2956
8ae85421
AM
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
252b5132 2977else
8ae85421
AM
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
252b5132 3062fi
8ae85421
AM
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
252b5132 3068
8ae85421
AM
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='#'
252b5132 3074else
8ae85421
AM
3075 am__fastdepCC_TRUE='#'
3076 am__fastdepCC_FALSE=
252b5132
RH
3077fi
3078
3079
3080
8ae85421 3081
979273e3
NN
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.
252b5132 3084set dummy ${ac_tool_prefix}ar; ac_word=$2
979273e3
NN
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
252b5132
RH
3089else
3090 if test -n "$AR"; then
3091 ac_cv_prog_AR="$AR" # Let the user override the test.
3092else
979273e3
NN
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
252b5132
RH
3107fi
3108fi
979273e3 3109AR=$ac_cv_prog_AR
252b5132 3110if test -n "$AR"; then
979273e3
NN
3111 echo "$as_me:$LINENO: result: $AR" >&5
3112echo "${ECHO_T}$AR" >&6
252b5132 3113else
979273e3
NN
3114 echo "$as_me:$LINENO: result: no" >&5
3115echo "${ECHO_T}no" >&6
3116fi
3117
252b5132 3118fi
979273e3
NN
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
252b5132 3144
979273e3
NN
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
252b5132 3155
979273e3
NN
3156 AR=$ac_ct_AR
3157else
3158 AR="$ac_cv_prog_AR"
3159fi
252b5132 3160
979273e3
NN
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.
252b5132 3163set dummy ${ac_tool_prefix}ranlib; ac_word=$2
979273e3
NN
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
252b5132
RH
3168else
3169 if test -n "$RANLIB"; then
3170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3171else
979273e3
NN
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
252b5132
RH
3186fi
3187fi
979273e3 3188RANLIB=$ac_cv_prog_RANLIB
252b5132 3189if test -n "$RANLIB"; then
979273e3
NN
3190 echo "$as_me:$LINENO: result: $RANLIB" >&5
3191echo "${ECHO_T}$RANLIB" >&6
252b5132 3192else
979273e3
NN
3193 echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6
252b5132
RH
3195fi
3196
979273e3 3197fi
252b5132 3198if test -z "$ac_cv_prog_RANLIB"; then
979273e3 3199 ac_ct_RANLIB=$RANLIB
252b5132
RH
3200 # Extract the first word of "ranlib", so it can be a program name with args.
3201set dummy ranlib; ac_word=$2
979273e3
NN
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
252b5132 3206else
979273e3
NN
3207 if test -n "$ac_ct_RANLIB"; then
3208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 3209else
979273e3
NN
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=":"
252b5132
RH
3225fi
3226fi
979273e3
NN
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
252b5132 3231else
979273e3
NN
3232 echo "$as_me:$LINENO: result: no" >&5
3233echo "${ECHO_T}no" >&6
252b5132
RH
3234fi
3235
979273e3 3236 RANLIB=$ac_ct_RANLIB
252b5132 3237else
979273e3 3238 RANLIB="$ac_cv_prog_RANLIB"
252b5132
RH
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}
87e6d782 3246case $enableval in
252b5132
RH
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
979273e3 3263fi;
252b5132
RH
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}
87e6d782 3269case $enableval in
252b5132
RH
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
979273e3 3286fi;
252b5132
RH
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}
87e6d782 3291case $enableval in
252b5132
RH
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
979273e3 3308fi;
75798298 3309
252b5132
RH
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
979273e3 3316fi;
252b5132 3317ac_prog=ld
87e6d782 3318if test "$GCC" = yes; then
252b5132 3319 # Check if gcc -print-prog-name=ld gives a path.
979273e3
NN
3320 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3321echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
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
87e6d782 3329 case $ac_prog in
252b5132 3330 # Accept absolute paths.
a74801ba 3331 [\\/]* | [A-Za-z]:[\\/]*)
252b5132
RH
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
979273e3
NN
3350 echo "$as_me:$LINENO: checking for GNU ld" >&5
3351echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3352else
979273e3
NN
3353 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3354echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3355fi
979273e3
NN
3356if test "${lt_cv_path_LD+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3358else
3359 if test -z "$LD"; then
a74801ba 3360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3361 for ac_dir in $PATH; do
3362 test -z "$ac_dir" && ac_dir=.
a74801ba 3363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
87e6d782 3364 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
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.
87e6d782 3368 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
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
87e6d782 3377 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3378fi
3379fi
3380
87e6d782 3381LD="$lt_cv_path_LD"
252b5132 3382if test -n "$LD"; then
979273e3
NN
3383 echo "$as_me:$LINENO: result: $LD" >&5
3384echo "${ECHO_T}$LD" >&6
252b5132 3385else
979273e3
NN
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
252b5132 3388fi
979273e3
NN
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
252b5132
RH
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
87e6d782 3399 lt_cv_prog_gnu_ld=yes
252b5132 3400else
87e6d782 3401 lt_cv_prog_gnu_ld=no
252b5132
RH
3402fi
3403fi
979273e3
NN
3404echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3405echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
87e6d782 3406with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1
AO
3407
3408
979273e3
NN
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
ac48eca1
AO
3413else
3414 lt_cv_ld_reload_flag='-r'
3415fi
979273e3
NN
3416echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3417echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3418reload_flag=$lt_cv_ld_reload_flag
3419test -n "$reload_flag" && reload_flag=" $reload_flag"
252b5132 3420
979273e3
NN
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
252b5132
RH
3425else
3426 if test -n "$NM"; then
3427 # Let the user override the test.
87e6d782 3428 lt_cv_path_NM="$NM"
252b5132 3429else
a74801ba 3430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3431 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3432 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3433 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3434 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
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
90f2472a
AO
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
87e6d782 3440 lt_cv_path_NM="$tmp_nm -B"
252b5132 3441 break
ac48eca1 3442 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
87e6d782 3443 lt_cv_path_NM="$tmp_nm -p"
252b5132
RH
3444 break
3445 else
87e6d782 3446 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
252b5132
RH
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"
87e6d782 3452 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3453fi
3454fi
3455
87e6d782 3456NM="$lt_cv_path_NM"
979273e3
NN
3457echo "$as_me:$LINENO: result: $NM" >&5
3458echo "${ECHO_T}$NM" >&6
252b5132 3459
979273e3
NN
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
252b5132 3466else
979273e3
NN
3467 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3468echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3469fi
3470
979273e3
NN
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
ac48eca1 3475else
d64552c5 3476 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
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
87e6d782
NC
3490case $host_os in
3491aix*)
ac48eca1
AO
3492 lt_cv_deplibs_check_method=pass_all
3493 ;;
3494
3495beos*)
3496 lt_cv_deplibs_check_method=pass_all
3497 ;;
3498
3499bsdi4*)
87e6d782
NC
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'
ac48eca1
AO
3502 lt_cv_file_magic_test_file=/shlib/libc.so
3503 ;;
3504
d64552c5 3505cygwin* | mingw* |pw32*)
ac48eca1 3506 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3507 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3508 ;;
3509
87e6d782 3510darwin* | rhapsody*)
32fba81d 3511 # this will be overwritten by pass_all, but leave it in just in case
87e6d782
NC
3512 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3513 lt_cv_file_magic_cmd='/usr/bin/file -L'
3514 case "$host_os" in
3515 rhapsody* | darwin1.012)
3516 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3517 ;;
3518 *) # Darwin 1.3 on
3519 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3520 ;;
3521 esac
32fba81d 3522 lt_cv_deplibs_check_method=pass_all
87e6d782
NC
3523 ;;
3524
979273e3 3525freebsd* | kfreebsd*-gnu)
ac48eca1 3526 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
87e6d782 3527 case $host_cpu in
ac48eca1 3528 i*86 )
90f2472a
AO
3529 # Not sure whether the presence of OpenBSD here was a mistake.
3530 # Let's accept both of them until this is cleared up.
87e6d782
NC
3531 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3532 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3533 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3534 ;;
3535 esac
3536 else
3537 lt_cv_deplibs_check_method=pass_all
3538 fi
3539 ;;
3540
3541gnu*)
3542 lt_cv_deplibs_check_method=pass_all
3543 ;;
3544
87e6d782 3545hpux10.20*|hpux11*)
4867be41
DJ
3546 case $host_cpu in
3547 hppa*)
3548 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3549 lt_cv_file_magic_cmd=/usr/bin/file
3550 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3551 ;;
3552 ia64*)
3553 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3554 lt_cv_file_magic_cmd=/usr/bin/file
3555 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3556 ;;
3557 esac
ac48eca1
AO
3558 ;;
3559
3560irix5* | irix6*)
87e6d782 3561 case $host_os in
ac48eca1
AO
3562 irix5*)
3563 # this will be overridden with pass_all, but let us keep it just in case
3564 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3565 ;;
3566 *)
87e6d782 3567 case $LD in
ac48eca1
AO
3568 *-32|*"-32 ") libmagic=32-bit;;
3569 *-n32|*"-n32 ") libmagic=N32;;
3570 *-64|*"-64 ") libmagic=64-bit;;
3571 *) libmagic=never-match;;
3572 esac
3573 # this will be overridden with pass_all, but let us keep it just in case
87e6d782
NC
3574 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3575 ;;
ac48eca1
AO
3576 esac
3577 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3578 lt_cv_deplibs_check_method=pass_all
3579 ;;
3580
3581# This must be Linux ELF.
90f2472a 3582linux-gnu*)
32fba81d 3583 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
3584 ;;
3585
979273e3 3586netbsd* | knetbsd*-gnu)
87e6d782
NC
3587 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3588 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3589 else
87e6d782 3590 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1
AO
3591 fi
3592 ;;
3593
87e6d782
NC
3594newsos6)
3595 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3596 lt_cv_file_magic_cmd=/usr/bin/file
3597 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3598 ;;
3599
ac48eca1
AO
3600osf3* | osf4* | osf5*)
3601 # this will be overridden with pass_all, but let us keep it just in case
3602 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3603 lt_cv_file_magic_test_file=/shlib/libc.so
3604 lt_cv_deplibs_check_method=pass_all
3605 ;;
3606
3607sco3.2v5*)
3608 lt_cv_deplibs_check_method=pass_all
3609 ;;
3610
3611solaris*)
3612 lt_cv_deplibs_check_method=pass_all
3613 lt_cv_file_magic_test_file=/lib/libc.so
3614 ;;
3615
6be7c12c
AO
3616sysv5uw[78]* | sysv4*uw2*)
3617 lt_cv_deplibs_check_method=pass_all
3618 ;;
3619
ac48eca1 3620sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
87e6d782 3621 case $host_vendor in
ac48eca1
AO
3622 ncr)
3623 lt_cv_deplibs_check_method=pass_all
3624 ;;
3625 motorola)
87e6d782
NC
3626 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]'
3627 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
979273e3
NN
3628 ;;
3629 esac
3630 ;;
3631esac
ac48eca1 3632
979273e3
NN
3633fi
3634echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3635echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3636file_magic_cmd=$lt_cv_file_magic_cmd
3637deplibs_check_method=$lt_cv_deplibs_check_method
ac48eca1
AO
3638
3639
ac48eca1 3640
ac48eca1
AO
3641
3642# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3643
32fba81d
NC
3644# find the maximum length of command line arguments
3645echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3646echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3647if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649else
3650 i=0
3651 teststring="ABCD"
3652
3653 case $build_os in
3654 msdosdjgpp*)
3655 # On DJGPP, this test can blow up pretty badly due to problems in libc
3656 # (any single argument exceeding 2000 bytes causes a buffer overrun
3657 # during glob expansion). Even if it were fixed, the result of this
3658 # check would be larger than it should be.
3659 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3660 ;;
3661
3662 cygwin* | mingw*)
3663 # On Win9x/ME, this test blows up -- it succeeds, but takes
3664 # about 5 minutes as the teststring grows exponentially.
3665 # Worse, since 9x/ME are not pre-emptively multitasking,
3666 # you end up with a "frozen" computer, even though with patience
3667 # the test eventually succeeds (with a max line length of 256k).
3668 # Instead, let's just punt: use the minimum linelength reported by
3669 # all of the supported platforms: 8192 (on NT/2K/XP).
3670 lt_cv_sys_max_cmd_len=8192;
3671 ;;
3672
3673 amigaos*)
3674 # On AmigaOS with pdksh, this test takes hours, literally.
3675 # So we just punt and use a minimum line length of 8192.
3676 lt_cv_sys_max_cmd_len=8192;
3677 ;;
3678
3679 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3680 # This has been around since 386BSD, at least. Likely further.
3681 if test -x /sbin/sysctl; then
3682 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3683 elif test -x /usr/sbin/sysctl; then
3684 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3685 else
3686 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3687 fi
3688 # And add a safety zone
3689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3691 ;;
3692 esac
3693
3694fi
3695
3696if test -n "$lt_cv_sys_max_cmd_len" ; then
3697 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3698echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3699else
3700 echo "$as_me:$LINENO: result: none" >&5
3701echo "${ECHO_T}none" >&6
3702fi
3703
3704
ac48eca1 3705# Only perform the check for file, if the check method requires it
87e6d782 3706case $deplibs_check_method in
ac48eca1 3707file_magic*)
d64552c5 3708 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
979273e3
NN
3709 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3710echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3711if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3713else
87e6d782 3714 case $MAGIC_CMD in
ac48eca1 3715 /*)
d64552c5 3716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3717 ;;
3718 ?:/*)
d64552c5 3719 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3720 ;;
3721 *)
d64552c5 3722 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3724 ac_dummy="/usr/bin:$PATH"
3725 for ac_dir in $ac_dummy; do
3726 test -z "$ac_dir" && ac_dir=.
3727 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3728 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3729 if test -n "$file_magic_test_file"; then
87e6d782 3730 case $deplibs_check_method in
ac48eca1
AO
3731 "file_magic "*)
3732 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3734 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3735 egrep "$file_magic_regex" > /dev/null; then
3736 :
3737 else
3738 cat <<EOF 1>&2
3739
3740*** Warning: the command libtool uses to detect shared libraries,
3741*** $file_magic_cmd, produces output that libtool cannot recognize.
3742*** The result is that libtool may fail to recognize shared libraries
3743*** as such. This will affect the creation of libtool libraries that
3744*** depend on shared libraries, but programs linked with such libtool
3745*** libraries will work regardless of this problem. Nevertheless, you
3746*** may want to report the problem to your system manager and/or to
3747*** bug-libtool@gnu.org
3748
3749EOF
3750 fi ;;
3751 esac
3752 fi
3753 break
3754 fi
3755 done
3756 IFS="$ac_save_ifs"
d64552c5 3757 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3758 ;;
3759esac
3760fi
3761
d64552c5
AO
3762MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3763if test -n "$MAGIC_CMD"; then
979273e3
NN
3764 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3765echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3766else
979273e3
NN
3767 echo "$as_me:$LINENO: result: no" >&5
3768echo "${ECHO_T}no" >&6
ac48eca1
AO
3769fi
3770
d64552c5 3771if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3772 if test -n "$ac_tool_prefix"; then
979273e3
NN
3773 echo "$as_me:$LINENO: checking for file" >&5
3774echo $ECHO_N "checking for file... $ECHO_C" >&6
3775if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3777else
87e6d782 3778 case $MAGIC_CMD in
ac48eca1 3779 /*)
d64552c5 3780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3781 ;;
3782 ?:/*)
d64552c5 3783 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3784 ;;
3785 *)
d64552c5 3786 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3788 ac_dummy="/usr/bin:$PATH"
3789 for ac_dir in $ac_dummy; do
3790 test -z "$ac_dir" && ac_dir=.
3791 if test -f $ac_dir/file; then
d64552c5 3792 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3793 if test -n "$file_magic_test_file"; then
87e6d782 3794 case $deplibs_check_method in
ac48eca1
AO
3795 "file_magic "*)
3796 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3798 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3799 egrep "$file_magic_regex" > /dev/null; then
3800 :
3801 else
3802 cat <<EOF 1>&2
3803
3804*** Warning: the command libtool uses to detect shared libraries,
3805*** $file_magic_cmd, produces output that libtool cannot recognize.
3806*** The result is that libtool may fail to recognize shared libraries
3807*** as such. This will affect the creation of libtool libraries that
3808*** depend on shared libraries, but programs linked with such libtool
3809*** libraries will work regardless of this problem. Nevertheless, you
3810*** may want to report the problem to your system manager and/or to
3811*** bug-libtool@gnu.org
3812
3813EOF
3814 fi ;;
3815 esac
3816 fi
3817 break
3818 fi
3819 done
3820 IFS="$ac_save_ifs"
d64552c5 3821 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3822 ;;
3823esac
3824fi
3825
d64552c5
AO
3826MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3827if test -n "$MAGIC_CMD"; then
979273e3
NN
3828 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3829echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3830else
979273e3
NN
3831 echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6
ac48eca1
AO
3833fi
3834
3835 else
d64552c5 3836 MAGIC_CMD=:
ac48eca1
AO
3837 fi
3838fi
3839
3840 fi
3841 ;;
3842esac
3843
979273e3
NN
3844if test -n "$ac_tool_prefix"; then
3845 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3846set dummy ${ac_tool_prefix}ranlib; ac_word=$2
979273e3
NN
3847echo "$as_me:$LINENO: checking for $ac_word" >&5
3848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849if test "${ac_cv_prog_RANLIB+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3851else
3852 if test -n "$RANLIB"; then
3853 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3854else
979273e3
NN
3855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH
3857do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3865 fi
3866done
3867done
3868
ac48eca1
AO
3869fi
3870fi
979273e3 3871RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3872if test -n "$RANLIB"; then
979273e3
NN
3873 echo "$as_me:$LINENO: result: $RANLIB" >&5
3874echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3875else
979273e3
NN
3876 echo "$as_me:$LINENO: result: no" >&5
3877echo "${ECHO_T}no" >&6
ac48eca1
AO
3878fi
3879
979273e3 3880fi
ac48eca1 3881if test -z "$ac_cv_prog_RANLIB"; then
979273e3 3882 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3883 # Extract the first word of "ranlib", so it can be a program name with args.
3884set dummy ranlib; ac_word=$2
979273e3
NN
3885echo "$as_me:$LINENO: checking for $ac_word" >&5
3886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3889else
979273e3
NN
3890 if test -n "$ac_ct_RANLIB"; then
3891 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
ac48eca1 3892else
979273e3
NN
3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH
3895do
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_ac_ct_RANLIB="ranlib"
3901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3903 fi
3904done
3905done
3906
3907 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3908fi
3909fi
979273e3
NN
3910ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3911if test -n "$ac_ct_RANLIB"; then
3912 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3913echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3914else
979273e3
NN
3915 echo "$as_me:$LINENO: result: no" >&5
3916echo "${ECHO_T}no" >&6
ac48eca1
AO
3917fi
3918
979273e3 3919 RANLIB=$ac_ct_RANLIB
ac48eca1 3920else
979273e3 3921 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3922fi
3923
979273e3
NN
3924if test -n "$ac_tool_prefix"; then
3925 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3926set dummy ${ac_tool_prefix}strip; ac_word=$2
979273e3
NN
3927echo "$as_me:$LINENO: checking for $ac_word" >&5
3928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929if test "${ac_cv_prog_STRIP+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3931else
3932 if test -n "$STRIP"; then
3933 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3934else
979273e3
NN
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946done
3947done
3948
ac48eca1
AO
3949fi
3950fi
979273e3 3951STRIP=$ac_cv_prog_STRIP
ac48eca1 3952if test -n "$STRIP"; then
979273e3
NN
3953 echo "$as_me:$LINENO: result: $STRIP" >&5
3954echo "${ECHO_T}$STRIP" >&6
ac48eca1 3955else
979273e3
NN
3956 echo "$as_me:$LINENO: result: no" >&5
3957echo "${ECHO_T}no" >&6
ac48eca1
AO
3958fi
3959
979273e3 3960fi
ac48eca1 3961if test -z "$ac_cv_prog_STRIP"; then
979273e3 3962 ac_ct_STRIP=$STRIP
ac48eca1
AO
3963 # Extract the first word of "strip", so it can be a program name with args.
3964set dummy strip; ac_word=$2
979273e3
NN
3965echo "$as_me:$LINENO: checking for $ac_word" >&5
3966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3969else
979273e3
NN
3970 if test -n "$ac_ct_STRIP"; then
3971 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3972else
979273e3
NN
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_ac_ct_STRIP="strip"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984done
3985done
3986
3987 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3988fi
3989fi
979273e3
NN
3990ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3991if test -n "$ac_ct_STRIP"; then
3992 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3993echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3994else
979273e3
NN
3995 echo "$as_me:$LINENO: result: no" >&5
3996echo "${ECHO_T}no" >&6
ac48eca1
AO
3997fi
3998
979273e3 3999 STRIP=$ac_ct_STRIP
ac48eca1 4000else
979273e3 4001 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
4002fi
4003
252b5132
RH
4004
4005# Check for any special flags to pass to ltconfig.
4006libtool_flags="--cache-file=$cache_file"
4007test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4008test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4009test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
87e6d782
NC
4010test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4011test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 4012
a74801ba
ILT
4013
4014# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4015if test "${enable_libtool_lock+set}" = set; then
4016 enableval="$enable_libtool_lock"
a74801ba 4017
979273e3 4018fi;
a74801ba
ILT
4019test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4020test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4021
979273e3 4022
ac48eca1
AO
4023# Check whether --with-pic or --without-pic was given.
4024if test "${with_pic+set}" = set; then
4025 withval="$with_pic"
4026 pic_mode="$withval"
4027else
4028 pic_mode=default
979273e3 4029fi;
ac48eca1
AO
4030test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4031test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4032
252b5132
RH
4033# Some flags need to be propagated to the compiler or linker for good
4034# libtool support.
87e6d782 4035case $host in
252b5132
RH
4036*-*-irix6*)
4037 # Find out which ABI we are using.
32fba81d 4038 echo '#line 4038 "configure"' > conftest.$ac_ext
979273e3
NN
4039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; then
e0001a05
NC
4044 if test "$lt_cv_prog_gnu_ld" = yes; then
4045 case `/usr/bin/file conftest.$ac_objext` in
4046 *32-bit*)
4047 LD="${LD-ld} -melf32bsmip"
4048 ;;
4049 *N32*)
4050 LD="${LD-ld} -melf32bmipn32"
4051 ;;
4052 *64-bit*)
4053 LD="${LD-ld} -melf64bmip"
4054 ;;
4055 esac
4056 else
87e6d782 4057 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
4058 *32-bit*)
4059 LD="${LD-ld} -32"
4060 ;;
4061 *N32*)
4062 LD="${LD-ld} -n32"
4063 ;;
4064 *64-bit*)
4065 LD="${LD-ld} -64"
4066 ;;
4067 esac
e0001a05 4068 fi
252b5132
RH
4069 fi
4070 rm -rf conftest*
4071 ;;
4072
4867be41
DJ
4073ia64-*-hpux*)
4074 # Find out which ABI we are using.
4075 echo 'int i;' > conftest.$ac_ext
979273e3
NN
4076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; then
4867be41
DJ
4081 case "`/usr/bin/file conftest.o`" in
4082 *ELF-32*)
4083 HPUX_IA64_MODE="32"
4084 ;;
4085 *ELF-64*)
4086 HPUX_IA64_MODE="64"
4087 ;;
4088 esac
4089 fi
4090 rm -rf conftest*
4091 ;;
4092
32fba81d
NC
4093x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4094 # Find out which ABI we are using.
4095 echo 'int i;' > conftest.$ac_ext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; then
4101 case "`/usr/bin/file conftest.o`" in
4102 *32-bit*)
4103 case $host in
4104 x86_64-*linux*)
4105 LD="${LD-ld} -m elf_i386"
4106 ;;
4107 ppc64-*linux*|powerpc64-*linux*)
4108 LD="${LD-ld} -m elf32ppclinux"
4109 ;;
4110 s390x-*linux*)
4111 LD="${LD-ld} -m elf_s390"
4112 ;;
4113 sparc64-*linux*)
4114 LD="${LD-ld} -m elf32_sparc"
4115 ;;
4116 esac
4117 ;;
4118 *64-bit*)
4119 case $host in
4120 x86_64-*linux*)
4121 LD="${LD-ld} -m elf_x86_64"
4122 ;;
4123 ppc*-*linux*|powerpc*-*linux*)
4124 LD="${LD-ld} -m elf64ppc"
4125 ;;
4126 s390*-*linux*)
4127 LD="${LD-ld} -m elf64_s390"
4128 ;;
4129 sparc*-*linux*)
4130 LD="${LD-ld} -m elf64_sparc"
4131 ;;
4132 esac
4133 ;;
4134 esac
4135 fi
4136 rm -rf conftest*
4137 ;;
4138
252b5132
RH
4139*-*-sco3.2v5*)
4140 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4141 SAVE_CFLAGS="$CFLAGS"
4142 CFLAGS="$CFLAGS -belf"
979273e3
NN
4143 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4144echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4145if test "${lt_cv_cc_needs_belf+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4147else
979273e3
NN
4148
4149
ac48eca1 4150 ac_ext=c
ac48eca1 4151ac_cpp='$CPP $CPPFLAGS'
979273e3
NN
4152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4155
979273e3
NN
4156 cat >conftest.$ac_ext <<_ACEOF
4157/* confdefs.h. */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h. */
252b5132 4162
979273e3
NN
4163int
4164main ()
4165{
252b5132 4166
979273e3
NN
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171rm -f conftest.$ac_objext conftest$ac_exeext
4172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4173 (eval $ac_link) 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
8ae85421
AM
4180 { ac_try='test -z "$ac_c_werror_flag"
4181 || test ! -s conftest.err'
979273e3
NN
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try='test -s conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
252b5132
RH
4193 lt_cv_cc_needs_belf=yes
4194else
979273e3
NN
4195 echo "$as_me: failed program was:" >&5
4196sed 's/^/| /' conftest.$ac_ext >&5
4197
4198lt_cv_cc_needs_belf=no
252b5132 4199fi
979273e3
NN
4200rm -f conftest.err conftest.$ac_objext \
4201 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4202 ac_ext=c
ac48eca1 4203ac_cpp='$CPP $CPPFLAGS'
979273e3
NN
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4207
252b5132 4208fi
979273e3
NN
4209echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4210echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
252b5132
RH
4211 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4212 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4213 CFLAGS="$SAVE_CFLAGS"
4214 fi
4215 ;;
4216
252b5132
RH
4217
4218esac
4219
252b5132
RH
4220
4221# Save cache, so that ltconfig can load it
979273e3 4222cat >confcache <<\_ACEOF
252b5132
RH
4223# This file is a shell script that caches the results of configure
4224# tests run on this system so they can be shared between configure
979273e3
NN
4225# scripts and configure runs, see configure's option --config-cache.
4226# It is not useful on other systems. If it contains results you don't
4227# want to keep, you may remove or edit it.
252b5132 4228#
979273e3
NN
4229# config.status only pays attention to the cache file if you give it
4230# the --recheck option to rerun configure.
252b5132 4231#
979273e3
NN
4232# `ac_cv_env_foo' variables (set or unset) will be overridden when
4233# loading this file, other *unset* `ac_cv_foo' will be assigned the
4234# following values.
4235
4236_ACEOF
4237
252b5132
RH
4238# The following way of writing the cache mishandles newlines in values,
4239# but we know of no workaround that is simple, portable, and efficient.
4240# So, don't put newlines in cache variables' values.
4241# Ultrix sh set writes to stderr and can't be redirected directly,
4242# and sets the high bit in the cache file unless we assign to the vars.
979273e3
NN
4243{
4244 (set) 2>&1 |
4245 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4246 *ac_space=\ *)
4247 # `set' does not quote correctly, so add quotes (double-quote
4248 # substitution turns \\\\ into \\, and sed turns \\ into \).
4249 sed -n \
4250 "s/'/'\\\\''/g;
4251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4252 ;;
4253 *)
4254 # `set' quotes correctly as required by POSIX, so do not add quotes.
4255 sed -n \
4256 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4257 ;;
4258 esac;
4259} |
4260 sed '
4261 t clear
4262 : clear
4263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4264 t end
4265 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4266 : end' >>confcache
4267if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 4268 if test -w $cache_file; then
979273e3
NN
4269 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4270 cat confcache >$cache_file
252b5132
RH
4271 else
4272 echo "not updating unwritable cache $cache_file"
4273 fi
4274fi
4275rm -f confcache
4276
252b5132 4277# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4278AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4279MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4280LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4281AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4282objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4283deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4284${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4285$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
979273e3
NN
4286|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4287echo "$as_me: error: libtool configure failed" >&2;}
4288 { (exit 1); exit 1; }; }
252b5132
RH
4289
4290# Reload cache, that may have been modified by ltconfig
4291if test -r "$cache_file"; then
979273e3
NN
4292 # Some versions of bash will fail to source /dev/null (special
4293 # files actually), so we avoid doing that.
4294 if test -f "$cache_file"; then
4295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4296echo "$as_me: loading cache $cache_file" >&6;}
4297 case $cache_file in
4298 [\\/]* | ?:[\\/]* ) . $cache_file;;
4299 *) . ./$cache_file;;
4300 esac
4301 fi
252b5132 4302else
979273e3
NN
4303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4304echo "$as_me: creating cache $cache_file" >&6;}
4305 >$cache_file
252b5132
RH
4306fi
4307
4308
4309# This can be used to rebuild libtool when needed
ac48eca1 4310LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
252b5132
RH
4311
4312# Always use our own libtool.
4313LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4314
4315# Redirect the config.log output again, so that the ltconfig log is not
4316# clobbered by the next message.
4317exec 5>>./config.log
4318
ac48eca1 4319
979273e3
NN
4320
4321
4322
4323
ac48eca1 4324
252b5132
RH
4325# Check whether --enable-targets or --disable-targets was given.
4326if test "${enable_targets+set}" = set; then
4327 enableval="$enable_targets"
4328 case "${enableval}" in
979273e3
NN
4329 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4330echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4331 { (exit 1); exit 1; }; }
252b5132
RH
4332 ;;
4333 no) enable_targets= ;;
4334 *) enable_targets=$enableval ;;
4335esac
979273e3 4336fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4337if test "${enable_commonbfdlib+set}" = set; then
4338 enableval="$enable_commonbfdlib"
4339 case "${enableval}" in
4340 yes) commonbfdlib=true ;;
4341 no) commonbfdlib=false ;;
979273e3
NN
4342 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
4343echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
4344 { (exit 1); exit 1; }; } ;;
252b5132 4345esac
979273e3 4346fi;
9e9b66a9 4347
a541e3ce 4348GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4349
569acd2c
NC
4350# Check whether --enable-werror or --disable-werror was given.
4351if test "${enable_werror+set}" = set; then
4352 enableval="$enable_werror"
1ad12f97
NC
4353 case "${enableval}" in
4354 yes | y) ERROR_ON_WARNING="yes" ;;
4355 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4356 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4357echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4358 { (exit 1); exit 1; }; } ;;
4359 esac
4360fi;
4361
9e9b66a9
AM
4362# Enable -Werror by default when using gcc
4363if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4364 ERROR_ON_WARNING=yes
4365fi
4366
4367NO_WERROR=
4368if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 4369 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 4370 NO_WERROR="-Wno-error"
1ad12f97
NC
4371fi
4372
a541e3ce
SE
4373if test "${GCC}" = yes ; then
4374 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4375fi
4376
a2d91340
AC
4377# Check whether --enable-build-warnings or --disable-build-warnings was given.
4378if test "${enable_build_warnings+set}" = set; then
4379 enableval="$enable_build_warnings"
4380 case "${enableval}" in
a541e3ce
SE
4381 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4382 no) if test "${GCC}" = yes ; then
4383 WARN_CFLAGS="-w"
4384 fi;;
a2d91340 4385 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 4386 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4387 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 4388 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4389 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4390esac
9e9b66a9
AM
4391fi;
4392
4393if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4394 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4395fi
4396
4397
9e9b66a9
AM
4398
4399
4400
979273e3 4401 ac_config_headers="$ac_config_headers config.h:config.in"
252b5132 4402
252b5132
RH
4403
4404if test -z "$target" ; then
979273e3
NN
4405 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4406echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4407 { (exit 1); exit 1; }; }
252b5132 4408fi
252b5132 4409
979273e3
NN
4410echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4411echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4412 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4413if test "${enable_maintainer_mode+set}" = set; then
4414 enableval="$enable_maintainer_mode"
4415 USE_MAINTAINER_MODE=$enableval
4416else
4417 USE_MAINTAINER_MODE=no
979273e3
NN
4418fi;
4419 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4420echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
252b5132 4421
252b5132
RH
4422
4423if test $USE_MAINTAINER_MODE = yes; then
4424 MAINTAINER_MODE_TRUE=
4425 MAINTAINER_MODE_FALSE='#'
4426else
4427 MAINTAINER_MODE_TRUE='#'
4428 MAINTAINER_MODE_FALSE=
4429fi
8ae85421 4430
252b5132 4431 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4432
979273e3 4433
24443139
AS
4434 case ${build_alias} in
4435 "") build_noncanonical=${build} ;;
4436 *) build_noncanonical=${build_alias} ;;
4437esac
4438
4439 case ${host_alias} in
4440 "") host_noncanonical=${build_noncanonical} ;;
4441 *) host_noncanonical=${host_alias} ;;
4442esac
4443
4444 case ${target_alias} in
4445 "") target_noncanonical=${host_noncanonical} ;;
4446 *) target_noncanonical=${target_alias} ;;
4447esac
4448
979273e3
NN
4449echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4450echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
81172ff2
AM
4451 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4452if test "${enable_install_libbfd+set}" = set; then
4453 enableval="$enable_install_libbfd"
4454 install_libbfd_p=$enableval
4455else
2469cfa2 4456 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
81172ff2
AM
4457 install_libbfd_p=yes
4458 else
4459 install_libbfd_p=no
4460 fi
979273e3
NN
4461fi;
4462 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4463echo "${ECHO_T}$install_libbfd_p" >&6
81172ff2 4464
81172ff2
AM
4465
4466if test $install_libbfd_p = yes; then
4467 INSTALL_LIBBFD_TRUE=
4468 INSTALL_LIBBFD_FALSE='#'
4469else
4470 INSTALL_LIBBFD_TRUE='#'
4471 INSTALL_LIBBFD_FALSE=
4472fi
8ae85421 4473
979273e3 4474 # Need _noncanonical variables for this.
24443139
AS
4475
4476
4477
4478
81172ff2
AM
4479 # libbfd.a is a host library containing target dependent code
4480 bfdlibdir='$(libdir)'
4481 bfdincludedir='$(includedir)'
4482 if test "${host}" != "${target}"; then
979273e3
NN
4483 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4484 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
81172ff2 4485 fi
81172ff2
AM
4486
4487
252b5132
RH
4488
4489
979273e3
NN
4490
4491
4492# host-specific stuff:
4493
4494ac_ext=c
4495ac_cpp='$CPP $CPPFLAGS'
4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499if test -n "$ac_tool_prefix"; then
4500 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4501set dummy ${ac_tool_prefix}gcc; ac_word=$2
4502echo "$as_me:$LINENO: checking for $ac_word" >&5
4503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4504if test "${ac_cv_prog_CC+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4506else
979273e3
NN
4507 if test -n "$CC"; then
4508 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4509else
979273e3
NN
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
252b5132 4520 fi
979273e3
NN
4521done
4522done
4523
4524fi
252b5132 4525fi
979273e3
NN
4526CC=$ac_cv_prog_CC
4527if test -n "$CC"; then
4528 echo "$as_me:$LINENO: result: $CC" >&5
4529echo "${ECHO_T}$CC" >&6
4530else
4531 echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6
252b5132
RH
4533fi
4534
979273e3
NN
4535fi
4536if test -z "$ac_cv_prog_CC"; then
4537 ac_ct_CC=$CC
4538 # Extract the first word of "gcc", so it can be a program name with args.
4539set dummy gcc; ac_word=$2
4540echo "$as_me:$LINENO: checking for $ac_word" >&5
4541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545 if test -n "$ac_ct_CC"; then
4546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4547else
4548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_ac_ct_CC="gcc"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559done
4560done
252b5132 4561
979273e3
NN
4562fi
4563fi
4564ac_ct_CC=$ac_cv_prog_ac_ct_CC
4565if test -n "$ac_ct_CC"; then
4566 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4567echo "${ECHO_T}$ac_ct_CC" >&6
4568else
4569 echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6
4571fi
252b5132 4572
979273e3
NN
4573 CC=$ac_ct_CC
4574else
4575 CC="$ac_cv_prog_CC"
4576fi
252b5132 4577
979273e3
NN
4578if test -z "$CC"; then
4579 if test -n "$ac_tool_prefix"; then
4580 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4581set dummy ${ac_tool_prefix}cc; ac_word=$2
4582echo "$as_me:$LINENO: checking for $ac_word" >&5
4583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584if test "${ac_cv_prog_CC+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4586else
4587 if test -n "$CC"; then
4588 ac_cv_prog_CC="$CC" # Let the user override the test.
4589else
979273e3
NN
4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_CC="${ac_tool_prefix}cc"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601done
4602done
4603
252b5132
RH
4604fi
4605fi
979273e3 4606CC=$ac_cv_prog_CC
252b5132 4607if test -n "$CC"; then
979273e3
NN
4608 echo "$as_me:$LINENO: result: $CC" >&5
4609echo "${ECHO_T}$CC" >&6
4610else
4611 echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6
4613fi
4614
4615fi
4616if test -z "$ac_cv_prog_CC"; then
4617 ac_ct_CC=$CC
4618 # Extract the first word of "cc", so it can be a program name with args.
4619set dummy cc; ac_word=$2
4620echo "$as_me:$LINENO: checking for $ac_word" >&5
4621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624else
4625 if test -n "$ac_ct_CC"; then
4626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4627else
4628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_prog_ac_ct_CC="cc"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639done
4640done
4641
4642fi
4643fi
4644ac_ct_CC=$ac_cv_prog_ac_ct_CC
4645if test -n "$ac_ct_CC"; then
4646 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4647echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 4648else
979273e3
NN
4649 echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6
252b5132
RH
4651fi
4652
979273e3
NN
4653 CC=$ac_ct_CC
4654else
4655 CC="$ac_cv_prog_CC"
4656fi
4657
4658fi
252b5132
RH
4659if test -z "$CC"; then
4660 # Extract the first word of "cc", so it can be a program name with args.
4661set dummy cc; ac_word=$2
979273e3
NN
4662echo "$as_me:$LINENO: checking for $ac_word" >&5
4663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664if test "${ac_cv_prog_CC+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4666else
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4669else
252b5132 4670 ac_prog_rejected=no
979273e3
NN
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4679 ac_prog_rejected=yes
4680 continue
4681 fi
4682 ac_cv_prog_CC="cc"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686done
4687done
4688
252b5132
RH
4689if test $ac_prog_rejected = yes; then
4690 # We found a bogon in the path, so make sure we never use it.
4691 set dummy $ac_cv_prog_CC
4692 shift
979273e3 4693 if test $# != 0; then
252b5132
RH
4694 # We chose a different compiler from the bogus one.
4695 # However, it has the same basename, so the bogon will be chosen
4696 # first if we set CC to just the basename; use the full file name.
4697 shift
979273e3 4698 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
4699 fi
4700fi
4701fi
4702fi
979273e3 4703CC=$ac_cv_prog_CC
252b5132 4704if test -n "$CC"; then
979273e3
NN
4705 echo "$as_me:$LINENO: result: $CC" >&5
4706echo "${ECHO_T}$CC" >&6
252b5132 4707else
979273e3
NN
4708 echo "$as_me:$LINENO: result: no" >&5
4709echo "${ECHO_T}no" >&6
252b5132
RH
4710fi
4711
979273e3
NN
4712fi
4713if test -z "$CC"; then
4714 if test -n "$ac_tool_prefix"; then
4715 for ac_prog in cl
4716 do
4717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4719echo "$as_me:$LINENO: checking for $ac_word" >&5
4720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4721if test "${ac_cv_prog_CC+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4723else
4724 if test -n "$CC"; then
4725 ac_cv_prog_CC="$CC" # Let the user override the test.
4726else
979273e3
NN
4727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728for as_dir in $PATH
4729do
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4737 fi
4738done
4739done
4740
4741fi
4742fi
4743CC=$ac_cv_prog_CC
4744if test -n "$CC"; then
4745 echo "$as_me:$LINENO: result: $CC" >&5
4746echo "${ECHO_T}$CC" >&6
4747else
4748 echo "$as_me:$LINENO: result: no" >&5
4749echo "${ECHO_T}no" >&6
4750fi
4751
4752 test -n "$CC" && break
252b5132 4753 done
252b5132 4754fi
979273e3
NN
4755if test -z "$CC"; then
4756 ac_ct_CC=$CC
4757 for ac_prog in cl
4758do
4759 # Extract the first word of "$ac_prog", so it can be a program name with args.
4760set dummy $ac_prog; ac_word=$2
4761echo "$as_me:$LINENO: checking for $ac_word" >&5
4762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4763if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765else
4766 if test -n "$ac_ct_CC"; then
4767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4768else
4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776 ac_cv_prog_ac_ct_CC="$ac_prog"
4777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 break 2
4779 fi
4780done
4781done
4782
4783fi
4784fi
4785ac_ct_CC=$ac_cv_prog_ac_ct_CC
4786if test -n "$ac_ct_CC"; then
4787 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4788echo "${ECHO_T}$ac_ct_CC" >&6
4789else
4790 echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6
4792fi
4793
4794 test -n "$ac_ct_CC" && break
4795done
4796
4797 CC=$ac_ct_CC
4798fi
4799
4800fi
4801
4802
4803test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4804See \`config.log' for more details." >&5
4805echo "$as_me: error: no acceptable C compiler found in \$PATH
4806See \`config.log' for more details." >&2;}
4807 { (exit 1); exit 1; }; }
4808
4809# Provide some information about the compiler.
4810echo "$as_me:$LINENO:" \
4811 "checking for C compiler version" >&5
4812ac_compiler=`set X $ac_compile; echo $2`
4813{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4814 (eval $ac_compiler --version </dev/null >&5) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }
4818{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4819 (eval $ac_compiler -v </dev/null >&5) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }
4823{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4824 (eval $ac_compiler -V </dev/null >&5) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }
4828
4829echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4830echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4831if test "${ac_cv_c_compiler_gnu+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833else
4834 cat >conftest.$ac_ext <<_ACEOF
4835/* confdefs.h. */
4836_ACEOF
4837cat confdefs.h >>conftest.$ac_ext
4838cat >>conftest.$ac_ext <<_ACEOF
4839/* end confdefs.h. */
4840
4841int
4842main ()
4843{
4844#ifndef __GNUC__
4845 choke me
4846#endif
4847
4848 ;
4849 return 0;
4850}
4851_ACEOF
4852rm -f conftest.$ac_objext
4853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
8ae85421
AM
4861 { ac_try='test -z "$ac_c_werror_flag"
4862 || test ! -s conftest.err'
979273e3
NN
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest.$ac_objext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 ac_compiler_gnu=yes
4875else
4876 echo "$as_me: failed program was:" >&5
4877sed 's/^/| /' conftest.$ac_ext >&5
4878
4879ac_compiler_gnu=no
4880fi
4881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4882ac_cv_c_compiler_gnu=$ac_compiler_gnu
4883
4884fi
4885echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4886echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4887GCC=`test $ac_compiler_gnu = yes && echo yes`
4888ac_test_CFLAGS=${CFLAGS+set}
4889ac_save_CFLAGS=$CFLAGS
4890CFLAGS="-g"
4891echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4892echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4893if test "${ac_cv_prog_cc_g+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896 cat >conftest.$ac_ext <<_ACEOF
4897/* confdefs.h. */
4898_ACEOF
4899cat confdefs.h >>conftest.$ac_ext
4900cat >>conftest.$ac_ext <<_ACEOF
4901/* end confdefs.h. */
4902
4903int
4904main ()
4905{
4906
4907 ;
4908 return 0;
4909}
4910_ACEOF
4911rm -f conftest.$ac_objext
4912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>conftest.er1
4914 ac_status=$?
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
8ae85421
AM
4920 { ac_try='test -z "$ac_c_werror_flag"
4921 || test ! -s conftest.err'
979273e3
NN
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 (eval $ac_try) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; } &&
4927 { ac_try='test -s conftest.$ac_objext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 ac_cv_prog_cc_g=yes
4934else
4935 echo "$as_me: failed program was:" >&5
4936sed 's/^/| /' conftest.$ac_ext >&5
4937
4938ac_cv_prog_cc_g=no
4939fi
4940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 4941fi
979273e3
NN
4942echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4943echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4944if test "$ac_test_CFLAGS" = set; then
4945 CFLAGS=$ac_save_CFLAGS
4946elif test $ac_cv_prog_cc_g = yes; then
4947 if test "$GCC" = yes; then
4948 CFLAGS="-g -O2"
4949 else
4950 CFLAGS="-g"
4951 fi
252b5132 4952else
979273e3
NN
4953 if test "$GCC" = yes; then
4954 CFLAGS="-O2"
4955 else
4956 CFLAGS=
252b5132 4957 fi
979273e3
NN
4958fi
4959echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4960echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4961if test "${ac_cv_prog_cc_stdc+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963else
4964 ac_cv_prog_cc_stdc=no
4965ac_save_CC=$CC
4966cat >conftest.$ac_ext <<_ACEOF
4967/* confdefs.h. */
4968_ACEOF
4969cat confdefs.h >>conftest.$ac_ext
4970cat >>conftest.$ac_ext <<_ACEOF
4971/* end confdefs.h. */
4972#include <stdarg.h>
4973#include <stdio.h>
4974#include <sys/types.h>
4975#include <sys/stat.h>
4976/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4977struct buf { int x; };
4978FILE * (*rcsopen) (struct buf *, struct stat *, int);
4979static char *e (p, i)
4980 char **p;
4981 int i;
4982{
4983 return p[i];
4984}
4985static char *f (char * (*g) (char **, int), char **p, ...)
4986{
4987 char *s;
4988 va_list v;
4989 va_start (v,p);
4990 s = g (p, va_arg (v,int));
4991 va_end (v);
4992 return s;
4993}
4994
4995/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4996 function prototypes and stuff, but not '\xHH' hex character constants.
4997 These don't provoke an error unfortunately, instead are silently treated
4998 as 'x'. The following induces an error, until -std1 is added to get
4999 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5000 array size at least. It's necessary to write '\x00'==0 to get something
5001 that's true only with -std1. */
5002int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5003
5004int test (int i, double x);
5005struct s1 {int (*f) (int a);};
5006struct s2 {int (*f) (double a);};
5007int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5008int argc;
5009char **argv;
5010int
5011main ()
5012{
5013return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5014 ;
5015 return 0;
5016}
5017_ACEOF
5018# Don't try gcc -ansi; that turns off useful extensions and
5019# breaks some systems' header files.
5020# AIX -qlanglvl=ansi
5021# Ultrix and OSF/1 -std1
5022# HP-UX 10.20 and later -Ae
5023# HP-UX older versions -Aa -D_HPUX_SOURCE
5024# SVR4 -Xc -D__EXTENSIONS__
5025for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5026do
5027 CC="$ac_save_CC $ac_arg"
5028 rm -f conftest.$ac_objext
5029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030 (eval $ac_compile) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
8ae85421
AM
5037 { ac_try='test -z "$ac_c_werror_flag"
5038 || test ! -s conftest.err'
979273e3
NN
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 ac_cv_prog_cc_stdc=$ac_arg
5051break
5052else
5053 echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056fi
5057rm -f conftest.err conftest.$ac_objext
5058done
5059rm -f conftest.$ac_ext conftest.$ac_objext
5060CC=$ac_save_CC
5061
252b5132
RH
5062fi
5063
979273e3
NN
5064case "x$ac_cv_prog_cc_stdc" in
5065 x|xno)
5066 echo "$as_me:$LINENO: result: none needed" >&5
5067echo "${ECHO_T}none needed" >&6 ;;
5068 *)
5069 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5070echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5071 CC="$CC $ac_cv_prog_cc_stdc" ;;
5072esac
252b5132 5073
979273e3
NN
5074# Some people use a C++ compiler to compile C. Since we use `exit',
5075# in C++ we need to declare it. In case someone uses the same compiler
5076# for both compiling C and C++ we need to have the C++ compiler decide
5077# the declaration of exit, since it's the most demanding environment.
5078cat >conftest.$ac_ext <<_ACEOF
5079#ifndef __cplusplus
5080 choke me
5081#endif
5082_ACEOF
5083rm -f conftest.$ac_objext
5084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5085 (eval $ac_compile) 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
8ae85421
AM
5092 { ac_try='test -z "$ac_c_werror_flag"
5093 || test ! -s conftest.err'
979273e3
NN
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; } &&
5099 { ac_try='test -s conftest.$ac_objext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 (eval $ac_try) 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 for ac_declaration in \
5106 '' \
5107 'extern "C" void std::exit (int) throw (); using std::exit;' \
5108 'extern "C" void std::exit (int); using std::exit;' \
5109 'extern "C" void exit (int) throw ();' \
5110 'extern "C" void exit (int);' \
5111 'void exit (int);'
5112do
5113 cat >conftest.$ac_ext <<_ACEOF
5114/* confdefs.h. */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h. */
5119$ac_declaration
5120#include <stdlib.h>
5121int
5122main ()
5123{
5124exit (42);
5125 ;
5126 return 0;
5127}
5128_ACEOF
5129rm -f conftest.$ac_objext
5130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5131 (eval $ac_compile) 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
8ae85421
AM
5138 { ac_try='test -z "$ac_c_werror_flag"
5139 || test ! -s conftest.err'
979273e3
NN
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; } &&
5145 { ac_try='test -s conftest.$ac_objext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 :
5152else
5153 echo "$as_me: failed program was:" >&5
5154sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5155
979273e3
NN
5156continue
5157fi
5158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5159 cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h. */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h. */
5165$ac_declaration
5166int
5167main ()
5168{
5169exit (42);
5170 ;
5171 return 0;
5172}
5173_ACEOF
5174rm -f conftest.$ac_objext
5175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176 (eval $ac_compile) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
8ae85421
AM
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
979273e3
NN
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 break
5197else
5198 echo "$as_me: failed program was:" >&5
5199sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5200
979273e3
NN
5201fi
5202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5203done
5204rm -f conftest*
5205if test -n "$ac_declaration"; then
5206 echo '#ifdef __cplusplus' >>confdefs.h
5207 echo $ac_declaration >>confdefs.h
5208 echo '#endif' >>confdefs.h
5209fi
252b5132 5210
252b5132 5211else
979273e3
NN
5212 echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
252b5132 5215fi
979273e3 5216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5217ac_ext=c
252b5132 5218ac_cpp='$CPP $CPPFLAGS'
979273e3
NN
5219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132 5222
252b5132 5223
32fba81d 5224ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
979273e3
NN
5225if test -n "$ac_tool_prefix"; then
5226 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5227set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5228echo "$as_me:$LINENO: checking for $ac_word" >&5
5229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5230if test "${ac_cv_prog_RANLIB+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5232else
979273e3
NN
5233 if test -n "$RANLIB"; then
5234 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 5235else
979273e3
NN
5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5246 fi
5247done
5248done
5249
252b5132
RH
5250fi
5251fi
979273e3
NN
5252RANLIB=$ac_cv_prog_RANLIB
5253if test -n "$RANLIB"; then
5254 echo "$as_me:$LINENO: result: $RANLIB" >&5
5255echo "${ECHO_T}$RANLIB" >&6
252b5132 5256else
979273e3
NN
5257 echo "$as_me:$LINENO: result: no" >&5
5258echo "${ECHO_T}no" >&6
252b5132
RH
5259fi
5260
979273e3
NN
5261fi
5262if test -z "$ac_cv_prog_RANLIB"; then
5263 ac_ct_RANLIB=$RANLIB
5264 # Extract the first word of "ranlib", so it can be a program name with args.
5265set dummy ranlib; ac_word=$2
5266echo "$as_me:$LINENO: checking for $ac_word" >&5
5267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5268if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5270else
979273e3
NN
5271 if test -n "$ac_ct_RANLIB"; then
5272 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 5273else
979273e3
NN
5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275for as_dir in $PATH
5276do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_ac_ct_RANLIB="ranlib"
5282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285done
5286done
252b5132 5287
979273e3 5288 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132 5289fi
979273e3
NN
5290fi
5291ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5292if test -n "$ac_ct_RANLIB"; then
5293 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5294echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 5295else
979273e3
NN
5296 echo "$as_me:$LINENO: result: no" >&5
5297echo "${ECHO_T}no" >&6
252b5132
RH
5298fi
5299
979273e3
NN
5300 RANLIB=$ac_ct_RANLIB
5301else
5302 RANLIB="$ac_cv_prog_RANLIB"
5303fi
252b5132 5304
979273e3
NN
5305ac_ext=c
5306ac_cpp='$CPP $CPPFLAGS'
5307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5309ac_compiler_gnu=$ac_cv_c_compiler_gnu
5310echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5311echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
252b5132
RH
5312# On Suns, sometimes $CPP names a directory.
5313if test -n "$CPP" && test -d "$CPP"; then
5314 CPP=
5315fi
5316if test -z "$CPP"; then
979273e3
NN
5317 if test "${ac_cv_prog_CPP+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5319else
979273e3
NN
5320 # Double quotes because CPP needs to be expanded
5321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5322 do
5323 ac_preproc_ok=false
5324for ac_c_preproc_warn_flag in '' yes
5325do
5326 # Use a header file that comes with gcc, so configuring glibc
5327 # with a fresh cross-compiler works.
5328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5329 # <limits.h> exists even on freestanding compilers.
252b5132 5330 # On the NeXT, cc -E runs the code through the compiler's parser,
979273e3
NN
5331 # not just through cpp. "Syntax error" is here to catch this case.
5332 cat >conftest.$ac_ext <<_ACEOF
5333/* confdefs.h. */
5334_ACEOF
5335cat confdefs.h >>conftest.$ac_ext
5336cat >>conftest.$ac_ext <<_ACEOF
5337/* end confdefs.h. */
5338#ifdef __STDC__
5339# include <limits.h>
5340#else
5341# include <assert.h>
5342#endif
5343 Syntax error
5344_ACEOF
5345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } >/dev/null; then
5353 if test -s conftest.err; then
5354 ac_cpp_err=$ac_c_preproc_warn_flag
5355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5356 else
5357 ac_cpp_err=
5358 fi
252b5132 5359else
979273e3
NN
5360 ac_cpp_err=yes
5361fi
5362if test -z "$ac_cpp_err"; then
252b5132
RH
5363 :
5364else
979273e3
NN
5365 echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 # Broken: fails on valid input.
5369continue
5370fi
5371rm -f conftest.err conftest.$ac_ext
5372
5373 # OK, works on sane cases. Now check whether non-existent headers
5374 # can be detected and how.
5375 cat >conftest.$ac_ext <<_ACEOF
5376/* confdefs.h. */
5377_ACEOF
5378cat confdefs.h >>conftest.$ac_ext
5379cat >>conftest.$ac_ext <<_ACEOF
5380/* end confdefs.h. */
5381#include <ac_nonexistent.h>
5382_ACEOF
5383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } >/dev/null; then
5391 if test -s conftest.err; then
5392 ac_cpp_err=$ac_c_preproc_warn_flag
5393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5394 else
5395 ac_cpp_err=
5396 fi
252b5132 5397else
979273e3 5398 ac_cpp_err=yes
252b5132 5399fi
979273e3
NN
5400if test -z "$ac_cpp_err"; then
5401 # Broken: success on invalid input.
5402continue
5403else
5404 echo "$as_me: failed program was:" >&5
5405sed 's/^/| /' conftest.$ac_ext >&5
5406
5407 # Passes both tests.
5408ac_preproc_ok=:
5409break
252b5132 5410fi
979273e3
NN
5411rm -f conftest.err conftest.$ac_ext
5412
5413done
5414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5415rm -f conftest.err conftest.$ac_ext
5416if $ac_preproc_ok; then
5417 break
252b5132 5418fi
979273e3
NN
5419
5420 done
5421 ac_cv_prog_CPP=$CPP
5422
252b5132 5423fi
979273e3 5424 CPP=$ac_cv_prog_CPP
252b5132 5425else
979273e3 5426 ac_cv_prog_CPP=$CPP
252b5132 5427fi
979273e3
NN
5428echo "$as_me:$LINENO: result: $CPP" >&5
5429echo "${ECHO_T}$CPP" >&6
5430ac_preproc_ok=false
5431for ac_c_preproc_warn_flag in '' yes
5432do
5433 # Use a header file that comes with gcc, so configuring glibc
5434 # with a fresh cross-compiler works.
5435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5436 # <limits.h> exists even on freestanding compilers.
5437 # On the NeXT, cc -E runs the code through the compiler's parser,
5438 # not just through cpp. "Syntax error" is here to catch this case.
5439 cat >conftest.$ac_ext <<_ACEOF
5440/* confdefs.h. */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h. */
5445#ifdef __STDC__
5446# include <limits.h>
5447#else
5448# include <assert.h>
5449#endif
5450 Syntax error
5451_ACEOF
5452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } >/dev/null; then
5460 if test -s conftest.err; then
5461 ac_cpp_err=$ac_c_preproc_warn_flag
5462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5463 else
5464 ac_cpp_err=
5465 fi
ac48eca1 5466else
979273e3
NN
5467 ac_cpp_err=yes
5468fi
5469if test -z "$ac_cpp_err"; then
5470 :
ac48eca1 5471else
979273e3
NN
5472 echo "$as_me: failed program was:" >&5
5473sed 's/^/| /' conftest.$ac_ext >&5
5474
5475 # Broken: fails on valid input.
5476continue
5477fi
5478rm -f conftest.err conftest.$ac_ext
5479
5480 # OK, works on sane cases. Now check whether non-existent headers
5481 # can be detected and how.
5482 cat >conftest.$ac_ext <<_ACEOF
5483/* confdefs.h. */
5484_ACEOF
5485cat confdefs.h >>conftest.$ac_ext
5486cat >>conftest.$ac_ext <<_ACEOF
5487/* end confdefs.h. */
5488#include <ac_nonexistent.h>
5489_ACEOF
5490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } >/dev/null; then
5498 if test -s conftest.err; then
5499 ac_cpp_err=$ac_c_preproc_warn_flag
5500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5501 else
5502 ac_cpp_err=
5503 fi
5504else
5505 ac_cpp_err=yes
ac48eca1 5506fi
979273e3
NN
5507if test -z "$ac_cpp_err"; then
5508 # Broken: success on invalid input.
5509continue
5510else
5511 echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
5514 # Passes both tests.
5515ac_preproc_ok=:
5516break
ac48eca1 5517fi
979273e3
NN
5518rm -f conftest.err conftest.$ac_ext
5519
5520done
5521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5522rm -f conftest.err conftest.$ac_ext
5523if $ac_preproc_ok; then
5524 :
5525else
5526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5527See \`config.log' for more details." >&5
5528echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5529See \`config.log' for more details." >&2;}
5530 { (exit 1); exit 1; }; }
5531fi
5532
5533ac_ext=c
5534ac_cpp='$CPP $CPPFLAGS'
5535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5537ac_compiler_gnu=$ac_cv_c_compiler_gnu
5538
5539
5540echo "$as_me:$LINENO: checking for egrep" >&5
5541echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5542if test "${ac_cv_prog_egrep+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5544else
979273e3
NN
5545 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5546 then ac_cv_prog_egrep='grep -E'
5547 else ac_cv_prog_egrep='egrep'
5548 fi
ac48eca1 5549fi
979273e3
NN
5550echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5551echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5552 EGREP=$ac_cv_prog_egrep
ac48eca1 5553
979273e3
NN
5554
5555echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5556echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5557if test "${ac_cv_header_stdc+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5559else
979273e3
NN
5560 cat >conftest.$ac_ext <<_ACEOF
5561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
252b5132
RH
5566#include <stdlib.h>
5567#include <stdarg.h>
5568#include <string.h>
5569#include <float.h>
979273e3
NN
5570
5571int
5572main ()
5573{
5574
5575 ;
5576 return 0;
5577}
5578_ACEOF
5579rm -f conftest.$ac_objext
5580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>conftest.er1
5582 ac_status=$?
5583 grep -v '^ *+' conftest.er1 >conftest.err
5584 rm -f conftest.er1
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
8ae85421
AM
5588 { ac_try='test -z "$ac_c_werror_flag"
5589 || test ! -s conftest.err'
979273e3
NN
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; } &&
5595 { ac_try='test -s conftest.$ac_objext'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 (eval $ac_try) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
252b5132
RH
5601 ac_cv_header_stdc=yes
5602else
979273e3
NN
5603 echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606ac_cv_header_stdc=no
252b5132 5607fi
979273e3 5608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5609
5610if test $ac_cv_header_stdc = yes; then
5611 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
979273e3
NN
5612 cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h. */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */
252b5132 5618#include <string.h>
979273e3
NN
5619
5620_ACEOF
252b5132 5621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
979273e3 5622 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5623 :
5624else
252b5132
RH
5625 ac_cv_header_stdc=no
5626fi
5627rm -f conftest*
5628
5629fi
5630
5631if test $ac_cv_header_stdc = yes; then
5632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
979273e3
NN
5633 cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h. */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h. */
252b5132 5639#include <stdlib.h>
979273e3
NN
5640
5641_ACEOF
252b5132 5642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
979273e3 5643 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5644 :
5645else
252b5132
RH
5646 ac_cv_header_stdc=no
5647fi
5648rm -f conftest*
5649
5650fi
5651
5652if test $ac_cv_header_stdc = yes; then
5653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
979273e3 5654 if test "$cross_compiling" = yes; then
252b5132
RH
5655 :
5656else
979273e3
NN
5657 cat >conftest.$ac_ext <<_ACEOF
5658/* confdefs.h. */
5659_ACEOF
5660cat confdefs.h >>conftest.$ac_ext
5661cat >>conftest.$ac_ext <<_ACEOF
5662/* end confdefs.h. */
252b5132 5663#include <ctype.h>
979273e3
NN
5664#if ((' ' & 0x0FF) == 0x020)
5665# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5666# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5667#else
5668# define ISLOWER(c) \
5669 (('a' <= (c) && (c) <= 'i') \
5670 || ('j' <= (c) && (c) <= 'r') \
5671 || ('s' <= (c) && (c) <= 'z'))
5672# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5673#endif
252b5132 5674
979273e3
NN
5675#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5676int
5677main ()
5678{
5679 int i;
5680 for (i = 0; i < 256; i++)
5681 if (XOR (islower (i), ISLOWER (i))
5682 || toupper (i) != TOUPPER (i))
5683 exit(2);
5684 exit (0);
5685}
5686_ACEOF
5687rm -f conftest$ac_exeext
5688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689 (eval $ac_link) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
252b5132
RH
5698 :
5699else
979273e3
NN
5700 echo "$as_me: program exited with status $ac_status" >&5
5701echo "$as_me: failed program was:" >&5
5702sed 's/^/| /' conftest.$ac_ext >&5
5703
5704( exit $ac_status )
5705ac_cv_header_stdc=no
252b5132 5706fi
979273e3 5707rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5708fi
252b5132
RH
5709fi
5710fi
979273e3
NN
5711echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5712echo "${ECHO_T}$ac_cv_header_stdc" >&6
252b5132 5713if test $ac_cv_header_stdc = yes; then
979273e3
NN
5714
5715cat >>confdefs.h <<\_ACEOF
252b5132 5716#define STDC_HEADERS 1
979273e3 5717_ACEOF
252b5132
RH
5718
5719fi
5720
979273e3
NN
5721echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5722echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5723if test "${ac_cv_c_const+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5725else
5726 cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h. */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h. */
252b5132 5732
979273e3
NN
5733int
5734main ()
5735{
5736/* FIXME: Include the comments suggested by Paul. */
5737#ifndef __cplusplus
5738 /* Ultrix mips cc rejects this. */
5739 typedef int charset[2];
5740 const charset x;
5741 /* SunOS 4.1.1 cc rejects this. */
5742 char const *const *ccp;
5743 char **p;
5744 /* NEC SVR4.0.2 mips cc rejects this. */
5745 struct point {int x, y;};
5746 static struct point const zero = {0,0};
5747 /* AIX XL C 1.02.0.0 rejects this.
5748 It does not let you subtract one const X* pointer from another in
5749 an arm of an if-expression whose if-part is not a constant
5750 expression */
5751 const char *g = "string";
5752 ccp = &g + (g ? g-g : 0);
5753 /* HPUX 7.0 cc rejects these. */
5754 ++ccp;
5755 p = (char**) ccp;
5756 ccp = (char const *const *) p;
5757 { /* SCO 3.2v4 cc rejects this. */
5758 char *t;
5759 char const *s = 0 ? (char *) 0 : (char const *) 0;
5760
5761 *t++ = 0;
5762 }
5763 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5764 int x[] = {25, 17};
5765 const int *foo = &x[0];
5766 ++foo;
5767 }
5768 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5769 typedef const int *iptr;
5770 iptr p = 0;
5771 ++p;
5772 }
5773 { /* AIX XL C 1.02.0.0 rejects this saying
5774 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5775 struct s { int j; const int *ap[3]; };
5776 struct s *b; b->j = 5;
5777 }
5778 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5779 const int foo = 10;
5780 }
5781#endif
5782
5783 ;
5784 return 0;
5785}
5786_ACEOF
5787rm -f conftest.$ac_objext
5788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5789 (eval $ac_compile) 2>conftest.er1
5790 ac_status=$?
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } &&
8ae85421
AM
5796 { ac_try='test -z "$ac_c_werror_flag"
5797 || test ! -s conftest.err'
979273e3
NN
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; } &&
5803 { ac_try='test -s conftest.$ac_objext'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 (eval $ac_try) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
252b5132
RH
5809 ac_cv_c_const=yes
5810else
979273e3
NN
5811 echo "$as_me: failed program was:" >&5
5812sed 's/^/| /' conftest.$ac_ext >&5
5813
5814ac_cv_c_const=no
252b5132 5815fi
979273e3 5816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5817fi
979273e3
NN
5818echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5819echo "${ECHO_T}$ac_cv_c_const" >&6
252b5132 5820if test $ac_cv_c_const = no; then
979273e3
NN
5821
5822cat >>confdefs.h <<\_ACEOF
5823#define const
5824_ACEOF
252b5132
RH
5825
5826fi
5827
979273e3
NN
5828echo "$as_me:$LINENO: checking for inline" >&5
5829echo $ECHO_N "checking for inline... $ECHO_C" >&6
5830if test "${ac_cv_c_inline+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5832else
5833 ac_cv_c_inline=no
5834for ac_kw in inline __inline__ __inline; do
979273e3
NN
5835 cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h. */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h. */
5841#ifndef __cplusplus
5842typedef int foo_t;
5843static $ac_kw foo_t static_foo () {return 0; }
5844$ac_kw foo_t foo () {return 0; }
5845#endif
5846
5847_ACEOF
5848rm -f conftest.$ac_objext
5849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5850 (eval $ac_compile) 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
8ae85421
AM
5857 { ac_try='test -z "$ac_c_werror_flag"
5858 || test ! -s conftest.err'
979273e3
NN
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 (eval $ac_try) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try='test -s conftest.$ac_objext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 ac_cv_c_inline=$ac_kw; break
5871else
5872 echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
5875fi
5876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5877done
5878
5879fi
5880echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5881echo "${ECHO_T}$ac_cv_c_inline" >&6
5882
5883
5884case $ac_cv_c_inline in
5885 inline | yes) ;;
5886 *)
5887 case $ac_cv_c_inline in
5888 no) ac_val=;;
5889 *) ac_val=$ac_cv_c_inline;;
5890 esac
5891 cat >>confdefs.h <<_ACEOF
5892#ifndef __cplusplus
5893#define inline $ac_val
5894#endif
5895_ACEOF
5896 ;;
5897esac
5898
5899# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5900
5901
5902
5903
5904
5905
5906
5907
252b5132 5908
979273e3
NN
5909for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5910 inttypes.h stdint.h unistd.h
5911do
5912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5913echo "$as_me:$LINENO: checking for $ac_header" >&5
5914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5915if eval "test \"\${$as_ac_Header+set}\" = set"; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917else
5918 cat >conftest.$ac_ext <<_ACEOF
5919/* confdefs.h. */
5920_ACEOF
5921cat confdefs.h >>conftest.$ac_ext
5922cat >>conftest.$ac_ext <<_ACEOF
5923/* end confdefs.h. */
5924$ac_includes_default
5925
5926#include <$ac_header>
5927_ACEOF
5928rm -f conftest.$ac_objext
5929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
8ae85421
AM
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
979273e3
NN
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 eval "$as_ac_Header=yes"
5951else
5952 echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955eval "$as_ac_Header=no"
5956fi
5957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958fi
5959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5961if test `eval echo '${'$as_ac_Header'}'` = yes; then
5962 cat >>confdefs.h <<_ACEOF
5963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5964_ACEOF
252b5132
RH
5965
5966fi
5967
979273e3
NN
5968done
5969
252b5132 5970
979273e3
NN
5971echo "$as_me:$LINENO: checking for off_t" >&5
5972echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5973if test "${ac_cv_type_off_t+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5975else
979273e3
NN
5976 cat >conftest.$ac_ext <<_ACEOF
5977/* confdefs.h. */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5981/* end confdefs.h. */
5982$ac_includes_default
5983int
5984main ()
5985{
5986if ((off_t *) 0)
5987 return 0;
5988if (sizeof (off_t))
5989 return 0;
5990 ;
5991 return 0;
5992}
5993_ACEOF
5994rm -f conftest.$ac_objext
5995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5996 (eval $ac_compile) 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
8ae85421
AM
6003 { ac_try='test -z "$ac_c_werror_flag"
6004 || test ! -s conftest.err'
979273e3
NN
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
a2d91340 6016 ac_cv_type_off_t=yes
252b5132 6017else
979273e3
NN
6018 echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
252b5132 6020
979273e3 6021ac_cv_type_off_t=no
252b5132 6022fi
979273e3
NN
6023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6024fi
6025echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6026echo "${ECHO_T}$ac_cv_type_off_t" >&6
6027if test $ac_cv_type_off_t = yes; then
6028 :
6029else
6030
6031cat >>confdefs.h <<_ACEOF
252b5132 6032#define off_t long
979273e3 6033_ACEOF
252b5132
RH
6034
6035fi
6036
979273e3
NN
6037echo "$as_me:$LINENO: checking for size_t" >&5
6038echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6039if test "${ac_cv_type_size_t+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6041else
979273e3
NN
6042 cat >conftest.$ac_ext <<_ACEOF
6043/* confdefs.h. */
6044_ACEOF
6045cat confdefs.h >>conftest.$ac_ext
6046cat >>conftest.$ac_ext <<_ACEOF
6047/* end confdefs.h. */
6048$ac_includes_default
6049int
6050main ()
6051{
6052if ((size_t *) 0)
6053 return 0;
6054if (sizeof (size_t))
6055 return 0;
6056 ;
6057 return 0;
6058}
6059_ACEOF
6060rm -f conftest.$ac_objext
6061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062 (eval $ac_compile) 2>conftest.er1
6063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
8ae85421
AM
6069 { ac_try='test -z "$ac_c_werror_flag"
6070 || test ! -s conftest.err'
979273e3
NN
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; } &&
6076 { ac_try='test -s conftest.$ac_objext'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 (eval $ac_try) 2>&5
6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; }; then
a2d91340 6082 ac_cv_type_size_t=yes
252b5132 6083else
979273e3
NN
6084 echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
252b5132 6086
979273e3
NN
6087ac_cv_type_size_t=no
6088fi
6089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6090fi
979273e3
NN
6091echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6092echo "${ECHO_T}$ac_cv_type_size_t" >&6
6093if test $ac_cv_type_size_t = yes; then
6094 :
6095else
6096
6097cat >>confdefs.h <<_ACEOF
252b5132 6098#define size_t unsigned
979273e3 6099_ACEOF
252b5132
RH
6100
6101fi
6102
6103# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6104# for constant arguments. Useless!
979273e3
NN
6105echo "$as_me:$LINENO: checking for working alloca.h" >&5
6106echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6107if test "${ac_cv_working_alloca_h+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109else
6110 cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h. */
252b5132 6116#include <alloca.h>
979273e3
NN
6117int
6118main ()
6119{
6120char *p = (char *) alloca (2 * sizeof (int));
6121 ;
6122 return 0;
6123}
6124_ACEOF
6125rm -f conftest.$ac_objext conftest$ac_exeext
6126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6127 (eval $ac_link) 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
8ae85421
AM
6134 { ac_try='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
979273e3
NN
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest$ac_exeext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_cv_working_alloca_h=yes
6148else
6149 echo "$as_me: failed program was:" >&5
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
6152ac_cv_working_alloca_h=no
6153fi
6154rm -f conftest.err conftest.$ac_objext \
6155 conftest$ac_exeext conftest.$ac_ext
6156fi
6157echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6158echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6159if test $ac_cv_working_alloca_h = yes; then
6160
6161cat >>confdefs.h <<\_ACEOF
252b5132 6162#define HAVE_ALLOCA_H 1
979273e3 6163_ACEOF
252b5132
RH
6164
6165fi
6166
979273e3
NN
6167echo "$as_me:$LINENO: checking for alloca" >&5
6168echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6169if test "${ac_cv_func_alloca_works+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6171else
979273e3
NN
6172 cat >conftest.$ac_ext <<_ACEOF
6173/* confdefs.h. */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h. */
252b5132
RH
6178#ifdef __GNUC__
6179# define alloca __builtin_alloca
6180#else
6181# ifdef _MSC_VER
6182# include <malloc.h>
6183# define alloca _alloca
6184# else
6185# if HAVE_ALLOCA_H
6186# include <alloca.h>
6187# else
6188# ifdef _AIX
6189 #pragma alloca
6190# else
6191# ifndef alloca /* predefined by HP cc +Olibcalls */
6192char *alloca ();
6193# endif
6194# endif
6195# endif
6196# endif
6197#endif
6198
979273e3
NN
6199int
6200main ()
6201{
6202char *p = (char *) alloca (1);
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207rm -f conftest.$ac_objext conftest$ac_exeext
6208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6209 (eval $ac_link) 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
8ae85421
AM
6216 { ac_try='test -z "$ac_c_werror_flag"
6217 || test ! -s conftest.err'
979273e3
NN
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; } &&
6223 { ac_try='test -s conftest$ac_exeext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 (eval $ac_try) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
252b5132
RH
6229 ac_cv_func_alloca_works=yes
6230else
979273e3
NN
6231 echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
6234ac_cv_func_alloca_works=no
252b5132 6235fi
979273e3
NN
6236rm -f conftest.err conftest.$ac_objext \
6237 conftest$ac_exeext conftest.$ac_ext
252b5132 6238fi
979273e3
NN
6239echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6240echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6241
252b5132 6242if test $ac_cv_func_alloca_works = yes; then
252b5132 6243
979273e3
NN
6244cat >>confdefs.h <<\_ACEOF
6245#define HAVE_ALLOCA 1
6246_ACEOF
252b5132 6247
979273e3 6248else
252b5132 6249 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
979273e3
NN
6250# that cause trouble. Some versions do not even contain alloca or
6251# contain a buggy version. If you still want to use their alloca,
6252# use ar to extract alloca.o from them instead of compiling alloca.c.
6253
6254ALLOCA=alloca.$ac_objext
6255
6256cat >>confdefs.h <<\_ACEOF
252b5132 6257#define C_ALLOCA 1
979273e3 6258_ACEOF
252b5132
RH
6259
6260
979273e3
NN
6261echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6262echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6263if test "${ac_cv_os_cray+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6265else
979273e3
NN
6266 cat >conftest.$ac_ext <<_ACEOF
6267/* confdefs.h. */
6268_ACEOF
6269cat confdefs.h >>conftest.$ac_ext
6270cat >>conftest.$ac_ext <<_ACEOF
6271/* end confdefs.h. */
252b5132
RH
6272#if defined(CRAY) && ! defined(CRAY2)
6273webecray
6274#else
6275wenotbecray
6276#endif
6277
979273e3 6278_ACEOF
252b5132 6279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
979273e3 6280 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6281 ac_cv_os_cray=yes
6282else
252b5132
RH
6283 ac_cv_os_cray=no
6284fi
6285rm -f conftest*
6286
6287fi
979273e3
NN
6288echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6289echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6290if test $ac_cv_os_cray = yes; then
979273e3
NN
6291 for ac_func in _getb67 GETB67 getb67; do
6292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6293echo "$as_me:$LINENO: checking for $ac_func" >&5
6294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6295if eval "test \"\${$as_ac_var+set}\" = set"; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298 cat >conftest.$ac_ext <<_ACEOF
6299/* confdefs.h. */
6300_ACEOF
6301cat confdefs.h >>conftest.$ac_ext
6302cat >>conftest.$ac_ext <<_ACEOF
6303/* end confdefs.h. */
6304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6306#define $ac_func innocuous_$ac_func
6307
252b5132 6308/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
6309 which can conflict with char $ac_func (); below.
6310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6311 <limits.h> exists even on freestanding compilers. */
6312
6313#ifdef __STDC__
6314# include <limits.h>
6315#else
6316# include <assert.h>
6317#endif
252b5132 6318
979273e3 6319#undef $ac_func
252b5132 6320
979273e3
NN
6321/* Override any gcc2 internal prototype to avoid an error. */
6322#ifdef __cplusplus
6323extern "C"
6324{
6325#endif
6326/* We use char because int might match the return type of a gcc2
6327 builtin and then its argument prototype would still apply. */
6328char $ac_func ();
252b5132
RH
6329/* The GNU C library defines this for functions which it implements
6330 to always fail with ENOSYS. Some functions are actually named
6331 something starting with __ and the normal name is an alias. */
6332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6333choke me
6334#else
979273e3
NN
6335char (*f) () = $ac_func;
6336#endif
6337#ifdef __cplusplus
6338}
252b5132
RH
6339#endif
6340
979273e3
NN
6341int
6342main ()
6343{
6344return f != $ac_func;
6345 ;
6346 return 0;
6347}
6348_ACEOF
6349rm -f conftest.$ac_objext conftest$ac_exeext
6350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6351 (eval $ac_link) 2>conftest.er1
6352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
8ae85421
AM
6358 { ac_try='test -z "$ac_c_werror_flag"
6359 || test ! -s conftest.err'
979273e3
NN
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; } &&
6365 { ac_try='test -s conftest$ac_exeext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 eval "$as_ac_var=yes"
6372else
6373 echo "$as_me: failed program was:" >&5
6374sed 's/^/| /' conftest.$ac_ext >&5
6375
6376eval "$as_ac_var=no"
6377fi
6378rm -f conftest.err conftest.$ac_objext \
6379 conftest$ac_exeext conftest.$ac_ext
6380fi
6381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6382echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6383if test `eval echo '${'$as_ac_var'}'` = yes; then
6384
6385cat >>confdefs.h <<_ACEOF
252b5132 6386#define CRAY_STACKSEG_END $ac_func
979273e3 6387_ACEOF
252b5132 6388
979273e3 6389 break
252b5132
RH
6390fi
6391
979273e3 6392 done
252b5132
RH
6393fi
6394
979273e3
NN
6395echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6396echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6397if test "${ac_cv_c_stack_direction+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6399else
6400 if test "$cross_compiling" = yes; then
6401 ac_cv_c_stack_direction=0
6402else
979273e3
NN
6403 cat >conftest.$ac_ext <<_ACEOF
6404/* confdefs.h. */
6405_ACEOF
6406cat confdefs.h >>conftest.$ac_ext
6407cat >>conftest.$ac_ext <<_ACEOF
6408/* end confdefs.h. */
6409int
252b5132
RH
6410find_stack_direction ()
6411{
6412 static char *addr = 0;
6413 auto char dummy;
6414 if (addr == 0)
6415 {
6416 addr = &dummy;
6417 return find_stack_direction ();
6418 }
6419 else
6420 return (&dummy > addr) ? 1 : -1;
6421}
979273e3
NN
6422
6423int
252b5132
RH
6424main ()
6425{
979273e3 6426 exit (find_stack_direction () < 0);
252b5132 6427}
979273e3
NN
6428_ACEOF
6429rm -f conftest$ac_exeext
6430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431 (eval $ac_link) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
252b5132
RH
6440 ac_cv_c_stack_direction=1
6441else
979273e3
NN
6442 echo "$as_me: program exited with status $ac_status" >&5
6443echo "$as_me: failed program was:" >&5
6444sed 's/^/| /' conftest.$ac_ext >&5
6445
6446( exit $ac_status )
6447ac_cv_c_stack_direction=-1
252b5132 6448fi
979273e3 6449rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6450fi
252b5132 6451fi
979273e3
NN
6452echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6453echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6454
979273e3 6455cat >>confdefs.h <<_ACEOF
252b5132 6456#define STACK_DIRECTION $ac_cv_c_stack_direction
979273e3
NN
6457_ACEOF
6458
252b5132
RH
6459
6460fi
6461
979273e3
NN
6462
6463
6464for ac_header in stdlib.h unistd.h
252b5132 6465do
979273e3
NN
6466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6467if eval "test \"\${$as_ac_Header+set}\" = set"; then
6468 echo "$as_me:$LINENO: checking for $ac_header" >&5
6469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6470if eval "test \"\${$as_ac_Header+set}\" = set"; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472fi
6473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6475else
6476 # Is the header compilable?
6477echo "$as_me:$LINENO: checking $ac_header usability" >&5
6478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6479cat >conftest.$ac_ext <<_ACEOF
6480/* confdefs.h. */
6481_ACEOF
6482cat confdefs.h >>conftest.$ac_ext
6483cat >>conftest.$ac_ext <<_ACEOF
6484/* end confdefs.h. */
6485$ac_includes_default
6486#include <$ac_header>
6487_ACEOF
6488rm -f conftest.$ac_objext
6489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490 (eval $ac_compile) 2>conftest.er1
6491 ac_status=$?
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
8ae85421
AM
6497 { ac_try='test -z "$ac_c_werror_flag"
6498 || test ! -s conftest.err'
979273e3
NN
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try='test -s conftest.$ac_objext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_header_compiler=yes
6511else
6512 echo "$as_me: failed program was:" >&5
6513sed 's/^/| /' conftest.$ac_ext >&5
6514
6515ac_header_compiler=no
6516fi
6517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6518echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6519echo "${ECHO_T}$ac_header_compiler" >&6
6520
6521# Is the header present?
6522echo "$as_me:$LINENO: checking $ac_header presence" >&5
6523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6524cat >conftest.$ac_ext <<_ACEOF
6525/* confdefs.h. */
6526_ACEOF
6527cat confdefs.h >>conftest.$ac_ext
6528cat >>conftest.$ac_ext <<_ACEOF
6529/* end confdefs.h. */
6530#include <$ac_header>
6531_ACEOF
6532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6534 ac_status=$?
6535 grep -v '^ *+' conftest.er1 >conftest.err
6536 rm -f conftest.er1
6537 cat conftest.err >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } >/dev/null; then
6540 if test -s conftest.err; then
6541 ac_cpp_err=$ac_c_preproc_warn_flag
6542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6543 else
6544 ac_cpp_err=
6545 fi
252b5132 6546else
979273e3 6547 ac_cpp_err=yes
252b5132 6548fi
979273e3
NN
6549if test -z "$ac_cpp_err"; then
6550 ac_header_preproc=yes
6551else
6552 echo "$as_me: failed program was:" >&5
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
6555 ac_header_preproc=no
252b5132 6556fi
979273e3
NN
6557rm -f conftest.err conftest.$ac_ext
6558echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6559echo "${ECHO_T}$ac_header_preproc" >&6
6560
6561# So? What about this header?
6562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6563 yes:no: )
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6568 ac_header_preproc=yes
6569 ;;
6570 no:yes:* )
6571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6583 (
6584 cat <<\_ASBOX
6585## ------------------------------------------ ##
6586## Report this to the AC_PACKAGE_NAME lists. ##
6587## ------------------------------------------ ##
6588_ASBOX
6589 ) |
6590 sed "s/^/$as_me: WARNING: /" >&2
6591 ;;
6592esac
6593echo "$as_me:$LINENO: checking for $ac_header" >&5
6594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6595if eval "test \"\${$as_ac_Header+set}\" = set"; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6597else
979273e3
NN
6598 eval "$as_ac_Header=\$ac_header_preproc"
6599fi
6600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6602
6603fi
6604if test `eval echo '${'$as_ac_Header'}'` = yes; then
6605 cat >>confdefs.h <<_ACEOF
6606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6607_ACEOF
6608
252b5132 6609fi
979273e3 6610
252b5132
RH
6611done
6612
979273e3 6613
252b5132
RH
6614for ac_func in getpagesize
6615do
979273e3
NN
6616as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6617echo "$as_me:$LINENO: checking for $ac_func" >&5
6618echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6619if eval "test \"\${$as_ac_var+set}\" = set"; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622 cat >conftest.$ac_ext <<_ACEOF
6623/* confdefs.h. */
6624_ACEOF
6625cat confdefs.h >>conftest.$ac_ext
6626cat >>conftest.$ac_ext <<_ACEOF
6627/* end confdefs.h. */
6628/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6630#define $ac_func innocuous_$ac_func
6631
252b5132 6632/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
6633 which can conflict with char $ac_func (); below.
6634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6635 <limits.h> exists even on freestanding compilers. */
252b5132 6636
979273e3
NN
6637#ifdef __STDC__
6638# include <limits.h>
6639#else
6640# include <assert.h>
6641#endif
252b5132 6642
979273e3
NN
6643#undef $ac_func
6644
6645/* Override any gcc2 internal prototype to avoid an error. */
6646#ifdef __cplusplus
6647extern "C"
6648{
6649#endif
6650/* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6652char $ac_func ();
252b5132
RH
6653/* The GNU C library defines this for functions which it implements
6654 to always fail with ENOSYS. Some functions are actually named
6655 something starting with __ and the normal name is an alias. */
6656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6657choke me
6658#else
979273e3
NN
6659char (*f) () = $ac_func;
6660#endif
6661#ifdef __cplusplus
6662}
252b5132
RH
6663#endif
6664
979273e3
NN
6665int
6666main ()
6667{
6668return f != $ac_func;
6669 ;
6670 return 0;
6671}
6672_ACEOF
6673rm -f conftest.$ac_objext conftest$ac_exeext
6674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6675 (eval $ac_link) 2>conftest.er1
6676 ac_status=$?
6677 grep -v '^ *+' conftest.er1 >conftest.err
6678 rm -f conftest.er1
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } &&
8ae85421
AM
6682 { ac_try='test -z "$ac_c_werror_flag"
6683 || test ! -s conftest.err'
979273e3
NN
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 (eval $ac_try) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; } &&
6689 { ac_try='test -s conftest$ac_exeext'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 (eval $ac_try) 2>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; }; then
6695 eval "$as_ac_var=yes"
6696else
6697 echo "$as_me: failed program was:" >&5
6698sed 's/^/| /' conftest.$ac_ext >&5
6699
6700eval "$as_ac_var=no"
6701fi
6702rm -f conftest.err conftest.$ac_objext \
6703 conftest$ac_exeext conftest.$ac_ext
6704fi
6705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6706echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6707if test `eval echo '${'$as_ac_var'}'` = yes; then
6708 cat >>confdefs.h <<_ACEOF
6709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6710_ACEOF
252b5132 6711
252b5132
RH
6712fi
6713done
6714
979273e3
NN
6715echo "$as_me:$LINENO: checking for working mmap" >&5
6716echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6717if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6719else
6720 if test "$cross_compiling" = yes; then
6721 ac_cv_func_mmap_fixed_mapped=no
6722else
979273e3
NN
6723 cat >conftest.$ac_ext <<_ACEOF
6724/* confdefs.h. */
6725_ACEOF
6726cat confdefs.h >>conftest.$ac_ext
6727cat >>conftest.$ac_ext <<_ACEOF
6728/* end confdefs.h. */
6729$ac_includes_default
6730/* malloc might have been renamed as rpl_malloc. */
6731#undef malloc
252b5132
RH
6732
6733/* Thanks to Mike Haertel and Jim Avera for this test.
6734 Here is a matrix of mmap possibilities:
6735 mmap private not fixed
6736 mmap private fixed at somewhere currently unmapped
6737 mmap private fixed at somewhere already mapped
6738 mmap shared not fixed
6739 mmap shared fixed at somewhere currently unmapped
6740 mmap shared fixed at somewhere already mapped
6741 For private mappings, we should verify that changes cannot be read()
6742 back from the file, nor mmap's back from the file at a different
6743 address. (There have been systems where private was not correctly
6744 implemented like the infamous i386 svr4.0, and systems where the
979273e3 6745 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6746 like early versions of FreeBSD and possibly contemporary NetBSD.)
6747 For shared mappings, we should conversely verify that changes get
979273e3 6748 propagated back to all the places they're supposed to be.
252b5132
RH
6749
6750 Grep wants private fixed already mapped.
6751 The main things grep needs to know about mmap are:
6752 * does it exist and is it safe to write into the mmap'd area
6753 * how to use it (BSD variants) */
979273e3 6754
252b5132
RH
6755#include <fcntl.h>
6756#include <sys/mman.h>
6757
979273e3
NN
6758#if !STDC_HEADERS && !HAVE_STDLIB_H
6759char *malloc ();
6760#endif
252b5132 6761
979273e3
NN
6762/* This mess was copied from the GNU getpagesize.h. */
6763#if !HAVE_GETPAGESIZE
252b5132 6764/* Assume that all systems that can run configure have sys/param.h. */
979273e3 6765# if !HAVE_SYS_PARAM_H
252b5132
RH
6766# define HAVE_SYS_PARAM_H 1
6767# endif
6768
6769# ifdef _SC_PAGESIZE
6770# define getpagesize() sysconf(_SC_PAGESIZE)
6771# else /* no _SC_PAGESIZE */
979273e3 6772# if HAVE_SYS_PARAM_H
252b5132
RH
6773# include <sys/param.h>
6774# ifdef EXEC_PAGESIZE
6775# define getpagesize() EXEC_PAGESIZE
6776# else /* no EXEC_PAGESIZE */
6777# ifdef NBPG
6778# define getpagesize() NBPG * CLSIZE
6779# ifndef CLSIZE
6780# define CLSIZE 1
6781# endif /* no CLSIZE */
6782# else /* no NBPG */
6783# ifdef NBPC
6784# define getpagesize() NBPC
6785# else /* no NBPC */
6786# ifdef PAGESIZE
6787# define getpagesize() PAGESIZE
6788# endif /* PAGESIZE */
6789# endif /* no NBPC */
6790# endif /* no NBPG */
6791# endif /* no EXEC_PAGESIZE */
6792# else /* no HAVE_SYS_PARAM_H */
6793# define getpagesize() 8192 /* punt totally */
6794# endif /* no HAVE_SYS_PARAM_H */
6795# endif /* no _SC_PAGESIZE */
6796
6797#endif /* no HAVE_GETPAGESIZE */
6798
252b5132 6799int
979273e3 6800main ()
252b5132 6801{
979273e3
NN
6802 char *data, *data2, *data3;
6803 int i, pagesize;
6804 int fd;
6805
6806 pagesize = getpagesize ();
6807
6808 /* First, make a file with some known garbage in it. */
6809 data = (char *) malloc (pagesize);
6810 if (!data)
6811 exit (1);
6812 for (i = 0; i < pagesize; ++i)
6813 *(data + i) = rand ();
6814 umask (0);
6815 fd = creat ("conftest.mmap", 0600);
6816 if (fd < 0)
6817 exit (1);
6818 if (write (fd, data, pagesize) != pagesize)
6819 exit (1);
6820 close (fd);
6821
6822 /* Next, try to mmap the file at a fixed address which already has
6823 something else allocated at it. If we can, also make sure that
6824 we see the same garbage. */
6825 fd = open ("conftest.mmap", O_RDWR);
6826 if (fd < 0)
6827 exit (1);
6828 data2 = (char *) malloc (2 * pagesize);
6829 if (!data2)
6830 exit (1);
6831 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6832 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6833 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6834 exit (1);
6835 for (i = 0; i < pagesize; ++i)
6836 if (*(data + i) != *(data2 + i))
6837 exit (1);
6838
6839 /* Finally, make sure that changes to the mapped area do not
6840 percolate back to the file as seen by read(). (This is a bug on
6841 some variants of i386 svr4.0.) */
6842 for (i = 0; i < pagesize; ++i)
6843 *(data2 + i) = *(data2 + i) + 1;
6844 data3 = (char *) malloc (pagesize);
6845 if (!data3)
6846 exit (1);
6847 if (read (fd, data3, pagesize) != pagesize)
6848 exit (1);
6849 for (i = 0; i < pagesize; ++i)
6850 if (*(data + i) != *(data3 + i))
6851 exit (1);
6852 close (fd);
6853 exit (0);
252b5132 6854}
979273e3
NN
6855_ACEOF
6856rm -f conftest$ac_exeext
6857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6858 (eval $ac_link) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 (eval $ac_try) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; }; then
252b5132
RH
6867 ac_cv_func_mmap_fixed_mapped=yes
6868else
979273e3
NN
6869 echo "$as_me: program exited with status $ac_status" >&5
6870echo "$as_me: failed program was:" >&5
6871sed 's/^/| /' conftest.$ac_ext >&5
6872
6873( exit $ac_status )
6874ac_cv_func_mmap_fixed_mapped=no
252b5132 6875fi
979273e3 6876rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6877fi
252b5132 6878fi
979273e3
NN
6879echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6880echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
252b5132 6881if test $ac_cv_func_mmap_fixed_mapped = yes; then
979273e3
NN
6882
6883cat >>confdefs.h <<\_ACEOF
252b5132 6884#define HAVE_MMAP 1
979273e3 6885_ACEOF
252b5132
RH
6886
6887fi
979273e3
NN
6888rm -f conftest.mmap
6889
6890
6891
6892
252b5132 6893
979273e3
NN
6894
6895
6896
6897
6898
6899
6900for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6901unistd.h values.h sys/param.h
6902do
979273e3
NN
6903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6904if eval "test \"\${$as_ac_Header+set}\" = set"; then
6905 echo "$as_me:$LINENO: checking for $ac_header" >&5
6906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6907if eval "test \"\${$as_ac_Header+set}\" = set"; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909fi
6910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6912else
6913 # Is the header compilable?
6914echo "$as_me:$LINENO: checking $ac_header usability" >&5
6915echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6916cat >conftest.$ac_ext <<_ACEOF
6917/* confdefs.h. */
6918_ACEOF
6919cat confdefs.h >>conftest.$ac_ext
6920cat >>conftest.$ac_ext <<_ACEOF
6921/* end confdefs.h. */
6922$ac_includes_default
6923#include <$ac_header>
6924_ACEOF
6925rm -f conftest.$ac_objext
6926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927 (eval $ac_compile) 2>conftest.er1
6928 ac_status=$?
6929 grep -v '^ *+' conftest.er1 >conftest.err
6930 rm -f conftest.er1
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
8ae85421
AM
6934 { ac_try='test -z "$ac_c_werror_flag"
6935 || test ! -s conftest.err'
979273e3
NN
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; } &&
6941 { ac_try='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_header_compiler=yes
6948else
6949 echo "$as_me: failed program was:" >&5
6950sed 's/^/| /' conftest.$ac_ext >&5
6951
6952ac_header_compiler=no
6953fi
6954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6956echo "${ECHO_T}$ac_header_compiler" >&6
6957
6958# Is the header present?
6959echo "$as_me:$LINENO: checking $ac_header presence" >&5
6960echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6961cat >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#include <$ac_header>
6968_ACEOF
6969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6971 ac_status=$?
6972 grep -v '^ *+' conftest.er1 >conftest.err
6973 rm -f conftest.er1
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } >/dev/null; then
6977 if test -s conftest.err; then
6978 ac_cpp_err=$ac_c_preproc_warn_flag
6979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6980 else
6981 ac_cpp_err=
6982 fi
252b5132 6983else
979273e3 6984 ac_cpp_err=yes
252b5132 6985fi
979273e3
NN
6986if test -z "$ac_cpp_err"; then
6987 ac_header_preproc=yes
6988else
6989 echo "$as_me: failed program was:" >&5
6990sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 ac_header_preproc=no
252b5132 6993fi
979273e3
NN
6994rm -f conftest.err conftest.$ac_ext
6995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6996echo "${ECHO_T}$ac_header_preproc" >&6
6997
6998# So? What about this header?
6999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7000 yes:no: )
7001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7002echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7004echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7005 ac_header_preproc=yes
7006 ;;
7007 no:yes:* )
7008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7009echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7011echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7013echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7015echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7019echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7020 (
7021 cat <<\_ASBOX
7022## ------------------------------------------ ##
7023## Report this to the AC_PACKAGE_NAME lists. ##
7024## ------------------------------------------ ##
7025_ASBOX
7026 ) |
7027 sed "s/^/$as_me: WARNING: /" >&2
7028 ;;
7029esac
7030echo "$as_me:$LINENO: checking for $ac_header" >&5
7031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7032if eval "test \"\${$as_ac_Header+set}\" = set"; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7034else
979273e3
NN
7035 eval "$as_ac_Header=\$ac_header_preproc"
7036fi
7037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7039
7040fi
7041if test `eval echo '${'$as_ac_Header'}'` = yes; then
7042 cat >>confdefs.h <<_ACEOF
7043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7044_ACEOF
7045
252b5132 7046fi
979273e3 7047
252b5132
RH
7048done
7049
979273e3
NN
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
7061__argz_count __argz_stringify __argz_next
7062do
979273e3
NN
7063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7064echo "$as_me:$LINENO: checking for $ac_func" >&5
7065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7066if eval "test \"\${$as_ac_var+set}\" = set"; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069 cat >conftest.$ac_ext <<_ACEOF
7070/* confdefs.h. */
7071_ACEOF
7072cat confdefs.h >>conftest.$ac_ext
7073cat >>conftest.$ac_ext <<_ACEOF
7074/* end confdefs.h. */
7075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7077#define $ac_func innocuous_$ac_func
7078
252b5132 7079/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
7080 which can conflict with char $ac_func (); below.
7081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7082 <limits.h> exists even on freestanding compilers. */
7083
7084#ifdef __STDC__
7085# include <limits.h>
7086#else
7087# include <assert.h>
7088#endif
252b5132 7089
979273e3 7090#undef $ac_func
252b5132 7091
979273e3
NN
7092/* Override any gcc2 internal prototype to avoid an error. */
7093#ifdef __cplusplus
7094extern "C"
7095{
7096#endif
7097/* We use char because int might match the return type of a gcc2
7098 builtin and then its argument prototype would still apply. */
7099char $ac_func ();
252b5132
RH
7100/* The GNU C library defines this for functions which it implements
7101 to always fail with ENOSYS. Some functions are actually named
7102 something starting with __ and the normal name is an alias. */
7103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7104choke me
7105#else
979273e3
NN
7106char (*f) () = $ac_func;
7107#endif
7108#ifdef __cplusplus
7109}
252b5132
RH
7110#endif
7111
979273e3
NN
7112int
7113main ()
7114{
7115return f != $ac_func;
7116 ;
7117 return 0;
7118}
7119_ACEOF
7120rm -f conftest.$ac_objext conftest$ac_exeext
7121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122 (eval $ac_link) 2>conftest.er1
7123 ac_status=$?
7124 grep -v '^ *+' conftest.er1 >conftest.err
7125 rm -f conftest.er1
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } &&
8ae85421
AM
7129 { ac_try='test -z "$ac_c_werror_flag"
7130 || test ! -s conftest.err'
979273e3
NN
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; } &&
7136 { ac_try='test -s conftest$ac_exeext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 (eval $ac_try) 2>&5
7139 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7142 eval "$as_ac_var=yes"
7143else
7144 echo "$as_me: failed program was:" >&5
7145sed 's/^/| /' conftest.$ac_ext >&5
7146
7147eval "$as_ac_var=no"
7148fi
7149rm -f conftest.err conftest.$ac_objext \
7150 conftest$ac_exeext conftest.$ac_ext
7151fi
7152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7154if test `eval echo '${'$as_ac_var'}'` = yes; then
7155 cat >>confdefs.h <<_ACEOF
7156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7157_ACEOF
252b5132 7158
252b5132
RH
7159fi
7160done
7161
7162
7163 if test "${ac_cv_func_stpcpy+set}" != "set"; then
979273e3
NN
7164
7165for ac_func in stpcpy
252b5132 7166do
979273e3
NN
7167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7168echo "$as_me:$LINENO: checking for $ac_func" >&5
7169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7170if eval "test \"\${$as_ac_var+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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7181#define $ac_func innocuous_$ac_func
7182
252b5132 7183/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
7184 which can conflict with char $ac_func (); below.
7185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7186 <limits.h> exists even on freestanding compilers. */
7187
7188#ifdef __STDC__
7189# include <limits.h>
7190#else
7191# include <assert.h>
7192#endif
252b5132 7193
979273e3 7194#undef $ac_func
252b5132 7195
979273e3
NN
7196/* Override any gcc2 internal prototype to avoid an error. */
7197#ifdef __cplusplus
7198extern "C"
7199{
7200#endif
7201/* We use char because int might match the return type of a gcc2
7202 builtin and then its argument prototype would still apply. */
7203char $ac_func ();
252b5132
RH
7204/* The GNU C library defines this for functions which it implements
7205 to always fail with ENOSYS. Some functions are actually named
7206 something starting with __ and the normal name is an alias. */
7207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7208choke me
7209#else
979273e3
NN
7210char (*f) () = $ac_func;
7211#endif
7212#ifdef __cplusplus
7213}
252b5132
RH
7214#endif
7215
979273e3
NN
7216int
7217main ()
7218{
7219return f != $ac_func;
7220 ;
7221 return 0;
7222}
7223_ACEOF
7224rm -f conftest.$ac_objext conftest$ac_exeext
7225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7226 (eval $ac_link) 2>conftest.er1
7227 ac_status=$?
7228 grep -v '^ *+' conftest.er1 >conftest.err
7229 rm -f conftest.er1
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } &&
8ae85421
AM
7233 { ac_try='test -z "$ac_c_werror_flag"
7234 || test ! -s conftest.err'
979273e3
NN
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 (eval $ac_try) 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try='test -s conftest$ac_exeext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 (eval $ac_try) 2>&5
7243 ac_status=$?
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 eval "$as_ac_var=yes"
7247else
7248 echo "$as_me: failed program was:" >&5
7249sed 's/^/| /' conftest.$ac_ext >&5
7250
7251eval "$as_ac_var=no"
7252fi
7253rm -f conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7255fi
7256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7257echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7258if test `eval echo '${'$as_ac_var'}'` = yes; then
7259 cat >>confdefs.h <<_ACEOF
7260#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7261_ACEOF
252b5132 7262
252b5132
RH
7263fi
7264done
7265
7266 fi
7267 if test "${ac_cv_func_stpcpy}" = "yes"; then
979273e3
NN
7268
7269cat >>confdefs.h <<\_ACEOF
252b5132 7270#define HAVE_STPCPY 1
979273e3 7271_ACEOF
252b5132
RH
7272
7273 fi
7274
7275 if test $ac_cv_header_locale_h = yes; then
979273e3
NN
7276 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7277echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7278if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280else
7281 cat >conftest.$ac_ext <<_ACEOF
7282/* confdefs.h. */
7283_ACEOF
7284cat confdefs.h >>conftest.$ac_ext
7285cat >>conftest.$ac_ext <<_ACEOF
7286/* end confdefs.h. */
252b5132 7287#include <locale.h>
979273e3
NN
7288int
7289main ()
7290{
252b5132 7291return LC_MESSAGES
979273e3
NN
7292 ;
7293 return 0;
7294}
7295_ACEOF
7296rm -f conftest.$ac_objext conftest$ac_exeext
7297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7298 (eval $ac_link) 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
8ae85421
AM
7305 { ac_try='test -z "$ac_c_werror_flag"
7306 || test ! -s conftest.err'
979273e3
NN
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 (eval $ac_try) 2>&5
7309 ac_status=$?
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; } &&
7312 { ac_try='test -s conftest$ac_exeext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
252b5132
RH
7318 am_cv_val_LC_MESSAGES=yes
7319else
979273e3
NN
7320 echo "$as_me: failed program was:" >&5
7321sed 's/^/| /' conftest.$ac_ext >&5
7322
7323am_cv_val_LC_MESSAGES=no
252b5132 7324fi
979273e3
NN
7325rm -f conftest.err conftest.$ac_objext \
7326 conftest$ac_exeext conftest.$ac_ext
252b5132 7327fi
979273e3
NN
7328echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7329echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
252b5132 7330 if test $am_cv_val_LC_MESSAGES = yes; then
979273e3
NN
7331
7332cat >>confdefs.h <<\_ACEOF
252b5132 7333#define HAVE_LC_MESSAGES 1
979273e3 7334_ACEOF
252b5132
RH
7335
7336 fi
7337 fi
979273e3
NN
7338 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7339echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7340 # Check whether --enable-nls or --disable-nls was given.
7341if test "${enable_nls+set}" = set; then
7342 enableval="$enable_nls"
7343 USE_NLS=$enableval
7344else
7345 USE_NLS=yes
979273e3
NN
7346fi;
7347 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7348echo "${ECHO_T}$USE_NLS" >&6
252b5132 7349
252b5132
RH
7350
7351 USE_INCLUDED_LIBINTL=no
7352
7353 if test "$USE_NLS" = "yes"; then
979273e3
NN
7354 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7355echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7356
7357# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7358if test "${with_included_gettext+set}" = set; then
7359 withval="$with_included_gettext"
7360 nls_cv_force_use_gnu_gettext=$withval
7361else
7362 nls_cv_force_use_gnu_gettext=no
979273e3
NN
7363fi;
7364 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7365echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7366
7367 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7368 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7369 nls_cv_header_intl=
7370 nls_cv_header_libgt=
a53bf506 7371 CATOBJEXT=
252b5132 7372
979273e3
NN
7373 if test "${ac_cv_header_libintl_h+set}" = set; then
7374 echo "$as_me:$LINENO: checking for libintl.h" >&5
7375echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7376if test "${ac_cv_header_libintl_h+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7378fi
7379echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7380echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7381else
7382 # Is the header compilable?
7383echo "$as_me:$LINENO: checking libintl.h usability" >&5
7384echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7385cat >conftest.$ac_ext <<_ACEOF
7386/* confdefs.h. */
7387_ACEOF
7388cat confdefs.h >>conftest.$ac_ext
7389cat >>conftest.$ac_ext <<_ACEOF
7390/* end confdefs.h. */
7391$ac_includes_default
252b5132 7392#include <libintl.h>
979273e3
NN
7393_ACEOF
7394rm -f conftest.$ac_objext
7395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7396 (eval $ac_compile) 2>conftest.er1
7397 ac_status=$?
7398 grep -v '^ *+' conftest.er1 >conftest.err
7399 rm -f conftest.er1
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
8ae85421
AM
7403 { ac_try='test -z "$ac_c_werror_flag"
7404 || test ! -s conftest.err'
979273e3
NN
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try='test -s conftest.$ac_objext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_header_compiler=yes
7417else
7418 echo "$as_me: failed program was:" >&5
7419sed 's/^/| /' conftest.$ac_ext >&5
7420
7421ac_header_compiler=no
7422fi
7423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7425echo "${ECHO_T}$ac_header_compiler" >&6
7426
7427# Is the header present?
7428echo "$as_me:$LINENO: checking libintl.h presence" >&5
7429echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7430cat >conftest.$ac_ext <<_ACEOF
7431/* confdefs.h. */
7432_ACEOF
7433cat confdefs.h >>conftest.$ac_ext
7434cat >>conftest.$ac_ext <<_ACEOF
7435/* end confdefs.h. */
7436#include <libintl.h>
7437_ACEOF
7438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } >/dev/null; then
7446 if test -s conftest.err; then
7447 ac_cpp_err=$ac_c_preproc_warn_flag
7448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7449 else
7450 ac_cpp_err=
7451 fi
252b5132 7452else
979273e3 7453 ac_cpp_err=yes
252b5132 7454fi
979273e3
NN
7455if test -z "$ac_cpp_err"; then
7456 ac_header_preproc=yes
7457else
7458 echo "$as_me: failed program was:" >&5
7459sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 ac_header_preproc=no
7462fi
7463rm -f conftest.err conftest.$ac_ext
7464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7465echo "${ECHO_T}$ac_header_preproc" >&6
7466
7467# So? What about this header?
7468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7469 yes:no: )
7470 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7471echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7472 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7473echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7474 ac_header_preproc=yes
7475 ;;
7476 no:yes:* )
7477 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7478echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7480echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7482echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7484echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7485 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7486echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7488echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7489 (
7490 cat <<\_ASBOX
7491## ------------------------------------------ ##
7492## Report this to the AC_PACKAGE_NAME lists. ##
7493## ------------------------------------------ ##
7494_ASBOX
7495 ) |
7496 sed "s/^/$as_me: WARNING: /" >&2
7497 ;;
7498esac
7499echo "$as_me:$LINENO: checking for libintl.h" >&5
7500echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7501if test "${ac_cv_header_libintl_h+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503else
7504 ac_cv_header_libintl_h=$ac_header_preproc
7505fi
7506echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7507echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7508
252b5132 7509fi
979273e3
NN
7510if test $ac_cv_header_libintl_h = yes; then
7511 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7512echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7513if test "${gt_cv_func_gettext_libc+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7515else
979273e3
NN
7516 cat >conftest.$ac_ext <<_ACEOF
7517/* confdefs.h. */
7518_ACEOF
7519cat confdefs.h >>conftest.$ac_ext
7520cat >>conftest.$ac_ext <<_ACEOF
7521/* end confdefs.h. */
252b5132 7522#include <libintl.h>
979273e3
NN
7523int
7524main ()
7525{
252b5132 7526return (int) gettext ("")
979273e3
NN
7527 ;
7528 return 0;
7529}
7530_ACEOF
7531rm -f conftest.$ac_objext conftest$ac_exeext
7532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7533 (eval $ac_link) 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
8ae85421
AM
7540 { ac_try='test -z "$ac_c_werror_flag"
7541 || test ! -s conftest.err'
979273e3
NN
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 (eval $ac_try) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; } &&
7547 { ac_try='test -s conftest$ac_exeext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
252b5132
RH
7553 gt_cv_func_gettext_libc=yes
7554else
979273e3
NN
7555 echo "$as_me: failed program was:" >&5
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
7558gt_cv_func_gettext_libc=no
252b5132 7559fi
979273e3
NN
7560rm -f conftest.err conftest.$ac_objext \
7561 conftest$ac_exeext conftest.$ac_ext
252b5132 7562fi
979273e3
NN
7563echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7564echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7565
7566 if test "$gt_cv_func_gettext_libc" != "yes"; then
979273e3
NN
7567 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7568echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7569if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7571else
979273e3 7572 ac_check_lib_save_LIBS=$LIBS
252b5132 7573LIBS="-lintl $LIBS"
979273e3
NN
7574cat >conftest.$ac_ext <<_ACEOF
7575/* confdefs.h. */
7576_ACEOF
7577cat confdefs.h >>conftest.$ac_ext
7578cat >>conftest.$ac_ext <<_ACEOF
7579/* end confdefs.h. */
7580
252b5132 7581/* Override any gcc2 internal prototype to avoid an error. */
979273e3
NN
7582#ifdef __cplusplus
7583extern "C"
7584#endif
252b5132 7585/* We use char because int might match the return type of a gcc2
979273e3
NN
7586 builtin and then its argument prototype would still apply. */
7587char bindtextdomain ();
7588int
7589main ()
7590{
7591bindtextdomain ();
7592 ;
7593 return 0;
7594}
7595_ACEOF
7596rm -f conftest.$ac_objext conftest$ac_exeext
7597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7598 (eval $ac_link) 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
8ae85421
AM
7605 { ac_try='test -z "$ac_c_werror_flag"
7606 || test ! -s conftest.err'
979273e3
NN
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; } &&
7612 { ac_try='test -s conftest$ac_exeext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_cv_lib_intl_bindtextdomain=yes
7619else
7620 echo "$as_me: failed program was:" >&5
7621sed 's/^/| /' conftest.$ac_ext >&5
7622
7623ac_cv_lib_intl_bindtextdomain=no
7624fi
7625rm -f conftest.err conftest.$ac_objext \
7626 conftest$ac_exeext conftest.$ac_ext
7627LIBS=$ac_check_lib_save_LIBS
7628fi
7629echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7630echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7631if test $ac_cv_lib_intl_bindtextdomain = yes; then
7632 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7633echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7634if test "${gt_cv_func_gettext_libintl+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636else
7637 cat >conftest.$ac_ext <<_ACEOF
7638/* confdefs.h. */
7639_ACEOF
7640cat confdefs.h >>conftest.$ac_ext
7641cat >>conftest.$ac_ext <<_ACEOF
7642/* end confdefs.h. */
252b5132 7643
979273e3
NN
7644int
7645main ()
7646{
252b5132 7647return (int) gettext ("")
979273e3
NN
7648 ;
7649 return 0;
7650}
7651_ACEOF
7652rm -f conftest.$ac_objext conftest$ac_exeext
7653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7654 (eval $ac_link) 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
8ae85421
AM
7661 { ac_try='test -z "$ac_c_werror_flag"
7662 || test ! -s conftest.err'
979273e3
NN
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try='test -s conftest$ac_exeext'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
252b5132
RH
7674 gt_cv_func_gettext_libintl=yes
7675else
979273e3
NN
7676 echo "$as_me: failed program was:" >&5
7677sed 's/^/| /' conftest.$ac_ext >&5
7678
7679gt_cv_func_gettext_libintl=no
252b5132 7680fi
979273e3
NN
7681rm -f conftest.err conftest.$ac_objext \
7682 conftest$ac_exeext conftest.$ac_ext
252b5132 7683fi
979273e3
NN
7684echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7685echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7686fi
7687
7688 fi
7689
7690 if test "$gt_cv_func_gettext_libc" = "yes" \
7691 || test "$gt_cv_func_gettext_libintl" = "yes"; then
979273e3
NN
7692
7693cat >>confdefs.h <<\_ACEOF
252b5132 7694#define HAVE_GETTEXT 1
979273e3 7695_ACEOF
252b5132
RH
7696
7697 # Extract the first word of "msgfmt", so it can be a program name with args.
7698set dummy msgfmt; ac_word=$2
979273e3
NN
7699echo "$as_me:$LINENO: checking for $ac_word" >&5
7700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7701if test "${ac_cv_path_MSGFMT+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7703else
7704 case "$MSGFMT" in
7705 /*)
7706 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7707 ;;
7708 *)
7709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7710 for ac_dir in $PATH; do
7711 test -z "$ac_dir" && ac_dir=.
7712 if test -f $ac_dir/$ac_word; then
7713 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7714 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7715 break
7716 fi
7717 fi
7718 done
7719 IFS="$ac_save_ifs"
7720 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7721 ;;
7722esac
7723fi
7724MSGFMT="$ac_cv_path_MSGFMT"
7725if test -n "$MSGFMT"; then
979273e3
NN
7726 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7727echo "${ECHO_T}$MSGFMT" >&6
252b5132 7728else
979273e3
NN
7729 echo "$as_me:$LINENO: result: no" >&5
7730echo "${ECHO_T}no" >&6
252b5132
RH
7731fi
7732 if test "$MSGFMT" != "no"; then
979273e3
NN
7733
7734for ac_func in dcgettext
252b5132 7735do
979273e3
NN
7736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7737echo "$as_me:$LINENO: checking for $ac_func" >&5
7738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7739if eval "test \"\${$as_ac_var+set}\" = set"; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741else
7742 cat >conftest.$ac_ext <<_ACEOF
7743/* confdefs.h. */
7744_ACEOF
7745cat confdefs.h >>conftest.$ac_ext
7746cat >>conftest.$ac_ext <<_ACEOF
7747/* end confdefs.h. */
7748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7750#define $ac_func innocuous_$ac_func
7751
252b5132 7752/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
7753 which can conflict with char $ac_func (); below.
7754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7755 <limits.h> exists even on freestanding compilers. */
7756
7757#ifdef __STDC__
7758# include <limits.h>
7759#else
7760# include <assert.h>
7761#endif
252b5132 7762
979273e3 7763#undef $ac_func
252b5132 7764
979273e3
NN
7765/* Override any gcc2 internal prototype to avoid an error. */
7766#ifdef __cplusplus
7767extern "C"
7768{
7769#endif
7770/* We use char because int might match the return type of a gcc2
7771 builtin and then its argument prototype would still apply. */
7772char $ac_func ();
252b5132
RH
7773/* The GNU C library defines this for functions which it implements
7774 to always fail with ENOSYS. Some functions are actually named
7775 something starting with __ and the normal name is an alias. */
7776#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7777choke me
7778#else
979273e3
NN
7779char (*f) () = $ac_func;
7780#endif
7781#ifdef __cplusplus
7782}
252b5132
RH
7783#endif
7784
979273e3
NN
7785int
7786main ()
7787{
7788return f != $ac_func;
7789 ;
7790 return 0;
7791}
7792_ACEOF
7793rm -f conftest.$ac_objext conftest$ac_exeext
7794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7795 (eval $ac_link) 2>conftest.er1
7796 ac_status=$?
7797 grep -v '^ *+' conftest.er1 >conftest.err
7798 rm -f conftest.er1
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
8ae85421
AM
7802 { ac_try='test -z "$ac_c_werror_flag"
7803 || test ! -s conftest.err'
979273e3
NN
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; } &&
7809 { ac_try='test -s conftest$ac_exeext'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 eval "$as_ac_var=yes"
7816else
7817 echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820eval "$as_ac_var=no"
7821fi
7822rm -f conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7824fi
7825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7826echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7827if test `eval echo '${'$as_ac_var'}'` = yes; then
7828 cat >>confdefs.h <<_ACEOF
7829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7830_ACEOF
252b5132 7831
252b5132
RH
7832fi
7833done
7834
7835 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7836set dummy gmsgfmt; ac_word=$2
979273e3
NN
7837echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839if test "${ac_cv_path_GMSGFMT+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7841else
979273e3
NN
7842 case $GMSGFMT in
7843 [\\/]* | ?:[\\/]*)
252b5132
RH
7844 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7845 ;;
252b5132 7846 *)
979273e3
NN
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848for as_dir in $PATH
7849do
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 break 2
7857 fi
7858done
7859done
7860
252b5132
RH
7861 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7862 ;;
7863esac
7864fi
979273e3
NN
7865GMSGFMT=$ac_cv_path_GMSGFMT
7866
252b5132 7867if test -n "$GMSGFMT"; then
979273e3
NN
7868 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7869echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7870else
979273e3
NN
7871 echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
252b5132
RH
7873fi
7874
7875 # Extract the first word of "xgettext", so it can be a program name with args.
7876set dummy xgettext; ac_word=$2
979273e3
NN
7877echo "$as_me:$LINENO: checking for $ac_word" >&5
7878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7879if test "${ac_cv_path_XGETTEXT+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7881else
7882 case "$XGETTEXT" in
7883 /*)
7884 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7885 ;;
7886 *)
7887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7888 for ac_dir in $PATH; do
7889 test -z "$ac_dir" && ac_dir=.
7890 if test -f $ac_dir/$ac_word; then
7891 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7892 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7893 break
7894 fi
7895 fi
7896 done
7897 IFS="$ac_save_ifs"
7898 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7899 ;;
7900esac
7901fi
7902XGETTEXT="$ac_cv_path_XGETTEXT"
7903if test -n "$XGETTEXT"; then
979273e3
NN
7904 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7905echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7906else
979273e3
NN
7907 echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6
252b5132
RH
7909fi
7910
979273e3
NN
7911 cat >conftest.$ac_ext <<_ACEOF
7912/* confdefs.h. */
7913_ACEOF
7914cat confdefs.h >>conftest.$ac_ext
7915cat >>conftest.$ac_ext <<_ACEOF
7916/* end confdefs.h. */
252b5132 7917
979273e3
NN
7918int
7919main ()
7920{
252b5132
RH
7921extern int _nl_msg_cat_cntr;
7922 return _nl_msg_cat_cntr
979273e3
NN
7923 ;
7924 return 0;
7925}
7926_ACEOF
7927rm -f conftest.$ac_objext conftest$ac_exeext
7928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929 (eval $ac_link) 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
8ae85421
AM
7936 { ac_try='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
979273e3
NN
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 (eval $ac_try) 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest$ac_exeext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
252b5132
RH
7949 CATOBJEXT=.gmo
7950 DATADIRNAME=share
7951else
979273e3
NN
7952 echo "$as_me: failed program was:" >&5
7953sed 's/^/| /' conftest.$ac_ext >&5
7954
7955CATOBJEXT=.mo
252b5132
RH
7956 DATADIRNAME=lib
7957fi
979273e3
NN
7958rm -f conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7960 INSTOBJEXT=.mo
7961 fi
7962 fi
979273e3 7963
252b5132
RH
7964fi
7965
7966
979273e3
NN
7967
7968
a53bf506 7969 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
7970 # Neither gettext nor catgets in included in the C library.
7971 # Fall back on GNU gettext library (assuming it is present).
7972 nls_cv_use_gnu_gettext=yes
252b5132
RH
7973 fi
7974 fi
7975
7976 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7977 INTLOBJS="\$(GETTOBJS)"
7978 # Extract the first word of "msgfmt", so it can be a program name with args.
7979set dummy msgfmt; ac_word=$2
979273e3
NN
7980echo "$as_me:$LINENO: checking for $ac_word" >&5
7981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7982if test "${ac_cv_path_MSGFMT+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7984else
7985 case "$MSGFMT" in
7986 /*)
7987 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7988 ;;
7989 *)
7990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7991 for ac_dir in $PATH; do
7992 test -z "$ac_dir" && ac_dir=.
7993 if test -f $ac_dir/$ac_word; then
7994 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7995 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7996 break
7997 fi
7998 fi
7999 done
8000 IFS="$ac_save_ifs"
8001 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8002 ;;
8003esac
8004fi
8005MSGFMT="$ac_cv_path_MSGFMT"
8006if test -n "$MSGFMT"; then
979273e3
NN
8007 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8008echo "${ECHO_T}$MSGFMT" >&6
252b5132 8009else
979273e3
NN
8010 echo "$as_me:$LINENO: result: no" >&5
8011echo "${ECHO_T}no" >&6
252b5132
RH
8012fi
8013
8014 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8015set dummy gmsgfmt; ac_word=$2
979273e3
NN
8016echo "$as_me:$LINENO: checking for $ac_word" >&5
8017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8018if test "${ac_cv_path_GMSGFMT+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8020else
979273e3
NN
8021 case $GMSGFMT in
8022 [\\/]* | ?:[\\/]*)
252b5132
RH
8023 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8024 ;;
252b5132 8025 *)
979273e3
NN
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8033 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8036 fi
8037done
8038done
8039
252b5132
RH
8040 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8041 ;;
8042esac
8043fi
979273e3
NN
8044GMSGFMT=$ac_cv_path_GMSGFMT
8045
252b5132 8046if test -n "$GMSGFMT"; then
979273e3
NN
8047 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8048echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8049else
979273e3
NN
8050 echo "$as_me:$LINENO: result: no" >&5
8051echo "${ECHO_T}no" >&6
252b5132
RH
8052fi
8053
8054 # Extract the first word of "xgettext", so it can be a program name with args.
8055set dummy xgettext; ac_word=$2
979273e3
NN
8056echo "$as_me:$LINENO: checking for $ac_word" >&5
8057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8058if test "${ac_cv_path_XGETTEXT+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8060else
8061 case "$XGETTEXT" in
8062 /*)
8063 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8064 ;;
8065 *)
8066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8067 for ac_dir in $PATH; do
8068 test -z "$ac_dir" && ac_dir=.
8069 if test -f $ac_dir/$ac_word; then
8070 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8071 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8072 break
8073 fi
8074 fi
8075 done
8076 IFS="$ac_save_ifs"
8077 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8078 ;;
8079esac
8080fi
8081XGETTEXT="$ac_cv_path_XGETTEXT"
8082if test -n "$XGETTEXT"; then
979273e3
NN
8083 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8084echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8085else
979273e3
NN
8086 echo "$as_me:$LINENO: result: no" >&5
8087echo "${ECHO_T}no" >&6
252b5132
RH
8088fi
8089
979273e3 8090
252b5132
RH
8091 USE_INCLUDED_LIBINTL=yes
8092 CATOBJEXT=.gmo
8093 INSTOBJEXT=.mo
8094 DATADIRNAME=share
8095 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8096 INTLLIBS=$INTLDEPS
8097 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8098 nls_cv_header_intl=libintl.h
8099 nls_cv_header_libgt=libgettext.h
8100 fi
8101
8102 if test "$XGETTEXT" != ":"; then
8103 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8104 : ;
8105 else
979273e3
NN
8106 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8107echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
8108 XGETTEXT=":"
8109 fi
8110 fi
8111
8112 # We need to process the po/ directory.
8113 POSUB=po
8114 else
8115 DATADIRNAME=share
8116 nls_cv_header_intl=libintl.h
8117 nls_cv_header_libgt=libgettext.h
8118 fi
8119
8120 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8121 # because some of the sources are only built for this goal.
8122 if test "$PACKAGE" = gettext; then
8123 USE_NLS=yes
8124 USE_INCLUDED_LIBINTL=yes
8125 fi
8126
8127 for lang in $ALL_LINGUAS; do
8128 GMOFILES="$GMOFILES $lang.gmo"
8129 POFILES="$POFILES $lang.po"
8130 done
8131
979273e3
NN
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
c46f8c51
AC
8143 if test "x$CATOBJEXT" != "x"; then
8144
8145cat >>confdefs.h <<\_ACEOF
8146#define ENABLE_NLS 1
8147_ACEOF
8148
8149 fi
979273e3 8150
252b5132
RH
8151
8152 if test "x$CATOBJEXT" != "x"; then
8153 if test "x$ALL_LINGUAS" = "x"; then
8154 LINGUAS=
8155 else
979273e3
NN
8156 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8157echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8158 NEW_LINGUAS=
8159 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8160 case "$ALL_LINGUAS" in
8161 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8162 esac
8163 done
8164 LINGUAS=$NEW_LINGUAS
979273e3
NN
8165 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8166echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8167 fi
8168
8169 if test -n "$LINGUAS"; then
8170 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8171 fi
8172 fi
8173
8174 if test $ac_cv_header_locale_h = yes; then
8175 INCLUDE_LOCALE_H="#include <locale.h>"
8176 else
8177 INCLUDE_LOCALE_H="\
8178/* The system does not provide the header <locale.h>. Take care yourself. */"
8179 fi
979273e3 8180
252b5132
RH
8181
8182 if test -f $srcdir/po2tbl.sed.in; then
8183 if test "$CATOBJEXT" = ".cat"; then
979273e3
NN
8184 if test "${ac_cv_header_linux_version_h+set}" = set; then
8185 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8186echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8187if test "${ac_cv_header_linux_version_h+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189fi
8190echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8191echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8192else
8193 # Is the header compilable?
8194echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8195echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8196cat >conftest.$ac_ext <<_ACEOF
8197/* confdefs.h. */
8198_ACEOF
8199cat confdefs.h >>conftest.$ac_ext
8200cat >>conftest.$ac_ext <<_ACEOF
8201/* end confdefs.h. */
8202$ac_includes_default
252b5132 8203#include <linux/version.h>
979273e3
NN
8204_ACEOF
8205rm -f conftest.$ac_objext
8206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207 (eval $ac_compile) 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8ae85421
AM
8214 { ac_try='test -z "$ac_c_werror_flag"
8215 || test ! -s conftest.err'
979273e3
NN
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 (eval $ac_try) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; } &&
8221 { ac_try='test -s conftest.$ac_objext'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8227 ac_header_compiler=yes
8228else
8229 echo "$as_me: failed program was:" >&5
8230sed 's/^/| /' conftest.$ac_ext >&5
8231
8232ac_header_compiler=no
8233fi
8234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8235echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8236echo "${ECHO_T}$ac_header_compiler" >&6
8237
8238# Is the header present?
8239echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8240echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8241cat >conftest.$ac_ext <<_ACEOF
8242/* confdefs.h. */
8243_ACEOF
8244cat confdefs.h >>conftest.$ac_ext
8245cat >>conftest.$ac_ext <<_ACEOF
8246/* end confdefs.h. */
8247#include <linux/version.h>
8248_ACEOF
8249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8251 ac_status=$?
8252 grep -v '^ *+' conftest.er1 >conftest.err
8253 rm -f conftest.er1
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } >/dev/null; then
8257 if test -s conftest.err; then
8258 ac_cpp_err=$ac_c_preproc_warn_flag
8259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8260 else
8261 ac_cpp_err=
8262 fi
252b5132 8263else
979273e3 8264 ac_cpp_err=yes
252b5132 8265fi
979273e3
NN
8266if test -z "$ac_cpp_err"; then
8267 ac_header_preproc=yes
8268else
8269 echo "$as_me: failed program was:" >&5
8270sed 's/^/| /' conftest.$ac_ext >&5
8271
8272 ac_header_preproc=no
8273fi
8274rm -f conftest.err conftest.$ac_ext
8275echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8276echo "${ECHO_T}$ac_header_preproc" >&6
8277
8278# So? What about this header?
8279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8280 yes:no: )
8281 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8282echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8283 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8284echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8285 ac_header_preproc=yes
8286 ;;
8287 no:yes:* )
8288 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8289echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8290 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8291echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8292 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8293echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8294 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8295echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8296 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8297echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8298 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8299echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8300 (
8301 cat <<\_ASBOX
8302## ------------------------------------------ ##
8303## Report this to the AC_PACKAGE_NAME lists. ##
8304## ------------------------------------------ ##
8305_ASBOX
8306 ) |
8307 sed "s/^/$as_me: WARNING: /" >&2
8308 ;;
8309esac
8310echo "$as_me:$LINENO: checking for linux/version.h" >&5
8311echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8312if test "${ac_cv_header_linux_version_h+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314else
8315 ac_cv_header_linux_version_h=$ac_header_preproc
8316fi
8317echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8318echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8319
252b5132 8320fi
979273e3 8321if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8322 msgformat=linux
8323else
979273e3 8324 msgformat=xopen
252b5132
RH
8325fi
8326
8327
979273e3 8328
252b5132
RH
8329 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8330 fi
8331 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8332 $srcdir/po2tbl.sed.in > po2tbl.sed
8333 fi
8334
8335 if test "$PACKAGE" = "gettext"; then
8336 GT_NO="#NO#"
8337 GT_YES=
8338 else
8339 GT_NO=
8340 GT_YES="#YES#"
8341 fi
979273e3
NN
8342
8343
252b5132
RH
8344
8345 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
979273e3 8346
252b5132
RH
8347
8348 l=
979273e3 8349
252b5132 8350
fcd8210c 8351 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8352 test -d po || mkdir po
8353 if test "x$srcdir" != "x."; then
8354 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8355 posrcprefix="$srcdir/"
8356 else
8357 posrcprefix="../$srcdir/"
8358 fi
8359 else
8360 posrcprefix="../"
8361 fi
8362 rm -f po/POTFILES
8363 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8364 < $srcdir/po/POTFILES.in > po/POTFILES
8365 fi
979273e3 8366
252b5132
RH
8367
8368. ${srcdir}/../bfd/configure.host
8369
b6849f55
NC
8370# Put a plausible default for CC_FOR_BUILD in Makefile.
8371if test -z "$CC_FOR_BUILD"; then
8372 if test "x$cross_compiling" = "xno"; then
8373 CC_FOR_BUILD='$(CC)'
8374 else
8375 CC_FOR_BUILD=gcc
8376 fi
8377fi
8378
8379# Also set EXEEXT_FOR_BUILD.
8380if test "x$cross_compiling" = "xno"; then
8381 EXEEXT_FOR_BUILD='$(EXEEXT)'
8382else
979273e3
NN
8383 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8384echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8385if test "${bfd_cv_build_exeext+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
b6849f55
NC
8387else
8388 rm -f conftest*
8389 echo 'int main () { return 0; }' > conftest.c
8390 bfd_cv_build_exeext=
8391 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8392 for file in conftest.*; do
8393 case $file in
8394 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8395 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8396 esac
8397 done
8398 rm -f conftest*
8399 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8400fi
979273e3
NN
8401echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8402echo "${ECHO_T}$bfd_cv_build_exeext" >&6
b6849f55
NC
8403 EXEEXT_FOR_BUILD=""
8404 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8405fi
8406
8407
252b5132
RH
8408
8409# Find a good install program. We prefer a C program (faster),
8410# so one script is as good as another. But avoid the broken or
8411# incompatible versions:
8412# SysV /etc/install, /usr/sbin/install
8413# SunOS /usr/etc/install
8414# IRIX /sbin/install
8415# AIX /bin/install
979273e3 8416# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8417# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8418# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8419# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 8420# OS/2's system install, which has a completely different semantic
252b5132 8421# ./install, which can be erroneously created by make from ./install.sh.
979273e3
NN
8422echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8423echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8424if test -z "$INSTALL"; then
979273e3
NN
8425if test "${ac_cv_path_install+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8427else
979273e3
NN
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429for as_dir in $PATH
8430do
8431 IFS=$as_save_IFS
8432 test -z "$as_dir" && as_dir=.
8433 # Account for people who put trailing slashes in PATH elements.
8434case $as_dir/ in
8435 ./ | .// | /cC/* | \
8436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8437 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8438 /usr/ucb/* ) ;;
8439 *)
8440 # OSF1 and SCO ODT 3.0 have their own names for install.
8441 # Don't use installbsd from OSF since it installs stuff as root
8442 # by default.
8443 for ac_prog in ginstall scoinst install; do
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8446 if test $ac_prog = install &&
979273e3 8447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8448 # AIX install. It has an incompatible calling convention.
8449 :
979273e3
NN
8450 elif test $ac_prog = install &&
8451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8452 # program-specific install script used by HP pwplus--don't use.
8453 :
252b5132 8454 else
979273e3
NN
8455 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8456 break 3
252b5132
RH
8457 fi
8458 fi
8459 done
979273e3
NN
8460 done
8461 ;;
8462esac
8463done
8464
252b5132
RH
8465
8466fi
8467 if test "${ac_cv_path_install+set}" = set; then
979273e3 8468 INSTALL=$ac_cv_path_install
252b5132
RH
8469 else
8470 # As a last resort, use the slow shell script. We don't cache a
8471 # path for INSTALL within a source directory, because that will
8472 # break other packages using the cache if that directory is
8473 # removed, or if the path is relative.
979273e3 8474 INSTALL=$ac_install_sh
252b5132
RH
8475 fi
8476fi
979273e3
NN
8477echo "$as_me:$LINENO: result: $INSTALL" >&5
8478echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8479
8480# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8481# It thinks the first close brace ends the variable substitution.
8482test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8483
979273e3 8484test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8485
8486test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8487
8488
979273e3
NN
8489
8490
8491
8492for ac_header in string.h strings.h stdlib.h
252b5132 8493do
979273e3
NN
8494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8495if eval "test \"\${$as_ac_Header+set}\" = set"; then
8496 echo "$as_me:$LINENO: checking for $ac_header" >&5
8497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8498if eval "test \"\${$as_ac_Header+set}\" = set"; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8500fi
8501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8503else
8504 # Is the header compilable?
8505echo "$as_me:$LINENO: checking $ac_header usability" >&5
8506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8507cat >conftest.$ac_ext <<_ACEOF
8508/* confdefs.h. */
8509_ACEOF
8510cat confdefs.h >>conftest.$ac_ext
8511cat >>conftest.$ac_ext <<_ACEOF
8512/* end confdefs.h. */
8513$ac_includes_default
8514#include <$ac_header>
8515_ACEOF
8516rm -f conftest.$ac_objext
8517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518 (eval $ac_compile) 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8ae85421
AM
8525 { ac_try='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
979273e3
NN
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest.$ac_objext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8538 ac_header_compiler=yes
8539else
8540 echo "$as_me: failed program was:" >&5
8541sed 's/^/| /' conftest.$ac_ext >&5
8542
8543ac_header_compiler=no
8544fi
8545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8547echo "${ECHO_T}$ac_header_compiler" >&6
8548
8549# Is the header present?
8550echo "$as_me:$LINENO: checking $ac_header presence" >&5
8551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8552cat >conftest.$ac_ext <<_ACEOF
8553/* confdefs.h. */
8554_ACEOF
8555cat confdefs.h >>conftest.$ac_ext
8556cat >>conftest.$ac_ext <<_ACEOF
8557/* end confdefs.h. */
8558#include <$ac_header>
8559_ACEOF
8560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } >/dev/null; then
8568 if test -s conftest.err; then
8569 ac_cpp_err=$ac_c_preproc_warn_flag
8570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8571 else
8572 ac_cpp_err=
8573 fi
252b5132 8574else
979273e3 8575 ac_cpp_err=yes
252b5132 8576fi
979273e3
NN
8577if test -z "$ac_cpp_err"; then
8578 ac_header_preproc=yes
8579else
8580 echo "$as_me: failed program was:" >&5
8581sed 's/^/| /' conftest.$ac_ext >&5
8582
8583 ac_header_preproc=no
252b5132 8584fi
979273e3
NN
8585rm -f conftest.err conftest.$ac_ext
8586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8587echo "${ECHO_T}$ac_header_preproc" >&6
8588
8589# So? What about this header?
8590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8591 yes:no: )
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8596 ac_header_preproc=yes
8597 ;;
8598 no:yes:* )
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8611 (
8612 cat <<\_ASBOX
8613## ------------------------------------------ ##
8614## Report this to the AC_PACKAGE_NAME lists. ##
8615## ------------------------------------------ ##
8616_ASBOX
8617 ) |
8618 sed "s/^/$as_me: WARNING: /" >&2
8619 ;;
8620esac
8621echo "$as_me:$LINENO: checking for $ac_header" >&5
8622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8623if eval "test \"\${$as_ac_Header+set}\" = set"; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8625else
979273e3
NN
8626 eval "$as_ac_Header=\$ac_header_preproc"
8627fi
8628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8630
8631fi
8632if test `eval echo '${'$as_ac_Header'}'` = yes; then
8633 cat >>confdefs.h <<_ACEOF
8634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8635_ACEOF
8636
252b5132 8637fi
979273e3 8638
252b5132
RH
8639done
8640
8641
4bd60896
JG
8642echo "$as_me:$LINENO: checking whether basename is declared" >&5
8643echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8644if test "${ac_cv_have_decl_basename+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8646else
8647 cat >conftest.$ac_ext <<_ACEOF
8648/* confdefs.h. */
8649_ACEOF
8650cat confdefs.h >>conftest.$ac_ext
8651cat >>conftest.$ac_ext <<_ACEOF
8652/* end confdefs.h. */
db5152b4 8653$ac_includes_default
4bd60896
JG
8654int
8655main ()
8656{
8657#ifndef basename
8658 char *p = (char *) basename;
8659#endif
8660
8661 ;
8662 return 0;
8663}
8664_ACEOF
8665rm -f conftest.$ac_objext
8666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8667 (eval $ac_compile) 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try='test -z "$ac_c_werror_flag"
8675 || test ! -s conftest.err'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 (eval $ac_try) 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; } &&
8681 { ac_try='test -s conftest.$ac_objext'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; }; then
8687 ac_cv_have_decl_basename=yes
8688else
8689 echo "$as_me: failed program was:" >&5
8690sed 's/^/| /' conftest.$ac_ext >&5
8691
8692ac_cv_have_decl_basename=no
8693fi
8694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8695fi
8696echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8697echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8698if test $ac_cv_have_decl_basename = yes; then
8699
8700cat >>confdefs.h <<_ACEOF
8701#define HAVE_DECL_BASENAME 1
8702_ACEOF
8703
8704
8705else
8706 cat >>confdefs.h <<_ACEOF
8707#define HAVE_DECL_BASENAME 0
8708_ACEOF
8709
8710
8711fi
8712
8713
8714
6e31aea3
BE
8715cgen_maint=no
8716cgendir='$(srcdir)/../cgen'
8717
8718# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
8719if test "${enable_cgen_maint+set}" = set; then
8720 enableval="$enable_cgen_maint"
8721 case "${enableval}" in
8722 yes) cgen_maint=yes ;;
8723 no) cgen_maint=no ;;
8724 *)
8725 # argument is cgen install directory (not implemented yet).
8726 # Having a `share' directory might be more appropriate for the .scm,
8727 # .cpu, etc. files.
8728 cgen_maint=yes
8729 cgendir=${cgen_maint}/lib/cgen
8730 ;;
8731esac
979273e3 8732fi;
6e31aea3
BE
8733
8734if test x${cgen_maint} = xyes; then
8735 CGEN_MAINT_TRUE=
8736 CGEN_MAINT_FALSE='#'
8737else
8738 CGEN_MAINT_TRUE='#'
8739 CGEN_MAINT_FALSE=
8740fi
8741
252b5132 8742
8ae85421 8743
252b5132
RH
8744using_cgen=no
8745
8746# Horrible hacks to build DLLs on Windows.
8747WIN32LDFLAGS=
8748WIN32LIBADD=
8749case "${host}" in
8750*-*-cygwin*)
8751 if test "$enable_shared" = "yes"; then
8752 WIN32LDFLAGS="-no-undefined"
8753 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
8754 fi
8755 ;;
8756esac
8757
8758
8759
8760# target-specific stuff:
8761
8762# Canonicalize the secondary target names.
8763if test -n "$enable_targets" ; then
8764 for targ in `echo $enable_targets | sed 's/,/ /g'`
8765 do
6d83c84b 8766 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
8767 if test -n "$result" ; then
8768 canon_targets="$canon_targets $result"
8769 else
8770 # Allow targets that config.sub doesn't recognize, like "all".
8771 canon_targets="$canon_targets $targ"
8772 fi
8773 done
8774fi
8775
8776all_targets=false
8777selarchs=
8778for targ in $target $canon_targets
8779do
8780 if test "x$targ" = "xall" ; then
8781 all_targets=true
8782 else
8783 . $srcdir/../bfd/config.bfd
8784 selarchs="$selarchs $targ_archs"
8785 fi
979273e3 8786done
252b5132
RH
8787
8788# Utility var, documents generic cgen support files.
8789
3609e0fe 8790cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
252b5132
RH
8791
8792# We don't do any links based on the target system, just makefile config.
8793
8794if test x${all_targets} = xfalse ; then
8795
8796 # Target architecture .o files.
8797 ta=
8798
8799 for arch in $selarchs
8800 do
8801 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
8802 archdefs="$archdefs -DARCH_$ad"
8803 case "$arch" in
252b5132 8804 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 8805 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 8806 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 8807 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4b7f6baa 8808 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
3609e0fe 8809 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
1fe1f39c 8810 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
252b5132
RH
8811 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
8812 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 8813 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
252b5132 8814 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
c5f5f1f4 8815 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
252b5132
RH
8816 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
8817 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
8818 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
5b93d8bb 8819 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
252b5132 8820 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
9d751335 8821 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
252b5132 8822 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
800eeca4 8823 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 8824 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
47b1a55a 8825 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
c5f5f1f4 8826 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
252b5132 8827 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 ;;
60bcf0fa
NC
8828 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8829 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
252b5132
RH
8830 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
8831 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
7499d566 8832 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
252b5132
RH
8833 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
8834 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3c3bdf30 8835 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
8836 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
8837 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
d031aafb 8838 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
2469cfa2 8839 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
252b5132 8840 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
87e6d782 8841 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
3b16e843 8842 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
e135f41b 8843 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
1e608f98 8844 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 8845 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 8846 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
5dd0794d 8847 bfd_pyramid_arch) ;;
252b5132
RH
8848 bfd_romp_arch) ;;
8849 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 8850 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
09919455 8851 bfd_sh_arch)
d28847ce 8852 # We can't decide what we want just from the CPU family.
e8b872bb
AO
8853 # We want SH5 support unless a specific version of sh is
8854 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
ca0f2ed6
HPN
8855 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
8856 for t in $target $canon_targets; do
8857 case $t in
5b0e55b6 8858 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
942e7dd9 8859 sh-*-linux* | shl-*-linux*)
d28847ce 8860 ta="$ta sh64-dis.lo sh64-opc.lo"
ca0f2ed6
HPN
8861 archdefs="$archdefs -DINCLUDE_SHMEDIA"
8862 break;;
8863 esac;
8864 done
09919455 8865 ta="$ta sh-dis.lo" ;;
252b5132
RH
8866 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
8867 bfd_tahoe_arch) ;;
8868 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
026df7c5 8869 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 8870 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
252b5132
RH
8871 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
8872 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8873 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8874 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8875 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
8876 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
8877 bfd_we32k_arch) ;;
d70c5fc7 8878 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
93fbbb04 8879 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 8880 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
3c9b82ba 8881 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
252b5132
RH
8882 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
8883
8884 "") ;;
979273e3
NN
8885 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
8886echo "$as_me: error: *** unknown target architecture $arch" >&2;}
8887 { (exit 1); exit 1; }; } ;;
252b5132
RH
8888 esac
8889 done
8890
8891 if test $using_cgen = yes ; then
8892 ta="$ta $cgen_files"
8893 fi
8894
8895 # Weed out duplicate .o files.
8896 f=""
8897 for i in $ta ; do
8898 case " $f " in
8899 *" $i "*) ;;
8900 *) f="$f $i" ;;
8901 esac
8902 done
8903 ta="$f"
8904
8905 # And duplicate -D flags.
8906 f=""
8907 for i in $archdefs ; do
8908 case " $f " in
8909 *" $i "*) ;;
8910 *) f="$f $i" ;;
8911 esac
8912 done
8913 archdefs="$f"
8914
8915 BFD_MACHINES="$ta"
8916
8917else # all_targets is true
8918 archdefs=-DARCH_all
8919 BFD_MACHINES='$(ALL_MACHINES)'
8920fi
8921
8922
8923
8924
979273e3
NN
8925 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
8926
8927 ac_config_commands="$ac_config_commands default"
8928
8929cat >confcache <<\_ACEOF
252b5132
RH
8930# This file is a shell script that caches the results of configure
8931# tests run on this system so they can be shared between configure
979273e3
NN
8932# scripts and configure runs, see configure's option --config-cache.
8933# It is not useful on other systems. If it contains results you don't
8934# want to keep, you may remove or edit it.
252b5132 8935#
979273e3
NN
8936# config.status only pays attention to the cache file if you give it
8937# the --recheck option to rerun configure.
252b5132 8938#
979273e3
NN
8939# `ac_cv_env_foo' variables (set or unset) will be overridden when
8940# loading this file, other *unset* `ac_cv_foo' will be assigned the
8941# following values.
8942
8943_ACEOF
8944
252b5132
RH
8945# The following way of writing the cache mishandles newlines in values,
8946# but we know of no workaround that is simple, portable, and efficient.
8947# So, don't put newlines in cache variables' values.
8948# Ultrix sh set writes to stderr and can't be redirected directly,
8949# and sets the high bit in the cache file unless we assign to the vars.
979273e3
NN
8950{
8951 (set) 2>&1 |
8952 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8953 *ac_space=\ *)
8954 # `set' does not quote correctly, so add quotes (double-quote
8955 # substitution turns \\\\ into \\, and sed turns \\ into \).
8956 sed -n \
8957 "s/'/'\\\\''/g;
8958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8959 ;;
8960 *)
8961 # `set' quotes correctly as required by POSIX, so do not add quotes.
8962 sed -n \
8963 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8964 ;;
8965 esac;
8966} |
8967 sed '
8968 t clear
8969 : clear
8970 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8971 t end
8972 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8973 : end' >>confcache
8974if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 8975 if test -w $cache_file; then
979273e3
NN
8976 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8977 cat confcache >$cache_file
252b5132
RH
8978 else
8979 echo "not updating unwritable cache $cache_file"
8980 fi
8981fi
8982rm -f confcache
8983
252b5132
RH
8984test "x$prefix" = xNONE && prefix=$ac_default_prefix
8985# Let make expand exec_prefix.
8986test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8987
979273e3
NN
8988# VPATH may cause trouble with some makes, so we remove $(srcdir),
8989# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8990# trailing colons and then remove the whole line if VPATH becomes empty
8991# (actually we leave an empty line to preserve line numbers).
252b5132 8992if test "x$srcdir" = x.; then
979273e3
NN
8993 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8994s/:*\$(srcdir):*/:/;
8995s/:*\${srcdir}:*/:/;
8996s/:*@srcdir@:*/:/;
8997s/^\([^=]*=[ ]*\):*/\1/;
8998s/:*$//;
8999s/^[^=]*=[ ]*$//;
9000}'
252b5132
RH
9001fi
9002
252b5132
RH
9003DEFS=-DHAVE_CONFIG_H
9004
979273e3
NN
9005ac_libobjs=
9006ac_ltlibobjs=
9007for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9008 # 1. Remove the extension, and $U if already installed.
9009 ac_i=`echo "$ac_i" |
9010 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9011 # 2. Add them.
9012 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9013 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9014done
9015LIBOBJS=$ac_libobjs
252b5132 9016
979273e3
NN
9017LTLIBOBJS=$ac_ltlibobjs
9018
9019
8ae85421
AM
9020if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9021 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9022Usually this means the macro was only invoked conditionally." >&5
9023echo "$as_me: error: conditional \"AMDEP\" was never defined.
9024Usually this means the macro was only invoked conditionally." >&2;}
9025 { (exit 1); exit 1; }; }
9026fi
9027if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9028 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9029Usually this means the macro was only invoked conditionally." >&5
9030echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9031Usually this means the macro was only invoked conditionally." >&2;}
9032 { (exit 1); exit 1; }; }
9033fi
9034if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9035 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9036Usually this means the macro was only invoked conditionally." >&5
9037echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9038Usually this means the macro was only invoked conditionally." >&2;}
9039 { (exit 1); exit 1; }; }
9040fi
9041if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
9042 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
9043Usually this means the macro was only invoked conditionally." >&5
9044echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
9045Usually this means the macro was only invoked conditionally." >&2;}
9046 { (exit 1); exit 1; }; }
9047fi
9048if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
9049 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
9050Usually this means the macro was only invoked conditionally." >&5
9051echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
9052Usually this means the macro was only invoked conditionally." >&2;}
9053 { (exit 1); exit 1; }; }
9054fi
979273e3
NN
9055
9056: ${CONFIG_STATUS=./config.status}
9057ac_clean_files_save=$ac_clean_files
9058ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9059{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9060echo "$as_me: creating $CONFIG_STATUS" >&6;}
9061cat >$CONFIG_STATUS <<_ACEOF
9062#! $SHELL
9063# Generated by $as_me.
252b5132 9064# Run this file to recreate the current configuration.
252b5132 9065# Compiler output produced by configure, useful for debugging
979273e3 9066# configure, is in config.log if it exists.
252b5132 9067
979273e3
NN
9068debug=false
9069ac_cs_recheck=false
9070ac_cs_silent=false
9071SHELL=\${CONFIG_SHELL-$SHELL}
9072_ACEOF
9073
9074cat >>$CONFIG_STATUS <<\_ACEOF
9075## --------------------- ##
9076## M4sh Initialization. ##
9077## --------------------- ##
9078
9079# Be Bourne compatible
9080if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9081 emulate sh
9082 NULLCMD=:
9083 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9084 # is contrary to our usage. Disable this feature.
9085 alias -g '${1+"$@"}'='"$@"'
9086elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9087 set -o posix
9088fi
9089DUALCASE=1; export DUALCASE # for MKS sh
9090
9091# Support unset when possible.
9092if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9093 as_unset=unset
9094else
9095 as_unset=false
9096fi
9097
9098
9099# Work around bugs in pre-3.0 UWIN ksh.
9100$as_unset ENV MAIL MAILPATH
9101PS1='$ '
9102PS2='> '
9103PS4='+ '
9104
9105# NLS nuisances.
9106for as_var in \
9107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9109 LC_TELEPHONE LC_TIME
252b5132 9110do
979273e3
NN
9111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9112 eval $as_var=C; export $as_var
9113 else
9114 $as_unset $as_var
9115 fi
252b5132
RH
9116done
9117
979273e3
NN
9118# Required to use basename.
9119if expr a : '\(a\)' >/dev/null 2>&1; then
9120 as_expr=expr
9121else
9122 as_expr=false
9123fi
9124
9125if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9126 as_basename=basename
9127else
9128 as_basename=false
9129fi
252b5132 9130
252b5132 9131
979273e3
NN
9132# Name of the executable.
9133as_me=`$as_basename "$0" ||
9134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9135 X"$0" : 'X\(//\)$' \| \
9136 X"$0" : 'X\(/\)$' \| \
9137 . : '\(.\)' 2>/dev/null ||
9138echo X/"$0" |
9139 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9140 /^X\/\(\/\/\)$/{ s//\1/; q; }
9141 /^X\/\(\/\).*/{ s//\1/; q; }
9142 s/.*/./; q'`
252b5132 9143
252b5132 9144
979273e3
NN
9145# PATH needs CR, and LINENO needs CR and PATH.
9146# Avoid depending upon Character Ranges.
9147as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9148as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9149as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9150as_cr_digits='0123456789'
9151as_cr_alnum=$as_cr_Letters$as_cr_digits
9152
9153# The user is always right.
9154if test "${PATH_SEPARATOR+set}" != set; then
9155 echo "#! /bin/sh" >conf$$.sh
9156 echo "exit 0" >>conf$$.sh
9157 chmod +x conf$$.sh
9158 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9159 PATH_SEPARATOR=';'
252b5132 9160 else
979273e3
NN
9161 PATH_SEPARATOR=:
9162 fi
9163 rm -f conf$$.sh
9164fi
9165
9166
9167 as_lineno_1=$LINENO
9168 as_lineno_2=$LINENO
9169 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9170 test "x$as_lineno_1" != "x$as_lineno_2" &&
9171 test "x$as_lineno_3" = "x$as_lineno_2" || {
9172 # Find who we are. Look in the path if we contain no path at all
9173 # relative or not.
9174 case $0 in
9175 *[\\/]* ) as_myself=$0 ;;
9176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177for as_dir in $PATH
9178do
9179 IFS=$as_save_IFS
9180 test -z "$as_dir" && as_dir=.
9181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9182done
9183
9184 ;;
9185 esac
9186 # We did not find ourselves, most probably we were run as `sh COMMAND'
9187 # in which case we are not to be found in the path.
9188 if test "x$as_myself" = x; then
9189 as_myself=$0
9190 fi
9191 if test ! -f "$as_myself"; then
9192 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9193echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9194 { (exit 1); exit 1; }; }
252b5132 9195 fi
979273e3
NN
9196 case $CONFIG_SHELL in
9197 '')
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9200do
9201 IFS=$as_save_IFS
9202 test -z "$as_dir" && as_dir=.
9203 for as_base in sh bash ksh sh5; do
9204 case $as_dir in
9205 /*)
9206 if ("$as_dir/$as_base" -c '
9207 as_lineno_1=$LINENO
9208 as_lineno_2=$LINENO
9209 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9210 test "x$as_lineno_1" != "x$as_lineno_2" &&
9211 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9212 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9213 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9214 CONFIG_SHELL=$as_dir/$as_base
9215 export CONFIG_SHELL
9216 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9217 fi;;
9218 esac
9219 done
9220done
9221;;
9222 esac
9223
9224 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9225 # uniformly replaced by the line number. The first 'sed' inserts a
9226 # line-number line before each line; the second 'sed' does the real
9227 # work. The second script uses 'N' to pair each line-number line
9228 # with the numbered line, and appends trailing '-' during
9229 # substitution so that $LINENO is not a special case at line end.
9230 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9231 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9232 sed '=' <$as_myself |
9233 sed '
9234 N
9235 s,$,-,
9236 : loop
9237 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9238 t loop
9239 s,-$,,
9240 s,^['$as_cr_digits']*\n,,
9241 ' >$as_me.lineno &&
9242 chmod +x $as_me.lineno ||
9243 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9244echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9245 { (exit 1); exit 1; }; }
9246
9247 # Don't try to exec as it changes $[0], causing all sort of problems
9248 # (the dirname of $[0] is not the place where we might find the
9249 # original and so on. Autoconf is especially sensible to this).
9250 . ./$as_me.lineno
9251 # Exit status is that of the last command.
9252 exit
9253}
9254
9255
9256case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9257 *c*,-n*) ECHO_N= ECHO_C='
9258' ECHO_T=' ' ;;
9259 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9260 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9261esac
9262
9263if expr a : '\(a\)' >/dev/null 2>&1; then
9264 as_expr=expr
9265else
9266 as_expr=false
9267fi
9268
9269rm -f conf$$ conf$$.exe conf$$.file
9270echo >conf$$.file
9271if ln -s conf$$.file conf$$ 2>/dev/null; then
9272 # We could just check for DJGPP; but this test a) works b) is more generic
9273 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9274 if test -f conf$$.exe; then
9275 # Don't use ln at all; we don't have any links
9276 as_ln_s='cp -p'
252b5132 9277 else
979273e3 9278 as_ln_s='ln -s'
252b5132 9279 fi
979273e3
NN
9280elif ln conf$$.file conf$$ 2>/dev/null; then
9281 as_ln_s=ln
9282else
9283 as_ln_s='cp -p'
9284fi
9285rm -f conf$$ conf$$.exe conf$$.file
9286
9287if mkdir -p . 2>/dev/null; then
9288 as_mkdir_p=:
9289else
9290 test -d ./-p && rmdir ./-p
9291 as_mkdir_p=false
9292fi
9293
9294as_executable_p="test -f"
9295
9296# Sed expression to map a string onto a valid CPP name.
9297as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9298
9299# Sed expression to map a string onto a valid variable name.
9300as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9301
9302
9303# IFS
9304# We need space, tab and new line, in precisely that order.
9305as_nl='
9306'
9307IFS=" $as_nl"
9308
9309# CDPATH.
9310$as_unset CDPATH
9311
9312exec 6>&1
9313
9314# Open the log real soon, to keep \$[0] and so on meaningful, and to
9315# report actual input values of CONFIG_FILES etc. instead of their
9316# values after options handling. Logging --version etc. is OK.
9317exec 5>>config.log
9318{
9319 echo
9320 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9321## Running $as_me. ##
9322_ASBOX
9323} >&5
9324cat >&5 <<_CSEOF
9325
9326This file was extended by $as_me, which was
9327generated by GNU Autoconf 2.59. Invocation command line was
9328
9329 CONFIG_FILES = $CONFIG_FILES
9330 CONFIG_HEADERS = $CONFIG_HEADERS
9331 CONFIG_LINKS = $CONFIG_LINKS
9332 CONFIG_COMMANDS = $CONFIG_COMMANDS
9333 $ $0 $@
9334
9335_CSEOF
9336echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9337echo >&5
9338_ACEOF
9339
9340# Files that config.status was made for.
9341if test -n "$ac_config_files"; then
9342 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9343fi
9344
9345if test -n "$ac_config_headers"; then
9346 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9347fi
9348
9349if test -n "$ac_config_links"; then
9350 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9351fi
9352
9353if test -n "$ac_config_commands"; then
9354 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9355fi
9356
9357cat >>$CONFIG_STATUS <<\_ACEOF
9358
9359ac_cs_usage="\
9360\`$as_me' instantiates files from templates according to the
9361current configuration.
9362
9363Usage: $0 [OPTIONS] [FILE]...
9364
9365 -h, --help print this help, then exit
9366 -V, --version print version number, then exit
9367 -q, --quiet do not print progress messages
9368 -d, --debug don't remove temporary files
9369 --recheck update $as_me by reconfiguring in the same conditions
9370 --file=FILE[:TEMPLATE]
9371 instantiate the configuration file FILE
9372 --header=FILE[:TEMPLATE]
9373 instantiate the configuration header FILE
9374
9375Configuration files:
9376$config_files
9377
9378Configuration headers:
9379$config_headers
9380
9381Configuration commands:
9382$config_commands
9383
9384Report bugs to <bug-autoconf@gnu.org>."
9385_ACEOF
9386
9387cat >>$CONFIG_STATUS <<_ACEOF
9388ac_cs_version="\\
9389config.status
9390configured by $0, generated by GNU Autoconf 2.59,
9391 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9392
9393Copyright (C) 2003 Free Software Foundation, Inc.
9394This config.status script is free software; the Free Software Foundation
9395gives unlimited permission to copy, distribute and modify it."
9396srcdir=$srcdir
9397INSTALL="$INSTALL"
9398_ACEOF
9399
9400cat >>$CONFIG_STATUS <<\_ACEOF
9401# If no file are specified by the user, then we need to provide default
9402# value. By we need to know if files were specified by the user.
9403ac_need_defaults=:
9404while test $# != 0
9405do
9406 case $1 in
9407 --*=*)
9408 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9409 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9410 ac_shift=:
9411 ;;
9412 -*)
9413 ac_option=$1
9414 ac_optarg=$2
9415 ac_shift=shift
9416 ;;
9417 *) # This is not an option, so the user has probably given explicit
9418 # arguments.
9419 ac_option=$1
9420 ac_need_defaults=false;;
9421 esac
9422
9423 case $ac_option in
9424 # Handling of the options.
9425_ACEOF
9426cat >>$CONFIG_STATUS <<\_ACEOF
9427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9428 ac_cs_recheck=: ;;
9429 --version | --vers* | -V )
9430 echo "$ac_cs_version"; exit 0 ;;
9431 --he | --h)
9432 # Conflict between --help and --header
9433 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9434Try \`$0 --help' for more information." >&5
9435echo "$as_me: error: ambiguous option: $1
9436Try \`$0 --help' for more information." >&2;}
9437 { (exit 1); exit 1; }; };;
9438 --help | --hel | -h )
9439 echo "$ac_cs_usage"; exit 0 ;;
9440 --debug | --d* | -d )
9441 debug=: ;;
9442 --file | --fil | --fi | --f )
9443 $ac_shift
9444 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9445 ac_need_defaults=false;;
9446 --header | --heade | --head | --hea )
9447 $ac_shift
9448 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9449 ac_need_defaults=false;;
9450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9451 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9452 ac_cs_silent=: ;;
9453
9454 # This is an error.
9455 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9456Try \`$0 --help' for more information." >&5
9457echo "$as_me: error: unrecognized option: $1
9458Try \`$0 --help' for more information." >&2;}
9459 { (exit 1); exit 1; }; } ;;
9460
9461 *) ac_config_targets="$ac_config_targets $1" ;;
9462
9463 esac
9464 shift
252b5132 9465done
979273e3
NN
9466
9467ac_configure_extra_args=
9468
9469if $ac_cs_silent; then
9470 exec 6>/dev/null
9471 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 9472fi
252b5132 9473
979273e3
NN
9474_ACEOF
9475cat >>$CONFIG_STATUS <<_ACEOF
9476if \$ac_cs_recheck; then
9477 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9478 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9479fi
252b5132 9480
979273e3
NN
9481_ACEOF
9482
9483cat >>$CONFIG_STATUS <<_ACEOF
9484#
9485# INIT-COMMANDS section.
9486#
9487
8ae85421 9488AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
979273e3
NN
9489
9490
9491_ACEOF
9492
9493
9494
9495cat >>$CONFIG_STATUS <<\_ACEOF
9496for ac_config_target in $ac_config_targets
9497do
9498 case "$ac_config_target" in
9499 # Handling of arguments.
9500 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9501 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8ae85421 9502 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
979273e3
NN
9503 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9504 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9505 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9506echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9507 { (exit 1); exit 1; }; };;
252b5132 9508 esac
979273e3 9509done
252b5132 9510
979273e3
NN
9511# If the user did not use the arguments to specify the items to instantiate,
9512# then the envvar interface is used. Set only those that are not.
9513# We use the long form for the default assignment because of an extremely
9514# bizarre bug on SunOS 4.1.3.
9515if $ac_need_defaults; then
9516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9519fi
9520
9521# Have a temporary directory for convenience. Make it in the build tree
9522# simply because there is no reason to put it here, and in addition,
9523# creating and moving files from /tmp can sometimes cause problems.
9524# Create a temporary directory, and hook for its removal unless debugging.
9525$debug ||
9526{
9527 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9528 trap '{ (exit 1); exit 1; }' 1 2 13 15
9529}
252b5132 9530
979273e3
NN
9531# Create a (secure) tmp directory for tmp files.
9532
9533{
9534 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9535 test -n "$tmp" && test -d "$tmp"
9536} ||
9537{
9538 tmp=./confstat$$-$RANDOM
9539 (umask 077 && mkdir $tmp)
9540} ||
9541{
9542 echo "$me: cannot create a temporary directory in ." >&2
9543 { (exit 1); exit 1; }
9544}
9545
9546_ACEOF
9547
9548cat >>$CONFIG_STATUS <<_ACEOF
9549
9550#
9551# CONFIG_FILES section.
9552#
9553
9554# No need to generate the scripts if there are no CONFIG_FILES.
9555# This happens for instance when ./config.status config.h
9556if test -n "\$CONFIG_FILES"; then
9557 # Protect against being on the right side of a sed subst in config.status.
9558 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9559 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9560s,@SHELL@,$SHELL,;t t
9561s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9562s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9563s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9564s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9565s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9566s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9567s,@exec_prefix@,$exec_prefix,;t t
9568s,@prefix@,$prefix,;t t
9569s,@program_transform_name@,$program_transform_name,;t t
9570s,@bindir@,$bindir,;t t
9571s,@sbindir@,$sbindir,;t t
9572s,@libexecdir@,$libexecdir,;t t
9573s,@datadir@,$datadir,;t t
9574s,@sysconfdir@,$sysconfdir,;t t
9575s,@sharedstatedir@,$sharedstatedir,;t t
9576s,@localstatedir@,$localstatedir,;t t
9577s,@libdir@,$libdir,;t t
9578s,@includedir@,$includedir,;t t
9579s,@oldincludedir@,$oldincludedir,;t t
9580s,@infodir@,$infodir,;t t
9581s,@mandir@,$mandir,;t t
9582s,@build_alias@,$build_alias,;t t
9583s,@host_alias@,$host_alias,;t t
9584s,@target_alias@,$target_alias,;t t
9585s,@DEFS@,$DEFS,;t t
9586s,@ECHO_C@,$ECHO_C,;t t
9587s,@ECHO_N@,$ECHO_N,;t t
9588s,@ECHO_T@,$ECHO_T,;t t
9589s,@LIBS@,$LIBS,;t t
9590s,@build@,$build,;t t
9591s,@build_cpu@,$build_cpu,;t t
9592s,@build_vendor@,$build_vendor,;t t
9593s,@build_os@,$build_os,;t t
9594s,@host@,$host,;t t
9595s,@host_cpu@,$host_cpu,;t t
9596s,@host_vendor@,$host_vendor,;t t
9597s,@host_os@,$host_os,;t t
9598s,@target@,$target,;t t
9599s,@target_cpu@,$target_cpu,;t t
9600s,@target_vendor@,$target_vendor,;t t
9601s,@target_os@,$target_os,;t t
9602s,@CC@,$CC,;t t
9603s,@CFLAGS@,$CFLAGS,;t t
9604s,@LDFLAGS@,$LDFLAGS,;t t
9605s,@CPPFLAGS@,$CPPFLAGS,;t t
9606s,@ac_ct_CC@,$ac_ct_CC,;t t
9607s,@EXEEXT@,$EXEEXT,;t t
9608s,@OBJEXT@,$OBJEXT,;t t
9609s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9610s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9611s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8ae85421 9612s,@CYGPATH_W@,$CYGPATH_W,;t t
979273e3
NN
9613s,@PACKAGE@,$PACKAGE,;t t
9614s,@VERSION@,$VERSION,;t t
9615s,@ACLOCAL@,$ACLOCAL,;t t
9616s,@AUTOCONF@,$AUTOCONF,;t t
9617s,@AUTOMAKE@,$AUTOMAKE,;t t
9618s,@AUTOHEADER@,$AUTOHEADER,;t t
9619s,@MAKEINFO@,$MAKEINFO,;t t
8ae85421
AM
9620s,@install_sh@,$install_sh,;t t
9621s,@STRIP@,$STRIP,;t t
9622s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9623s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9624s,@mkdir_p@,$mkdir_p,;t t
9625s,@AWK@,$AWK,;t t
979273e3 9626s,@SET_MAKE@,$SET_MAKE,;t t
8ae85421
AM
9627s,@am__leading_dot@,$am__leading_dot,;t t
9628s,@AMTAR@,$AMTAR,;t t
9629s,@am__tar@,$am__tar,;t t
9630s,@am__untar@,$am__untar,;t t
9631s,@DEPDIR@,$DEPDIR,;t t
9632s,@am__include@,$am__include,;t t
9633s,@am__quote@,$am__quote,;t t
9634s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9635s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9636s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9637s,@CCDEPMODE@,$CCDEPMODE,;t t
9638s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9639s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
979273e3
NN
9640s,@AR@,$AR,;t t
9641s,@ac_ct_AR@,$ac_ct_AR,;t t
9642s,@RANLIB@,$RANLIB,;t t
9643s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9644s,@LN_S@,$LN_S,;t t
979273e3
NN
9645s,@LIBTOOL@,$LIBTOOL,;t t
9646s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 9647s,@NO_WERROR@,$NO_WERROR,;t t
979273e3
NN
9648s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9649s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9650s,@MAINT@,$MAINT,;t t
9651s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
9652s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
9653s,@host_noncanonical@,$host_noncanonical,;t t
9654s,@target_noncanonical@,$target_noncanonical,;t t
979273e3
NN
9655s,@bfdlibdir@,$bfdlibdir,;t t
9656s,@bfdincludedir@,$bfdincludedir,;t t
9657s,@CPP@,$CPP,;t t
9658s,@EGREP@,$EGREP,;t t
9659s,@ALLOCA@,$ALLOCA,;t t
9660s,@USE_NLS@,$USE_NLS,;t t
9661s,@MSGFMT@,$MSGFMT,;t t
9662s,@GMSGFMT@,$GMSGFMT,;t t
9663s,@XGETTEXT@,$XGETTEXT,;t t
9664s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9665s,@CATALOGS@,$CATALOGS,;t t
9666s,@CATOBJEXT@,$CATOBJEXT,;t t
9667s,@DATADIRNAME@,$DATADIRNAME,;t t
9668s,@GMOFILES@,$GMOFILES,;t t
9669s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9670s,@INTLDEPS@,$INTLDEPS,;t t
9671s,@INTLLIBS@,$INTLLIBS,;t t
9672s,@INTLOBJS@,$INTLOBJS,;t t
9673s,@POFILES@,$POFILES,;t t
9674s,@POSUB@,$POSUB,;t t
9675s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9676s,@GT_NO@,$GT_NO,;t t
9677s,@GT_YES@,$GT_YES,;t t
9678s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9679s,@l@,$l,;t t
9680s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9681s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
9682s,@HDEFINES@,$HDEFINES,;t t
9683s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
9684s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
9685s,@cgendir@,$cgendir,;t t
9686s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
9687s,@WIN32LIBADD@,$WIN32LIBADD,;t t
9688s,@archdefs@,$archdefs,;t t
9689s,@BFD_MACHINES@,$BFD_MACHINES,;t t
9690s,@LIBOBJS@,$LIBOBJS,;t t
9691s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9692CEOF
9693
9694_ACEOF
9695
9696 cat >>$CONFIG_STATUS <<\_ACEOF
9697 # Split the substitutions into bite-sized pieces for seds with
9698 # small command number limits, like on Digital OSF/1 and HP-UX.
9699 ac_max_sed_lines=48
9700 ac_sed_frag=1 # Number of current file.
9701 ac_beg=1 # First line for current file.
9702 ac_end=$ac_max_sed_lines # Line after last line for current file.
9703 ac_more_lines=:
9704 ac_sed_cmds=
9705 while $ac_more_lines; do
9706 if test $ac_beg -gt 1; then
9707 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9708 else
9709 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9710 fi
9711 if test ! -s $tmp/subs.frag; then
9712 ac_more_lines=false
9713 else
9714 # The purpose of the label and of the branching condition is to
9715 # speed up the sed processing (if there are no `@' at all, there
9716 # is no need to browse any of the substitutions).
9717 # These are the two extra sed commands mentioned above.
9718 (echo ':t
9719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9720 if test -z "$ac_sed_cmds"; then
9721 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9722 else
9723 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9724 fi
9725 ac_sed_frag=`expr $ac_sed_frag + 1`
9726 ac_beg=$ac_end
9727 ac_end=`expr $ac_end + $ac_max_sed_lines`
9728 fi
9729 done
9730 if test -z "$ac_sed_cmds"; then
9731 ac_sed_cmds=cat
252b5132 9732 fi
979273e3 9733fi # test -n "$CONFIG_FILES"
252b5132 9734
979273e3
NN
9735_ACEOF
9736cat >>$CONFIG_STATUS <<\_ACEOF
9737for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9739 case $ac_file in
9740 - | *:- | *:-:* ) # input from stdin
9741 cat >$tmp/stdin
9742 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9744 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9745 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9746 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9747 esac
9748
979273e3
NN
9749 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9750 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9751$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9752 X"$ac_file" : 'X\(//\)[^/]' \| \
9753 X"$ac_file" : 'X\(//\)$' \| \
9754 X"$ac_file" : 'X\(/\)' \| \
9755 . : '\(.\)' 2>/dev/null ||
9756echo X"$ac_file" |
9757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9759 /^X\(\/\/\)$/{ s//\1/; q; }
9760 /^X\(\/\).*/{ s//\1/; q; }
9761 s/.*/./; q'`
9762 { if $as_mkdir_p; then
9763 mkdir -p "$ac_dir"
9764 else
9765 as_dir="$ac_dir"
9766 as_dirs=
9767 while test ! -d "$as_dir"; do
9768 as_dirs="$as_dir $as_dirs"
9769 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9771 X"$as_dir" : 'X\(//\)[^/]' \| \
9772 X"$as_dir" : 'X\(//\)$' \| \
9773 X"$as_dir" : 'X\(/\)' \| \
9774 . : '\(.\)' 2>/dev/null ||
9775echo X"$as_dir" |
9776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9778 /^X\(\/\/\)$/{ s//\1/; q; }
9779 /^X\(\/\).*/{ s//\1/; q; }
9780 s/.*/./; q'`
9781 done
9782 test ! -n "$as_dirs" || mkdir $as_dirs
9783 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9784echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9785 { (exit 1); exit 1; }; }; }
9786
9787 ac_builddir=.
9788
9789if test "$ac_dir" != .; then
9790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9791 # A "../" for each directory in $ac_dir_suffix.
9792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9793else
9794 ac_dir_suffix= ac_top_builddir=
9795fi
9796
9797case $srcdir in
9798 .) # No --srcdir option. We are building in place.
9799 ac_srcdir=.
9800 if test -z "$ac_top_builddir"; then
9801 ac_top_srcdir=.
9802 else
9803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9804 fi ;;
9805 [\\/]* | ?:[\\/]* ) # Absolute path.
9806 ac_srcdir=$srcdir$ac_dir_suffix;
9807 ac_top_srcdir=$srcdir ;;
9808 *) # Relative path.
9809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9810 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9811esac
9812
9813# Do not use `cd foo && pwd` to compute absolute paths, because
9814# the directories may not exist.
9815case `pwd` in
9816.) ac_abs_builddir="$ac_dir";;
9817*)
9818 case "$ac_dir" in
9819 .) ac_abs_builddir=`pwd`;;
9820 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9821 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9822 esac;;
9823esac
9824case $ac_abs_builddir in
9825.) ac_abs_top_builddir=${ac_top_builddir}.;;
9826*)
9827 case ${ac_top_builddir}. in
9828 .) ac_abs_top_builddir=$ac_abs_builddir;;
9829 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9830 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9831 esac;;
9832esac
9833case $ac_abs_builddir in
9834.) ac_abs_srcdir=$ac_srcdir;;
9835*)
9836 case $ac_srcdir in
9837 .) ac_abs_srcdir=$ac_abs_builddir;;
9838 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9839 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9840 esac;;
9841esac
9842case $ac_abs_builddir in
9843.) ac_abs_top_srcdir=$ac_top_srcdir;;
9844*)
9845 case $ac_top_srcdir in
9846 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9847 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9848 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9849 esac;;
9850esac
252b5132 9851
979273e3
NN
9852
9853 case $INSTALL in
9854 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9855 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132
RH
9856 esac
9857
8ae85421
AM
9858 if test x"$ac_file" != x-; then
9859 { echo "$as_me:$LINENO: creating $ac_file" >&5
9860echo "$as_me: creating $ac_file" >&6;}
9861 rm -f "$ac_file"
9862 fi
979273e3
NN
9863 # Let's still pretend it is `configure' which instantiates (i.e., don't
9864 # use $as_me), people would be surprised to read:
9865 # /* config.h. Generated by config.status. */
9866 if test x"$ac_file" = x-; then
9867 configure_input=
9868 else
9869 configure_input="$ac_file. "
9870 fi
9871 configure_input=$configure_input"Generated from `echo $ac_file_in |
9872 sed 's,.*/,,'` by configure."
9873
9874 # First look for the input files in the build tree, otherwise in the
9875 # src tree.
9876 ac_file_inputs=`IFS=:
9877 for f in $ac_file_in; do
9878 case $f in
9879 -) echo $tmp/stdin ;;
9880 [\\/$]*)
9881 # Absolute (can't be DOS-style, as IFS=:)
9882 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9883echo "$as_me: error: cannot find input file: $f" >&2;}
9884 { (exit 1); exit 1; }; }
9885 echo "$f";;
9886 *) # Relative
9887 if test -f "$f"; then
9888 # Build tree
9889 echo "$f"
9890 elif test -f "$srcdir/$f"; then
9891 # Source tree
9892 echo "$srcdir/$f"
9893 else
9894 # /dev/null tree
9895 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9896echo "$as_me: error: cannot find input file: $f" >&2;}
9897 { (exit 1); exit 1; }; }
9898 fi;;
9899 esac
9900 done` || { (exit 1); exit 1; }
979273e3
NN
9901_ACEOF
9902cat >>$CONFIG_STATUS <<_ACEOF
9903 sed "$ac_vpsub
9904$extrasub
9905_ACEOF
9906cat >>$CONFIG_STATUS <<\_ACEOF
9907:t
9908/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9909s,@configure_input@,$configure_input,;t t
9910s,@srcdir@,$ac_srcdir,;t t
9911s,@abs_srcdir@,$ac_abs_srcdir,;t t
9912s,@top_srcdir@,$ac_top_srcdir,;t t
9913s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9914s,@builddir@,$ac_builddir,;t t
9915s,@abs_builddir@,$ac_abs_builddir,;t t
9916s,@top_builddir@,$ac_top_builddir,;t t
9917s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9918s,@INSTALL@,$ac_INSTALL,;t t
9919" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9920 rm -f $tmp/stdin
9921 if test x"$ac_file" != x-; then
9922 mv $tmp/out $ac_file
9923 else
9924 cat $tmp/out
9925 rm -f $tmp/out
9926 fi
9927
9928done
9929_ACEOF
9930cat >>$CONFIG_STATUS <<\_ACEOF
9931
9932#
9933# CONFIG_HEADER section.
9934#
252b5132
RH
9935
9936# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9937# NAME is the cpp macro being defined and VALUE is the value it is being given.
9938#
9939# ac_d sets the value in "#define NAME VALUE" lines.
979273e3
NN
9940ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9941ac_dB='[ ].*$,\1#\2'
9942ac_dC=' '
9943ac_dD=',;t'
9944# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9945ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9946ac_uB='$,\1#\2define\3'
252b5132 9947ac_uC=' '
979273e3
NN
9948ac_uD=',;t'
9949
9950for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 9951 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
979273e3
NN
9952 case $ac_file in
9953 - | *:- | *:-:* ) # input from stdin
9954 cat >$tmp/stdin
9955 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9956 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9957 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9958 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9959 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9960 esac
9961
979273e3
NN
9962 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9963echo "$as_me: creating $ac_file" >&6;}
9964
9965 # First look for the input files in the build tree, otherwise in the
9966 # src tree.
9967 ac_file_inputs=`IFS=:
9968 for f in $ac_file_in; do
9969 case $f in
9970 -) echo $tmp/stdin ;;
9971 [\\/$]*)
9972 # Absolute (can't be DOS-style, as IFS=:)
9973 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9974echo "$as_me: error: cannot find input file: $f" >&2;}
9975 { (exit 1); exit 1; }; }
9976 # Do quote $f, to prevent DOS paths from being IFS'd.
9977 echo "$f";;
9978 *) # Relative
9979 if test -f "$f"; then
9980 # Build tree
9981 echo "$f"
9982 elif test -f "$srcdir/$f"; then
9983 # Source tree
9984 echo "$srcdir/$f"
9985 else
9986 # /dev/null tree
9987 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9988echo "$as_me: error: cannot find input file: $f" >&2;}
9989 { (exit 1); exit 1; }; }
9990 fi;;
9991 esac
9992 done` || { (exit 1); exit 1; }
9993 # Remove the trailing spaces.
9994 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9995
9996_ACEOF
9997
9998# Transform confdefs.h into two sed scripts, `conftest.defines' and
9999# `conftest.undefs', that substitutes the proper values into
10000# config.h.in to produce config.h. The first handles `#define'
10001# templates, and the second `#undef' templates.
10002# And first: Protect against being on the right side of a sed subst in
10003# config.status. Protect against being in an unquoted here document
10004# in config.status.
10005rm -f conftest.defines conftest.undefs
10006# Using a here document instead of a string reduces the quoting nightmare.
10007# Putting comments in sed scripts is not portable.
10008#
10009# `end' is used to avoid that the second main sed command (meant for
10010# 0-ary CPP macros) applies to n-ary macro definitions.
10011# See the Autoconf documentation for `clear'.
10012cat >confdef2sed.sed <<\_ACEOF
10013s/[\\&,]/\\&/g
10014s,[\\$`],\\&,g
10015t clear
10016: clear
10017s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10018t end
10019s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10020: end
10021_ACEOF
10022# If some macros were called several times there might be several times
10023# the same #defines, which is useless. Nevertheless, we may not want to
10024# sort them, since we want the *last* AC-DEFINE to be honored.
10025uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10026sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10027rm -f confdef2sed.sed
252b5132
RH
10028
10029# This sed command replaces #undef with comments. This is necessary, for
10030# example, in the case of _POSIX_SOURCE, which is predefined and required
10031# on some systems where configure will not decide to define it.
979273e3
NN
10032cat >>conftest.undefs <<\_ACEOF
10033s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10034_ACEOF
10035
10036# Break up conftest.defines because some shells have a limit on the size
10037# of here documents, and old seds have small limits too (100 cmds).
10038echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10039echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10040echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10041echo ' :' >>$CONFIG_STATUS
10042rm -f conftest.tail
10043while grep . conftest.defines >/dev/null
10044do
10045 # Write a limited-size here document to $tmp/defines.sed.
10046 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10047 # Speed up: don't consider the non `#define' lines.
10048 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10049 # Work around the forget-to-reset-the-flag bug.
10050 echo 't clr' >>$CONFIG_STATUS
10051 echo ': clr' >>$CONFIG_STATUS
10052 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10053 echo 'CEOF
10054 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10055 rm -f $tmp/in
10056 mv $tmp/out $tmp/in
10057' >>$CONFIG_STATUS
10058 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10059 rm -f conftest.defines
10060 mv conftest.tail conftest.defines
10061done
10062rm -f conftest.defines
10063echo ' fi # grep' >>$CONFIG_STATUS
10064echo >>$CONFIG_STATUS
252b5132 10065
979273e3
NN
10066# Break up conftest.undefs because some shells have a limit on the size
10067# of here documents, and old seds have small limits too (100 cmds).
10068echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 10069rm -f conftest.tail
979273e3 10070while grep . conftest.undefs >/dev/null
252b5132 10071do
979273e3
NN
10072 # Write a limited-size here document to $tmp/undefs.sed.
10073 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10074 # Speed up: don't consider the non `#undef'
10075 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10076 # Work around the forget-to-reset-the-flag bug.
10077 echo 't clr' >>$CONFIG_STATUS
10078 echo ': clr' >>$CONFIG_STATUS
10079 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 10080 echo 'CEOF
979273e3
NN
10081 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10082 rm -f $tmp/in
10083 mv $tmp/out $tmp/in
10084' >>$CONFIG_STATUS
10085 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10086 rm -f conftest.undefs
10087 mv conftest.tail conftest.undefs
252b5132 10088done
979273e3
NN
10089rm -f conftest.undefs
10090
10091cat >>$CONFIG_STATUS <<\_ACEOF
10092 # Let's still pretend it is `configure' which instantiates (i.e., don't
10093 # use $as_me), people would be surprised to read:
10094 # /* config.h. Generated by config.status. */
10095 if test x"$ac_file" = x-; then
10096 echo "/* Generated by configure. */" >$tmp/config.h
10097 else
10098 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10099 fi
10100 cat $tmp/in >>$tmp/config.h
10101 rm -f $tmp/in
10102 if test x"$ac_file" != x-; then
10103 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10104 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10105echo "$as_me: $ac_file is unchanged" >&6;}
10106 else
10107 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10108$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10109 X"$ac_file" : 'X\(//\)[^/]' \| \
10110 X"$ac_file" : 'X\(//\)$' \| \
10111 X"$ac_file" : 'X\(/\)' \| \
10112 . : '\(.\)' 2>/dev/null ||
10113echo X"$ac_file" |
10114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10116 /^X\(\/\/\)$/{ s//\1/; q; }
10117 /^X\(\/\).*/{ s//\1/; q; }
10118 s/.*/./; q'`
10119 { if $as_mkdir_p; then
10120 mkdir -p "$ac_dir"
252b5132 10121 else
979273e3
NN
10122 as_dir="$ac_dir"
10123 as_dirs=
10124 while test ! -d "$as_dir"; do
10125 as_dirs="$as_dir $as_dirs"
10126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10128 X"$as_dir" : 'X\(//\)[^/]' \| \
10129 X"$as_dir" : 'X\(//\)$' \| \
10130 X"$as_dir" : 'X\(/\)' \| \
10131 . : '\(.\)' 2>/dev/null ||
10132echo X"$as_dir" |
10133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10135 /^X\(\/\/\)$/{ s//\1/; q; }
10136 /^X\(\/\).*/{ s//\1/; q; }
10137 s/.*/./; q'`
10138 done
10139 test ! -n "$as_dirs" || mkdir $as_dirs
10140 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10141echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10142 { (exit 1); exit 1; }; }; }
10143
10144 rm -f $ac_file
10145 mv $tmp/config.h $ac_file
252b5132 10146 fi
979273e3
NN
10147 else
10148 cat $tmp/config.h
10149 rm -f $tmp/config.h
252b5132 10150 fi
8ae85421
AM
10151# Compute $ac_file's index in $config_headers.
10152_am_stamp_count=1
10153for _am_header in $config_headers :; do
10154 case $_am_header in
10155 $ac_file | $ac_file:* )
10156 break ;;
10157 * )
10158 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10159 esac
10160done
10161echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10162$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10163 X$ac_file : 'X\(//\)[^/]' \| \
10164 X$ac_file : 'X\(//\)$' \| \
10165 X$ac_file : 'X\(/\)' \| \
10166 . : '\(.\)' 2>/dev/null ||
10167echo X$ac_file |
10168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10170 /^X\(\/\/\)$/{ s//\1/; q; }
10171 /^X\(\/\).*/{ s//\1/; q; }
10172 s/.*/./; q'`/stamp-h$_am_stamp_count
979273e3
NN
10173done
10174_ACEOF
10175cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 10176
979273e3
NN
10177#
10178# CONFIG_COMMANDS section.
10179#
10180for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10181 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10182 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10183 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10184$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10185 X"$ac_dest" : 'X\(//\)[^/]' \| \
10186 X"$ac_dest" : 'X\(//\)$' \| \
10187 X"$ac_dest" : 'X\(/\)' \| \
10188 . : '\(.\)' 2>/dev/null ||
10189echo X"$ac_dest" |
10190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10192 /^X\(\/\/\)$/{ s//\1/; q; }
10193 /^X\(\/\).*/{ s//\1/; q; }
10194 s/.*/./; q'`
10195 { if $as_mkdir_p; then
10196 mkdir -p "$ac_dir"
10197 else
10198 as_dir="$ac_dir"
10199 as_dirs=
10200 while test ! -d "$as_dir"; do
10201 as_dirs="$as_dir $as_dirs"
10202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10203$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10204 X"$as_dir" : 'X\(//\)[^/]' \| \
10205 X"$as_dir" : 'X\(//\)$' \| \
10206 X"$as_dir" : 'X\(/\)' \| \
10207 . : '\(.\)' 2>/dev/null ||
10208echo X"$as_dir" |
10209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10211 /^X\(\/\/\)$/{ s//\1/; q; }
10212 /^X\(\/\).*/{ s//\1/; q; }
10213 s/.*/./; q'`
10214 done
10215 test ! -n "$as_dirs" || mkdir $as_dirs
10216 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10217echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10218 { (exit 1); exit 1; }; }; }
252b5132 10219
979273e3 10220 ac_builddir=.
252b5132 10221
979273e3
NN
10222if test "$ac_dir" != .; then
10223 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10224 # A "../" for each directory in $ac_dir_suffix.
10225 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10226else
10227 ac_dir_suffix= ac_top_builddir=
10228fi
10229
10230case $srcdir in
10231 .) # No --srcdir option. We are building in place.
10232 ac_srcdir=.
10233 if test -z "$ac_top_builddir"; then
10234 ac_top_srcdir=.
10235 else
10236 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10237 fi ;;
10238 [\\/]* | ?:[\\/]* ) # Absolute path.
10239 ac_srcdir=$srcdir$ac_dir_suffix;
10240 ac_top_srcdir=$srcdir ;;
10241 *) # Relative path.
10242 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10243 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10244esac
10245
10246# Do not use `cd foo && pwd` to compute absolute paths, because
10247# the directories may not exist.
10248case `pwd` in
10249.) ac_abs_builddir="$ac_dir";;
10250*)
10251 case "$ac_dir" in
10252 .) ac_abs_builddir=`pwd`;;
10253 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10254 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10255 esac;;
10256esac
10257case $ac_abs_builddir in
10258.) ac_abs_top_builddir=${ac_top_builddir}.;;
10259*)
10260 case ${ac_top_builddir}. in
10261 .) ac_abs_top_builddir=$ac_abs_builddir;;
10262 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10263 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10264 esac;;
10265esac
10266case $ac_abs_builddir in
10267.) ac_abs_srcdir=$ac_srcdir;;
10268*)
10269 case $ac_srcdir in
10270 .) ac_abs_srcdir=$ac_abs_builddir;;
10271 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10272 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10273 esac;;
10274esac
10275case $ac_abs_builddir in
10276.) ac_abs_top_srcdir=$ac_top_srcdir;;
10277*)
10278 case $ac_top_srcdir in
10279 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10280 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10281 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10282 esac;;
10283esac
10284
10285
10286 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10287echo "$as_me: executing $ac_dest commands" >&6;}
10288 case $ac_dest in
8ae85421
AM
10289 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10290 # Strip MF so we end up with the name of the file.
10291 mf=`echo "$mf" | sed -e 's/:.*$//'`
10292 # Check whether this is an Automake generated Makefile or not.
10293 # We used to match only the files named `Makefile.in', but
10294 # some people rename them; so instead we look at the file content.
10295 # Grep'ing the first line is not enough: some people post-process
10296 # each Makefile.in and add a new line on top of each file to say so.
10297 # So let's grep whole file.
10298 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10299 dirpart=`(dirname "$mf") 2>/dev/null ||
10300$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10301 X"$mf" : 'X\(//\)[^/]' \| \
10302 X"$mf" : 'X\(//\)$' \| \
10303 X"$mf" : 'X\(/\)' \| \
10304 . : '\(.\)' 2>/dev/null ||
10305echo X"$mf" |
10306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10308 /^X\(\/\/\)$/{ s//\1/; q; }
10309 /^X\(\/\).*/{ s//\1/; q; }
10310 s/.*/./; q'`
10311 else
10312 continue
10313 fi
10314 # Extract the definition of DEPDIR, am__include, and am__quote
10315 # from the Makefile without running `make'.
10316 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10317 test -z "$DEPDIR" && continue
10318 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10319 test -z "am__include" && continue
10320 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10321 # When using ansi2knr, U may be empty or an underscore; expand it
10322 U=`sed -n 's/^U = //p' < "$mf"`
10323 # Find all dependency output files, they are included files with
10324 # $(DEPDIR) in their names. We invoke sed twice because it is the
10325 # simplest approach to changing $(DEPDIR) to its actual value in the
10326 # expansion.
10327 for file in `sed -n "
10328 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10329 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10330 # Make sure the directory exists.
10331 test -f "$dirpart/$file" && continue
10332 fdir=`(dirname "$file") 2>/dev/null ||
10333$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10334 X"$file" : 'X\(//\)[^/]' \| \
10335 X"$file" : 'X\(//\)$' \| \
10336 X"$file" : 'X\(/\)' \| \
10337 . : '\(.\)' 2>/dev/null ||
10338echo X"$file" |
10339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10341 /^X\(\/\/\)$/{ s//\1/; q; }
10342 /^X\(\/\).*/{ s//\1/; q; }
10343 s/.*/./; q'`
10344 { if $as_mkdir_p; then
10345 mkdir -p $dirpart/$fdir
10346 else
10347 as_dir=$dirpart/$fdir
10348 as_dirs=
10349 while test ! -d "$as_dir"; do
10350 as_dirs="$as_dir $as_dirs"
10351 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10353 X"$as_dir" : 'X\(//\)[^/]' \| \
10354 X"$as_dir" : 'X\(//\)$' \| \
10355 X"$as_dir" : 'X\(/\)' \| \
10356 . : '\(.\)' 2>/dev/null ||
10357echo X"$as_dir" |
10358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10360 /^X\(\/\/\)$/{ s//\1/; q; }
10361 /^X\(\/\).*/{ s//\1/; q; }
10362 s/.*/./; q'`
10363 done
10364 test ! -n "$as_dirs" || mkdir $as_dirs
10365 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10366echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10367 { (exit 1); exit 1; }; }; }
10368
10369 # echo "creating $dirpart/$file"
10370 echo '# dummy' > "$dirpart/$file"
10371 done
10372done
10373 ;;
979273e3
NN
10374 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
10375 esac
10376done
10377_ACEOF
10378
10379cat >>$CONFIG_STATUS <<\_ACEOF
10380
10381{ (exit 0); exit 0; }
10382_ACEOF
252b5132 10383chmod +x $CONFIG_STATUS
979273e3
NN
10384ac_clean_files=$ac_clean_files_save
10385
10386
10387# configure is writing to config.log, and then calls config.status.
10388# config.status does its own redirection, appending to config.log.
10389# Unfortunately, on DOS this fails, as config.log is still kept open
10390# by configure, so config.status won't be able to write to it; its
10391# output is simply discarded. So we exec the FD to /dev/null,
10392# effectively closing config.log, so it can be properly (re)opened and
10393# appended to by config.status. When coming back to configure, we
10394# need to make the FD available again.
10395if test "$no_create" != yes; then
10396 ac_cs_success=:
10397 ac_config_status_args=
10398 test "$silent" = yes &&
10399 ac_config_status_args="$ac_config_status_args --quiet"
10400 exec 5>/dev/null
10401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10402 exec 5>>config.log
10403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10404 # would make configure fail if this is the last instruction.
10405 $ac_cs_success || { (exit 1); exit 1; }
10406fi
252b5132 10407
This page took 0.836396 seconds and 4 git commands to generate.