]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - opcodes/configure
2004-09-11 Andrew Cagney <cagney@gnu.org>
[thirdparty/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
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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S STRIP ac_ct_STRIP LIBTOOL WARN_CFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir WIN32LDFLAGS WIN32LIBADD archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
313ac_subst_files=''
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]
853 --enable-shared=PKGS build shared libraries default=no
854 --enable-static=PKGS build static libraries default=yes
855 --enable-fast-install=PKGS optimize for fast installation default=yes
856 --disable-libtool-lock avoid locking (might break parallel builds)
857 --enable-targets alternative target configurations
858 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
859 --enable-build-warnings Enable build-time compiler warnings if gcc is used
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-install-libbfd controls installation of libbfd and related headers
863 --disable-nls do not use Native Language Support
864 --enable-cgen-maint=dir build cgen generated files
865
866Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
871 --with-included-gettext use the GNU gettext library included here
252b5132 872
979273e3
NN
873Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CPP C preprocessor
a2d91340 881
979273e3
NN
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885_ACEOF
a2d91340
AC
886fi
887
979273e3
NN
888if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
894
895if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900 ac_dir_suffix= ac_top_builddir=
901fi
a2d91340 902
979273e3
NN
903case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
a2d91340 910 fi ;;
979273e3
NN
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
a2d91340
AC
917esac
918
979273e3
NN
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
a2d91340 929esac
979273e3
NN
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
a2d91340
AC
956esac
957
979273e3
NN
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 fi
973 cd "$ac_popdir"
974 done
975fi
a2d91340 976
979273e3
NN
977test -n "$ac_init_help" && exit 0
978if $ac_init_version; then
979 cat <<\_ACEOF
252b5132 980
979273e3
NN
981Copyright (C) 2003 Free Software Foundation, Inc.
982This configure script is free software; the Free Software Foundation
983gives unlimited permission to copy, distribute and modify it.
984_ACEOF
985 exit 0
986fi
987exec 5>config.log
988cat >&5 <<_ACEOF
989This file contains any messages produced by compilers while
990running configure, to aid debugging if configure makes a mistake.
2c73f9d8 991
979273e3
NN
992It was created by $as_me, which was
993generated by GNU Autoconf 2.59. Invocation command line was
252b5132 994
979273e3 995 $ $0 $@
252b5132 996
979273e3
NN
997_ACEOF
998{
999cat <<_ASUNAME
1000## --------- ##
1001## Platform. ##
1002## --------- ##
1003
1004hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012
1013/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020
1021_ASUNAME
1022
1023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024for as_dir in $PATH
1025do
1026 IFS=$as_save_IFS
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1029done
252b5132 1030
979273e3 1031} >&5
75798298 1032
979273e3 1033cat >&5 <<_ACEOF
252b5132 1034
252b5132 1035
979273e3
NN
1036## ----------- ##
1037## Core tests. ##
1038## ----------- ##
1039
1040_ACEOF
1041
1042
1043# Keep a trace of the command line.
1044# Strip out --no-create and --no-recursion so they do not pile up.
1045# Strip out --silent because we don't want to record it for future runs.
1046# Also quote any args containing shell meta-characters.
1047# Make two passes to allow for proper duplicate-argument suppression.
1048ac_configure_args=
1049ac_configure_args0=
1050ac_configure_args1=
1051ac_sep=
1052ac_must_keep_next=false
1053for ac_pass in 1 2
1054do
1055 for ac_arg
1056 do
1057 case $ac_arg in
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 continue ;;
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064 esac
1065 case $ac_pass in
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 2)
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1071 else
1072 case $ac_arg in
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079 esac
1080 ;;
1081 -* ) ac_must_keep_next=true ;;
1082 esac
1083 fi
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1086 ac_sep=" "
1087 ;;
1088 esac
1089 done
1090done
1091$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094# When interrupted or exit'd, cleanup temporary files, and complete
1095# config.log. We remove comments because anyway the quotes in there
1096# would cause problems or look ugly.
1097# WARNING: Be sure not to use single quotes in there, as some shells,
1098# such as our DU 5.0 friend, will then `close' the trap.
1099trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1101 {
1102 echo
1103
1104 cat <<\_ASBOX
1105## ---------------- ##
1106## Cache variables. ##
1107## ---------------- ##
1108_ASBOX
1109 echo
1110 # The following way of writing the cache mishandles newlines in values,
1111{
1112 (set) 2>&1 |
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114 *ac_space=\ *)
1115 sed -n \
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 ;;
1119 *)
1120 sed -n \
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ;;
1123 esac;
1124}
1125 echo
1126
1127 cat <<\_ASBOX
1128## ----------------- ##
1129## Output variables. ##
1130## ----------------- ##
1131_ASBOX
1132 echo
1133 for ac_var in $ac_subst_vars
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139
1140 if test -n "$ac_subst_files"; then
1141 cat <<\_ASBOX
1142## ------------- ##
1143## Output files. ##
1144## ------------- ##
1145_ASBOX
1146 echo
1147 for ac_var in $ac_subst_files
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153 fi
1154
1155 if test -s confdefs.h; then
1156 cat <<\_ASBOX
1157## ----------- ##
1158## confdefs.h. ##
1159## ----------- ##
1160_ASBOX
1161 echo
1162 sed "/^$/d" confdefs.h | sort
1163 echo
1164 fi
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1168 } >&5
1169 rm -f core *.core &&
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171 exit $exit_status
1172 ' 0
1173for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175done
1176ac_signal=0
1177
1178# confdefs.h avoids OS command line length limits that DEFS can exceed.
1179rm -rf conftest* confdefs.h
1180# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181echo >confdefs.h
1182
1183# Predefined preprocessor variables.
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_NAME "$PACKAGE_NAME"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_VERSION "$PACKAGE_VERSION"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_STRING "$PACKAGE_STRING"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207_ACEOF
1208
1209
1210# Let the site file select an alternate cache file if it wants to.
1211# Prefer explicitly selected file to automatically selected ones.
1212if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215 else
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 fi
1218fi
1219for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
1224 . "$ac_site_file"
1225 fi
1226done
1227
1228if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233echo "$as_me: loading cache $cache_file" >&6;}
1234 case $cache_file in
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1237 esac
1238 fi
1239else
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241echo "$as_me: creating cache $cache_file" >&6;}
1242 >$cache_file
1243fi
1244
1245# Check that the precious variables saved in the cache have kept the same
1246# value.
1247ac_cache_corrupted=false
1248for ac_var in `(set) 2>&1 |
1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1255 set,)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,set)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,);;
1264 *)
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1273 fi;;
1274 esac
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1277 case $ac_new_val in
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1281 esac
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 esac
1286 fi
1287done
1288if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1294fi
1295
1296ac_ext=c
1297ac_cpp='$CPP $CPPFLAGS'
1298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322ac_aux_dir=
1323for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 break
1328 elif test -f $ac_dir/install.sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 break
1332 elif test -f $ac_dir/shtool; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 break
1336 fi
1337done
1338if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1342fi
1343ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347# Make sure we can run config.sub.
1348$ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1352
1353echo "$as_me:$LINENO: checking build system type" >&5
1354echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1357else
1358 ac_cv_build_alias=$build_alias
1359test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1369
1370fi
1371echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372echo "${ECHO_T}$ac_cv_build" >&6
1373build=$ac_cv_build
1374build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379echo "$as_me:$LINENO: checking host system type" >&5
1380echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383else
1384 ac_cv_host_alias=$host_alias
1385test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1391
1392fi
1393echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394echo "${ECHO_T}$ac_cv_host" >&6
1395host=$ac_cv_host
1396host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401echo "$as_me:$LINENO: checking target system type" >&5
1402echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406 ac_cv_target_alias=$target_alias
1407test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1413
1414fi
1415echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416echo "${ECHO_T}$ac_cv_target" >&6
1417target=$ac_cv_target
1418target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423# The aliases save the names the user supplied, while $host etc.
1424# will get canonicalized.
1425test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1427 NONENONEs,x,x, &&
1428 program_prefix=${target_alias}-
1429ac_ext=c
1430ac_cpp='$CPP $CPPFLAGS'
1431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437echo "$as_me:$LINENO: checking for $ac_word" >&5
1438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441else
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1444else
1445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446for as_dir in $PATH
1447do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 break 2
1455 fi
1456done
1457done
1458
1459fi
1460fi
1461CC=$ac_cv_prog_CC
1462if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464echo "${ECHO_T}$CC" >&6
1465else
1466 echo "$as_me:$LINENO: result: no" >&5
1467echo "${ECHO_T}no" >&6
1468fi
1469
1470fi
1471if test -z "$ac_cv_prog_CC"; then
1472 ac_ct_CC=$CC
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474set dummy gcc; ac_word=$2
1475echo "$as_me:$LINENO: checking for $ac_word" >&5
1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479else
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482else
1483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484for as_dir in $PATH
1485do
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2
1493 fi
1494done
1495done
1496
1497fi
1498fi
1499ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502echo "${ECHO_T}$ac_ct_CC" >&6
1503else
1504 echo "$as_me:$LINENO: result: no" >&5
1505echo "${ECHO_T}no" >&6
1506fi
1507
1508 CC=$ac_ct_CC
1509else
1510 CC="$ac_cv_prog_CC"
1511fi
1512
1513if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516set dummy ${ac_tool_prefix}cc; ac_word=$2
1517echo "$as_me:$LINENO: checking for $ac_word" >&5
1518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521else
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1524else
1525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526for as_dir in $PATH
1527do
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
1535 fi
1536done
1537done
1538
1539fi
1540fi
1541CC=$ac_cv_prog_CC
1542if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544echo "${ECHO_T}$CC" >&6
1545else
1546 echo "$as_me:$LINENO: result: no" >&5
1547echo "${ECHO_T}no" >&6
1548fi
1549
1550fi
1551if test -z "$ac_cv_prog_CC"; then
1552 ac_ct_CC=$CC
1553 # Extract the first word of "cc", so it can be a program name with args.
1554set dummy cc; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562else
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1573 fi
1574done
1575done
1576
1577fi
1578fi
1579ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582echo "${ECHO_T}$ac_ct_CC" >&6
1583else
1584 echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
1586fi
1587
1588 CC=$ac_ct_CC
1589else
1590 CC="$ac_cv_prog_CC"
1591fi
1592
1593fi
1594if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596set dummy cc; ac_word=$2
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604else
1605 ac_prog_rejected=no
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1615 continue
1616 fi
1617 ac_cv_prog_CC="cc"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1620 fi
1621done
1622done
1623
1624if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1627 shift
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1632 shift
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1634 fi
1635fi
1636fi
1637fi
1638CC=$ac_cv_prog_CC
1639if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641echo "${ECHO_T}$CC" >&6
1642else
1643 echo "$as_me:$LINENO: result: no" >&5
1644echo "${ECHO_T}no" >&6
1645fi
1646
1647fi
1648if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1650 for ac_prog in cl
1651 do
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
1674done
1675
1676fi
1677fi
1678CC=$ac_cv_prog_CC
1679if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681echo "${ECHO_T}$CC" >&6
1682else
1683 echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685fi
1686
1687 test -n "$CC" && break
1688 done
1689fi
1690if test -z "$CC"; then
1691 ac_ct_CC=$CC
1692 for ac_prog in cl
1693do
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695set dummy $ac_prog; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1714 fi
1715done
1716done
1717
1718fi
1719fi
1720ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723echo "${ECHO_T}$ac_ct_CC" >&6
1724else
1725 echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729 test -n "$ac_ct_CC" && break
1730done
1731
1732 CC=$ac_ct_CC
1733fi
1734
1735fi
1736
1737
1738test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739See \`config.log' for more details." >&5
1740echo "$as_me: error: no acceptable C compiler found in \$PATH
1741See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1743
1744# Provide some information about the compiler.
1745echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747ac_compiler=`set X $ac_compile; echo $2`
1748{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763
1764cat >conftest.$ac_ext <<_ACEOF
1765/* confdefs.h. */
1766_ACEOF
1767cat confdefs.h >>conftest.$ac_ext
1768cat >>conftest.$ac_ext <<_ACEOF
1769/* end confdefs.h. */
1770
1771int
1772main ()
1773{
1774
1775 ;
1776 return 0;
1777}
1778_ACEOF
1779ac_clean_files_save=$ac_clean_files
1780ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781# Try to create an executable without -o first, disregard a.out.
1782# It will help us diagnose broken compilers, and finding out an intuition
1783# of exeext.
1784echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794# resort.
1795
1796# Be careful to initialize this variable, since it used to be cached.
1797# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798ac_cv_exeext=
1799# b.out is created by i960 compilers.
1800for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801do
1802 test -f "$ac_file" || continue
1803 case $ac_file in
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1805 ;;
1806 conftest.$ac_ext )
1807 # This is the source file.
1808 ;;
1809 [ab].out )
1810 # We found the default executable, but exeext='' is most
1811 # certainly right.
1812 break;;
1813 *.* )
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1818 export ac_cv_exeext
1819 break;;
1820 * )
1821 break;;
1822 esac
1823done
1824else
1825 echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829See \`config.log' for more details." >&5
1830echo "$as_me: error: C compiler cannot create executables
1831See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1833fi
1834
1835ac_exeext=$ac_cv_exeext
1836echo "$as_me:$LINENO: result: $ac_file" >&5
1837echo "${ECHO_T}$ac_file" >&6
1838
1839# Check the compiler produces executables we can run. If not, either
1840# the compiler is broken, or we cross compile.
1841echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844# If not cross compiling, check that we can run a simple program.
1845if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 cross_compiling=no
1853 else
1854 if test "$cross_compiling" = maybe; then
1855 cross_compiling=yes
1856 else
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858If you meant to cross compile, use \`--host'.
1859See \`config.log' for more details." >&5
1860echo "$as_me: error: cannot run C compiled programs.
1861If you meant to cross compile, use \`--host'.
1862See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1864 fi
1865 fi
1866fi
1867echo "$as_me:$LINENO: result: yes" >&5
1868echo "${ECHO_T}yes" >&6
1869
1870rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871ac_clean_files=$ac_clean_files_save
1872# Check the compiler produces executables we can run. If not, either
1873# the compiler is broken, or we cross compile.
1874echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877echo "${ECHO_T}$cross_compiling" >&6
1878
1879echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888# work properly (i.e., refer to `conftest.exe'), while it won't with
1889# `rm'.
1890for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1892 case $ac_file in
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895 export ac_cv_exeext
1896 break;;
1897 * ) break;;
1898 esac
1899done
1900else
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902See \`config.log' for more details." >&5
1903echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1906fi
1907
1908rm -f conftest$ac_cv_exeext
1909echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910echo "${ECHO_T}$ac_cv_exeext" >&6
1911
1912rm -f conftest.$ac_ext
1913EXEEXT=$ac_cv_exeext
1914ac_exeext=$EXEEXT
1915echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920 cat >conftest.$ac_ext <<_ACEOF
1921/* confdefs.h. */
1922_ACEOF
1923cat confdefs.h >>conftest.$ac_ext
1924cat >>conftest.$ac_ext <<_ACEOF
1925/* end confdefs.h. */
1926
1927int
1928main ()
1929{
1930
1931 ;
1932 return 0;
1933}
1934_ACEOF
1935rm -f conftest.o conftest.obj
1936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942 case $ac_file in
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945 break;;
1946 esac
1947done
1948else
1949 echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953See \`config.log' for more details." >&5
1954echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1957fi
1958
1959rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960fi
1961echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962echo "${ECHO_T}$ac_cv_objext" >&6
1963OBJEXT=$ac_cv_objext
1964ac_objext=$OBJEXT
1965echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970 cat >conftest.$ac_ext <<_ACEOF
1971/* confdefs.h. */
1972_ACEOF
1973cat confdefs.h >>conftest.$ac_ext
1974cat >>conftest.$ac_ext <<_ACEOF
1975/* end confdefs.h. */
1976
1977int
1978main ()
1979{
1980#ifndef __GNUC__
1981 choke me
1982#endif
1983
1984 ;
1985 return 0;
1986}
1987_ACEOF
1988rm -f conftest.$ac_objext
1989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1991 ac_status=$?
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_compiler_gnu=yes
2010else
2011 echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
2013
2014ac_compiler_gnu=no
2015fi
2016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017ac_cv_c_compiler_gnu=$ac_compiler_gnu
2018
2019fi
2020echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022GCC=`test $ac_compiler_gnu = yes && echo yes`
2023ac_test_CFLAGS=${CFLAGS+set}
2024ac_save_CFLAGS=$CFLAGS
2025CFLAGS="-g"
2026echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028if test "${ac_cv_prog_cc_g+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030else
2031 cat >conftest.$ac_ext <<_ACEOF
2032/* confdefs.h. */
2033_ACEOF
2034cat confdefs.h >>conftest.$ac_ext
2035cat >>conftest.$ac_ext <<_ACEOF
2036/* end confdefs.h. */
2037
2038int
2039main ()
2040{
2041
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046rm -f conftest.$ac_objext
2047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>conftest.er1
2049 ac_status=$?
2050 grep -v '^ *+' conftest.er1 >conftest.err
2051 rm -f conftest.er1
2052 cat conftest.err >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 (eval $ac_try) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; } &&
2061 { ac_try='test -s conftest.$ac_objext'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2067 ac_cv_prog_cc_g=yes
2068else
2069 echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072ac_cv_prog_cc_g=no
2073fi
2074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2075fi
2076echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2077echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2078if test "$ac_test_CFLAGS" = set; then
2079 CFLAGS=$ac_save_CFLAGS
2080elif test $ac_cv_prog_cc_g = yes; then
2081 if test "$GCC" = yes; then
2082 CFLAGS="-g -O2"
2083 else
2084 CFLAGS="-g"
2085 fi
2086else
2087 if test "$GCC" = yes; then
2088 CFLAGS="-O2"
2089 else
2090 CFLAGS=
2091 fi
2092fi
2093echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2094echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098 ac_cv_prog_cc_stdc=no
2099ac_save_CC=$CC
2100cat >conftest.$ac_ext <<_ACEOF
2101/* confdefs.h. */
2102_ACEOF
2103cat confdefs.h >>conftest.$ac_ext
2104cat >>conftest.$ac_ext <<_ACEOF
2105/* end confdefs.h. */
2106#include <stdarg.h>
2107#include <stdio.h>
2108#include <sys/types.h>
2109#include <sys/stat.h>
2110/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2111struct buf { int x; };
2112FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113static char *e (p, i)
2114 char **p;
2115 int i;
2116{
2117 return p[i];
2118}
2119static char *f (char * (*g) (char **, int), char **p, ...)
2120{
2121 char *s;
2122 va_list v;
2123 va_start (v,p);
2124 s = g (p, va_arg (v,int));
2125 va_end (v);
2126 return s;
2127}
2128
2129/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2130 function prototypes and stuff, but not '\xHH' hex character constants.
2131 These don't provoke an error unfortunately, instead are silently treated
2132 as 'x'. The following induces an error, until -std1 is added to get
2133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2134 array size at least. It's necessary to write '\x00'==0 to get something
2135 that's true only with -std1. */
2136int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2137
2138int test (int i, double x);
2139struct s1 {int (*f) (int a);};
2140struct s2 {int (*f) (double a);};
2141int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2142int argc;
2143char **argv;
2144int
2145main ()
2146{
2147return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152# Don't try gcc -ansi; that turns off useful extensions and
2153# breaks some systems' header files.
2154# AIX -qlanglvl=ansi
2155# Ultrix and OSF/1 -std1
2156# HP-UX 10.20 and later -Ae
2157# HP-UX older versions -Aa -D_HPUX_SOURCE
2158# SVR4 -Xc -D__EXTENSIONS__
2159for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2160do
2161 CC="$ac_save_CC $ac_arg"
2162 rm -f conftest.$ac_objext
2163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2165 ac_status=$?
2166 grep -v '^ *+' conftest.er1 >conftest.err
2167 rm -f conftest.er1
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2183 ac_cv_prog_cc_stdc=$ac_arg
2184break
2185else
2186 echo "$as_me: failed program was:" >&5
2187sed 's/^/| /' conftest.$ac_ext >&5
2188
2189fi
2190rm -f conftest.err conftest.$ac_objext
2191done
2192rm -f conftest.$ac_ext conftest.$ac_objext
2193CC=$ac_save_CC
2194
2195fi
2196
2197case "x$ac_cv_prog_cc_stdc" in
2198 x|xno)
2199 echo "$as_me:$LINENO: result: none needed" >&5
2200echo "${ECHO_T}none needed" >&6 ;;
2201 *)
2202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204 CC="$CC $ac_cv_prog_cc_stdc" ;;
2205esac
2206
2207# Some people use a C++ compiler to compile C. Since we use `exit',
2208# in C++ we need to declare it. In case someone uses the same compiler
2209# for both compiling C and C++ we need to have the C++ compiler decide
2210# the declaration of exit, since it's the most demanding environment.
2211cat >conftest.$ac_ext <<_ACEOF
2212#ifndef __cplusplus
2213 choke me
2214#endif
2215_ACEOF
2216rm -f conftest.$ac_objext
2217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2219 ac_status=$?
2220 grep -v '^ *+' conftest.er1 >conftest.err
2221 rm -f conftest.er1
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; } &&
2231 { ac_try='test -s conftest.$ac_objext'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 for ac_declaration in \
2238 '' \
2239 'extern "C" void std::exit (int) throw (); using std::exit;' \
2240 'extern "C" void std::exit (int); using std::exit;' \
2241 'extern "C" void exit (int) throw ();' \
2242 'extern "C" void exit (int);' \
2243 'void exit (int);'
2244do
2245 cat >conftest.$ac_ext <<_ACEOF
2246/* confdefs.h. */
2247_ACEOF
2248cat confdefs.h >>conftest.$ac_ext
2249cat >>conftest.$ac_ext <<_ACEOF
2250/* end confdefs.h. */
2251$ac_declaration
2252#include <stdlib.h>
2253int
2254main ()
2255{
2256exit (42);
2257 ;
2258 return 0;
2259}
2260_ACEOF
2261rm -f conftest.$ac_objext
2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2264 ac_status=$?
2265 grep -v '^ *+' conftest.er1 >conftest.err
2266 rm -f conftest.er1
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2282 :
2283else
2284 echo "$as_me: failed program was:" >&5
2285sed 's/^/| /' conftest.$ac_ext >&5
2286
2287continue
2288fi
2289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 cat >conftest.$ac_ext <<_ACEOF
2291/* confdefs.h. */
2292_ACEOF
2293cat confdefs.h >>conftest.$ac_ext
2294cat >>conftest.$ac_ext <<_ACEOF
2295/* end confdefs.h. */
2296$ac_declaration
2297int
2298main ()
2299{
2300exit (42);
2301 ;
2302 return 0;
2303}
2304_ACEOF
2305rm -f conftest.$ac_objext
2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 break
2327else
2328 echo "$as_me: failed program was:" >&5
2329sed 's/^/| /' conftest.$ac_ext >&5
2330
2331fi
2332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333done
2334rm -f conftest*
2335if test -n "$ac_declaration"; then
2336 echo '#ifdef __cplusplus' >>confdefs.h
2337 echo $ac_declaration >>confdefs.h
2338 echo '#endif' >>confdefs.h
2339fi
2340
2341else
2342 echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345fi
2346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347ac_ext=c
2348ac_cpp='$CPP $CPPFLAGS'
2349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352
2353
2354
2355 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2356echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2357if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360 ac_check_lib_save_LIBS=$LIBS
2361LIBS="-lcposix $LIBS"
2362cat >conftest.$ac_ext <<_ACEOF
2363/* confdefs.h. */
2364_ACEOF
2365cat confdefs.h >>conftest.$ac_ext
2366cat >>conftest.$ac_ext <<_ACEOF
2367/* end confdefs.h. */
2368
2369/* Override any gcc2 internal prototype to avoid an error. */
2370#ifdef __cplusplus
2371extern "C"
2372#endif
2373/* We use char because int might match the return type of a gcc2
2374 builtin and then its argument prototype would still apply. */
2375char strerror ();
2376int
2377main ()
2378{
2379strerror ();
2380 ;
2381 return 0;
2382}
2383_ACEOF
2384rm -f conftest.$ac_objext conftest$ac_exeext
2385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2386 (eval $ac_link) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest$ac_exeext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 ac_cv_lib_cposix_strerror=yes
2406else
2407 echo "$as_me: failed program was:" >&5
2408sed 's/^/| /' conftest.$ac_ext >&5
2409
2410ac_cv_lib_cposix_strerror=no
2411fi
2412rm -f conftest.err conftest.$ac_objext \
2413 conftest$ac_exeext conftest.$ac_ext
2414LIBS=$ac_check_lib_save_LIBS
2415fi
2416echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2417echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2418if test $ac_cv_lib_cposix_strerror = yes; then
2419 LIBS="$LIBS -lcposix"
2420fi
2421
2422
2423
2424
2425# We currently only use the version number for the name of any shared
2426# library. For user convenience, we always use the same version
2427# number that BFD is using.
2428BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2429
2430am__api_version="1.4"
2431# Find a good install program. We prefer a C program (faster),
2432# so one script is as good as another. But avoid the broken or
2433# incompatible versions:
2434# SysV /etc/install, /usr/sbin/install
2435# SunOS /usr/etc/install
2436# IRIX /sbin/install
2437# AIX /bin/install
2438# AmigaOS /C/install, which installs bootblocks on floppy discs
2439# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440# AFS /usr/afsws/bin/install, which mishandles nonexistent args
252b5132 2441# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 2442# OS/2's system install, which has a completely different semantic
252b5132 2443# ./install, which can be erroneously created by make from ./install.sh.
979273e3
NN
2444echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2445echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2446if test -z "$INSTALL"; then
979273e3
NN
2447if test "${ac_cv_path_install+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2449else
979273e3
NN
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 # Account for people who put trailing slashes in PATH elements.
2456case $as_dir/ in
2457 ./ | .// | /cC/* | \
2458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2459 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2460 /usr/ucb/* ) ;;
2461 *)
2462 # OSF1 and SCO ODT 3.0 have their own names for install.
2463 # Don't use installbsd from OSF since it installs stuff as root
2464 # by default.
2465 for ac_prog in ginstall scoinst install; do
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2468 if test $ac_prog = install &&
979273e3 2469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2470 # AIX install. It has an incompatible calling convention.
2471 :
979273e3
NN
2472 elif test $ac_prog = install &&
2473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474 # program-specific install script used by HP pwplus--don't use.
2475 :
252b5132 2476 else
979273e3
NN
2477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2478 break 3
252b5132
RH
2479 fi
2480 fi
2481 done
979273e3
NN
2482 done
2483 ;;
2484esac
2485done
2486
252b5132
RH
2487
2488fi
2489 if test "${ac_cv_path_install+set}" = set; then
979273e3 2490 INSTALL=$ac_cv_path_install
252b5132
RH
2491 else
2492 # As a last resort, use the slow shell script. We don't cache a
2493 # path for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the path is relative.
979273e3 2496 INSTALL=$ac_install_sh
252b5132
RH
2497 fi
2498fi
979273e3
NN
2499echo "$as_me:$LINENO: result: $INSTALL" >&5
2500echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2501
2502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503# It thinks the first close brace ends the variable substitution.
2504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
979273e3 2506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2507
2508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
979273e3
NN
2510echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2511echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2512# Just in case
2513sleep 1
2514echo timestamp > conftestfile
2515# Do `set' in a subshell so we don't clobber the current shell's
2516# arguments. Must try -L first in case configure is actually a
2517# symlink; some systems play weird games with the mod time of symlinks
2518# (eg FreeBSD returns the mod time of the symlink's containing
2519# directory).
2520if (
2521 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2522 if test "$*" = "X"; then
2523 # -L didn't work.
2524 set X `ls -t $srcdir/configure conftestfile`
2525 fi
2526 if test "$*" != "X $srcdir/configure conftestfile" \
2527 && test "$*" != "X conftestfile $srcdir/configure"; then
2528
2529 # If neither matched, then we have a broken ls. This can happen
2530 # if, for instance, CONFIG_SHELL is bash and it inherits a
2531 # broken ls alias from the environment. This has actually
2532 # happened. Such a system could not be considered "sane".
979273e3
NN
2533 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2534alias in your environment" >&5
2535echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2536alias in your environment" >&2;}
2537 { (exit 1); exit 1; }; }
252b5132
RH
2538 fi
2539
2540 test "$2" = conftestfile
2541 )
2542then
2543 # Ok.
2544 :
2545else
979273e3
NN
2546 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2547Check your system clock" >&5
2548echo "$as_me: error: newly created file is older than distributed files!
2549Check your system clock" >&2;}
2550 { (exit 1); exit 1; }; }
252b5132
RH
2551fi
2552rm -f conftest*
979273e3
NN
2553echo "$as_me:$LINENO: result: yes" >&5
2554echo "${ECHO_T}yes" >&6
252b5132 2555test "$program_prefix" != NONE &&
979273e3 2556 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2557# Use a double $ so make ignores it.
2558test "$program_suffix" != NONE &&
979273e3
NN
2559 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2560# Double any \ or $. echo might interpret backslashes.
2561# By default was `s,x,x', remove it if useless.
2562cat <<\_ACEOF >conftest.sed
2563s/[\\$]/&&/g;s/;s,x,x,$//
2564_ACEOF
2565program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2566rm conftest.sed
2567
2568echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2569echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2570set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2571if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2573else
2574 cat >conftest.make <<\_ACEOF
252b5132 2575all:
979273e3
NN
2576 @echo 'ac_maketemp="$(MAKE)"'
2577_ACEOF
252b5132 2578# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
979273e3 2579eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2580if test -n "$ac_maketemp"; then
2581 eval ac_cv_prog_make_${ac_make}_set=yes
2582else
2583 eval ac_cv_prog_make_${ac_make}_set=no
2584fi
979273e3 2585rm -f conftest.make
252b5132
RH
2586fi
2587if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
979273e3
NN
2588 echo "$as_me:$LINENO: result: yes" >&5
2589echo "${ECHO_T}yes" >&6
252b5132
RH
2590 SET_MAKE=
2591else
979273e3
NN
2592 echo "$as_me:$LINENO: result: no" >&5
2593echo "${ECHO_T}no" >&6
252b5132
RH
2594 SET_MAKE="MAKE=${MAKE-make}"
2595fi
2596
2597
2598PACKAGE=opcodes
2599
2600VERSION=${BFD_VERSION}
2601
2602if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
979273e3
NN
2603 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2604echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2605 { (exit 1); exit 1; }; }
252b5132 2606fi
979273e3
NN
2607
2608cat >>confdefs.h <<_ACEOF
252b5132 2609#define PACKAGE "$PACKAGE"
979273e3 2610_ACEOF
252b5132 2611
979273e3
NN
2612
2613cat >>confdefs.h <<_ACEOF
252b5132 2614#define VERSION "$VERSION"
979273e3 2615_ACEOF
252b5132
RH
2616
2617
2618
2619missing_dir=`cd $ac_aux_dir && pwd`
979273e3
NN
2620echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
2621echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
252b5132
RH
2622# Run test in a subshell; some versions of sh will print an error if
2623# an executable is not found, even if stderr is redirected.
2624# Redirect stdin to placate older versions of autoconf. Sigh.
e20c0b3d
AM
2625if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2626 ACLOCAL=aclocal-${am__api_version}
979273e3
NN
2627 echo "$as_me:$LINENO: result: found" >&5
2628echo "${ECHO_T}found" >&6
252b5132 2629else
e20c0b3d 2630 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
979273e3
NN
2631 echo "$as_me:$LINENO: result: missing" >&5
2632echo "${ECHO_T}missing" >&6
252b5132
RH
2633fi
2634
979273e3
NN
2635echo "$as_me:$LINENO: checking for working autoconf" >&5
2636echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
252b5132
RH
2637# Run test in a subshell; some versions of sh will print an error if
2638# an executable is not found, even if stderr is redirected.
2639# Redirect stdin to placate older versions of autoconf. Sigh.
2640if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2641 AUTOCONF=autoconf
979273e3
NN
2642 echo "$as_me:$LINENO: result: found" >&5
2643echo "${ECHO_T}found" >&6
252b5132
RH
2644else
2645 AUTOCONF="$missing_dir/missing autoconf"
979273e3
NN
2646 echo "$as_me:$LINENO: result: missing" >&5
2647echo "${ECHO_T}missing" >&6
252b5132
RH
2648fi
2649
979273e3
NN
2650echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
2651echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
252b5132
RH
2652# Run test in a subshell; some versions of sh will print an error if
2653# an executable is not found, even if stderr is redirected.
2654# Redirect stdin to placate older versions of autoconf. Sigh.
e20c0b3d
AM
2655if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2656 AUTOMAKE=automake-${am__api_version}
979273e3
NN
2657 echo "$as_me:$LINENO: result: found" >&5
2658echo "${ECHO_T}found" >&6
252b5132 2659else
e20c0b3d 2660 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
979273e3
NN
2661 echo "$as_me:$LINENO: result: missing" >&5
2662echo "${ECHO_T}missing" >&6
252b5132
RH
2663fi
2664
979273e3
NN
2665echo "$as_me:$LINENO: checking for working autoheader" >&5
2666echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
252b5132
RH
2667# Run test in a subshell; some versions of sh will print an error if
2668# an executable is not found, even if stderr is redirected.
2669# Redirect stdin to placate older versions of autoconf. Sigh.
2670if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2671 AUTOHEADER=autoheader
979273e3
NN
2672 echo "$as_me:$LINENO: result: found" >&5
2673echo "${ECHO_T}found" >&6
252b5132
RH
2674else
2675 AUTOHEADER="$missing_dir/missing autoheader"
979273e3
NN
2676 echo "$as_me:$LINENO: result: missing" >&5
2677echo "${ECHO_T}missing" >&6
252b5132
RH
2678fi
2679
979273e3
NN
2680echo "$as_me:$LINENO: checking for working makeinfo" >&5
2681echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
252b5132
RH
2682# Run test in a subshell; some versions of sh will print an error if
2683# an executable is not found, even if stderr is redirected.
2684# Redirect stdin to placate older versions of autoconf. Sigh.
2685if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2686 MAKEINFO=makeinfo
979273e3
NN
2687 echo "$as_me:$LINENO: result: found" >&5
2688echo "${ECHO_T}found" >&6
252b5132
RH
2689else
2690 MAKEINFO="$missing_dir/missing makeinfo"
979273e3
NN
2691 echo "$as_me:$LINENO: result: missing" >&5
2692echo "${ECHO_T}missing" >&6
252b5132
RH
2693fi
2694
2695
2696
979273e3
NN
2697if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 2699set dummy ${ac_tool_prefix}ar; ac_word=$2
979273e3
NN
2700echo "$as_me:$LINENO: checking for $ac_word" >&5
2701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702if test "${ac_cv_prog_AR+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2704else
2705 if test -n "$AR"; then
2706 ac_cv_prog_AR="$AR" # Let the user override the test.
2707else
979273e3
NN
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715 ac_cv_prog_AR="${ac_tool_prefix}ar"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719done
2720done
2721
252b5132
RH
2722fi
2723fi
979273e3 2724AR=$ac_cv_prog_AR
252b5132 2725if test -n "$AR"; then
979273e3
NN
2726 echo "$as_me:$LINENO: result: $AR" >&5
2727echo "${ECHO_T}$AR" >&6
252b5132 2728else
979273e3
NN
2729 echo "$as_me:$LINENO: result: no" >&5
2730echo "${ECHO_T}no" >&6
2731fi
2732
252b5132 2733fi
979273e3
NN
2734if test -z "$ac_cv_prog_AR"; then
2735 ac_ct_AR=$AR
2736 # Extract the first word of "ar", so it can be a program name with args.
2737set dummy ar; ac_word=$2
2738echo "$as_me:$LINENO: checking for $ac_word" >&5
2739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2740if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2742else
2743 if test -n "$ac_ct_AR"; then
2744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_ac_ct_AR="ar"
2754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757done
2758done
252b5132 2759
979273e3
NN
2760fi
2761fi
2762ac_ct_AR=$ac_cv_prog_ac_ct_AR
2763if test -n "$ac_ct_AR"; then
2764 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2765echo "${ECHO_T}$ac_ct_AR" >&6
2766else
2767 echo "$as_me:$LINENO: result: no" >&5
2768echo "${ECHO_T}no" >&6
2769fi
252b5132 2770
979273e3
NN
2771 AR=$ac_ct_AR
2772else
2773 AR="$ac_cv_prog_AR"
2774fi
252b5132 2775
979273e3
NN
2776if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 2778set dummy ${ac_tool_prefix}ranlib; ac_word=$2
979273e3
NN
2779echo "$as_me:$LINENO: checking for $ac_word" >&5
2780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781if test "${ac_cv_prog_RANLIB+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2783else
2784 if test -n "$RANLIB"; then
2785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2786else
979273e3
NN
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799done
2800
252b5132
RH
2801fi
2802fi
979273e3 2803RANLIB=$ac_cv_prog_RANLIB
252b5132 2804if test -n "$RANLIB"; then
979273e3
NN
2805 echo "$as_me:$LINENO: result: $RANLIB" >&5
2806echo "${ECHO_T}$RANLIB" >&6
252b5132 2807else
979273e3
NN
2808 echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6
252b5132
RH
2810fi
2811
979273e3 2812fi
252b5132 2813if test -z "$ac_cv_prog_RANLIB"; then
979273e3 2814 ac_ct_RANLIB=$RANLIB
252b5132
RH
2815 # Extract the first word of "ranlib", so it can be a program name with args.
2816set dummy ranlib; ac_word=$2
979273e3
NN
2817echo "$as_me:$LINENO: checking for $ac_word" >&5
2818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2821else
979273e3
NN
2822 if test -n "$ac_ct_RANLIB"; then
2823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 2824else
979273e3
NN
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_ac_ct_RANLIB="ranlib"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836done
2837done
2838
2839 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
2840fi
2841fi
979273e3
NN
2842ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2843if test -n "$ac_ct_RANLIB"; then
2844 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2845echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 2846else
979273e3
NN
2847 echo "$as_me:$LINENO: result: no" >&5
2848echo "${ECHO_T}no" >&6
252b5132
RH
2849fi
2850
979273e3 2851 RANLIB=$ac_ct_RANLIB
252b5132 2852else
979273e3 2853 RANLIB="$ac_cv_prog_RANLIB"
252b5132
RH
2854fi
2855
2856
2857# Check whether --enable-shared or --disable-shared was given.
2858if test "${enable_shared+set}" = set; then
2859 enableval="$enable_shared"
2860 p=${PACKAGE-default}
87e6d782 2861case $enableval in
252b5132
RH
2862yes) enable_shared=yes ;;
2863no) enable_shared=no ;;
2864*)
2865 enable_shared=no
2866 # Look at the argument we got. We use all the common list separators.
2867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2868 for pkg in $enableval; do
2869 if test "X$pkg" = "X$p"; then
2870 enable_shared=yes
2871 fi
2872 done
2873 IFS="$ac_save_ifs"
2874 ;;
2875esac
2876else
2877 enable_shared=no
979273e3 2878fi;
252b5132
RH
2879
2880# Check whether --enable-static or --disable-static was given.
2881if test "${enable_static+set}" = set; then
2882 enableval="$enable_static"
2883 p=${PACKAGE-default}
87e6d782 2884case $enableval in
252b5132
RH
2885yes) enable_static=yes ;;
2886no) enable_static=no ;;
2887*)
2888 enable_static=no
2889 # Look at the argument we got. We use all the common list separators.
2890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2891 for pkg in $enableval; do
2892 if test "X$pkg" = "X$p"; then
2893 enable_static=yes
2894 fi
2895 done
2896 IFS="$ac_save_ifs"
2897 ;;
2898esac
2899else
2900 enable_static=yes
979273e3 2901fi;
252b5132
RH
2902# Check whether --enable-fast-install or --disable-fast-install was given.
2903if test "${enable_fast_install+set}" = set; then
2904 enableval="$enable_fast_install"
2905 p=${PACKAGE-default}
87e6d782 2906case $enableval in
252b5132
RH
2907yes) enable_fast_install=yes ;;
2908no) enable_fast_install=no ;;
2909*)
2910 enable_fast_install=no
2911 # Look at the argument we got. We use all the common list separators.
2912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2913 for pkg in $enableval; do
2914 if test "X$pkg" = "X$p"; then
2915 enable_fast_install=yes
2916 fi
2917 done
2918 IFS="$ac_save_ifs"
2919 ;;
2920esac
2921else
2922 enable_fast_install=yes
979273e3 2923fi;
75798298 2924
252b5132
RH
2925# Check whether --with-gnu-ld or --without-gnu-ld was given.
2926if test "${with_gnu_ld+set}" = set; then
2927 withval="$with_gnu_ld"
2928 test "$withval" = no || with_gnu_ld=yes
2929else
2930 with_gnu_ld=no
979273e3 2931fi;
252b5132 2932ac_prog=ld
87e6d782 2933if test "$GCC" = yes; then
252b5132 2934 # Check if gcc -print-prog-name=ld gives a path.
979273e3
NN
2935 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2936echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
2937 case $host in
2938 *-*-mingw*)
2939 # gcc leaves a trailing carriage return which upsets mingw
2940 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2941 *)
2942 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2943 esac
87e6d782 2944 case $ac_prog in
252b5132 2945 # Accept absolute paths.
a74801ba 2946 [\\/]* | [A-Za-z]:[\\/]*)
252b5132
RH
2947 re_direlt='/[^/][^/]*/\.\./'
2948 # Canonicalize the path of ld
2949 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2950 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2951 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2952 done
2953 test -z "$LD" && LD="$ac_prog"
2954 ;;
2955 "")
2956 # If it fails, then pretend we aren't using GCC.
2957 ac_prog=ld
2958 ;;
2959 *)
2960 # If it is relative, then search for the first ld in PATH.
2961 with_gnu_ld=unknown
2962 ;;
2963 esac
2964elif test "$with_gnu_ld" = yes; then
979273e3
NN
2965 echo "$as_me:$LINENO: checking for GNU ld" >&5
2966echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 2967else
979273e3
NN
2968 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2969echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 2970fi
979273e3
NN
2971if test "${lt_cv_path_LD+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2973else
2974 if test -z "$LD"; then
a74801ba 2975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
2976 for ac_dir in $PATH; do
2977 test -z "$ac_dir" && ac_dir=.
a74801ba 2978 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
87e6d782 2979 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
2980 # Check to see if the program is GNU ld. I'd rather use --version,
2981 # but apparently some GNU ld's only accept -v.
2982 # Break only if it was the GNU/non-GNU ld that we prefer.
87e6d782 2983 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
2984 test "$with_gnu_ld" != no && break
2985 else
2986 test "$with_gnu_ld" != yes && break
2987 fi
2988 fi
2989 done
2990 IFS="$ac_save_ifs"
2991else
87e6d782 2992 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
2993fi
2994fi
2995
87e6d782 2996LD="$lt_cv_path_LD"
252b5132 2997if test -n "$LD"; then
979273e3
NN
2998 echo "$as_me:$LINENO: result: $LD" >&5
2999echo "${ECHO_T}$LD" >&6
252b5132 3000else
979273e3
NN
3001 echo "$as_me:$LINENO: result: no" >&5
3002echo "${ECHO_T}no" >&6
252b5132 3003fi
979273e3
NN
3004test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3005echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3006 { (exit 1); exit 1; }; }
3007echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3008echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3009if test "${lt_cv_prog_gnu_ld+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3011else
3012 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3013if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
87e6d782 3014 lt_cv_prog_gnu_ld=yes
252b5132 3015else
87e6d782 3016 lt_cv_prog_gnu_ld=no
252b5132
RH
3017fi
3018fi
979273e3
NN
3019echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3020echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
87e6d782 3021with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1
AO
3022
3023
979273e3
NN
3024echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3025echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3026if test "${lt_cv_ld_reload_flag+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3028else
3029 lt_cv_ld_reload_flag='-r'
3030fi
979273e3
NN
3031echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3032echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3033reload_flag=$lt_cv_ld_reload_flag
3034test -n "$reload_flag" && reload_flag=" $reload_flag"
252b5132 3035
979273e3
NN
3036echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3037echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3038if test "${lt_cv_path_NM+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3040else
3041 if test -n "$NM"; then
3042 # Let the user override the test.
87e6d782 3043 lt_cv_path_NM="$NM"
252b5132 3044else
a74801ba 3045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3046 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3047 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3048 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3049 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3050 # Check to see if the nm accepts a BSD-compat flag.
3051 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3052 # nm: unknown option "B" ignored
90f2472a
AO
3053 # Tru64's nm complains that /dev/null is an invalid object file
3054 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
87e6d782 3055 lt_cv_path_NM="$tmp_nm -B"
252b5132 3056 break
ac48eca1 3057 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
87e6d782 3058 lt_cv_path_NM="$tmp_nm -p"
252b5132
RH
3059 break
3060 else
87e6d782 3061 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
252b5132
RH
3062 continue # so that we can try to find one that supports BSD flags
3063 fi
3064 fi
3065 done
3066 IFS="$ac_save_ifs"
87e6d782 3067 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3068fi
3069fi
3070
87e6d782 3071NM="$lt_cv_path_NM"
979273e3
NN
3072echo "$as_me:$LINENO: result: $NM" >&5
3073echo "${ECHO_T}$NM" >&6
252b5132 3074
979273e3
NN
3075echo "$as_me:$LINENO: checking whether ln -s works" >&5
3076echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3077LN_S=$as_ln_s
3078if test "$LN_S" = "ln -s"; then
3079 echo "$as_me:$LINENO: result: yes" >&5
3080echo "${ECHO_T}yes" >&6
252b5132 3081else
979273e3
NN
3082 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3083echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3084fi
3085
979273e3
NN
3086echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3087echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3088if test "${lt_cv_deplibs_check_method+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3090else
d64552c5 3091 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3092lt_cv_file_magic_test_file=
3093lt_cv_deplibs_check_method='unknown'
3094# Need to set the preceding variable on all platforms that support
3095# interlibrary dependencies.
3096# 'none' -- dependencies not supported.
3097# `unknown' -- same as none, but documents that we really don't know.
3098# 'pass_all' -- all dependencies passed with no checks.
3099# 'test_compile' -- check by making test program.
3100# 'file_magic [regex]' -- check by looking for files in library path
3101# which responds to the $file_magic_cmd with a given egrep regex.
3102# If you have `file' or equivalent on your system and you're not sure
3103# whether `pass_all' will *always* work, you probably want this one.
3104
87e6d782
NC
3105case $host_os in
3106aix*)
ac48eca1
AO
3107 lt_cv_deplibs_check_method=pass_all
3108 ;;
3109
3110beos*)
3111 lt_cv_deplibs_check_method=pass_all
3112 ;;
3113
3114bsdi4*)
87e6d782
NC
3115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3116 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3117 lt_cv_file_magic_test_file=/shlib/libc.so
3118 ;;
3119
d64552c5 3120cygwin* | mingw* |pw32*)
ac48eca1 3121 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3122 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3123 ;;
3124
87e6d782
NC
3125darwin* | rhapsody*)
3126 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3127 lt_cv_file_magic_cmd='/usr/bin/file -L'
3128 case "$host_os" in
3129 rhapsody* | darwin1.012)
3130 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3131 ;;
3132 *) # Darwin 1.3 on
3133 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3134 ;;
3135 esac
3136 ;;
3137
979273e3 3138freebsd* | kfreebsd*-gnu)
ac48eca1 3139 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
87e6d782 3140 case $host_cpu in
ac48eca1 3141 i*86 )
90f2472a
AO
3142 # Not sure whether the presence of OpenBSD here was a mistake.
3143 # Let's accept both of them until this is cleared up.
87e6d782
NC
3144 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3145 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3147 ;;
3148 esac
3149 else
3150 lt_cv_deplibs_check_method=pass_all
3151 fi
3152 ;;
3153
3154gnu*)
3155 lt_cv_deplibs_check_method=pass_all
3156 ;;
3157
87e6d782 3158hpux10.20*|hpux11*)
4867be41
DJ
3159 case $host_cpu in
3160 hppa*)
3161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3162 lt_cv_file_magic_cmd=/usr/bin/file
3163 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3164 ;;
3165 ia64*)
3166 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3167 lt_cv_file_magic_cmd=/usr/bin/file
3168 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3169 ;;
3170 esac
ac48eca1
AO
3171 ;;
3172
3173irix5* | irix6*)
87e6d782 3174 case $host_os in
ac48eca1
AO
3175 irix5*)
3176 # this will be overridden with pass_all, but let us keep it just in case
3177 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3178 ;;
3179 *)
87e6d782 3180 case $LD in
ac48eca1
AO
3181 *-32|*"-32 ") libmagic=32-bit;;
3182 *-n32|*"-n32 ") libmagic=N32;;
3183 *-64|*"-64 ") libmagic=64-bit;;
3184 *) libmagic=never-match;;
3185 esac
3186 # this will be overridden with pass_all, but let us keep it just in case
87e6d782
NC
3187 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3188 ;;
ac48eca1
AO
3189 esac
3190 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3191 lt_cv_deplibs_check_method=pass_all
3192 ;;
3193
3194# This must be Linux ELF.
90f2472a 3195linux-gnu*)
87e6d782 3196 case $host_cpu in
71bee782 3197 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3198 lt_cv_deplibs_check_method=pass_all ;;
3199 *)
3200 # glibc up to 2.1.1 does not perform some relocations on ARM
87e6d782
NC
3201 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3202 esac
ac48eca1
AO
3203 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3204 ;;
3205
979273e3 3206netbsd* | knetbsd*-gnu)
87e6d782
NC
3207 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3208 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3209 else
87e6d782 3210 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1
AO
3211 fi
3212 ;;
3213
87e6d782
NC
3214newsos6)
3215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3216 lt_cv_file_magic_cmd=/usr/bin/file
3217 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3218 ;;
3219
ac48eca1
AO
3220osf3* | osf4* | osf5*)
3221 # this will be overridden with pass_all, but let us keep it just in case
3222 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3223 lt_cv_file_magic_test_file=/shlib/libc.so
3224 lt_cv_deplibs_check_method=pass_all
3225 ;;
3226
3227sco3.2v5*)
3228 lt_cv_deplibs_check_method=pass_all
3229 ;;
3230
3231solaris*)
3232 lt_cv_deplibs_check_method=pass_all
3233 lt_cv_file_magic_test_file=/lib/libc.so
3234 ;;
3235
6be7c12c
AO
3236sysv5uw[78]* | sysv4*uw2*)
3237 lt_cv_deplibs_check_method=pass_all
3238 ;;
3239
ac48eca1 3240sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
87e6d782 3241 case $host_vendor in
ac48eca1
AO
3242 ncr)
3243 lt_cv_deplibs_check_method=pass_all
3244 ;;
3245 motorola)
87e6d782
NC
3246 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]'
3247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
979273e3
NN
3248 ;;
3249 esac
3250 ;;
3251esac
ac48eca1 3252
979273e3
NN
3253fi
3254echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3255echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3256file_magic_cmd=$lt_cv_file_magic_cmd
3257deplibs_check_method=$lt_cv_deplibs_check_method
ac48eca1
AO
3258
3259
ac48eca1 3260
ac48eca1
AO
3261
3262# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3263
3264# Only perform the check for file, if the check method requires it
87e6d782 3265case $deplibs_check_method in
ac48eca1 3266file_magic*)
d64552c5 3267 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
979273e3
NN
3268 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3269echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3270if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3272else
87e6d782 3273 case $MAGIC_CMD in
ac48eca1 3274 /*)
d64552c5 3275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3276 ;;
3277 ?:/*)
d64552c5 3278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3279 ;;
3280 *)
d64552c5 3281 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3283 ac_dummy="/usr/bin:$PATH"
3284 for ac_dir in $ac_dummy; do
3285 test -z "$ac_dir" && ac_dir=.
3286 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3287 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3288 if test -n "$file_magic_test_file"; then
87e6d782 3289 case $deplibs_check_method in
ac48eca1
AO
3290 "file_magic "*)
3291 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3294 egrep "$file_magic_regex" > /dev/null; then
3295 :
3296 else
3297 cat <<EOF 1>&2
3298
3299*** Warning: the command libtool uses to detect shared libraries,
3300*** $file_magic_cmd, produces output that libtool cannot recognize.
3301*** The result is that libtool may fail to recognize shared libraries
3302*** as such. This will affect the creation of libtool libraries that
3303*** depend on shared libraries, but programs linked with such libtool
3304*** libraries will work regardless of this problem. Nevertheless, you
3305*** may want to report the problem to your system manager and/or to
3306*** bug-libtool@gnu.org
3307
3308EOF
3309 fi ;;
3310 esac
3311 fi
3312 break
3313 fi
3314 done
3315 IFS="$ac_save_ifs"
d64552c5 3316 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3317 ;;
3318esac
3319fi
3320
d64552c5
AO
3321MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3322if test -n "$MAGIC_CMD"; then
979273e3
NN
3323 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3324echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3325else
979273e3
NN
3326 echo "$as_me:$LINENO: result: no" >&5
3327echo "${ECHO_T}no" >&6
ac48eca1
AO
3328fi
3329
d64552c5 3330if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3331 if test -n "$ac_tool_prefix"; then
979273e3
NN
3332 echo "$as_me:$LINENO: checking for file" >&5
3333echo $ECHO_N "checking for file... $ECHO_C" >&6
3334if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3336else
87e6d782 3337 case $MAGIC_CMD in
ac48eca1 3338 /*)
d64552c5 3339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3340 ;;
3341 ?:/*)
d64552c5 3342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3343 ;;
3344 *)
d64552c5 3345 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3347 ac_dummy="/usr/bin:$PATH"
3348 for ac_dir in $ac_dummy; do
3349 test -z "$ac_dir" && ac_dir=.
3350 if test -f $ac_dir/file; then
d64552c5 3351 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3352 if test -n "$file_magic_test_file"; then
87e6d782 3353 case $deplibs_check_method in
ac48eca1
AO
3354 "file_magic "*)
3355 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3358 egrep "$file_magic_regex" > /dev/null; then
3359 :
3360 else
3361 cat <<EOF 1>&2
3362
3363*** Warning: the command libtool uses to detect shared libraries,
3364*** $file_magic_cmd, produces output that libtool cannot recognize.
3365*** The result is that libtool may fail to recognize shared libraries
3366*** as such. This will affect the creation of libtool libraries that
3367*** depend on shared libraries, but programs linked with such libtool
3368*** libraries will work regardless of this problem. Nevertheless, you
3369*** may want to report the problem to your system manager and/or to
3370*** bug-libtool@gnu.org
3371
3372EOF
3373 fi ;;
3374 esac
3375 fi
3376 break
3377 fi
3378 done
3379 IFS="$ac_save_ifs"
d64552c5 3380 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3381 ;;
3382esac
3383fi
3384
d64552c5
AO
3385MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3386if test -n "$MAGIC_CMD"; then
979273e3
NN
3387 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3388echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3389else
979273e3
NN
3390 echo "$as_me:$LINENO: result: no" >&5
3391echo "${ECHO_T}no" >&6
ac48eca1
AO
3392fi
3393
3394 else
d64552c5 3395 MAGIC_CMD=:
ac48eca1
AO
3396 fi
3397fi
3398
3399 fi
3400 ;;
3401esac
3402
979273e3
NN
3403if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3405set dummy ${ac_tool_prefix}ranlib; ac_word=$2
979273e3
NN
3406echo "$as_me:$LINENO: checking for $ac_word" >&5
3407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3408if test "${ac_cv_prog_RANLIB+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3410else
3411 if test -n "$RANLIB"; then
3412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3413else
979273e3
NN
3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415for as_dir in $PATH
3416do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425done
3426done
3427
ac48eca1
AO
3428fi
3429fi
979273e3 3430RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3431if test -n "$RANLIB"; then
979273e3
NN
3432 echo "$as_me:$LINENO: result: $RANLIB" >&5
3433echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3434else
979273e3
NN
3435 echo "$as_me:$LINENO: result: no" >&5
3436echo "${ECHO_T}no" >&6
ac48eca1
AO
3437fi
3438
979273e3 3439fi
ac48eca1 3440if test -z "$ac_cv_prog_RANLIB"; then
979273e3 3441 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3442 # Extract the first word of "ranlib", so it can be a program name with args.
3443set dummy ranlib; ac_word=$2
979273e3
NN
3444echo "$as_me:$LINENO: checking for $ac_word" >&5
3445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3448else
979273e3
NN
3449 if test -n "$ac_ct_RANLIB"; then
3450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
ac48eca1 3451else
979273e3
NN
3452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453for as_dir in $PATH
3454do
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_ac_ct_RANLIB="ranlib"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463done
3464done
3465
3466 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3467fi
3468fi
979273e3
NN
3469ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3470if test -n "$ac_ct_RANLIB"; then
3471 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3472echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3473else
979273e3
NN
3474 echo "$as_me:$LINENO: result: no" >&5
3475echo "${ECHO_T}no" >&6
ac48eca1
AO
3476fi
3477
979273e3 3478 RANLIB=$ac_ct_RANLIB
ac48eca1 3479else
979273e3 3480 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3481fi
3482
979273e3
NN
3483if test -n "$ac_tool_prefix"; then
3484 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3485set dummy ${ac_tool_prefix}strip; ac_word=$2
979273e3
NN
3486echo "$as_me:$LINENO: checking for $ac_word" >&5
3487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3488if test "${ac_cv_prog_STRIP+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3490else
3491 if test -n "$STRIP"; then
3492 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3493else
979273e3
NN
3494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495for as_dir in $PATH
3496do
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 break 2
3504 fi
3505done
3506done
3507
ac48eca1
AO
3508fi
3509fi
979273e3 3510STRIP=$ac_cv_prog_STRIP
ac48eca1 3511if test -n "$STRIP"; then
979273e3
NN
3512 echo "$as_me:$LINENO: result: $STRIP" >&5
3513echo "${ECHO_T}$STRIP" >&6
ac48eca1 3514else
979273e3
NN
3515 echo "$as_me:$LINENO: result: no" >&5
3516echo "${ECHO_T}no" >&6
ac48eca1
AO
3517fi
3518
979273e3 3519fi
ac48eca1 3520if test -z "$ac_cv_prog_STRIP"; then
979273e3 3521 ac_ct_STRIP=$STRIP
ac48eca1
AO
3522 # Extract the first word of "strip", so it can be a program name with args.
3523set dummy strip; ac_word=$2
979273e3
NN
3524echo "$as_me:$LINENO: checking for $ac_word" >&5
3525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3528else
979273e3
NN
3529 if test -n "$ac_ct_STRIP"; then
3530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3531else
979273e3
NN
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_ac_ct_STRIP="strip"
3540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543done
3544done
3545
3546 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3547fi
3548fi
979273e3
NN
3549ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3550if test -n "$ac_ct_STRIP"; then
3551 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3552echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3553else
979273e3
NN
3554 echo "$as_me:$LINENO: result: no" >&5
3555echo "${ECHO_T}no" >&6
ac48eca1
AO
3556fi
3557
979273e3 3558 STRIP=$ac_ct_STRIP
ac48eca1 3559else
979273e3 3560 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
3561fi
3562
252b5132
RH
3563
3564# Check for any special flags to pass to ltconfig.
3565libtool_flags="--cache-file=$cache_file"
3566test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3567test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3568test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
87e6d782
NC
3569test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3570test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3571
a74801ba
ILT
3572
3573# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3574if test "${enable_libtool_lock+set}" = set; then
3575 enableval="$enable_libtool_lock"
a74801ba 3576
979273e3 3577fi;
a74801ba
ILT
3578test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3579test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3580
979273e3 3581
ac48eca1
AO
3582# Check whether --with-pic or --without-pic was given.
3583if test "${with_pic+set}" = set; then
3584 withval="$with_pic"
3585 pic_mode="$withval"
3586else
3587 pic_mode=default
979273e3 3588fi;
ac48eca1
AO
3589test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3590test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3591
252b5132
RH
3592# Some flags need to be propagated to the compiler or linker for good
3593# libtool support.
87e6d782 3594case $host in
252b5132
RH
3595*-*-irix6*)
3596 # Find out which ABI we are using.
979273e3
NN
3597 echo '#line 3597 "configure"' > conftest.$ac_ext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; then
e0001a05
NC
3603 if test "$lt_cv_prog_gnu_ld" = yes; then
3604 case `/usr/bin/file conftest.$ac_objext` in
3605 *32-bit*)
3606 LD="${LD-ld} -melf32bsmip"
3607 ;;
3608 *N32*)
3609 LD="${LD-ld} -melf32bmipn32"
3610 ;;
3611 *64-bit*)
3612 LD="${LD-ld} -melf64bmip"
3613 ;;
3614 esac
3615 else
87e6d782 3616 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3617 *32-bit*)
3618 LD="${LD-ld} -32"
3619 ;;
3620 *N32*)
3621 LD="${LD-ld} -n32"
3622 ;;
3623 *64-bit*)
3624 LD="${LD-ld} -64"
3625 ;;
3626 esac
e0001a05 3627 fi
252b5132
RH
3628 fi
3629 rm -rf conftest*
3630 ;;
3631
4867be41
DJ
3632ia64-*-hpux*)
3633 # Find out which ABI we are using.
3634 echo 'int i;' > conftest.$ac_ext
979273e3
NN
3635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636 (eval $ac_compile) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; then
4867be41
DJ
3640 case "`/usr/bin/file conftest.o`" in
3641 *ELF-32*)
3642 HPUX_IA64_MODE="32"
3643 ;;
3644 *ELF-64*)
3645 HPUX_IA64_MODE="64"
3646 ;;
3647 esac
3648 fi
3649 rm -rf conftest*
3650 ;;
3651
252b5132
RH
3652*-*-sco3.2v5*)
3653 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3654 SAVE_CFLAGS="$CFLAGS"
3655 CFLAGS="$CFLAGS -belf"
979273e3
NN
3656 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3657echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3658if test "${lt_cv_cc_needs_belf+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3660else
979273e3
NN
3661
3662
ac48eca1 3663 ac_ext=c
ac48eca1 3664ac_cpp='$CPP $CPPFLAGS'
979273e3
NN
3665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3668
979273e3
NN
3669 cat >conftest.$ac_ext <<_ACEOF
3670/* confdefs.h. */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h. */
252b5132 3675
979273e3
NN
3676int
3677main ()
3678{
252b5132 3679
979273e3
NN
3680 ;
3681 return 0;
3682}
3683_ACEOF
3684rm -f conftest.$ac_objext conftest$ac_exeext
3685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686 (eval $ac_link) 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 (eval $ac_try) 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; } &&
3699 { ac_try='test -s conftest$ac_exeext'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
252b5132
RH
3705 lt_cv_cc_needs_belf=yes
3706else
979273e3
NN
3707 echo "$as_me: failed program was:" >&5
3708sed 's/^/| /' conftest.$ac_ext >&5
3709
3710lt_cv_cc_needs_belf=no
252b5132 3711fi
979273e3
NN
3712rm -f conftest.err conftest.$ac_objext \
3713 conftest$ac_exeext conftest.$ac_ext
ac48eca1 3714 ac_ext=c
ac48eca1 3715ac_cpp='$CPP $CPPFLAGS'
979273e3
NN
3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3719
252b5132 3720fi
979273e3
NN
3721echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3722echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
252b5132
RH
3723 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3724 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3725 CFLAGS="$SAVE_CFLAGS"
3726 fi
3727 ;;
3728
252b5132
RH
3729
3730esac
3731
252b5132
RH
3732
3733# Save cache, so that ltconfig can load it
979273e3 3734cat >confcache <<\_ACEOF
252b5132
RH
3735# This file is a shell script that caches the results of configure
3736# tests run on this system so they can be shared between configure
979273e3
NN
3737# scripts and configure runs, see configure's option --config-cache.
3738# It is not useful on other systems. If it contains results you don't
3739# want to keep, you may remove or edit it.
252b5132 3740#
979273e3
NN
3741# config.status only pays attention to the cache file if you give it
3742# the --recheck option to rerun configure.
252b5132 3743#
979273e3
NN
3744# `ac_cv_env_foo' variables (set or unset) will be overridden when
3745# loading this file, other *unset* `ac_cv_foo' will be assigned the
3746# following values.
3747
3748_ACEOF
3749
252b5132
RH
3750# The following way of writing the cache mishandles newlines in values,
3751# but we know of no workaround that is simple, portable, and efficient.
3752# So, don't put newlines in cache variables' values.
3753# Ultrix sh set writes to stderr and can't be redirected directly,
3754# and sets the high bit in the cache file unless we assign to the vars.
979273e3
NN
3755{
3756 (set) 2>&1 |
3757 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3758 *ac_space=\ *)
3759 # `set' does not quote correctly, so add quotes (double-quote
3760 # substitution turns \\\\ into \\, and sed turns \\ into \).
3761 sed -n \
3762 "s/'/'\\\\''/g;
3763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3764 ;;
3765 *)
3766 # `set' quotes correctly as required by POSIX, so do not add quotes.
3767 sed -n \
3768 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3769 ;;
3770 esac;
3771} |
3772 sed '
3773 t clear
3774 : clear
3775 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3776 t end
3777 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3778 : end' >>confcache
3779if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 3780 if test -w $cache_file; then
979273e3
NN
3781 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3782 cat confcache >$cache_file
252b5132
RH
3783 else
3784 echo "not updating unwritable cache $cache_file"
3785 fi
3786fi
3787rm -f confcache
3788
252b5132 3789# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 3790AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 3791MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
3792LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3793AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3794objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3795deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 3796${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 3797$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
979273e3
NN
3798|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3799echo "$as_me: error: libtool configure failed" >&2;}
3800 { (exit 1); exit 1; }; }
252b5132
RH
3801
3802# Reload cache, that may have been modified by ltconfig
3803if test -r "$cache_file"; then
979273e3
NN
3804 # Some versions of bash will fail to source /dev/null (special
3805 # files actually), so we avoid doing that.
3806 if test -f "$cache_file"; then
3807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3808echo "$as_me: loading cache $cache_file" >&6;}
3809 case $cache_file in
3810 [\\/]* | ?:[\\/]* ) . $cache_file;;
3811 *) . ./$cache_file;;
3812 esac
3813 fi
252b5132 3814else
979273e3
NN
3815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3816echo "$as_me: creating cache $cache_file" >&6;}
3817 >$cache_file
252b5132
RH
3818fi
3819
3820
3821# This can be used to rebuild libtool when needed
ac48eca1 3822LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
252b5132
RH
3823
3824# Always use our own libtool.
3825LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3826
3827# Redirect the config.log output again, so that the ltconfig log is not
3828# clobbered by the next message.
3829exec 5>>./config.log
3830
ac48eca1 3831
979273e3
NN
3832
3833
3834
3835
ac48eca1 3836
252b5132
RH
3837# Check whether --enable-targets or --disable-targets was given.
3838if test "${enable_targets+set}" = set; then
3839 enableval="$enable_targets"
3840 case "${enableval}" in
979273e3
NN
3841 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3842echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3843 { (exit 1); exit 1; }; }
252b5132
RH
3844 ;;
3845 no) enable_targets= ;;
3846 *) enable_targets=$enableval ;;
3847esac
979273e3 3848fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
3849if test "${enable_commonbfdlib+set}" = set; then
3850 enableval="$enable_commonbfdlib"
3851 case "${enableval}" in
3852 yes) commonbfdlib=true ;;
3853 no) commonbfdlib=false ;;
979273e3
NN
3854 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
3855echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
3856 { (exit 1); exit 1; }; } ;;
252b5132 3857esac
979273e3 3858fi;
0218d1e4 3859build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
3860# Check whether --enable-build-warnings or --disable-build-warnings was given.
3861if test "${enable_build_warnings+set}" = set; then
3862 enableval="$enable_build_warnings"
3863 case "${enableval}" in
3864 yes) ;;
3865 no) build_warnings="-w";;
3866 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3867 build_warnings="${build_warnings} ${t}";;
3868 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3869 build_warnings="${t} ${build_warnings}";;
3870 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3871esac
3872if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3873 echo "Setting warning flags = $build_warnings" 6>&1
3874fi
979273e3 3875fi; WARN_CFLAGS=""
a2d91340
AC
3876if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3877 WARN_CFLAGS="${build_warnings}"
3878fi
3879
3880
252b5132 3881
979273e3 3882 ac_config_headers="$ac_config_headers config.h:config.in"
252b5132 3883
979273e3 3884 ac_config_commands="$ac_config_commands default-1"
252b5132
RH
3885
3886
3887if test -z "$target" ; then
979273e3
NN
3888 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3889echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3890 { (exit 1); exit 1; }; }
252b5132 3891fi
252b5132 3892
979273e3
NN
3893echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3894echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
3895 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3896if test "${enable_maintainer_mode+set}" = set; then
3897 enableval="$enable_maintainer_mode"
3898 USE_MAINTAINER_MODE=$enableval
3899else
3900 USE_MAINTAINER_MODE=no
979273e3
NN
3901fi;
3902 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3903echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
252b5132 3904
252b5132
RH
3905
3906if test $USE_MAINTAINER_MODE = yes; then
3907 MAINTAINER_MODE_TRUE=
3908 MAINTAINER_MODE_FALSE='#'
3909else
3910 MAINTAINER_MODE_TRUE='#'
3911 MAINTAINER_MODE_FALSE=
3912fi
3913 MAINT=$MAINTAINER_MODE_TRUE
252b5132 3914
979273e3
NN
3915
3916echo "$as_me:$LINENO: checking whether to install libbfd" >&5
3917echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
81172ff2
AM
3918 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
3919if test "${enable_install_libbfd+set}" = set; then
3920 enableval="$enable_install_libbfd"
3921 install_libbfd_p=$enableval
3922else
2469cfa2 3923 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
81172ff2
AM
3924 install_libbfd_p=yes
3925 else
3926 install_libbfd_p=no
3927 fi
979273e3
NN
3928fi;
3929 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
3930echo "${ECHO_T}$install_libbfd_p" >&6
81172ff2 3931
81172ff2
AM
3932
3933if test $install_libbfd_p = yes; then
3934 INSTALL_LIBBFD_TRUE=
3935 INSTALL_LIBBFD_FALSE='#'
3936else
3937 INSTALL_LIBBFD_TRUE='#'
3938 INSTALL_LIBBFD_FALSE=
3939fi
979273e3
NN
3940 # Need _noncanonical variables for this.
3941 ACX_HOST_NONCANONICAL
3942 ACX_TARGET_NONCANONICAL
81172ff2
AM
3943 # libbfd.a is a host library containing target dependent code
3944 bfdlibdir='$(libdir)'
3945 bfdincludedir='$(includedir)'
3946 if test "${host}" != "${target}"; then
979273e3
NN
3947 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
3948 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
81172ff2 3949 fi
81172ff2
AM
3950
3951
252b5132
RH
3952
3953
979273e3
NN
3954
3955
3956# host-specific stuff:
3957
3958ac_ext=c
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963if test -n "$ac_tool_prefix"; then
3964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3965set dummy ${ac_tool_prefix}gcc; ac_word=$2
3966echo "$as_me:$LINENO: checking for $ac_word" >&5
3967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3968if test "${ac_cv_prog_CC+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3970else
979273e3
NN
3971 if test -n "$CC"; then
3972 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3973else
979273e3
NN
3974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975for as_dir in $PATH
3976do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
252b5132 3984 fi
979273e3
NN
3985done
3986done
3987
3988fi
252b5132 3989fi
979273e3
NN
3990CC=$ac_cv_prog_CC
3991if test -n "$CC"; then
3992 echo "$as_me:$LINENO: result: $CC" >&5
3993echo "${ECHO_T}$CC" >&6
3994else
3995 echo "$as_me:$LINENO: result: no" >&5
3996echo "${ECHO_T}no" >&6
252b5132
RH
3997fi
3998
979273e3
NN
3999fi
4000if test -z "$ac_cv_prog_CC"; then
4001 ac_ct_CC=$CC
4002 # Extract the first word of "gcc", so it can be a program name with args.
4003set dummy gcc; ac_word=$2
4004echo "$as_me:$LINENO: checking for $ac_word" >&5
4005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009 if test -n "$ac_ct_CC"; then
4010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4011else
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013for as_dir in $PATH
4014do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_ac_ct_CC="gcc"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4022 fi
4023done
4024done
252b5132 4025
979273e3
NN
4026fi
4027fi
4028ac_ct_CC=$ac_cv_prog_ac_ct_CC
4029if test -n "$ac_ct_CC"; then
4030 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4031echo "${ECHO_T}$ac_ct_CC" >&6
4032else
4033 echo "$as_me:$LINENO: result: no" >&5
4034echo "${ECHO_T}no" >&6
4035fi
252b5132 4036
979273e3
NN
4037 CC=$ac_ct_CC
4038else
4039 CC="$ac_cv_prog_CC"
4040fi
252b5132 4041
979273e3
NN
4042if test -z "$CC"; then
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4045set dummy ${ac_tool_prefix}cc; ac_word=$2
4046echo "$as_me:$LINENO: checking for $ac_word" >&5
4047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4048if test "${ac_cv_prog_CC+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4050else
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4053else
979273e3
NN
4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH
4056do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_CC="${ac_tool_prefix}cc"
4062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065done
4066done
4067
252b5132
RH
4068fi
4069fi
979273e3 4070CC=$ac_cv_prog_CC
252b5132 4071if test -n "$CC"; then
979273e3
NN
4072 echo "$as_me:$LINENO: result: $CC" >&5
4073echo "${ECHO_T}$CC" >&6
4074else
4075 echo "$as_me:$LINENO: result: no" >&5
4076echo "${ECHO_T}no" >&6
4077fi
4078
4079fi
4080if test -z "$ac_cv_prog_CC"; then
4081 ac_ct_CC=$CC
4082 # Extract the first word of "cc", so it can be a program name with args.
4083set dummy cc; ac_word=$2
4084echo "$as_me:$LINENO: checking for $ac_word" >&5
4085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088else
4089 if test -n "$ac_ct_CC"; then
4090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4091else
4092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093for as_dir in $PATH
4094do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_ac_ct_CC="cc"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4102 fi
4103done
4104done
4105
4106fi
4107fi
4108ac_ct_CC=$ac_cv_prog_ac_ct_CC
4109if test -n "$ac_ct_CC"; then
4110 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4111echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 4112else
979273e3
NN
4113 echo "$as_me:$LINENO: result: no" >&5
4114echo "${ECHO_T}no" >&6
252b5132
RH
4115fi
4116
979273e3
NN
4117 CC=$ac_ct_CC
4118else
4119 CC="$ac_cv_prog_CC"
4120fi
4121
4122fi
252b5132
RH
4123if test -z "$CC"; then
4124 # Extract the first word of "cc", so it can be a program name with args.
4125set dummy cc; ac_word=$2
979273e3
NN
4126echo "$as_me:$LINENO: checking for $ac_word" >&5
4127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4128if test "${ac_cv_prog_CC+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4130else
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC="$CC" # Let the user override the test.
4133else
252b5132 4134 ac_prog_rejected=no
979273e3
NN
4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH
4137do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4143 ac_prog_rejected=yes
4144 continue
4145 fi
4146 ac_cv_prog_CC="cc"
4147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4149 fi
4150done
4151done
4152
252b5132
RH
4153if test $ac_prog_rejected = yes; then
4154 # We found a bogon in the path, so make sure we never use it.
4155 set dummy $ac_cv_prog_CC
4156 shift
979273e3 4157 if test $# != 0; then
252b5132
RH
4158 # We chose a different compiler from the bogus one.
4159 # However, it has the same basename, so the bogon will be chosen
4160 # first if we set CC to just the basename; use the full file name.
4161 shift
979273e3 4162 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
4163 fi
4164fi
4165fi
4166fi
979273e3 4167CC=$ac_cv_prog_CC
252b5132 4168if test -n "$CC"; then
979273e3
NN
4169 echo "$as_me:$LINENO: result: $CC" >&5
4170echo "${ECHO_T}$CC" >&6
252b5132 4171else
979273e3
NN
4172 echo "$as_me:$LINENO: result: no" >&5
4173echo "${ECHO_T}no" >&6
252b5132
RH
4174fi
4175
979273e3
NN
4176fi
4177if test -z "$CC"; then
4178 if test -n "$ac_tool_prefix"; then
4179 for ac_prog in cl
4180 do
4181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4183echo "$as_me:$LINENO: checking for $ac_word" >&5
4184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4185if test "${ac_cv_prog_CC+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4187else
4188 if test -n "$CC"; then
4189 ac_cv_prog_CC="$CC" # Let the user override the test.
4190else
979273e3
NN
4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192for as_dir in $PATH
4193do
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4201 fi
4202done
4203done
4204
4205fi
4206fi
4207CC=$ac_cv_prog_CC
4208if test -n "$CC"; then
4209 echo "$as_me:$LINENO: result: $CC" >&5
4210echo "${ECHO_T}$CC" >&6
4211else
4212 echo "$as_me:$LINENO: result: no" >&5
4213echo "${ECHO_T}no" >&6
4214fi
4215
4216 test -n "$CC" && break
252b5132 4217 done
252b5132 4218fi
979273e3
NN
4219if test -z "$CC"; then
4220 ac_ct_CC=$CC
4221 for ac_prog in cl
4222do
4223 # Extract the first word of "$ac_prog", so it can be a program name with args.
4224set dummy $ac_prog; ac_word=$2
4225echo "$as_me:$LINENO: checking for $ac_word" >&5
4226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4227if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229else
4230 if test -n "$ac_ct_CC"; then
4231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4232else
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 ac_cv_prog_ac_ct_CC="$ac_prog"
4241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4243 fi
4244done
4245done
4246
4247fi
4248fi
4249ac_ct_CC=$ac_cv_prog_ac_ct_CC
4250if test -n "$ac_ct_CC"; then
4251 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4252echo "${ECHO_T}$ac_ct_CC" >&6
4253else
4254 echo "$as_me:$LINENO: result: no" >&5
4255echo "${ECHO_T}no" >&6
4256fi
4257
4258 test -n "$ac_ct_CC" && break
4259done
4260
4261 CC=$ac_ct_CC
4262fi
4263
4264fi
4265
4266
4267test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4268See \`config.log' for more details." >&5
4269echo "$as_me: error: no acceptable C compiler found in \$PATH
4270See \`config.log' for more details." >&2;}
4271 { (exit 1); exit 1; }; }
4272
4273# Provide some information about the compiler.
4274echo "$as_me:$LINENO:" \
4275 "checking for C compiler version" >&5
4276ac_compiler=`set X $ac_compile; echo $2`
4277{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4278 (eval $ac_compiler --version </dev/null >&5) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }
4282{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4283 (eval $ac_compiler -v </dev/null >&5) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }
4287{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4288 (eval $ac_compiler -V </dev/null >&5) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }
4292
4293echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4294echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4295if test "${ac_cv_c_compiler_gnu+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298 cat >conftest.$ac_ext <<_ACEOF
4299/* confdefs.h. */
4300_ACEOF
4301cat confdefs.h >>conftest.$ac_ext
4302cat >>conftest.$ac_ext <<_ACEOF
4303/* end confdefs.h. */
4304
4305int
4306main ()
4307{
4308#ifndef __GNUC__
4309 choke me
4310#endif
4311
4312 ;
4313 return 0;
4314}
4315_ACEOF
4316rm -f conftest.$ac_objext
4317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4318 (eval $ac_compile) 2>conftest.er1
4319 ac_status=$?
4320 grep -v '^ *+' conftest.er1 >conftest.err
4321 rm -f conftest.er1
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 (eval $ac_try) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_compiler_gnu=yes
4338else
4339 echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342ac_compiler_gnu=no
4343fi
4344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4345ac_cv_c_compiler_gnu=$ac_compiler_gnu
4346
4347fi
4348echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4349echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4350GCC=`test $ac_compiler_gnu = yes && echo yes`
4351ac_test_CFLAGS=${CFLAGS+set}
4352ac_save_CFLAGS=$CFLAGS
4353CFLAGS="-g"
4354echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4355echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4356if test "${ac_cv_prog_cc_g+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359 cat >conftest.$ac_ext <<_ACEOF
4360/* confdefs.h. */
4361_ACEOF
4362cat confdefs.h >>conftest.$ac_ext
4363cat >>conftest.$ac_ext <<_ACEOF
4364/* end confdefs.h. */
4365
4366int
4367main ()
4368{
4369
4370 ;
4371 return 0;
4372}
4373_ACEOF
4374rm -f conftest.$ac_objext
4375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 (eval $ac_try) 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 (eval $ac_try) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4395 ac_cv_prog_cc_g=yes
4396else
4397 echo "$as_me: failed program was:" >&5
4398sed 's/^/| /' conftest.$ac_ext >&5
4399
4400ac_cv_prog_cc_g=no
4401fi
4402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 4403fi
979273e3
NN
4404echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4405echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4406if test "$ac_test_CFLAGS" = set; then
4407 CFLAGS=$ac_save_CFLAGS
4408elif test $ac_cv_prog_cc_g = yes; then
4409 if test "$GCC" = yes; then
4410 CFLAGS="-g -O2"
4411 else
4412 CFLAGS="-g"
4413 fi
252b5132 4414else
979273e3
NN
4415 if test "$GCC" = yes; then
4416 CFLAGS="-O2"
4417 else
4418 CFLAGS=
252b5132 4419 fi
979273e3
NN
4420fi
4421echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4422echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4423if test "${ac_cv_prog_cc_stdc+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426 ac_cv_prog_cc_stdc=no
4427ac_save_CC=$CC
4428cat >conftest.$ac_ext <<_ACEOF
4429/* confdefs.h. */
4430_ACEOF
4431cat confdefs.h >>conftest.$ac_ext
4432cat >>conftest.$ac_ext <<_ACEOF
4433/* end confdefs.h. */
4434#include <stdarg.h>
4435#include <stdio.h>
4436#include <sys/types.h>
4437#include <sys/stat.h>
4438/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4439struct buf { int x; };
4440FILE * (*rcsopen) (struct buf *, struct stat *, int);
4441static char *e (p, i)
4442 char **p;
4443 int i;
4444{
4445 return p[i];
4446}
4447static char *f (char * (*g) (char **, int), char **p, ...)
4448{
4449 char *s;
4450 va_list v;
4451 va_start (v,p);
4452 s = g (p, va_arg (v,int));
4453 va_end (v);
4454 return s;
4455}
4456
4457/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4458 function prototypes and stuff, but not '\xHH' hex character constants.
4459 These don't provoke an error unfortunately, instead are silently treated
4460 as 'x'. The following induces an error, until -std1 is added to get
4461 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4462 array size at least. It's necessary to write '\x00'==0 to get something
4463 that's true only with -std1. */
4464int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4465
4466int test (int i, double x);
4467struct s1 {int (*f) (int a);};
4468struct s2 {int (*f) (double a);};
4469int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4470int argc;
4471char **argv;
4472int
4473main ()
4474{
4475return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4476 ;
4477 return 0;
4478}
4479_ACEOF
4480# Don't try gcc -ansi; that turns off useful extensions and
4481# breaks some systems' header files.
4482# AIX -qlanglvl=ansi
4483# Ultrix and OSF/1 -std1
4484# HP-UX 10.20 and later -Ae
4485# HP-UX older versions -Aa -D_HPUX_SOURCE
4486# SVR4 -Xc -D__EXTENSIONS__
4487for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4488do
4489 CC="$ac_save_CC $ac_arg"
4490 rm -f conftest.$ac_objext
4491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>conftest.er1
4493 ac_status=$?
4494 grep -v '^ *+' conftest.er1 >conftest.err
4495 rm -f conftest.er1
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 (eval $ac_try) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_cv_prog_cc_stdc=$ac_arg
4512break
4513else
4514 echo "$as_me: failed program was:" >&5
4515sed 's/^/| /' conftest.$ac_ext >&5
4516
4517fi
4518rm -f conftest.err conftest.$ac_objext
4519done
4520rm -f conftest.$ac_ext conftest.$ac_objext
4521CC=$ac_save_CC
4522
252b5132
RH
4523fi
4524
979273e3
NN
4525case "x$ac_cv_prog_cc_stdc" in
4526 x|xno)
4527 echo "$as_me:$LINENO: result: none needed" >&5
4528echo "${ECHO_T}none needed" >&6 ;;
4529 *)
4530 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4531echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4532 CC="$CC $ac_cv_prog_cc_stdc" ;;
4533esac
252b5132 4534
979273e3
NN
4535# Some people use a C++ compiler to compile C. Since we use `exit',
4536# in C++ we need to declare it. In case someone uses the same compiler
4537# for both compiling C and C++ we need to have the C++ compiler decide
4538# the declaration of exit, since it's the most demanding environment.
4539cat >conftest.$ac_ext <<_ACEOF
4540#ifndef __cplusplus
4541 choke me
4542#endif
4543_ACEOF
4544rm -f conftest.$ac_objext
4545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>conftest.er1
4547 ac_status=$?
4548 grep -v '^ *+' conftest.er1 >conftest.err
4549 rm -f conftest.er1
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } &&
4553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 for ac_declaration in \
4566 '' \
4567 'extern "C" void std::exit (int) throw (); using std::exit;' \
4568 'extern "C" void std::exit (int); using std::exit;' \
4569 'extern "C" void exit (int) throw ();' \
4570 'extern "C" void exit (int);' \
4571 'void exit (int);'
4572do
4573 cat >conftest.$ac_ext <<_ACEOF
4574/* confdefs.h. */
4575_ACEOF
4576cat confdefs.h >>conftest.$ac_ext
4577cat >>conftest.$ac_ext <<_ACEOF
4578/* end confdefs.h. */
4579$ac_declaration
4580#include <stdlib.h>
4581int
4582main ()
4583{
4584exit (42);
4585 ;
4586 return 0;
4587}
4588_ACEOF
4589rm -f conftest.$ac_objext
4590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>conftest.er1
4592 ac_status=$?
4593 grep -v '^ *+' conftest.er1 >conftest.err
4594 rm -f conftest.er1
4595 cat conftest.err >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try='test -s conftest.$ac_objext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 :
4611else
4612 echo "$as_me: failed program was:" >&5
4613sed 's/^/| /' conftest.$ac_ext >&5
252b5132 4614
979273e3
NN
4615continue
4616fi
4617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618 cat >conftest.$ac_ext <<_ACEOF
4619/* confdefs.h. */
4620_ACEOF
4621cat confdefs.h >>conftest.$ac_ext
4622cat >>conftest.$ac_ext <<_ACEOF
4623/* end confdefs.h. */
4624$ac_declaration
4625int
4626main ()
4627{
4628exit (42);
4629 ;
4630 return 0;
4631}
4632_ACEOF
4633rm -f conftest.$ac_objext
4634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635 (eval $ac_compile) 2>conftest.er1
4636 ac_status=$?
4637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } &&
4642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 (eval $ac_try) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; } &&
4648 { ac_try='test -s conftest.$ac_objext'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; }; then
4654 break
4655else
4656 echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
252b5132 4658
979273e3
NN
4659fi
4660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4661done
4662rm -f conftest*
4663if test -n "$ac_declaration"; then
4664 echo '#ifdef __cplusplus' >>confdefs.h
4665 echo $ac_declaration >>confdefs.h
4666 echo '#endif' >>confdefs.h
4667fi
252b5132 4668
252b5132 4669else
979273e3
NN
4670 echo "$as_me: failed program was:" >&5
4671sed 's/^/| /' conftest.$ac_ext >&5
4672
252b5132 4673fi
979273e3 4674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 4675ac_ext=c
252b5132 4676ac_cpp='$CPP $CPPFLAGS'
979273e3
NN
4677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132 4680
252b5132 4681
979273e3
NN
4682ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl"
4683if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4685set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4686echo "$as_me:$LINENO: checking for $ac_word" >&5
4687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4688if test "${ac_cv_prog_RANLIB+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4690else
979273e3
NN
4691 if test -n "$RANLIB"; then
4692 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 4693else
979273e3
NN
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705done
4706done
4707
252b5132
RH
4708fi
4709fi
979273e3
NN
4710RANLIB=$ac_cv_prog_RANLIB
4711if test -n "$RANLIB"; then
4712 echo "$as_me:$LINENO: result: $RANLIB" >&5
4713echo "${ECHO_T}$RANLIB" >&6
252b5132 4714else
979273e3
NN
4715 echo "$as_me:$LINENO: result: no" >&5
4716echo "${ECHO_T}no" >&6
252b5132
RH
4717fi
4718
979273e3
NN
4719fi
4720if test -z "$ac_cv_prog_RANLIB"; then
4721 ac_ct_RANLIB=$RANLIB
4722 # Extract the first word of "ranlib", so it can be a program name with args.
4723set dummy ranlib; ac_word=$2
4724echo "$as_me:$LINENO: checking for $ac_word" >&5
4725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4726if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4728else
979273e3
NN
4729 if test -n "$ac_ct_RANLIB"; then
4730 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 4731else
979273e3
NN
4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739 ac_cv_prog_ac_ct_RANLIB="ranlib"
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4742 fi
4743done
4744done
252b5132 4745
979273e3 4746 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132 4747fi
979273e3
NN
4748fi
4749ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4750if test -n "$ac_ct_RANLIB"; then
4751 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4752echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 4753else
979273e3
NN
4754 echo "$as_me:$LINENO: result: no" >&5
4755echo "${ECHO_T}no" >&6
252b5132
RH
4756fi
4757
979273e3
NN
4758 RANLIB=$ac_ct_RANLIB
4759else
4760 RANLIB="$ac_cv_prog_RANLIB"
4761fi
252b5132 4762
979273e3
NN
4763ac_ext=c
4764ac_cpp='$CPP $CPPFLAGS'
4765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4769echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
252b5132
RH
4770# On Suns, sometimes $CPP names a directory.
4771if test -n "$CPP" && test -d "$CPP"; then
4772 CPP=
4773fi
4774if test -z "$CPP"; then
979273e3
NN
4775 if test "${ac_cv_prog_CPP+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4777else
979273e3
NN
4778 # Double quotes because CPP needs to be expanded
4779 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4780 do
4781 ac_preproc_ok=false
4782for ac_c_preproc_warn_flag in '' yes
4783do
4784 # Use a header file that comes with gcc, so configuring glibc
4785 # with a fresh cross-compiler works.
4786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4787 # <limits.h> exists even on freestanding compilers.
252b5132 4788 # On the NeXT, cc -E runs the code through the compiler's parser,
979273e3
NN
4789 # not just through cpp. "Syntax error" is here to catch this case.
4790 cat >conftest.$ac_ext <<_ACEOF
4791/* confdefs.h. */
4792_ACEOF
4793cat confdefs.h >>conftest.$ac_ext
4794cat >>conftest.$ac_ext <<_ACEOF
4795/* end confdefs.h. */
4796#ifdef __STDC__
4797# include <limits.h>
4798#else
4799# include <assert.h>
4800#endif
4801 Syntax error
4802_ACEOF
4803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } >/dev/null; then
4811 if test -s conftest.err; then
4812 ac_cpp_err=$ac_c_preproc_warn_flag
4813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4814 else
4815 ac_cpp_err=
4816 fi
252b5132 4817else
979273e3
NN
4818 ac_cpp_err=yes
4819fi
4820if test -z "$ac_cpp_err"; then
252b5132
RH
4821 :
4822else
979273e3
NN
4823 echo "$as_me: failed program was:" >&5
4824sed 's/^/| /' conftest.$ac_ext >&5
4825
4826 # Broken: fails on valid input.
4827continue
4828fi
4829rm -f conftest.err conftest.$ac_ext
4830
4831 # OK, works on sane cases. Now check whether non-existent headers
4832 # can be detected and how.
4833 cat >conftest.$ac_ext <<_ACEOF
4834/* confdefs.h. */
4835_ACEOF
4836cat confdefs.h >>conftest.$ac_ext
4837cat >>conftest.$ac_ext <<_ACEOF
4838/* end confdefs.h. */
4839#include <ac_nonexistent.h>
4840_ACEOF
4841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } >/dev/null; then
4849 if test -s conftest.err; then
4850 ac_cpp_err=$ac_c_preproc_warn_flag
4851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4852 else
4853 ac_cpp_err=
4854 fi
252b5132 4855else
979273e3 4856 ac_cpp_err=yes
252b5132 4857fi
979273e3
NN
4858if test -z "$ac_cpp_err"; then
4859 # Broken: success on invalid input.
4860continue
4861else
4862 echo "$as_me: failed program was:" >&5
4863sed 's/^/| /' conftest.$ac_ext >&5
4864
4865 # Passes both tests.
4866ac_preproc_ok=:
4867break
252b5132 4868fi
979273e3
NN
4869rm -f conftest.err conftest.$ac_ext
4870
4871done
4872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4873rm -f conftest.err conftest.$ac_ext
4874if $ac_preproc_ok; then
4875 break
252b5132 4876fi
979273e3
NN
4877
4878 done
4879 ac_cv_prog_CPP=$CPP
4880
252b5132 4881fi
979273e3 4882 CPP=$ac_cv_prog_CPP
252b5132 4883else
979273e3 4884 ac_cv_prog_CPP=$CPP
252b5132 4885fi
979273e3
NN
4886echo "$as_me:$LINENO: result: $CPP" >&5
4887echo "${ECHO_T}$CPP" >&6
4888ac_preproc_ok=false
4889for ac_c_preproc_warn_flag in '' yes
4890do
4891 # Use a header file that comes with gcc, so configuring glibc
4892 # with a fresh cross-compiler works.
4893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894 # <limits.h> exists even on freestanding compilers.
4895 # On the NeXT, cc -E runs the code through the compiler's parser,
4896 # not just through cpp. "Syntax error" is here to catch this case.
4897 cat >conftest.$ac_ext <<_ACEOF
4898/* confdefs.h. */
4899_ACEOF
4900cat confdefs.h >>conftest.$ac_ext
4901cat >>conftest.$ac_ext <<_ACEOF
4902/* end confdefs.h. */
4903#ifdef __STDC__
4904# include <limits.h>
4905#else
4906# include <assert.h>
4907#endif
4908 Syntax error
4909_ACEOF
4910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4912 ac_status=$?
4913 grep -v '^ *+' conftest.er1 >conftest.err
4914 rm -f conftest.er1
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } >/dev/null; then
4918 if test -s conftest.err; then
4919 ac_cpp_err=$ac_c_preproc_warn_flag
4920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4921 else
4922 ac_cpp_err=
4923 fi
ac48eca1 4924else
979273e3
NN
4925 ac_cpp_err=yes
4926fi
4927if test -z "$ac_cpp_err"; then
4928 :
ac48eca1 4929else
979273e3
NN
4930 echo "$as_me: failed program was:" >&5
4931sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 # Broken: fails on valid input.
4934continue
4935fi
4936rm -f conftest.err conftest.$ac_ext
4937
4938 # OK, works on sane cases. Now check whether non-existent headers
4939 # can be detected and how.
4940 cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h. */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h. */
4946#include <ac_nonexistent.h>
4947_ACEOF
4948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } >/dev/null; then
4956 if test -s conftest.err; then
4957 ac_cpp_err=$ac_c_preproc_warn_flag
4958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4959 else
4960 ac_cpp_err=
4961 fi
4962else
4963 ac_cpp_err=yes
ac48eca1 4964fi
979273e3
NN
4965if test -z "$ac_cpp_err"; then
4966 # Broken: success on invalid input.
4967continue
4968else
4969 echo "$as_me: failed program was:" >&5
4970sed 's/^/| /' conftest.$ac_ext >&5
4971
4972 # Passes both tests.
4973ac_preproc_ok=:
4974break
ac48eca1 4975fi
979273e3
NN
4976rm -f conftest.err conftest.$ac_ext
4977
4978done
4979# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4980rm -f conftest.err conftest.$ac_ext
4981if $ac_preproc_ok; then
4982 :
4983else
4984 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4985See \`config.log' for more details." >&5
4986echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4987See \`config.log' for more details." >&2;}
4988 { (exit 1); exit 1; }; }
4989fi
4990
4991ac_ext=c
4992ac_cpp='$CPP $CPPFLAGS'
4993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996
4997
4998echo "$as_me:$LINENO: checking for egrep" >&5
4999echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5000if test "${ac_cv_prog_egrep+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5002else
979273e3
NN
5003 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5004 then ac_cv_prog_egrep='grep -E'
5005 else ac_cv_prog_egrep='egrep'
5006 fi
ac48eca1 5007fi
979273e3
NN
5008echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5009echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5010 EGREP=$ac_cv_prog_egrep
ac48eca1 5011
979273e3
NN
5012
5013echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5014echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5015if test "${ac_cv_header_stdc+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5017else
979273e3
NN
5018 cat >conftest.$ac_ext <<_ACEOF
5019/* confdefs.h. */
5020_ACEOF
5021cat confdefs.h >>conftest.$ac_ext
5022cat >>conftest.$ac_ext <<_ACEOF
5023/* end confdefs.h. */
252b5132
RH
5024#include <stdlib.h>
5025#include <stdarg.h>
5026#include <string.h>
5027#include <float.h>
979273e3
NN
5028
5029int
5030main ()
5031{
5032
5033 ;
5034 return 0;
5035}
5036_ACEOF
5037rm -f conftest.$ac_objext
5038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039 (eval $ac_compile) 2>conftest.er1
5040 ac_status=$?
5041 grep -v '^ *+' conftest.er1 >conftest.err
5042 rm -f conftest.er1
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; } &&
5052 { ac_try='test -s conftest.$ac_objext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 (eval $ac_try) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
252b5132
RH
5058 ac_cv_header_stdc=yes
5059else
979273e3
NN
5060 echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063ac_cv_header_stdc=no
252b5132 5064fi
979273e3 5065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5066
5067if test $ac_cv_header_stdc = yes; then
5068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
979273e3
NN
5069 cat >conftest.$ac_ext <<_ACEOF
5070/* confdefs.h. */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h. */
252b5132 5075#include <string.h>
979273e3
NN
5076
5077_ACEOF
252b5132 5078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
979273e3 5079 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5080 :
5081else
252b5132
RH
5082 ac_cv_header_stdc=no
5083fi
5084rm -f conftest*
5085
5086fi
5087
5088if test $ac_cv_header_stdc = yes; then
5089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
979273e3
NN
5090 cat >conftest.$ac_ext <<_ACEOF
5091/* confdefs.h. */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h. */
252b5132 5096#include <stdlib.h>
979273e3
NN
5097
5098_ACEOF
252b5132 5099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
979273e3 5100 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5101 :
5102else
252b5132
RH
5103 ac_cv_header_stdc=no
5104fi
5105rm -f conftest*
5106
5107fi
5108
5109if test $ac_cv_header_stdc = yes; then
5110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
979273e3 5111 if test "$cross_compiling" = yes; then
252b5132
RH
5112 :
5113else
979273e3
NN
5114 cat >conftest.$ac_ext <<_ACEOF
5115/* confdefs.h. */
5116_ACEOF
5117cat confdefs.h >>conftest.$ac_ext
5118cat >>conftest.$ac_ext <<_ACEOF
5119/* end confdefs.h. */
252b5132 5120#include <ctype.h>
979273e3
NN
5121#if ((' ' & 0x0FF) == 0x020)
5122# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5123# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5124#else
5125# define ISLOWER(c) \
5126 (('a' <= (c) && (c) <= 'i') \
5127 || ('j' <= (c) && (c) <= 'r') \
5128 || ('s' <= (c) && (c) <= 'z'))
5129# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5130#endif
252b5132 5131
979273e3
NN
5132#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5133int
5134main ()
5135{
5136 int i;
5137 for (i = 0; i < 256; i++)
5138 if (XOR (islower (i), ISLOWER (i))
5139 || toupper (i) != TOUPPER (i))
5140 exit(2);
5141 exit (0);
5142}
5143_ACEOF
5144rm -f conftest$ac_exeext
5145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5146 (eval $ac_link) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 (eval $ac_try) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
252b5132
RH
5155 :
5156else
979273e3
NN
5157 echo "$as_me: program exited with status $ac_status" >&5
5158echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161( exit $ac_status )
5162ac_cv_header_stdc=no
252b5132 5163fi
979273e3 5164rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5165fi
252b5132
RH
5166fi
5167fi
979273e3
NN
5168echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5169echo "${ECHO_T}$ac_cv_header_stdc" >&6
252b5132 5170if test $ac_cv_header_stdc = yes; then
979273e3
NN
5171
5172cat >>confdefs.h <<\_ACEOF
252b5132 5173#define STDC_HEADERS 1
979273e3 5174_ACEOF
252b5132
RH
5175
5176fi
5177
979273e3
NN
5178echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5179echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5180if test "${ac_cv_c_const+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182else
5183 cat >conftest.$ac_ext <<_ACEOF
5184/* confdefs.h. */
5185_ACEOF
5186cat confdefs.h >>conftest.$ac_ext
5187cat >>conftest.$ac_ext <<_ACEOF
5188/* end confdefs.h. */
252b5132 5189
979273e3
NN
5190int
5191main ()
5192{
5193/* FIXME: Include the comments suggested by Paul. */
5194#ifndef __cplusplus
5195 /* Ultrix mips cc rejects this. */
5196 typedef int charset[2];
5197 const charset x;
5198 /* SunOS 4.1.1 cc rejects this. */
5199 char const *const *ccp;
5200 char **p;
5201 /* NEC SVR4.0.2 mips cc rejects this. */
5202 struct point {int x, y;};
5203 static struct point const zero = {0,0};
5204 /* AIX XL C 1.02.0.0 rejects this.
5205 It does not let you subtract one const X* pointer from another in
5206 an arm of an if-expression whose if-part is not a constant
5207 expression */
5208 const char *g = "string";
5209 ccp = &g + (g ? g-g : 0);
5210 /* HPUX 7.0 cc rejects these. */
5211 ++ccp;
5212 p = (char**) ccp;
5213 ccp = (char const *const *) p;
5214 { /* SCO 3.2v4 cc rejects this. */
5215 char *t;
5216 char const *s = 0 ? (char *) 0 : (char const *) 0;
5217
5218 *t++ = 0;
5219 }
5220 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5221 int x[] = {25, 17};
5222 const int *foo = &x[0];
5223 ++foo;
5224 }
5225 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5226 typedef const int *iptr;
5227 iptr p = 0;
5228 ++p;
5229 }
5230 { /* AIX XL C 1.02.0.0 rejects this saying
5231 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5232 struct s { int j; const int *ap[3]; };
5233 struct s *b; b->j = 5;
5234 }
5235 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5236 const int foo = 10;
5237 }
5238#endif
5239
5240 ;
5241 return 0;
5242}
5243_ACEOF
5244rm -f conftest.$ac_objext
5245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5246 (eval $ac_compile) 2>conftest.er1
5247 ac_status=$?
5248 grep -v '^ *+' conftest.er1 >conftest.err
5249 rm -f conftest.er1
5250 cat conftest.err >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } &&
5253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 (eval $ac_try) 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; } &&
5259 { ac_try='test -s conftest.$ac_objext'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; }; then
252b5132
RH
5265 ac_cv_c_const=yes
5266else
979273e3
NN
5267 echo "$as_me: failed program was:" >&5
5268sed 's/^/| /' conftest.$ac_ext >&5
5269
5270ac_cv_c_const=no
252b5132 5271fi
979273e3 5272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5273fi
979273e3
NN
5274echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5275echo "${ECHO_T}$ac_cv_c_const" >&6
252b5132 5276if test $ac_cv_c_const = no; then
979273e3
NN
5277
5278cat >>confdefs.h <<\_ACEOF
5279#define const
5280_ACEOF
252b5132
RH
5281
5282fi
5283
979273e3
NN
5284echo "$as_me:$LINENO: checking for inline" >&5
5285echo $ECHO_N "checking for inline... $ECHO_C" >&6
5286if test "${ac_cv_c_inline+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5288else
5289 ac_cv_c_inline=no
5290for ac_kw in inline __inline__ __inline; do
979273e3
NN
5291 cat >conftest.$ac_ext <<_ACEOF
5292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
5297#ifndef __cplusplus
5298typedef int foo_t;
5299static $ac_kw foo_t static_foo () {return 0; }
5300$ac_kw foo_t foo () {return 0; }
5301#endif
5302
5303_ACEOF
5304rm -f conftest.$ac_objext
5305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 (eval $ac_try) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; } &&
5319 { ac_try='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 (eval $ac_try) 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_cv_c_inline=$ac_kw; break
5326else
5327 echo "$as_me: failed program was:" >&5
5328sed 's/^/| /' conftest.$ac_ext >&5
5329
5330fi
5331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332done
5333
5334fi
5335echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5336echo "${ECHO_T}$ac_cv_c_inline" >&6
5337
5338
5339case $ac_cv_c_inline in
5340 inline | yes) ;;
5341 *)
5342 case $ac_cv_c_inline in
5343 no) ac_val=;;
5344 *) ac_val=$ac_cv_c_inline;;
5345 esac
5346 cat >>confdefs.h <<_ACEOF
5347#ifndef __cplusplus
5348#define inline $ac_val
5349#endif
5350_ACEOF
5351 ;;
5352esac
5353
5354# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5355
5356
5357
5358
5359
5360
5361
5362
252b5132 5363
979273e3
NN
5364for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5365 inttypes.h stdint.h unistd.h
5366do
5367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5368echo "$as_me:$LINENO: checking for $ac_header" >&5
5369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5370if eval "test \"\${$as_ac_Header+set}\" = set"; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373 cat >conftest.$ac_ext <<_ACEOF
5374/* confdefs.h. */
5375_ACEOF
5376cat confdefs.h >>conftest.$ac_ext
5377cat >>conftest.$ac_ext <<_ACEOF
5378/* end confdefs.h. */
5379$ac_includes_default
5380
5381#include <$ac_header>
5382_ACEOF
5383rm -f conftest.$ac_objext
5384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>conftest.er1
5386 ac_status=$?
5387 grep -v '^ *+' conftest.er1 >conftest.err
5388 rm -f conftest.er1
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 (eval $ac_try) 2>&5
5395 ac_status=$?
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; } &&
5398 { ac_try='test -s conftest.$ac_objext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 eval "$as_ac_Header=yes"
5405else
5406 echo "$as_me: failed program was:" >&5
5407sed 's/^/| /' conftest.$ac_ext >&5
5408
5409eval "$as_ac_Header=no"
5410fi
5411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5412fi
5413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5415if test `eval echo '${'$as_ac_Header'}'` = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5418_ACEOF
252b5132
RH
5419
5420fi
5421
979273e3
NN
5422done
5423
252b5132 5424
979273e3
NN
5425echo "$as_me:$LINENO: checking for off_t" >&5
5426echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5427if test "${ac_cv_type_off_t+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5429else
979273e3
NN
5430 cat >conftest.$ac_ext <<_ACEOF
5431/* confdefs.h. */
5432_ACEOF
5433cat confdefs.h >>conftest.$ac_ext
5434cat >>conftest.$ac_ext <<_ACEOF
5435/* end confdefs.h. */
5436$ac_includes_default
5437int
5438main ()
5439{
5440if ((off_t *) 0)
5441 return 0;
5442if (sizeof (off_t))
5443 return 0;
5444 ;
5445 return 0;
5446}
5447_ACEOF
5448rm -f conftest.$ac_objext
5449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5450 (eval $ac_compile) 2>conftest.er1
5451 ac_status=$?
5452 grep -v '^ *+' conftest.er1 >conftest.err
5453 rm -f conftest.er1
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } &&
5457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; } &&
5463 { ac_try='test -s conftest.$ac_objext'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; }; then
a2d91340 5469 ac_cv_type_off_t=yes
252b5132 5470else
979273e3
NN
5471 echo "$as_me: failed program was:" >&5
5472sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5473
979273e3 5474ac_cv_type_off_t=no
252b5132 5475fi
979273e3
NN
5476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5477fi
5478echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5479echo "${ECHO_T}$ac_cv_type_off_t" >&6
5480if test $ac_cv_type_off_t = yes; then
5481 :
5482else
5483
5484cat >>confdefs.h <<_ACEOF
252b5132 5485#define off_t long
979273e3 5486_ACEOF
252b5132
RH
5487
5488fi
5489
979273e3
NN
5490echo "$as_me:$LINENO: checking for size_t" >&5
5491echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5492if test "${ac_cv_type_size_t+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5494else
979273e3
NN
5495 cat >conftest.$ac_ext <<_ACEOF
5496/* confdefs.h. */
5497_ACEOF
5498cat confdefs.h >>conftest.$ac_ext
5499cat >>conftest.$ac_ext <<_ACEOF
5500/* end confdefs.h. */
5501$ac_includes_default
5502int
5503main ()
5504{
5505if ((size_t *) 0)
5506 return 0;
5507if (sizeof (size_t))
5508 return 0;
5509 ;
5510 return 0;
5511}
5512_ACEOF
5513rm -f conftest.$ac_objext
5514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5515 (eval $ac_compile) 2>conftest.er1
5516 ac_status=$?
5517 grep -v '^ *+' conftest.er1 >conftest.err
5518 rm -f conftest.er1
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest.$ac_objext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
a2d91340 5534 ac_cv_type_size_t=yes
252b5132 5535else
979273e3
NN
5536 echo "$as_me: failed program was:" >&5
5537sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5538
979273e3
NN
5539ac_cv_type_size_t=no
5540fi
5541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5542fi
979273e3
NN
5543echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5544echo "${ECHO_T}$ac_cv_type_size_t" >&6
5545if test $ac_cv_type_size_t = yes; then
5546 :
5547else
5548
5549cat >>confdefs.h <<_ACEOF
252b5132 5550#define size_t unsigned
979273e3 5551_ACEOF
252b5132
RH
5552
5553fi
5554
5555# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5556# for constant arguments. Useless!
979273e3
NN
5557echo "$as_me:$LINENO: checking for working alloca.h" >&5
5558echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5559if test "${ac_cv_working_alloca_h+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562 cat >conftest.$ac_ext <<_ACEOF
5563/* confdefs.h. */
5564_ACEOF
5565cat confdefs.h >>conftest.$ac_ext
5566cat >>conftest.$ac_ext <<_ACEOF
5567/* end confdefs.h. */
252b5132 5568#include <alloca.h>
979273e3
NN
5569int
5570main ()
5571{
5572char *p = (char *) alloca (2 * sizeof (int));
5573 ;
5574 return 0;
5575}
5576_ACEOF
5577rm -f conftest.$ac_objext conftest$ac_exeext
5578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579 (eval $ac_link) 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
5586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 (eval $ac_try) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; } &&
5592 { ac_try='test -s conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_working_alloca_h=yes
5599else
5600 echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
5603ac_cv_working_alloca_h=no
5604fi
5605rm -f conftest.err conftest.$ac_objext \
5606 conftest$ac_exeext conftest.$ac_ext
5607fi
5608echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5609echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5610if test $ac_cv_working_alloca_h = yes; then
5611
5612cat >>confdefs.h <<\_ACEOF
252b5132 5613#define HAVE_ALLOCA_H 1
979273e3 5614_ACEOF
252b5132
RH
5615
5616fi
5617
979273e3
NN
5618echo "$as_me:$LINENO: checking for alloca" >&5
5619echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5620if test "${ac_cv_func_alloca_works+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5622else
979273e3
NN
5623 cat >conftest.$ac_ext <<_ACEOF
5624/* confdefs.h. */
5625_ACEOF
5626cat confdefs.h >>conftest.$ac_ext
5627cat >>conftest.$ac_ext <<_ACEOF
5628/* end confdefs.h. */
252b5132
RH
5629#ifdef __GNUC__
5630# define alloca __builtin_alloca
5631#else
5632# ifdef _MSC_VER
5633# include <malloc.h>
5634# define alloca _alloca
5635# else
5636# if HAVE_ALLOCA_H
5637# include <alloca.h>
5638# else
5639# ifdef _AIX
5640 #pragma alloca
5641# else
5642# ifndef alloca /* predefined by HP cc +Olibcalls */
5643char *alloca ();
5644# endif
5645# endif
5646# endif
5647# endif
5648#endif
5649
979273e3
NN
5650int
5651main ()
5652{
5653char *p = (char *) alloca (1);
5654 ;
5655 return 0;
5656}
5657_ACEOF
5658rm -f conftest.$ac_objext conftest$ac_exeext
5659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5660 (eval $ac_link) 2>conftest.er1
5661 ac_status=$?
5662 grep -v '^ *+' conftest.er1 >conftest.err
5663 rm -f conftest.er1
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try='test -s conftest$ac_exeext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
252b5132
RH
5679 ac_cv_func_alloca_works=yes
5680else
979273e3
NN
5681 echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
5683
5684ac_cv_func_alloca_works=no
252b5132 5685fi
979273e3
NN
5686rm -f conftest.err conftest.$ac_objext \
5687 conftest$ac_exeext conftest.$ac_ext
252b5132 5688fi
979273e3
NN
5689echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5690echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 5691
252b5132 5692if test $ac_cv_func_alloca_works = yes; then
252b5132 5693
979273e3
NN
5694cat >>confdefs.h <<\_ACEOF
5695#define HAVE_ALLOCA 1
5696_ACEOF
252b5132 5697
979273e3 5698else
252b5132 5699 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
979273e3
NN
5700# that cause trouble. Some versions do not even contain alloca or
5701# contain a buggy version. If you still want to use their alloca,
5702# use ar to extract alloca.o from them instead of compiling alloca.c.
5703
5704ALLOCA=alloca.$ac_objext
5705
5706cat >>confdefs.h <<\_ACEOF
252b5132 5707#define C_ALLOCA 1
979273e3 5708_ACEOF
252b5132
RH
5709
5710
979273e3
NN
5711echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5712echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5713if test "${ac_cv_os_cray+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5715else
979273e3
NN
5716 cat >conftest.$ac_ext <<_ACEOF
5717/* confdefs.h. */
5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h. */
252b5132
RH
5722#if defined(CRAY) && ! defined(CRAY2)
5723webecray
5724#else
5725wenotbecray
5726#endif
5727
979273e3 5728_ACEOF
252b5132 5729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
979273e3 5730 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
5731 ac_cv_os_cray=yes
5732else
252b5132
RH
5733 ac_cv_os_cray=no
5734fi
5735rm -f conftest*
5736
5737fi
979273e3
NN
5738echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5739echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 5740if test $ac_cv_os_cray = yes; then
979273e3
NN
5741 for ac_func in _getb67 GETB67 getb67; do
5742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5743echo "$as_me:$LINENO: checking for $ac_func" >&5
5744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5745if eval "test \"\${$as_ac_var+set}\" = set"; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747else
5748 cat >conftest.$ac_ext <<_ACEOF
5749/* confdefs.h. */
5750_ACEOF
5751cat confdefs.h >>conftest.$ac_ext
5752cat >>conftest.$ac_ext <<_ACEOF
5753/* end confdefs.h. */
5754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5756#define $ac_func innocuous_$ac_func
5757
252b5132 5758/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
5759 which can conflict with char $ac_func (); below.
5760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5761 <limits.h> exists even on freestanding compilers. */
5762
5763#ifdef __STDC__
5764# include <limits.h>
5765#else
5766# include <assert.h>
5767#endif
252b5132 5768
979273e3 5769#undef $ac_func
252b5132 5770
979273e3
NN
5771/* Override any gcc2 internal prototype to avoid an error. */
5772#ifdef __cplusplus
5773extern "C"
5774{
5775#endif
5776/* We use char because int might match the return type of a gcc2
5777 builtin and then its argument prototype would still apply. */
5778char $ac_func ();
252b5132
RH
5779/* The GNU C library defines this for functions which it implements
5780 to always fail with ENOSYS. Some functions are actually named
5781 something starting with __ and the normal name is an alias. */
5782#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5783choke me
5784#else
979273e3
NN
5785char (*f) () = $ac_func;
5786#endif
5787#ifdef __cplusplus
5788}
252b5132
RH
5789#endif
5790
979273e3
NN
5791int
5792main ()
5793{
5794return f != $ac_func;
5795 ;
5796 return 0;
5797}
5798_ACEOF
5799rm -f conftest.$ac_objext conftest$ac_exeext
5800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801 (eval $ac_link) 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest$ac_exeext'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 (eval $ac_try) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 eval "$as_ac_var=yes"
5821else
5822 echo "$as_me: failed program was:" >&5
5823sed 's/^/| /' conftest.$ac_ext >&5
5824
5825eval "$as_ac_var=no"
5826fi
5827rm -f conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5829fi
5830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5832if test `eval echo '${'$as_ac_var'}'` = yes; then
5833
5834cat >>confdefs.h <<_ACEOF
252b5132 5835#define CRAY_STACKSEG_END $ac_func
979273e3 5836_ACEOF
252b5132 5837
979273e3 5838 break
252b5132
RH
5839fi
5840
979273e3 5841 done
252b5132
RH
5842fi
5843
979273e3
NN
5844echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5845echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5846if test "${ac_cv_c_stack_direction+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5848else
5849 if test "$cross_compiling" = yes; then
5850 ac_cv_c_stack_direction=0
5851else
979273e3
NN
5852 cat >conftest.$ac_ext <<_ACEOF
5853/* confdefs.h. */
5854_ACEOF
5855cat confdefs.h >>conftest.$ac_ext
5856cat >>conftest.$ac_ext <<_ACEOF
5857/* end confdefs.h. */
5858int
252b5132
RH
5859find_stack_direction ()
5860{
5861 static char *addr = 0;
5862 auto char dummy;
5863 if (addr == 0)
5864 {
5865 addr = &dummy;
5866 return find_stack_direction ();
5867 }
5868 else
5869 return (&dummy > addr) ? 1 : -1;
5870}
979273e3
NN
5871
5872int
252b5132
RH
5873main ()
5874{
979273e3 5875 exit (find_stack_direction () < 0);
252b5132 5876}
979273e3
NN
5877_ACEOF
5878rm -f conftest$ac_exeext
5879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5880 (eval $ac_link) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 (eval $ac_try) 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
252b5132
RH
5889 ac_cv_c_stack_direction=1
5890else
979273e3
NN
5891 echo "$as_me: program exited with status $ac_status" >&5
5892echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895( exit $ac_status )
5896ac_cv_c_stack_direction=-1
252b5132 5897fi
979273e3 5898rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5899fi
252b5132 5900fi
979273e3
NN
5901echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5902echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 5903
979273e3 5904cat >>confdefs.h <<_ACEOF
252b5132 5905#define STACK_DIRECTION $ac_cv_c_stack_direction
979273e3
NN
5906_ACEOF
5907
252b5132
RH
5908
5909fi
5910
979273e3
NN
5911
5912
5913for ac_header in stdlib.h unistd.h
252b5132 5914do
979273e3
NN
5915as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916if eval "test \"\${$as_ac_Header+set}\" = set"; then
5917 echo "$as_me:$LINENO: checking for $ac_header" >&5
5918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5919if eval "test \"\${$as_ac_Header+set}\" = set"; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921fi
5922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5923echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5924else
5925 # Is the header compilable?
5926echo "$as_me:$LINENO: checking $ac_header usability" >&5
5927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5928cat >conftest.$ac_ext <<_ACEOF
5929/* confdefs.h. */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h. */
5934$ac_includes_default
5935#include <$ac_header>
5936_ACEOF
5937rm -f conftest.$ac_objext
5938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>conftest.er1
5940 ac_status=$?
5941 grep -v '^ *+' conftest.er1 >conftest.err
5942 rm -f conftest.er1
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 (eval $ac_try) 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; } &&
5952 { ac_try='test -s conftest.$ac_objext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 (eval $ac_try) 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_header_compiler=yes
5959else
5960 echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963ac_header_compiler=no
5964fi
5965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5967echo "${ECHO_T}$ac_header_compiler" >&6
5968
5969# Is the header present?
5970echo "$as_me:$LINENO: checking $ac_header presence" >&5
5971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5972cat >conftest.$ac_ext <<_ACEOF
5973/* confdefs.h. */
5974_ACEOF
5975cat confdefs.h >>conftest.$ac_ext
5976cat >>conftest.$ac_ext <<_ACEOF
5977/* end confdefs.h. */
5978#include <$ac_header>
5979_ACEOF
5980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } >/dev/null; then
5988 if test -s conftest.err; then
5989 ac_cpp_err=$ac_c_preproc_warn_flag
5990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5991 else
5992 ac_cpp_err=
5993 fi
252b5132 5994else
979273e3 5995 ac_cpp_err=yes
252b5132 5996fi
979273e3
NN
5997if test -z "$ac_cpp_err"; then
5998 ac_header_preproc=yes
5999else
6000 echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003 ac_header_preproc=no
252b5132 6004fi
979273e3
NN
6005rm -f conftest.err conftest.$ac_ext
6006echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6007echo "${ECHO_T}$ac_header_preproc" >&6
6008
6009# So? What about this header?
6010case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6011 yes:no: )
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6015echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6016 ac_header_preproc=yes
6017 ;;
6018 no:yes:* )
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6020echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6022echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6024echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6026echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6030echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6031 (
6032 cat <<\_ASBOX
6033## ------------------------------------------ ##
6034## Report this to the AC_PACKAGE_NAME lists. ##
6035## ------------------------------------------ ##
6036_ASBOX
6037 ) |
6038 sed "s/^/$as_me: WARNING: /" >&2
6039 ;;
6040esac
6041echo "$as_me:$LINENO: checking for $ac_header" >&5
6042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6043if eval "test \"\${$as_ac_Header+set}\" = set"; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6045else
979273e3
NN
6046 eval "$as_ac_Header=\$ac_header_preproc"
6047fi
6048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050
6051fi
6052if test `eval echo '${'$as_ac_Header'}'` = yes; then
6053 cat >>confdefs.h <<_ACEOF
6054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6055_ACEOF
6056
252b5132 6057fi
979273e3 6058
252b5132
RH
6059done
6060
979273e3 6061
252b5132
RH
6062for ac_func in getpagesize
6063do
979273e3
NN
6064as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6065echo "$as_me:$LINENO: checking for $ac_func" >&5
6066echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6067if eval "test \"\${$as_ac_var+set}\" = set"; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070 cat >conftest.$ac_ext <<_ACEOF
6071/* confdefs.h. */
6072_ACEOF
6073cat confdefs.h >>conftest.$ac_ext
6074cat >>conftest.$ac_ext <<_ACEOF
6075/* end confdefs.h. */
6076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6078#define $ac_func innocuous_$ac_func
6079
252b5132 6080/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
6081 which can conflict with char $ac_func (); below.
6082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6083 <limits.h> exists even on freestanding compilers. */
252b5132 6084
979273e3
NN
6085#ifdef __STDC__
6086# include <limits.h>
6087#else
6088# include <assert.h>
6089#endif
252b5132 6090
979273e3
NN
6091#undef $ac_func
6092
6093/* Override any gcc2 internal prototype to avoid an error. */
6094#ifdef __cplusplus
6095extern "C"
6096{
6097#endif
6098/* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6100char $ac_func ();
252b5132
RH
6101/* The GNU C library defines this for functions which it implements
6102 to always fail with ENOSYS. Some functions are actually named
6103 something starting with __ and the normal name is an alias. */
6104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6105choke me
6106#else
979273e3
NN
6107char (*f) () = $ac_func;
6108#endif
6109#ifdef __cplusplus
6110}
252b5132
RH
6111#endif
6112
979273e3
NN
6113int
6114main ()
6115{
6116return f != $ac_func;
6117 ;
6118 return 0;
6119}
6120_ACEOF
6121rm -f conftest.$ac_objext conftest$ac_exeext
6122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6123 (eval $ac_link) 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest$ac_exeext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 eval "$as_ac_var=yes"
6143else
6144 echo "$as_me: failed program was:" >&5
6145sed 's/^/| /' conftest.$ac_ext >&5
6146
6147eval "$as_ac_var=no"
6148fi
6149rm -f conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6151fi
6152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6154if test `eval echo '${'$as_ac_var'}'` = yes; then
6155 cat >>confdefs.h <<_ACEOF
6156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6157_ACEOF
252b5132 6158
252b5132
RH
6159fi
6160done
6161
979273e3
NN
6162echo "$as_me:$LINENO: checking for working mmap" >&5
6163echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6164if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6166else
6167 if test "$cross_compiling" = yes; then
6168 ac_cv_func_mmap_fixed_mapped=no
6169else
979273e3
NN
6170 cat >conftest.$ac_ext <<_ACEOF
6171/* confdefs.h. */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h. */
6176$ac_includes_default
6177/* malloc might have been renamed as rpl_malloc. */
6178#undef malloc
252b5132
RH
6179
6180/* Thanks to Mike Haertel and Jim Avera for this test.
6181 Here is a matrix of mmap possibilities:
6182 mmap private not fixed
6183 mmap private fixed at somewhere currently unmapped
6184 mmap private fixed at somewhere already mapped
6185 mmap shared not fixed
6186 mmap shared fixed at somewhere currently unmapped
6187 mmap shared fixed at somewhere already mapped
6188 For private mappings, we should verify that changes cannot be read()
6189 back from the file, nor mmap's back from the file at a different
6190 address. (There have been systems where private was not correctly
6191 implemented like the infamous i386 svr4.0, and systems where the
979273e3 6192 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6193 like early versions of FreeBSD and possibly contemporary NetBSD.)
6194 For shared mappings, we should conversely verify that changes get
979273e3 6195 propagated back to all the places they're supposed to be.
252b5132
RH
6196
6197 Grep wants private fixed already mapped.
6198 The main things grep needs to know about mmap are:
6199 * does it exist and is it safe to write into the mmap'd area
6200 * how to use it (BSD variants) */
979273e3 6201
252b5132
RH
6202#include <fcntl.h>
6203#include <sys/mman.h>
6204
979273e3
NN
6205#if !STDC_HEADERS && !HAVE_STDLIB_H
6206char *malloc ();
6207#endif
252b5132 6208
979273e3
NN
6209/* This mess was copied from the GNU getpagesize.h. */
6210#if !HAVE_GETPAGESIZE
252b5132 6211/* Assume that all systems that can run configure have sys/param.h. */
979273e3 6212# if !HAVE_SYS_PARAM_H
252b5132
RH
6213# define HAVE_SYS_PARAM_H 1
6214# endif
6215
6216# ifdef _SC_PAGESIZE
6217# define getpagesize() sysconf(_SC_PAGESIZE)
6218# else /* no _SC_PAGESIZE */
979273e3 6219# if HAVE_SYS_PARAM_H
252b5132
RH
6220# include <sys/param.h>
6221# ifdef EXEC_PAGESIZE
6222# define getpagesize() EXEC_PAGESIZE
6223# else /* no EXEC_PAGESIZE */
6224# ifdef NBPG
6225# define getpagesize() NBPG * CLSIZE
6226# ifndef CLSIZE
6227# define CLSIZE 1
6228# endif /* no CLSIZE */
6229# else /* no NBPG */
6230# ifdef NBPC
6231# define getpagesize() NBPC
6232# else /* no NBPC */
6233# ifdef PAGESIZE
6234# define getpagesize() PAGESIZE
6235# endif /* PAGESIZE */
6236# endif /* no NBPC */
6237# endif /* no NBPG */
6238# endif /* no EXEC_PAGESIZE */
6239# else /* no HAVE_SYS_PARAM_H */
6240# define getpagesize() 8192 /* punt totally */
6241# endif /* no HAVE_SYS_PARAM_H */
6242# endif /* no _SC_PAGESIZE */
6243
6244#endif /* no HAVE_GETPAGESIZE */
6245
252b5132 6246int
979273e3 6247main ()
252b5132 6248{
979273e3
NN
6249 char *data, *data2, *data3;
6250 int i, pagesize;
6251 int fd;
6252
6253 pagesize = getpagesize ();
6254
6255 /* First, make a file with some known garbage in it. */
6256 data = (char *) malloc (pagesize);
6257 if (!data)
6258 exit (1);
6259 for (i = 0; i < pagesize; ++i)
6260 *(data + i) = rand ();
6261 umask (0);
6262 fd = creat ("conftest.mmap", 0600);
6263 if (fd < 0)
6264 exit (1);
6265 if (write (fd, data, pagesize) != pagesize)
6266 exit (1);
6267 close (fd);
6268
6269 /* Next, try to mmap the file at a fixed address which already has
6270 something else allocated at it. If we can, also make sure that
6271 we see the same garbage. */
6272 fd = open ("conftest.mmap", O_RDWR);
6273 if (fd < 0)
6274 exit (1);
6275 data2 = (char *) malloc (2 * pagesize);
6276 if (!data2)
6277 exit (1);
6278 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6279 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6280 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6281 exit (1);
6282 for (i = 0; i < pagesize; ++i)
6283 if (*(data + i) != *(data2 + i))
6284 exit (1);
6285
6286 /* Finally, make sure that changes to the mapped area do not
6287 percolate back to the file as seen by read(). (This is a bug on
6288 some variants of i386 svr4.0.) */
6289 for (i = 0; i < pagesize; ++i)
6290 *(data2 + i) = *(data2 + i) + 1;
6291 data3 = (char *) malloc (pagesize);
6292 if (!data3)
6293 exit (1);
6294 if (read (fd, data3, pagesize) != pagesize)
6295 exit (1);
6296 for (i = 0; i < pagesize; ++i)
6297 if (*(data + i) != *(data3 + i))
6298 exit (1);
6299 close (fd);
6300 exit (0);
252b5132 6301}
979273e3
NN
6302_ACEOF
6303rm -f conftest$ac_exeext
6304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
252b5132
RH
6314 ac_cv_func_mmap_fixed_mapped=yes
6315else
979273e3
NN
6316 echo "$as_me: program exited with status $ac_status" >&5
6317echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
6320( exit $ac_status )
6321ac_cv_func_mmap_fixed_mapped=no
252b5132 6322fi
979273e3 6323rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6324fi
252b5132 6325fi
979273e3
NN
6326echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6327echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
252b5132 6328if test $ac_cv_func_mmap_fixed_mapped = yes; then
979273e3
NN
6329
6330cat >>confdefs.h <<\_ACEOF
252b5132 6331#define HAVE_MMAP 1
979273e3 6332_ACEOF
252b5132
RH
6333
6334fi
979273e3
NN
6335rm -f conftest.mmap
6336
6337
6338
6339
252b5132 6340
979273e3
NN
6341
6342
6343
6344
6345
6346
6347for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6348unistd.h values.h sys/param.h
6349do
979273e3
NN
6350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351if eval "test \"\${$as_ac_Header+set}\" = set"; then
6352 echo "$as_me:$LINENO: checking for $ac_header" >&5
6353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6354if eval "test \"\${$as_ac_Header+set}\" = set"; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6356fi
6357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6359else
6360 # Is the header compilable?
6361echo "$as_me:$LINENO: checking $ac_header usability" >&5
6362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6363cat >conftest.$ac_ext <<_ACEOF
6364/* confdefs.h. */
6365_ACEOF
6366cat confdefs.h >>conftest.$ac_ext
6367cat >>conftest.$ac_ext <<_ACEOF
6368/* end confdefs.h. */
6369$ac_includes_default
6370#include <$ac_header>
6371_ACEOF
6372rm -f conftest.$ac_objext
6373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374 (eval $ac_compile) 2>conftest.er1
6375 ac_status=$?
6376 grep -v '^ *+' conftest.er1 >conftest.err
6377 rm -f conftest.er1
6378 cat conftest.err >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } &&
6381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; } &&
6387 { ac_try='test -s conftest.$ac_objext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 (eval $ac_try) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 ac_header_compiler=yes
6394else
6395 echo "$as_me: failed program was:" >&5
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
6398ac_header_compiler=no
6399fi
6400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6401echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6402echo "${ECHO_T}$ac_header_compiler" >&6
6403
6404# Is the header present?
6405echo "$as_me:$LINENO: checking $ac_header presence" >&5
6406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6407cat >conftest.$ac_ext <<_ACEOF
6408/* confdefs.h. */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
6412/* end confdefs.h. */
6413#include <$ac_header>
6414_ACEOF
6415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } >/dev/null; then
6423 if test -s conftest.err; then
6424 ac_cpp_err=$ac_c_preproc_warn_flag
6425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6426 else
6427 ac_cpp_err=
6428 fi
252b5132 6429else
979273e3 6430 ac_cpp_err=yes
252b5132 6431fi
979273e3
NN
6432if test -z "$ac_cpp_err"; then
6433 ac_header_preproc=yes
6434else
6435 echo "$as_me: failed program was:" >&5
6436sed 's/^/| /' conftest.$ac_ext >&5
6437
6438 ac_header_preproc=no
252b5132 6439fi
979273e3
NN
6440rm -f conftest.err conftest.$ac_ext
6441echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6442echo "${ECHO_T}$ac_header_preproc" >&6
6443
6444# So? What about this header?
6445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6446 yes:no: )
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6451 ac_header_preproc=yes
6452 ;;
6453 no:yes:* )
6454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6466 (
6467 cat <<\_ASBOX
6468## ------------------------------------------ ##
6469## Report this to the AC_PACKAGE_NAME lists. ##
6470## ------------------------------------------ ##
6471_ASBOX
6472 ) |
6473 sed "s/^/$as_me: WARNING: /" >&2
6474 ;;
6475esac
6476echo "$as_me:$LINENO: checking for $ac_header" >&5
6477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6478if eval "test \"\${$as_ac_Header+set}\" = set"; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6480else
979273e3
NN
6481 eval "$as_ac_Header=\$ac_header_preproc"
6482fi
6483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6485
6486fi
6487if test `eval echo '${'$as_ac_Header'}'` = yes; then
6488 cat >>confdefs.h <<_ACEOF
6489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6490_ACEOF
6491
252b5132 6492fi
979273e3 6493
252b5132
RH
6494done
6495
979273e3
NN
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6507__argz_count __argz_stringify __argz_next
6508do
979273e3
NN
6509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6510echo "$as_me:$LINENO: checking for $ac_func" >&5
6511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6512if eval "test \"\${$as_ac_var+set}\" = set"; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514else
6515 cat >conftest.$ac_ext <<_ACEOF
6516/* confdefs.h. */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
6520/* end confdefs.h. */
6521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6523#define $ac_func innocuous_$ac_func
6524
252b5132 6525/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
6526 which can conflict with char $ac_func (); below.
6527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6528 <limits.h> exists even on freestanding compilers. */
6529
6530#ifdef __STDC__
6531# include <limits.h>
6532#else
6533# include <assert.h>
6534#endif
252b5132 6535
979273e3 6536#undef $ac_func
252b5132 6537
979273e3
NN
6538/* Override any gcc2 internal prototype to avoid an error. */
6539#ifdef __cplusplus
6540extern "C"
6541{
6542#endif
6543/* We use char because int might match the return type of a gcc2
6544 builtin and then its argument prototype would still apply. */
6545char $ac_func ();
252b5132
RH
6546/* The GNU C library defines this for functions which it implements
6547 to always fail with ENOSYS. Some functions are actually named
6548 something starting with __ and the normal name is an alias. */
6549#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6550choke me
6551#else
979273e3
NN
6552char (*f) () = $ac_func;
6553#endif
6554#ifdef __cplusplus
6555}
252b5132
RH
6556#endif
6557
979273e3
NN
6558int
6559main ()
6560{
6561return f != $ac_func;
6562 ;
6563 return 0;
6564}
6565_ACEOF
6566rm -f conftest.$ac_objext conftest$ac_exeext
6567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6568 (eval $ac_link) 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest$ac_exeext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 eval "$as_ac_var=yes"
6588else
6589 echo "$as_me: failed program was:" >&5
6590sed 's/^/| /' conftest.$ac_ext >&5
6591
6592eval "$as_ac_var=no"
6593fi
6594rm -f conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6596fi
6597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6599if test `eval echo '${'$as_ac_var'}'` = yes; then
6600 cat >>confdefs.h <<_ACEOF
6601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6602_ACEOF
252b5132 6603
252b5132
RH
6604fi
6605done
6606
6607
6608 if test "${ac_cv_func_stpcpy+set}" != "set"; then
979273e3
NN
6609
6610for ac_func in stpcpy
252b5132 6611do
979273e3
NN
6612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6613echo "$as_me:$LINENO: checking for $ac_func" >&5
6614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6615if eval "test \"\${$as_ac_var+set}\" = set"; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617else
6618 cat >conftest.$ac_ext <<_ACEOF
6619/* confdefs.h. */
6620_ACEOF
6621cat confdefs.h >>conftest.$ac_ext
6622cat >>conftest.$ac_ext <<_ACEOF
6623/* end confdefs.h. */
6624/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6626#define $ac_func innocuous_$ac_func
6627
252b5132 6628/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
6629 which can conflict with char $ac_func (); below.
6630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6631 <limits.h> exists even on freestanding compilers. */
6632
6633#ifdef __STDC__
6634# include <limits.h>
6635#else
6636# include <assert.h>
6637#endif
252b5132 6638
979273e3 6639#undef $ac_func
252b5132 6640
979273e3
NN
6641/* Override any gcc2 internal prototype to avoid an error. */
6642#ifdef __cplusplus
6643extern "C"
6644{
6645#endif
6646/* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6648char $ac_func ();
252b5132
RH
6649/* The GNU C library defines this for functions which it implements
6650 to always fail with ENOSYS. Some functions are actually named
6651 something starting with __ and the normal name is an alias. */
6652#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6653choke me
6654#else
979273e3
NN
6655char (*f) () = $ac_func;
6656#endif
6657#ifdef __cplusplus
6658}
252b5132
RH
6659#endif
6660
979273e3
NN
6661int
6662main ()
6663{
6664return f != $ac_func;
6665 ;
6666 return 0;
6667}
6668_ACEOF
6669rm -f conftest.$ac_objext conftest$ac_exeext
6670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671 (eval $ac_link) 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 (eval $ac_try) 2>&5
6681 ac_status=$?
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; } &&
6684 { ac_try='test -s conftest$ac_exeext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 (eval $ac_try) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 eval "$as_ac_var=yes"
6691else
6692 echo "$as_me: failed program was:" >&5
6693sed 's/^/| /' conftest.$ac_ext >&5
6694
6695eval "$as_ac_var=no"
6696fi
6697rm -f conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
6699fi
6700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6701echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6702if test `eval echo '${'$as_ac_var'}'` = yes; then
6703 cat >>confdefs.h <<_ACEOF
6704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6705_ACEOF
252b5132 6706
252b5132
RH
6707fi
6708done
6709
6710 fi
6711 if test "${ac_cv_func_stpcpy}" = "yes"; then
979273e3
NN
6712
6713cat >>confdefs.h <<\_ACEOF
252b5132 6714#define HAVE_STPCPY 1
979273e3 6715_ACEOF
252b5132
RH
6716
6717 fi
6718
6719 if test $ac_cv_header_locale_h = yes; then
979273e3
NN
6720 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6721echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6722if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725 cat >conftest.$ac_ext <<_ACEOF
6726/* confdefs.h. */
6727_ACEOF
6728cat confdefs.h >>conftest.$ac_ext
6729cat >>conftest.$ac_ext <<_ACEOF
6730/* end confdefs.h. */
252b5132 6731#include <locale.h>
979273e3
NN
6732int
6733main ()
6734{
252b5132 6735return LC_MESSAGES
979273e3
NN
6736 ;
6737 return 0;
6738}
6739_ACEOF
6740rm -f conftest.$ac_objext conftest$ac_exeext
6741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; } &&
6755 { ac_try='test -s conftest$ac_exeext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
252b5132
RH
6761 am_cv_val_LC_MESSAGES=yes
6762else
979273e3
NN
6763 echo "$as_me: failed program was:" >&5
6764sed 's/^/| /' conftest.$ac_ext >&5
6765
6766am_cv_val_LC_MESSAGES=no
252b5132 6767fi
979273e3
NN
6768rm -f conftest.err conftest.$ac_objext \
6769 conftest$ac_exeext conftest.$ac_ext
252b5132 6770fi
979273e3
NN
6771echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6772echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
252b5132 6773 if test $am_cv_val_LC_MESSAGES = yes; then
979273e3
NN
6774
6775cat >>confdefs.h <<\_ACEOF
252b5132 6776#define HAVE_LC_MESSAGES 1
979273e3 6777_ACEOF
252b5132
RH
6778
6779 fi
6780 fi
979273e3
NN
6781 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6782echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
6783 # Check whether --enable-nls or --disable-nls was given.
6784if test "${enable_nls+set}" = set; then
6785 enableval="$enable_nls"
6786 USE_NLS=$enableval
6787else
6788 USE_NLS=yes
979273e3
NN
6789fi;
6790 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6791echo "${ECHO_T}$USE_NLS" >&6
252b5132 6792
252b5132
RH
6793
6794 USE_INCLUDED_LIBINTL=no
6795
6796 if test "$USE_NLS" = "yes"; then
979273e3
NN
6797
6798cat >>confdefs.h <<\_ACEOF
252b5132 6799#define ENABLE_NLS 1
979273e3 6800_ACEOF
252b5132 6801
979273e3
NN
6802 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6803echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6804
6805# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
6806if test "${with_included_gettext+set}" = set; then
6807 withval="$with_included_gettext"
6808 nls_cv_force_use_gnu_gettext=$withval
6809else
6810 nls_cv_force_use_gnu_gettext=no
979273e3
NN
6811fi;
6812 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6813echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
6814
6815 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6816 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6817 nls_cv_header_intl=
6818 nls_cv_header_libgt=
6819 CATOBJEXT=NONE
6820
979273e3
NN
6821 if test "${ac_cv_header_libintl_h+set}" = set; then
6822 echo "$as_me:$LINENO: checking for libintl.h" >&5
6823echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6824if test "${ac_cv_header_libintl_h+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6826fi
6827echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6828echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6829else
6830 # Is the header compilable?
6831echo "$as_me:$LINENO: checking libintl.h usability" >&5
6832echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6833cat >conftest.$ac_ext <<_ACEOF
6834/* confdefs.h. */
6835_ACEOF
6836cat confdefs.h >>conftest.$ac_ext
6837cat >>conftest.$ac_ext <<_ACEOF
6838/* end confdefs.h. */
6839$ac_includes_default
252b5132 6840#include <libintl.h>
979273e3
NN
6841_ACEOF
6842rm -f conftest.$ac_objext
6843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6844 (eval $ac_compile) 2>conftest.er1
6845 ac_status=$?
6846 grep -v '^ *+' conftest.er1 >conftest.err
6847 rm -f conftest.er1
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
6851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 (eval $ac_try) 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; } &&
6857 { ac_try='test -s conftest.$ac_objext'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 (eval $ac_try) 2>&5
6860 ac_status=$?
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
6863 ac_header_compiler=yes
6864else
6865 echo "$as_me: failed program was:" >&5
6866sed 's/^/| /' conftest.$ac_ext >&5
6867
6868ac_header_compiler=no
6869fi
6870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6871echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6872echo "${ECHO_T}$ac_header_compiler" >&6
6873
6874# Is the header present?
6875echo "$as_me:$LINENO: checking libintl.h presence" >&5
6876echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
6877cat >conftest.$ac_ext <<_ACEOF
6878/* confdefs.h. */
6879_ACEOF
6880cat confdefs.h >>conftest.$ac_ext
6881cat >>conftest.$ac_ext <<_ACEOF
6882/* end confdefs.h. */
6883#include <libintl.h>
6884_ACEOF
6885if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6887 ac_status=$?
6888 grep -v '^ *+' conftest.er1 >conftest.err
6889 rm -f conftest.er1
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } >/dev/null; then
6893 if test -s conftest.err; then
6894 ac_cpp_err=$ac_c_preproc_warn_flag
6895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6896 else
6897 ac_cpp_err=
6898 fi
252b5132 6899else
979273e3 6900 ac_cpp_err=yes
252b5132 6901fi
979273e3
NN
6902if test -z "$ac_cpp_err"; then
6903 ac_header_preproc=yes
6904else
6905 echo "$as_me: failed program was:" >&5
6906sed 's/^/| /' conftest.$ac_ext >&5
6907
6908 ac_header_preproc=no
6909fi
6910rm -f conftest.err conftest.$ac_ext
6911echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6912echo "${ECHO_T}$ac_header_preproc" >&6
6913
6914# So? What about this header?
6915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6916 yes:no: )
6917 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6918echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6919 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6920echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6921 ac_header_preproc=yes
6922 ;;
6923 no:yes:* )
6924 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6925echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6926 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6927echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6928 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6929echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6930 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6931echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6932 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6933echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6934 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6935echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6936 (
6937 cat <<\_ASBOX
6938## ------------------------------------------ ##
6939## Report this to the AC_PACKAGE_NAME lists. ##
6940## ------------------------------------------ ##
6941_ASBOX
6942 ) |
6943 sed "s/^/$as_me: WARNING: /" >&2
6944 ;;
6945esac
6946echo "$as_me:$LINENO: checking for libintl.h" >&5
6947echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6948if test "${ac_cv_header_libintl_h+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6950else
6951 ac_cv_header_libintl_h=$ac_header_preproc
6952fi
6953echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6954echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6955
252b5132 6956fi
979273e3
NN
6957if test $ac_cv_header_libintl_h = yes; then
6958 echo "$as_me:$LINENO: checking for gettext in libc" >&5
6959echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
6960if test "${gt_cv_func_gettext_libc+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6962else
979273e3
NN
6963 cat >conftest.$ac_ext <<_ACEOF
6964/* confdefs.h. */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h. */
252b5132 6969#include <libintl.h>
979273e3
NN
6970int
6971main ()
6972{
252b5132 6973return (int) gettext ("")
979273e3
NN
6974 ;
6975 return 0;
6976}
6977_ACEOF
6978rm -f conftest.$ac_objext conftest$ac_exeext
6979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980 (eval $ac_link) 2>conftest.er1
6981 ac_status=$?
6982 grep -v '^ *+' conftest.er1 >conftest.err
6983 rm -f conftest.er1
6984 cat conftest.err >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } &&
6987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest$ac_exeext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
252b5132
RH
6999 gt_cv_func_gettext_libc=yes
7000else
979273e3
NN
7001 echo "$as_me: failed program was:" >&5
7002sed 's/^/| /' conftest.$ac_ext >&5
7003
7004gt_cv_func_gettext_libc=no
252b5132 7005fi
979273e3
NN
7006rm -f conftest.err conftest.$ac_objext \
7007 conftest$ac_exeext conftest.$ac_ext
252b5132 7008fi
979273e3
NN
7009echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7010echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7011
7012 if test "$gt_cv_func_gettext_libc" != "yes"; then
979273e3
NN
7013 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7014echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7015if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7017else
979273e3 7018 ac_check_lib_save_LIBS=$LIBS
252b5132 7019LIBS="-lintl $LIBS"
979273e3
NN
7020cat >conftest.$ac_ext <<_ACEOF
7021/* confdefs.h. */
7022_ACEOF
7023cat confdefs.h >>conftest.$ac_ext
7024cat >>conftest.$ac_ext <<_ACEOF
7025/* end confdefs.h. */
7026
252b5132 7027/* Override any gcc2 internal prototype to avoid an error. */
979273e3
NN
7028#ifdef __cplusplus
7029extern "C"
7030#endif
252b5132 7031/* We use char because int might match the return type of a gcc2
979273e3
NN
7032 builtin and then its argument prototype would still apply. */
7033char bindtextdomain ();
7034int
7035main ()
7036{
7037bindtextdomain ();
7038 ;
7039 return 0;
7040}
7041_ACEOF
7042rm -f conftest.$ac_objext conftest$ac_exeext
7043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7044 (eval $ac_link) 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try='test -s conftest$ac_exeext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 ac_cv_lib_intl_bindtextdomain=yes
7064else
7065 echo "$as_me: failed program was:" >&5
7066sed 's/^/| /' conftest.$ac_ext >&5
7067
7068ac_cv_lib_intl_bindtextdomain=no
7069fi
7070rm -f conftest.err conftest.$ac_objext \
7071 conftest$ac_exeext conftest.$ac_ext
7072LIBS=$ac_check_lib_save_LIBS
7073fi
7074echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7075echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7076if test $ac_cv_lib_intl_bindtextdomain = yes; then
7077 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7078echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7079if test "${gt_cv_func_gettext_libintl+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081else
7082 cat >conftest.$ac_ext <<_ACEOF
7083/* confdefs.h. */
7084_ACEOF
7085cat confdefs.h >>conftest.$ac_ext
7086cat >>conftest.$ac_ext <<_ACEOF
7087/* end confdefs.h. */
252b5132 7088
979273e3
NN
7089int
7090main ()
7091{
252b5132 7092return (int) gettext ("")
979273e3
NN
7093 ;
7094 return 0;
7095}
7096_ACEOF
7097rm -f conftest.$ac_objext conftest$ac_exeext
7098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7099 (eval $ac_link) 2>conftest.er1
7100 ac_status=$?
7101 grep -v '^ *+' conftest.er1 >conftest.err
7102 rm -f conftest.er1
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } &&
7106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; } &&
7112 { ac_try='test -s conftest$ac_exeext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 (eval $ac_try) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
252b5132
RH
7118 gt_cv_func_gettext_libintl=yes
7119else
979273e3
NN
7120 echo "$as_me: failed program was:" >&5
7121sed 's/^/| /' conftest.$ac_ext >&5
7122
7123gt_cv_func_gettext_libintl=no
252b5132 7124fi
979273e3
NN
7125rm -f conftest.err conftest.$ac_objext \
7126 conftest$ac_exeext conftest.$ac_ext
252b5132 7127fi
979273e3
NN
7128echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7129echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7130fi
7131
7132 fi
7133
7134 if test "$gt_cv_func_gettext_libc" = "yes" \
7135 || test "$gt_cv_func_gettext_libintl" = "yes"; then
979273e3
NN
7136
7137cat >>confdefs.h <<\_ACEOF
252b5132 7138#define HAVE_GETTEXT 1
979273e3 7139_ACEOF
252b5132
RH
7140
7141 # Extract the first word of "msgfmt", so it can be a program name with args.
7142set dummy msgfmt; ac_word=$2
979273e3
NN
7143echo "$as_me:$LINENO: checking for $ac_word" >&5
7144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7145if test "${ac_cv_path_MSGFMT+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7147else
7148 case "$MSGFMT" in
7149 /*)
7150 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7151 ;;
7152 *)
7153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7154 for ac_dir in $PATH; do
7155 test -z "$ac_dir" && ac_dir=.
7156 if test -f $ac_dir/$ac_word; then
7157 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7158 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7159 break
7160 fi
7161 fi
7162 done
7163 IFS="$ac_save_ifs"
7164 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7165 ;;
7166esac
7167fi
7168MSGFMT="$ac_cv_path_MSGFMT"
7169if test -n "$MSGFMT"; then
979273e3
NN
7170 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7171echo "${ECHO_T}$MSGFMT" >&6
252b5132 7172else
979273e3
NN
7173 echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6
252b5132
RH
7175fi
7176 if test "$MSGFMT" != "no"; then
979273e3
NN
7177
7178for ac_func in dcgettext
252b5132 7179do
979273e3
NN
7180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7181echo "$as_me:$LINENO: checking for $ac_func" >&5
7182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7183if eval "test \"\${$as_ac_var+set}\" = set"; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185else
7186 cat >conftest.$ac_ext <<_ACEOF
7187/* confdefs.h. */
7188_ACEOF
7189cat confdefs.h >>conftest.$ac_ext
7190cat >>conftest.$ac_ext <<_ACEOF
7191/* end confdefs.h. */
7192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7194#define $ac_func innocuous_$ac_func
7195
252b5132 7196/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
7197 which can conflict with char $ac_func (); below.
7198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7199 <limits.h> exists even on freestanding compilers. */
7200
7201#ifdef __STDC__
7202# include <limits.h>
7203#else
7204# include <assert.h>
7205#endif
252b5132 7206
979273e3 7207#undef $ac_func
252b5132 7208
979273e3
NN
7209/* Override any gcc2 internal prototype to avoid an error. */
7210#ifdef __cplusplus
7211extern "C"
7212{
7213#endif
7214/* We use char because int might match the return type of a gcc2
7215 builtin and then its argument prototype would still apply. */
7216char $ac_func ();
252b5132
RH
7217/* The GNU C library defines this for functions which it implements
7218 to always fail with ENOSYS. Some functions are actually named
7219 something starting with __ and the normal name is an alias. */
7220#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7221choke me
7222#else
979273e3
NN
7223char (*f) () = $ac_func;
7224#endif
7225#ifdef __cplusplus
7226}
252b5132
RH
7227#endif
7228
979273e3
NN
7229int
7230main ()
7231{
7232return f != $ac_func;
7233 ;
7234 return 0;
7235}
7236_ACEOF
7237rm -f conftest.$ac_objext conftest$ac_exeext
7238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7239 (eval $ac_link) 2>conftest.er1
7240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 (eval $ac_try) 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; } &&
7252 { ac_try='test -s conftest$ac_exeext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 (eval $ac_try) 2>&5
7255 ac_status=$?
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 eval "$as_ac_var=yes"
7259else
7260 echo "$as_me: failed program was:" >&5
7261sed 's/^/| /' conftest.$ac_ext >&5
7262
7263eval "$as_ac_var=no"
7264fi
7265rm -f conftest.err conftest.$ac_objext \
7266 conftest$ac_exeext conftest.$ac_ext
7267fi
7268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7269echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7270if test `eval echo '${'$as_ac_var'}'` = yes; then
7271 cat >>confdefs.h <<_ACEOF
7272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7273_ACEOF
252b5132 7274
252b5132
RH
7275fi
7276done
7277
7278 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7279set dummy gmsgfmt; ac_word=$2
979273e3
NN
7280echo "$as_me:$LINENO: checking for $ac_word" >&5
7281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282if test "${ac_cv_path_GMSGFMT+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7284else
979273e3
NN
7285 case $GMSGFMT in
7286 [\\/]* | ?:[\\/]*)
252b5132
RH
7287 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7288 ;;
252b5132 7289 *)
979273e3
NN
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301done
7302done
7303
252b5132
RH
7304 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7305 ;;
7306esac
7307fi
979273e3
NN
7308GMSGFMT=$ac_cv_path_GMSGFMT
7309
252b5132 7310if test -n "$GMSGFMT"; then
979273e3
NN
7311 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7312echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7313else
979273e3
NN
7314 echo "$as_me:$LINENO: result: no" >&5
7315echo "${ECHO_T}no" >&6
252b5132
RH
7316fi
7317
7318 # Extract the first word of "xgettext", so it can be a program name with args.
7319set dummy xgettext; ac_word=$2
979273e3
NN
7320echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7322if test "${ac_cv_path_XGETTEXT+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7324else
7325 case "$XGETTEXT" in
7326 /*)
7327 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7328 ;;
7329 *)
7330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7331 for ac_dir in $PATH; do
7332 test -z "$ac_dir" && ac_dir=.
7333 if test -f $ac_dir/$ac_word; then
7334 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7335 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7336 break
7337 fi
7338 fi
7339 done
7340 IFS="$ac_save_ifs"
7341 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7342 ;;
7343esac
7344fi
7345XGETTEXT="$ac_cv_path_XGETTEXT"
7346if test -n "$XGETTEXT"; then
979273e3
NN
7347 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7348echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7349else
979273e3
NN
7350 echo "$as_me:$LINENO: result: no" >&5
7351echo "${ECHO_T}no" >&6
252b5132
RH
7352fi
7353
979273e3
NN
7354 cat >conftest.$ac_ext <<_ACEOF
7355/* confdefs.h. */
7356_ACEOF
7357cat confdefs.h >>conftest.$ac_ext
7358cat >>conftest.$ac_ext <<_ACEOF
7359/* end confdefs.h. */
252b5132 7360
979273e3
NN
7361int
7362main ()
7363{
252b5132
RH
7364extern int _nl_msg_cat_cntr;
7365 return _nl_msg_cat_cntr
979273e3
NN
7366 ;
7367 return 0;
7368}
7369_ACEOF
7370rm -f conftest.$ac_objext conftest$ac_exeext
7371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7372 (eval $ac_link) 2>conftest.er1
7373 ac_status=$?
7374 grep -v '^ *+' conftest.er1 >conftest.err
7375 rm -f conftest.er1
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } &&
7379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; } &&
7385 { ac_try='test -s conftest$ac_exeext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
252b5132
RH
7391 CATOBJEXT=.gmo
7392 DATADIRNAME=share
7393else
979273e3
NN
7394 echo "$as_me: failed program was:" >&5
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
7397CATOBJEXT=.mo
252b5132
RH
7398 DATADIRNAME=lib
7399fi
979273e3
NN
7400rm -f conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7402 INSTOBJEXT=.mo
7403 fi
7404 fi
979273e3 7405
252b5132
RH
7406fi
7407
7408
979273e3
NN
7409
7410
252b5132
RH
7411 if test "$CATOBJEXT" = "NONE"; then
7412 nls_cv_use_gnu_gettext=yes
7413 fi
7414 fi
7415
7416 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7417 INTLOBJS="\$(GETTOBJS)"
7418 # Extract the first word of "msgfmt", so it can be a program name with args.
7419set dummy msgfmt; ac_word=$2
979273e3
NN
7420echo "$as_me:$LINENO: checking for $ac_word" >&5
7421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7422if test "${ac_cv_path_MSGFMT+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7424else
7425 case "$MSGFMT" in
7426 /*)
7427 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7428 ;;
7429 *)
7430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7431 for ac_dir in $PATH; do
7432 test -z "$ac_dir" && ac_dir=.
7433 if test -f $ac_dir/$ac_word; then
7434 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7435 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7436 break
7437 fi
7438 fi
7439 done
7440 IFS="$ac_save_ifs"
7441 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7442 ;;
7443esac
7444fi
7445MSGFMT="$ac_cv_path_MSGFMT"
7446if test -n "$MSGFMT"; then
979273e3
NN
7447 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7448echo "${ECHO_T}$MSGFMT" >&6
252b5132 7449else
979273e3
NN
7450 echo "$as_me:$LINENO: result: no" >&5
7451echo "${ECHO_T}no" >&6
252b5132
RH
7452fi
7453
7454 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7455set dummy gmsgfmt; ac_word=$2
979273e3
NN
7456echo "$as_me:$LINENO: checking for $ac_word" >&5
7457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7458if test "${ac_cv_path_GMSGFMT+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7460else
979273e3
NN
7461 case $GMSGFMT in
7462 [\\/]* | ?:[\\/]*)
252b5132
RH
7463 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7464 ;;
252b5132 7465 *)
979273e3
NN
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477done
7478done
7479
252b5132
RH
7480 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7481 ;;
7482esac
7483fi
979273e3
NN
7484GMSGFMT=$ac_cv_path_GMSGFMT
7485
252b5132 7486if test -n "$GMSGFMT"; then
979273e3
NN
7487 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7488echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7489else
979273e3
NN
7490 echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6
252b5132
RH
7492fi
7493
7494 # Extract the first word of "xgettext", so it can be a program name with args.
7495set dummy xgettext; ac_word=$2
979273e3
NN
7496echo "$as_me:$LINENO: checking for $ac_word" >&5
7497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7498if test "${ac_cv_path_XGETTEXT+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7500else
7501 case "$XGETTEXT" in
7502 /*)
7503 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7504 ;;
7505 *)
7506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7507 for ac_dir in $PATH; do
7508 test -z "$ac_dir" && ac_dir=.
7509 if test -f $ac_dir/$ac_word; then
7510 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7511 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7512 break
7513 fi
7514 fi
7515 done
7516 IFS="$ac_save_ifs"
7517 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7518 ;;
7519esac
7520fi
7521XGETTEXT="$ac_cv_path_XGETTEXT"
7522if test -n "$XGETTEXT"; then
979273e3
NN
7523 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7524echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7525else
979273e3
NN
7526 echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6
252b5132
RH
7528fi
7529
979273e3 7530
252b5132
RH
7531 USE_INCLUDED_LIBINTL=yes
7532 CATOBJEXT=.gmo
7533 INSTOBJEXT=.mo
7534 DATADIRNAME=share
7535 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7536 INTLLIBS=$INTLDEPS
7537 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7538 nls_cv_header_intl=libintl.h
7539 nls_cv_header_libgt=libgettext.h
7540 fi
7541
7542 if test "$XGETTEXT" != ":"; then
7543 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7544 : ;
7545 else
979273e3
NN
7546 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7547echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
7548 XGETTEXT=":"
7549 fi
7550 fi
7551
7552 # We need to process the po/ directory.
7553 POSUB=po
7554 else
7555 DATADIRNAME=share
7556 nls_cv_header_intl=libintl.h
7557 nls_cv_header_libgt=libgettext.h
7558 fi
7559
7560 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7561 # because some of the sources are only built for this goal.
7562 if test "$PACKAGE" = gettext; then
7563 USE_NLS=yes
7564 USE_INCLUDED_LIBINTL=yes
7565 fi
7566
7567 for lang in $ALL_LINGUAS; do
7568 GMOFILES="$GMOFILES $lang.gmo"
7569 POFILES="$POFILES $lang.po"
7570 done
7571
979273e3
NN
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
252b5132
RH
7584
7585 if test "x$CATOBJEXT" != "x"; then
7586 if test "x$ALL_LINGUAS" = "x"; then
7587 LINGUAS=
7588 else
979273e3
NN
7589 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7590echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
7591 NEW_LINGUAS=
7592 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7593 case "$ALL_LINGUAS" in
7594 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7595 esac
7596 done
7597 LINGUAS=$NEW_LINGUAS
979273e3
NN
7598 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7599echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
7600 fi
7601
7602 if test -n "$LINGUAS"; then
7603 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7604 fi
7605 fi
7606
7607 if test $ac_cv_header_locale_h = yes; then
7608 INCLUDE_LOCALE_H="#include <locale.h>"
7609 else
7610 INCLUDE_LOCALE_H="\
7611/* The system does not provide the header <locale.h>. Take care yourself. */"
7612 fi
979273e3 7613
252b5132
RH
7614
7615 if test -f $srcdir/po2tbl.sed.in; then
7616 if test "$CATOBJEXT" = ".cat"; then
979273e3
NN
7617 if test "${ac_cv_header_linux_version_h+set}" = set; then
7618 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7619echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7620if test "${ac_cv_header_linux_version_h+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622fi
7623echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7624echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7625else
7626 # Is the header compilable?
7627echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7628echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7629cat >conftest.$ac_ext <<_ACEOF
7630/* confdefs.h. */
7631_ACEOF
7632cat confdefs.h >>conftest.$ac_ext
7633cat >>conftest.$ac_ext <<_ACEOF
7634/* end confdefs.h. */
7635$ac_includes_default
252b5132 7636#include <linux/version.h>
979273e3
NN
7637_ACEOF
7638rm -f conftest.$ac_objext
7639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640 (eval $ac_compile) 2>conftest.er1
7641 ac_status=$?
7642 grep -v '^ *+' conftest.er1 >conftest.err
7643 rm -f conftest.er1
7644 cat conftest.err >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } &&
7647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 ac_header_compiler=yes
7660else
7661 echo "$as_me: failed program was:" >&5
7662sed 's/^/| /' conftest.$ac_ext >&5
7663
7664ac_header_compiler=no
7665fi
7666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7668echo "${ECHO_T}$ac_header_compiler" >&6
7669
7670# Is the header present?
7671echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7672echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7673cat >conftest.$ac_ext <<_ACEOF
7674/* confdefs.h. */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h. */
7679#include <linux/version.h>
7680_ACEOF
7681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } >/dev/null; then
7689 if test -s conftest.err; then
7690 ac_cpp_err=$ac_c_preproc_warn_flag
7691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7692 else
7693 ac_cpp_err=
7694 fi
252b5132 7695else
979273e3 7696 ac_cpp_err=yes
252b5132 7697fi
979273e3
NN
7698if test -z "$ac_cpp_err"; then
7699 ac_header_preproc=yes
7700else
7701 echo "$as_me: failed program was:" >&5
7702sed 's/^/| /' conftest.$ac_ext >&5
7703
7704 ac_header_preproc=no
7705fi
7706rm -f conftest.err conftest.$ac_ext
7707echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7708echo "${ECHO_T}$ac_header_preproc" >&6
7709
7710# So? What about this header?
7711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7712 yes:no: )
7713 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7714echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7715 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7716echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7717 ac_header_preproc=yes
7718 ;;
7719 no:yes:* )
7720 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7721echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7722 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7723echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
7724 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7725echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7726 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
7727echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7728 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7729echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
7730 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
7731echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
7732 (
7733 cat <<\_ASBOX
7734## ------------------------------------------ ##
7735## Report this to the AC_PACKAGE_NAME lists. ##
7736## ------------------------------------------ ##
7737_ASBOX
7738 ) |
7739 sed "s/^/$as_me: WARNING: /" >&2
7740 ;;
7741esac
7742echo "$as_me:$LINENO: checking for linux/version.h" >&5
7743echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7744if test "${ac_cv_header_linux_version_h+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747 ac_cv_header_linux_version_h=$ac_header_preproc
7748fi
7749echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7750echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7751
252b5132 7752fi
979273e3 7753if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
7754 msgformat=linux
7755else
979273e3 7756 msgformat=xopen
252b5132
RH
7757fi
7758
7759
979273e3 7760
252b5132
RH
7761 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
7762 fi
7763 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7764 $srcdir/po2tbl.sed.in > po2tbl.sed
7765 fi
7766
7767 if test "$PACKAGE" = "gettext"; then
7768 GT_NO="#NO#"
7769 GT_YES=
7770 else
7771 GT_NO=
7772 GT_YES="#YES#"
7773 fi
979273e3
NN
7774
7775
252b5132
RH
7776
7777 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
979273e3 7778
252b5132
RH
7779
7780 l=
979273e3 7781
252b5132 7782
fcd8210c 7783 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
7784 test -d po || mkdir po
7785 if test "x$srcdir" != "x."; then
7786 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7787 posrcprefix="$srcdir/"
7788 else
7789 posrcprefix="../$srcdir/"
7790 fi
7791 else
7792 posrcprefix="../"
7793 fi
7794 rm -f po/POTFILES
7795 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7796 < $srcdir/po/POTFILES.in > po/POTFILES
7797 fi
979273e3 7798
252b5132
RH
7799
7800. ${srcdir}/../bfd/configure.host
7801
b6849f55
NC
7802# Put a plausible default for CC_FOR_BUILD in Makefile.
7803if test -z "$CC_FOR_BUILD"; then
7804 if test "x$cross_compiling" = "xno"; then
7805 CC_FOR_BUILD='$(CC)'
7806 else
7807 CC_FOR_BUILD=gcc
7808 fi
7809fi
7810
7811# Also set EXEEXT_FOR_BUILD.
7812if test "x$cross_compiling" = "xno"; then
7813 EXEEXT_FOR_BUILD='$(EXEEXT)'
7814else
979273e3
NN
7815 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7816echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7817if test "${bfd_cv_build_exeext+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
b6849f55
NC
7819else
7820 rm -f conftest*
7821 echo 'int main () { return 0; }' > conftest.c
7822 bfd_cv_build_exeext=
7823 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7824 for file in conftest.*; do
7825 case $file in
7826 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7827 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7828 esac
7829 done
7830 rm -f conftest*
7831 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7832fi
979273e3
NN
7833echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7834echo "${ECHO_T}$bfd_cv_build_exeext" >&6
b6849f55
NC
7835 EXEEXT_FOR_BUILD=""
7836 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7837fi
7838
7839
252b5132
RH
7840
7841# Find a good install program. We prefer a C program (faster),
7842# so one script is as good as another. But avoid the broken or
7843# incompatible versions:
7844# SysV /etc/install, /usr/sbin/install
7845# SunOS /usr/etc/install
7846# IRIX /sbin/install
7847# AIX /bin/install
979273e3 7848# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
7849# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7850# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7851# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 7852# OS/2's system install, which has a completely different semantic
252b5132 7853# ./install, which can be erroneously created by make from ./install.sh.
979273e3
NN
7854echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7855echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 7856if test -z "$INSTALL"; then
979273e3
NN
7857if test "${ac_cv_path_install+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7859else
979273e3
NN
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861for as_dir in $PATH
7862do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 # Account for people who put trailing slashes in PATH elements.
7866case $as_dir/ in
7867 ./ | .// | /cC/* | \
7868 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7869 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7870 /usr/ucb/* ) ;;
7871 *)
7872 # OSF1 and SCO ODT 3.0 have their own names for install.
7873 # Don't use installbsd from OSF since it installs stuff as root
7874 # by default.
7875 for ac_prog in ginstall scoinst install; do
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 7878 if test $ac_prog = install &&
979273e3 7879 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
7880 # AIX install. It has an incompatible calling convention.
7881 :
979273e3
NN
7882 elif test $ac_prog = install &&
7883 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7884 # program-specific install script used by HP pwplus--don't use.
7885 :
252b5132 7886 else
979273e3
NN
7887 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7888 break 3
252b5132
RH
7889 fi
7890 fi
7891 done
979273e3
NN
7892 done
7893 ;;
7894esac
7895done
7896
252b5132
RH
7897
7898fi
7899 if test "${ac_cv_path_install+set}" = set; then
979273e3 7900 INSTALL=$ac_cv_path_install
252b5132
RH
7901 else
7902 # As a last resort, use the slow shell script. We don't cache a
7903 # path for INSTALL within a source directory, because that will
7904 # break other packages using the cache if that directory is
7905 # removed, or if the path is relative.
979273e3 7906 INSTALL=$ac_install_sh
252b5132
RH
7907 fi
7908fi
979273e3
NN
7909echo "$as_me:$LINENO: result: $INSTALL" >&5
7910echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
7911
7912# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7913# It thinks the first close brace ends the variable substitution.
7914test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7915
979273e3 7916test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
7917
7918test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7919
7920
979273e3
NN
7921
7922
7923
7924for ac_header in string.h strings.h stdlib.h
252b5132 7925do
979273e3
NN
7926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7927if eval "test \"\${$as_ac_Header+set}\" = set"; then
7928 echo "$as_me:$LINENO: checking for $ac_header" >&5
7929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7930if eval "test \"\${$as_ac_Header+set}\" = set"; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932fi
7933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7935else
7936 # Is the header compilable?
7937echo "$as_me:$LINENO: checking $ac_header usability" >&5
7938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7939cat >conftest.$ac_ext <<_ACEOF
7940/* confdefs.h. */
7941_ACEOF
7942cat confdefs.h >>conftest.$ac_ext
7943cat >>conftest.$ac_ext <<_ACEOF
7944/* end confdefs.h. */
7945$ac_includes_default
7946#include <$ac_header>
7947_ACEOF
7948rm -f conftest.$ac_objext
7949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7950 (eval $ac_compile) 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 (eval $ac_try) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest.$ac_objext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 ac_header_compiler=yes
7970else
7971 echo "$as_me: failed program was:" >&5
7972sed 's/^/| /' conftest.$ac_ext >&5
7973
7974ac_header_compiler=no
7975fi
7976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7977echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7978echo "${ECHO_T}$ac_header_compiler" >&6
7979
7980# Is the header present?
7981echo "$as_me:$LINENO: checking $ac_header presence" >&5
7982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7983cat >conftest.$ac_ext <<_ACEOF
7984/* confdefs.h. */
7985_ACEOF
7986cat confdefs.h >>conftest.$ac_ext
7987cat >>conftest.$ac_ext <<_ACEOF
7988/* end confdefs.h. */
7989#include <$ac_header>
7990_ACEOF
7991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7993 ac_status=$?
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } >/dev/null; then
7999 if test -s conftest.err; then
8000 ac_cpp_err=$ac_c_preproc_warn_flag
8001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8002 else
8003 ac_cpp_err=
8004 fi
252b5132 8005else
979273e3 8006 ac_cpp_err=yes
252b5132 8007fi
979273e3
NN
8008if test -z "$ac_cpp_err"; then
8009 ac_header_preproc=yes
8010else
8011 echo "$as_me: failed program was:" >&5
8012sed 's/^/| /' conftest.$ac_ext >&5
8013
8014 ac_header_preproc=no
252b5132 8015fi
979273e3
NN
8016rm -f conftest.err conftest.$ac_ext
8017echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8018echo "${ECHO_T}$ac_header_preproc" >&6
8019
8020# So? What about this header?
8021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8022 yes:no: )
8023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8024echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8026echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8027 ac_header_preproc=yes
8028 ;;
8029 no:yes:* )
8030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8035echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8037echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8041echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8042 (
8043 cat <<\_ASBOX
8044## ------------------------------------------ ##
8045## Report this to the AC_PACKAGE_NAME lists. ##
8046## ------------------------------------------ ##
8047_ASBOX
8048 ) |
8049 sed "s/^/$as_me: WARNING: /" >&2
8050 ;;
8051esac
8052echo "$as_me:$LINENO: checking for $ac_header" >&5
8053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8054if eval "test \"\${$as_ac_Header+set}\" = set"; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8056else
979273e3
NN
8057 eval "$as_ac_Header=\$ac_header_preproc"
8058fi
8059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8061
8062fi
8063if test `eval echo '${'$as_ac_Header'}'` = yes; then
8064 cat >>confdefs.h <<_ACEOF
8065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8066_ACEOF
8067
252b5132 8068fi
979273e3 8069
252b5132
RH
8070done
8071
8072
6e31aea3
BE
8073cgen_maint=no
8074cgendir='$(srcdir)/../cgen'
8075
8076# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
8077if test "${enable_cgen_maint+set}" = set; then
8078 enableval="$enable_cgen_maint"
8079 case "${enableval}" in
8080 yes) cgen_maint=yes ;;
8081 no) cgen_maint=no ;;
8082 *)
8083 # argument is cgen install directory (not implemented yet).
8084 # Having a `share' directory might be more appropriate for the .scm,
8085 # .cpu, etc. files.
8086 cgen_maint=yes
8087 cgendir=${cgen_maint}/lib/cgen
8088 ;;
8089esac
979273e3 8090fi;
6e31aea3
BE
8091
8092if test x${cgen_maint} = xyes; then
8093 CGEN_MAINT_TRUE=
8094 CGEN_MAINT_FALSE='#'
8095else
8096 CGEN_MAINT_TRUE='#'
8097 CGEN_MAINT_FALSE=
8098fi
8099
252b5132
RH
8100
8101using_cgen=no
8102
8103# Horrible hacks to build DLLs on Windows.
8104WIN32LDFLAGS=
8105WIN32LIBADD=
8106case "${host}" in
8107*-*-cygwin*)
8108 if test "$enable_shared" = "yes"; then
8109 WIN32LDFLAGS="-no-undefined"
8110 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
8111 fi
8112 ;;
8113esac
8114
8115
8116
8117# target-specific stuff:
8118
8119# Canonicalize the secondary target names.
8120if test -n "$enable_targets" ; then
8121 for targ in `echo $enable_targets | sed 's/,/ /g'`
8122 do
6d83c84b 8123 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
8124 if test -n "$result" ; then
8125 canon_targets="$canon_targets $result"
8126 else
8127 # Allow targets that config.sub doesn't recognize, like "all".
8128 canon_targets="$canon_targets $targ"
8129 fi
8130 done
8131fi
8132
8133all_targets=false
8134selarchs=
8135for targ in $target $canon_targets
8136do
8137 if test "x$targ" = "xall" ; then
8138 all_targets=true
8139 else
8140 . $srcdir/../bfd/config.bfd
8141 selarchs="$selarchs $targ_archs"
8142 fi
979273e3 8143done
252b5132
RH
8144
8145# Utility var, documents generic cgen support files.
8146
8147cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
8148
8149# We don't do any links based on the target system, just makefile config.
8150
8151if test x${all_targets} = xfalse ; then
8152
8153 # Target architecture .o files.
8154 ta=
8155
8156 for arch in $selarchs
8157 do
8158 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
8159 archdefs="$archdefs -DARCH_$ad"
8160 case "$arch" in
8161 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
8162 bfd_alliant_arch) ;;
8163 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 8164 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 8165 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 8166 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
252b5132 8167 bfd_convex_arch) ;;
6c95a37f 8168 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
1fe1f39c 8169 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
252b5132
RH
8170 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
8171 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 8172 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
252b5132
RH
8173 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
8174 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
8175 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
8176 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
5b93d8bb 8177 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
252b5132 8178 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
9d751335 8179 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
252b5132 8180 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
800eeca4 8181 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 8182 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
47b1a55a 8183 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
252b5132 8184 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
8185 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8186 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
252b5132
RH
8187 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
8188 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
8189 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
8190 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3c3bdf30 8191 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
8192 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
8193 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
2469cfa2 8194 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
252b5132 8195 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
87e6d782 8196 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
3b16e843 8197 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
e135f41b 8198 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
1e608f98 8199 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 8200 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 8201 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
5dd0794d 8202 bfd_pyramid_arch) ;;
252b5132
RH
8203 bfd_romp_arch) ;;
8204 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 8205 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
09919455 8206 bfd_sh_arch)
d28847ce 8207 # We can't decide what we want just from the CPU family.
e8b872bb
AO
8208 # We want SH5 support unless a specific version of sh is
8209 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
ca0f2ed6
HPN
8210 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
8211 for t in $target $canon_targets; do
8212 case $t in
5b0e55b6 8213 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
942e7dd9 8214 sh-*-linux* | shl-*-linux*)
d28847ce 8215 ta="$ta sh64-dis.lo sh64-opc.lo"
ca0f2ed6
HPN
8216 archdefs="$archdefs -DINCLUDE_SHMEDIA"
8217 break;;
8218 esac;
8219 done
09919455 8220 ta="$ta sh-dis.lo" ;;
252b5132
RH
8221 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
8222 bfd_tahoe_arch) ;;
8223 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
026df7c5 8224 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 8225 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
252b5132
RH
8226 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
8227 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8228 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8229 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8230 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
8231 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
8232 bfd_we32k_arch) ;;
93fbbb04 8233 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 8234 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
252b5132 8235 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
fd3c93d5 8236 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
8237
8238 "") ;;
979273e3
NN
8239 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
8240echo "$as_me: error: *** unknown target architecture $arch" >&2;}
8241 { (exit 1); exit 1; }; } ;;
252b5132
RH
8242 esac
8243 done
8244
8245 if test $using_cgen = yes ; then
8246 ta="$ta $cgen_files"
8247 fi
8248
8249 # Weed out duplicate .o files.
8250 f=""
8251 for i in $ta ; do
8252 case " $f " in
8253 *" $i "*) ;;
8254 *) f="$f $i" ;;
8255 esac
8256 done
8257 ta="$f"
8258
8259 # And duplicate -D flags.
8260 f=""
8261 for i in $archdefs ; do
8262 case " $f " in
8263 *" $i "*) ;;
8264 *) f="$f $i" ;;
8265 esac
8266 done
8267 archdefs="$f"
8268
8269 BFD_MACHINES="$ta"
8270
8271else # all_targets is true
8272 archdefs=-DARCH_all
8273 BFD_MACHINES='$(ALL_MACHINES)'
8274fi
8275
8276
8277
8278
979273e3
NN
8279 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
8280
8281 ac_config_commands="$ac_config_commands default"
8282
8283cat >confcache <<\_ACEOF
252b5132
RH
8284# This file is a shell script that caches the results of configure
8285# tests run on this system so they can be shared between configure
979273e3
NN
8286# scripts and configure runs, see configure's option --config-cache.
8287# It is not useful on other systems. If it contains results you don't
8288# want to keep, you may remove or edit it.
252b5132 8289#
979273e3
NN
8290# config.status only pays attention to the cache file if you give it
8291# the --recheck option to rerun configure.
252b5132 8292#
979273e3
NN
8293# `ac_cv_env_foo' variables (set or unset) will be overridden when
8294# loading this file, other *unset* `ac_cv_foo' will be assigned the
8295# following values.
8296
8297_ACEOF
8298
252b5132
RH
8299# The following way of writing the cache mishandles newlines in values,
8300# but we know of no workaround that is simple, portable, and efficient.
8301# So, don't put newlines in cache variables' values.
8302# Ultrix sh set writes to stderr and can't be redirected directly,
8303# and sets the high bit in the cache file unless we assign to the vars.
979273e3
NN
8304{
8305 (set) 2>&1 |
8306 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8307 *ac_space=\ *)
8308 # `set' does not quote correctly, so add quotes (double-quote
8309 # substitution turns \\\\ into \\, and sed turns \\ into \).
8310 sed -n \
8311 "s/'/'\\\\''/g;
8312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8313 ;;
8314 *)
8315 # `set' quotes correctly as required by POSIX, so do not add quotes.
8316 sed -n \
8317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8318 ;;
8319 esac;
8320} |
8321 sed '
8322 t clear
8323 : clear
8324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8325 t end
8326 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8327 : end' >>confcache
8328if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 8329 if test -w $cache_file; then
979273e3
NN
8330 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8331 cat confcache >$cache_file
252b5132
RH
8332 else
8333 echo "not updating unwritable cache $cache_file"
8334 fi
8335fi
8336rm -f confcache
8337
252b5132
RH
8338test "x$prefix" = xNONE && prefix=$ac_default_prefix
8339# Let make expand exec_prefix.
8340test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8341
979273e3
NN
8342# VPATH may cause trouble with some makes, so we remove $(srcdir),
8343# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8344# trailing colons and then remove the whole line if VPATH becomes empty
8345# (actually we leave an empty line to preserve line numbers).
252b5132 8346if test "x$srcdir" = x.; then
979273e3
NN
8347 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8348s/:*\$(srcdir):*/:/;
8349s/:*\${srcdir}:*/:/;
8350s/:*@srcdir@:*/:/;
8351s/^\([^=]*=[ ]*\):*/\1/;
8352s/:*$//;
8353s/^[^=]*=[ ]*$//;
8354}'
252b5132
RH
8355fi
8356
252b5132
RH
8357DEFS=-DHAVE_CONFIG_H
8358
979273e3
NN
8359ac_libobjs=
8360ac_ltlibobjs=
8361for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8362 # 1. Remove the extension, and $U if already installed.
8363 ac_i=`echo "$ac_i" |
8364 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8365 # 2. Add them.
8366 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8367 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8368done
8369LIBOBJS=$ac_libobjs
252b5132 8370
979273e3
NN
8371LTLIBOBJS=$ac_ltlibobjs
8372
8373
8374
8375: ${CONFIG_STATUS=./config.status}
8376ac_clean_files_save=$ac_clean_files
8377ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8378{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8379echo "$as_me: creating $CONFIG_STATUS" >&6;}
8380cat >$CONFIG_STATUS <<_ACEOF
8381#! $SHELL
8382# Generated by $as_me.
252b5132 8383# Run this file to recreate the current configuration.
252b5132 8384# Compiler output produced by configure, useful for debugging
979273e3 8385# configure, is in config.log if it exists.
252b5132 8386
979273e3
NN
8387debug=false
8388ac_cs_recheck=false
8389ac_cs_silent=false
8390SHELL=\${CONFIG_SHELL-$SHELL}
8391_ACEOF
8392
8393cat >>$CONFIG_STATUS <<\_ACEOF
8394## --------------------- ##
8395## M4sh Initialization. ##
8396## --------------------- ##
8397
8398# Be Bourne compatible
8399if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8400 emulate sh
8401 NULLCMD=:
8402 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8403 # is contrary to our usage. Disable this feature.
8404 alias -g '${1+"$@"}'='"$@"'
8405elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8406 set -o posix
8407fi
8408DUALCASE=1; export DUALCASE # for MKS sh
8409
8410# Support unset when possible.
8411if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8412 as_unset=unset
8413else
8414 as_unset=false
8415fi
8416
8417
8418# Work around bugs in pre-3.0 UWIN ksh.
8419$as_unset ENV MAIL MAILPATH
8420PS1='$ '
8421PS2='> '
8422PS4='+ '
8423
8424# NLS nuisances.
8425for as_var in \
8426 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8427 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8428 LC_TELEPHONE LC_TIME
252b5132 8429do
979273e3
NN
8430 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8431 eval $as_var=C; export $as_var
8432 else
8433 $as_unset $as_var
8434 fi
252b5132
RH
8435done
8436
979273e3
NN
8437# Required to use basename.
8438if expr a : '\(a\)' >/dev/null 2>&1; then
8439 as_expr=expr
8440else
8441 as_expr=false
8442fi
8443
8444if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8445 as_basename=basename
8446else
8447 as_basename=false
8448fi
252b5132 8449
252b5132 8450
979273e3
NN
8451# Name of the executable.
8452as_me=`$as_basename "$0" ||
8453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8454 X"$0" : 'X\(//\)$' \| \
8455 X"$0" : 'X\(/\)$' \| \
8456 . : '\(.\)' 2>/dev/null ||
8457echo X/"$0" |
8458 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8459 /^X\/\(\/\/\)$/{ s//\1/; q; }
8460 /^X\/\(\/\).*/{ s//\1/; q; }
8461 s/.*/./; q'`
252b5132 8462
252b5132 8463
979273e3
NN
8464# PATH needs CR, and LINENO needs CR and PATH.
8465# Avoid depending upon Character Ranges.
8466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8469as_cr_digits='0123456789'
8470as_cr_alnum=$as_cr_Letters$as_cr_digits
8471
8472# The user is always right.
8473if test "${PATH_SEPARATOR+set}" != set; then
8474 echo "#! /bin/sh" >conf$$.sh
8475 echo "exit 0" >>conf$$.sh
8476 chmod +x conf$$.sh
8477 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8478 PATH_SEPARATOR=';'
252b5132 8479 else
979273e3
NN
8480 PATH_SEPARATOR=:
8481 fi
8482 rm -f conf$$.sh
8483fi
8484
8485
8486 as_lineno_1=$LINENO
8487 as_lineno_2=$LINENO
8488 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8489 test "x$as_lineno_1" != "x$as_lineno_2" &&
8490 test "x$as_lineno_3" = "x$as_lineno_2" || {
8491 # Find who we are. Look in the path if we contain no path at all
8492 # relative or not.
8493 case $0 in
8494 *[\\/]* ) as_myself=$0 ;;
8495 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496for as_dir in $PATH
8497do
8498 IFS=$as_save_IFS
8499 test -z "$as_dir" && as_dir=.
8500 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8501done
8502
8503 ;;
8504 esac
8505 # We did not find ourselves, most probably we were run as `sh COMMAND'
8506 # in which case we are not to be found in the path.
8507 if test "x$as_myself" = x; then
8508 as_myself=$0
8509 fi
8510 if test ! -f "$as_myself"; then
8511 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8512echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8513 { (exit 1); exit 1; }; }
252b5132 8514 fi
979273e3
NN
8515 case $CONFIG_SHELL in
8516 '')
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for as_base in sh bash ksh sh5; do
8523 case $as_dir in
8524 /*)
8525 if ("$as_dir/$as_base" -c '
8526 as_lineno_1=$LINENO
8527 as_lineno_2=$LINENO
8528 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8529 test "x$as_lineno_1" != "x$as_lineno_2" &&
8530 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8531 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8532 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8533 CONFIG_SHELL=$as_dir/$as_base
8534 export CONFIG_SHELL
8535 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8536 fi;;
8537 esac
8538 done
8539done
8540;;
8541 esac
8542
8543 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8544 # uniformly replaced by the line number. The first 'sed' inserts a
8545 # line-number line before each line; the second 'sed' does the real
8546 # work. The second script uses 'N' to pair each line-number line
8547 # with the numbered line, and appends trailing '-' during
8548 # substitution so that $LINENO is not a special case at line end.
8549 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8550 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8551 sed '=' <$as_myself |
8552 sed '
8553 N
8554 s,$,-,
8555 : loop
8556 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8557 t loop
8558 s,-$,,
8559 s,^['$as_cr_digits']*\n,,
8560 ' >$as_me.lineno &&
8561 chmod +x $as_me.lineno ||
8562 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8563echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8564 { (exit 1); exit 1; }; }
8565
8566 # Don't try to exec as it changes $[0], causing all sort of problems
8567 # (the dirname of $[0] is not the place where we might find the
8568 # original and so on. Autoconf is especially sensible to this).
8569 . ./$as_me.lineno
8570 # Exit status is that of the last command.
8571 exit
8572}
8573
8574
8575case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8576 *c*,-n*) ECHO_N= ECHO_C='
8577' ECHO_T=' ' ;;
8578 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8579 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8580esac
8581
8582if expr a : '\(a\)' >/dev/null 2>&1; then
8583 as_expr=expr
8584else
8585 as_expr=false
8586fi
8587
8588rm -f conf$$ conf$$.exe conf$$.file
8589echo >conf$$.file
8590if ln -s conf$$.file conf$$ 2>/dev/null; then
8591 # We could just check for DJGPP; but this test a) works b) is more generic
8592 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8593 if test -f conf$$.exe; then
8594 # Don't use ln at all; we don't have any links
8595 as_ln_s='cp -p'
252b5132 8596 else
979273e3 8597 as_ln_s='ln -s'
252b5132 8598 fi
979273e3
NN
8599elif ln conf$$.file conf$$ 2>/dev/null; then
8600 as_ln_s=ln
8601else
8602 as_ln_s='cp -p'
8603fi
8604rm -f conf$$ conf$$.exe conf$$.file
8605
8606if mkdir -p . 2>/dev/null; then
8607 as_mkdir_p=:
8608else
8609 test -d ./-p && rmdir ./-p
8610 as_mkdir_p=false
8611fi
8612
8613as_executable_p="test -f"
8614
8615# Sed expression to map a string onto a valid CPP name.
8616as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8617
8618# Sed expression to map a string onto a valid variable name.
8619as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8620
8621
8622# IFS
8623# We need space, tab and new line, in precisely that order.
8624as_nl='
8625'
8626IFS=" $as_nl"
8627
8628# CDPATH.
8629$as_unset CDPATH
8630
8631exec 6>&1
8632
8633# Open the log real soon, to keep \$[0] and so on meaningful, and to
8634# report actual input values of CONFIG_FILES etc. instead of their
8635# values after options handling. Logging --version etc. is OK.
8636exec 5>>config.log
8637{
8638 echo
8639 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8640## Running $as_me. ##
8641_ASBOX
8642} >&5
8643cat >&5 <<_CSEOF
8644
8645This file was extended by $as_me, which was
8646generated by GNU Autoconf 2.59. Invocation command line was
8647
8648 CONFIG_FILES = $CONFIG_FILES
8649 CONFIG_HEADERS = $CONFIG_HEADERS
8650 CONFIG_LINKS = $CONFIG_LINKS
8651 CONFIG_COMMANDS = $CONFIG_COMMANDS
8652 $ $0 $@
8653
8654_CSEOF
8655echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8656echo >&5
8657_ACEOF
8658
8659# Files that config.status was made for.
8660if test -n "$ac_config_files"; then
8661 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8662fi
8663
8664if test -n "$ac_config_headers"; then
8665 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8666fi
8667
8668if test -n "$ac_config_links"; then
8669 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8670fi
8671
8672if test -n "$ac_config_commands"; then
8673 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8674fi
8675
8676cat >>$CONFIG_STATUS <<\_ACEOF
8677
8678ac_cs_usage="\
8679\`$as_me' instantiates files from templates according to the
8680current configuration.
8681
8682Usage: $0 [OPTIONS] [FILE]...
8683
8684 -h, --help print this help, then exit
8685 -V, --version print version number, then exit
8686 -q, --quiet do not print progress messages
8687 -d, --debug don't remove temporary files
8688 --recheck update $as_me by reconfiguring in the same conditions
8689 --file=FILE[:TEMPLATE]
8690 instantiate the configuration file FILE
8691 --header=FILE[:TEMPLATE]
8692 instantiate the configuration header FILE
8693
8694Configuration files:
8695$config_files
8696
8697Configuration headers:
8698$config_headers
8699
8700Configuration commands:
8701$config_commands
8702
8703Report bugs to <bug-autoconf@gnu.org>."
8704_ACEOF
8705
8706cat >>$CONFIG_STATUS <<_ACEOF
8707ac_cs_version="\\
8708config.status
8709configured by $0, generated by GNU Autoconf 2.59,
8710 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8711
8712Copyright (C) 2003 Free Software Foundation, Inc.
8713This config.status script is free software; the Free Software Foundation
8714gives unlimited permission to copy, distribute and modify it."
8715srcdir=$srcdir
8716INSTALL="$INSTALL"
8717_ACEOF
8718
8719cat >>$CONFIG_STATUS <<\_ACEOF
8720# If no file are specified by the user, then we need to provide default
8721# value. By we need to know if files were specified by the user.
8722ac_need_defaults=:
8723while test $# != 0
8724do
8725 case $1 in
8726 --*=*)
8727 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8728 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8729 ac_shift=:
8730 ;;
8731 -*)
8732 ac_option=$1
8733 ac_optarg=$2
8734 ac_shift=shift
8735 ;;
8736 *) # This is not an option, so the user has probably given explicit
8737 # arguments.
8738 ac_option=$1
8739 ac_need_defaults=false;;
8740 esac
8741
8742 case $ac_option in
8743 # Handling of the options.
8744_ACEOF
8745cat >>$CONFIG_STATUS <<\_ACEOF
8746 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8747 ac_cs_recheck=: ;;
8748 --version | --vers* | -V )
8749 echo "$ac_cs_version"; exit 0 ;;
8750 --he | --h)
8751 # Conflict between --help and --header
8752 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8753Try \`$0 --help' for more information." >&5
8754echo "$as_me: error: ambiguous option: $1
8755Try \`$0 --help' for more information." >&2;}
8756 { (exit 1); exit 1; }; };;
8757 --help | --hel | -h )
8758 echo "$ac_cs_usage"; exit 0 ;;
8759 --debug | --d* | -d )
8760 debug=: ;;
8761 --file | --fil | --fi | --f )
8762 $ac_shift
8763 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8764 ac_need_defaults=false;;
8765 --header | --heade | --head | --hea )
8766 $ac_shift
8767 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8768 ac_need_defaults=false;;
8769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8770 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8771 ac_cs_silent=: ;;
8772
8773 # This is an error.
8774 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8775Try \`$0 --help' for more information." >&5
8776echo "$as_me: error: unrecognized option: $1
8777Try \`$0 --help' for more information." >&2;}
8778 { (exit 1); exit 1; }; } ;;
8779
8780 *) ac_config_targets="$ac_config_targets $1" ;;
8781
8782 esac
8783 shift
252b5132 8784done
979273e3
NN
8785
8786ac_configure_extra_args=
8787
8788if $ac_cs_silent; then
8789 exec 6>/dev/null
8790 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 8791fi
252b5132 8792
979273e3
NN
8793_ACEOF
8794cat >>$CONFIG_STATUS <<_ACEOF
8795if \$ac_cs_recheck; then
8796 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8797 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8798fi
252b5132 8799
979273e3
NN
8800_ACEOF
8801
8802cat >>$CONFIG_STATUS <<_ACEOF
8803#
8804# INIT-COMMANDS section.
8805#
8806
8807
8808
8809
8810_ACEOF
8811
8812
8813
8814cat >>$CONFIG_STATUS <<\_ACEOF
8815for ac_config_target in $ac_config_targets
8816do
8817 case "$ac_config_target" in
8818 # Handling of arguments.
8819 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8820 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8821 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8822 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8823 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8824 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8825echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8826 { (exit 1); exit 1; }; };;
252b5132 8827 esac
979273e3 8828done
252b5132 8829
979273e3
NN
8830# If the user did not use the arguments to specify the items to instantiate,
8831# then the envvar interface is used. Set only those that are not.
8832# We use the long form for the default assignment because of an extremely
8833# bizarre bug on SunOS 4.1.3.
8834if $ac_need_defaults; then
8835 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8836 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8837 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8838fi
8839
8840# Have a temporary directory for convenience. Make it in the build tree
8841# simply because there is no reason to put it here, and in addition,
8842# creating and moving files from /tmp can sometimes cause problems.
8843# Create a temporary directory, and hook for its removal unless debugging.
8844$debug ||
8845{
8846 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8847 trap '{ (exit 1); exit 1; }' 1 2 13 15
8848}
252b5132 8849
979273e3
NN
8850# Create a (secure) tmp directory for tmp files.
8851
8852{
8853 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8854 test -n "$tmp" && test -d "$tmp"
8855} ||
8856{
8857 tmp=./confstat$$-$RANDOM
8858 (umask 077 && mkdir $tmp)
8859} ||
8860{
8861 echo "$me: cannot create a temporary directory in ." >&2
8862 { (exit 1); exit 1; }
8863}
8864
8865_ACEOF
8866
8867cat >>$CONFIG_STATUS <<_ACEOF
8868
8869#
8870# CONFIG_FILES section.
8871#
8872
8873# No need to generate the scripts if there are no CONFIG_FILES.
8874# This happens for instance when ./config.status config.h
8875if test -n "\$CONFIG_FILES"; then
8876 # Protect against being on the right side of a sed subst in config.status.
8877 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8878 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8879s,@SHELL@,$SHELL,;t t
8880s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8881s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8882s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8883s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8884s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8885s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8886s,@exec_prefix@,$exec_prefix,;t t
8887s,@prefix@,$prefix,;t t
8888s,@program_transform_name@,$program_transform_name,;t t
8889s,@bindir@,$bindir,;t t
8890s,@sbindir@,$sbindir,;t t
8891s,@libexecdir@,$libexecdir,;t t
8892s,@datadir@,$datadir,;t t
8893s,@sysconfdir@,$sysconfdir,;t t
8894s,@sharedstatedir@,$sharedstatedir,;t t
8895s,@localstatedir@,$localstatedir,;t t
8896s,@libdir@,$libdir,;t t
8897s,@includedir@,$includedir,;t t
8898s,@oldincludedir@,$oldincludedir,;t t
8899s,@infodir@,$infodir,;t t
8900s,@mandir@,$mandir,;t t
8901s,@build_alias@,$build_alias,;t t
8902s,@host_alias@,$host_alias,;t t
8903s,@target_alias@,$target_alias,;t t
8904s,@DEFS@,$DEFS,;t t
8905s,@ECHO_C@,$ECHO_C,;t t
8906s,@ECHO_N@,$ECHO_N,;t t
8907s,@ECHO_T@,$ECHO_T,;t t
8908s,@LIBS@,$LIBS,;t t
8909s,@build@,$build,;t t
8910s,@build_cpu@,$build_cpu,;t t
8911s,@build_vendor@,$build_vendor,;t t
8912s,@build_os@,$build_os,;t t
8913s,@host@,$host,;t t
8914s,@host_cpu@,$host_cpu,;t t
8915s,@host_vendor@,$host_vendor,;t t
8916s,@host_os@,$host_os,;t t
8917s,@target@,$target,;t t
8918s,@target_cpu@,$target_cpu,;t t
8919s,@target_vendor@,$target_vendor,;t t
8920s,@target_os@,$target_os,;t t
8921s,@CC@,$CC,;t t
8922s,@CFLAGS@,$CFLAGS,;t t
8923s,@LDFLAGS@,$LDFLAGS,;t t
8924s,@CPPFLAGS@,$CPPFLAGS,;t t
8925s,@ac_ct_CC@,$ac_ct_CC,;t t
8926s,@EXEEXT@,$EXEEXT,;t t
8927s,@OBJEXT@,$OBJEXT,;t t
8928s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8929s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8930s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8931s,@PACKAGE@,$PACKAGE,;t t
8932s,@VERSION@,$VERSION,;t t
8933s,@ACLOCAL@,$ACLOCAL,;t t
8934s,@AUTOCONF@,$AUTOCONF,;t t
8935s,@AUTOMAKE@,$AUTOMAKE,;t t
8936s,@AUTOHEADER@,$AUTOHEADER,;t t
8937s,@MAKEINFO@,$MAKEINFO,;t t
8938s,@SET_MAKE@,$SET_MAKE,;t t
8939s,@AR@,$AR,;t t
8940s,@ac_ct_AR@,$ac_ct_AR,;t t
8941s,@RANLIB@,$RANLIB,;t t
8942s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8943s,@LN_S@,$LN_S,;t t
8944s,@STRIP@,$STRIP,;t t
8945s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8946s,@LIBTOOL@,$LIBTOOL,;t t
8947s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8948s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8949s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8950s,@MAINT@,$MAINT,;t t
8951s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
8952s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
8953s,@bfdlibdir@,$bfdlibdir,;t t
8954s,@bfdincludedir@,$bfdincludedir,;t t
8955s,@CPP@,$CPP,;t t
8956s,@EGREP@,$EGREP,;t t
8957s,@ALLOCA@,$ALLOCA,;t t
8958s,@USE_NLS@,$USE_NLS,;t t
8959s,@MSGFMT@,$MSGFMT,;t t
8960s,@GMSGFMT@,$GMSGFMT,;t t
8961s,@XGETTEXT@,$XGETTEXT,;t t
8962s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8963s,@CATALOGS@,$CATALOGS,;t t
8964s,@CATOBJEXT@,$CATOBJEXT,;t t
8965s,@DATADIRNAME@,$DATADIRNAME,;t t
8966s,@GMOFILES@,$GMOFILES,;t t
8967s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8968s,@INTLDEPS@,$INTLDEPS,;t t
8969s,@INTLLIBS@,$INTLLIBS,;t t
8970s,@INTLOBJS@,$INTLOBJS,;t t
8971s,@POFILES@,$POFILES,;t t
8972s,@POSUB@,$POSUB,;t t
8973s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8974s,@GT_NO@,$GT_NO,;t t
8975s,@GT_YES@,$GT_YES,;t t
8976s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8977s,@l@,$l,;t t
8978s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8979s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
8980s,@HDEFINES@,$HDEFINES,;t t
8981s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
8982s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
8983s,@cgendir@,$cgendir,;t t
8984s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
8985s,@WIN32LIBADD@,$WIN32LIBADD,;t t
8986s,@archdefs@,$archdefs,;t t
8987s,@BFD_MACHINES@,$BFD_MACHINES,;t t
8988s,@LIBOBJS@,$LIBOBJS,;t t
8989s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8990CEOF
8991
8992_ACEOF
8993
8994 cat >>$CONFIG_STATUS <<\_ACEOF
8995 # Split the substitutions into bite-sized pieces for seds with
8996 # small command number limits, like on Digital OSF/1 and HP-UX.
8997 ac_max_sed_lines=48
8998 ac_sed_frag=1 # Number of current file.
8999 ac_beg=1 # First line for current file.
9000 ac_end=$ac_max_sed_lines # Line after last line for current file.
9001 ac_more_lines=:
9002 ac_sed_cmds=
9003 while $ac_more_lines; do
9004 if test $ac_beg -gt 1; then
9005 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9006 else
9007 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9008 fi
9009 if test ! -s $tmp/subs.frag; then
9010 ac_more_lines=false
9011 else
9012 # The purpose of the label and of the branching condition is to
9013 # speed up the sed processing (if there are no `@' at all, there
9014 # is no need to browse any of the substitutions).
9015 # These are the two extra sed commands mentioned above.
9016 (echo ':t
9017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9018 if test -z "$ac_sed_cmds"; then
9019 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9020 else
9021 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9022 fi
9023 ac_sed_frag=`expr $ac_sed_frag + 1`
9024 ac_beg=$ac_end
9025 ac_end=`expr $ac_end + $ac_max_sed_lines`
9026 fi
9027 done
9028 if test -z "$ac_sed_cmds"; then
9029 ac_sed_cmds=cat
252b5132 9030 fi
979273e3 9031fi # test -n "$CONFIG_FILES"
252b5132 9032
979273e3
NN
9033_ACEOF
9034cat >>$CONFIG_STATUS <<\_ACEOF
9035for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9036 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9037 case $ac_file in
9038 - | *:- | *:-:* ) # input from stdin
9039 cat >$tmp/stdin
9040 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9042 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9043 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9044 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9045 esac
9046
979273e3
NN
9047 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9048 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9049$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9050 X"$ac_file" : 'X\(//\)[^/]' \| \
9051 X"$ac_file" : 'X\(//\)$' \| \
9052 X"$ac_file" : 'X\(/\)' \| \
9053 . : '\(.\)' 2>/dev/null ||
9054echo X"$ac_file" |
9055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9057 /^X\(\/\/\)$/{ s//\1/; q; }
9058 /^X\(\/\).*/{ s//\1/; q; }
9059 s/.*/./; q'`
9060 { if $as_mkdir_p; then
9061 mkdir -p "$ac_dir"
9062 else
9063 as_dir="$ac_dir"
9064 as_dirs=
9065 while test ! -d "$as_dir"; do
9066 as_dirs="$as_dir $as_dirs"
9067 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9068$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9069 X"$as_dir" : 'X\(//\)[^/]' \| \
9070 X"$as_dir" : 'X\(//\)$' \| \
9071 X"$as_dir" : 'X\(/\)' \| \
9072 . : '\(.\)' 2>/dev/null ||
9073echo X"$as_dir" |
9074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9076 /^X\(\/\/\)$/{ s//\1/; q; }
9077 /^X\(\/\).*/{ s//\1/; q; }
9078 s/.*/./; q'`
9079 done
9080 test ! -n "$as_dirs" || mkdir $as_dirs
9081 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9082echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9083 { (exit 1); exit 1; }; }; }
9084
9085 ac_builddir=.
9086
9087if test "$ac_dir" != .; then
9088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9089 # A "../" for each directory in $ac_dir_suffix.
9090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9091else
9092 ac_dir_suffix= ac_top_builddir=
9093fi
9094
9095case $srcdir in
9096 .) # No --srcdir option. We are building in place.
9097 ac_srcdir=.
9098 if test -z "$ac_top_builddir"; then
9099 ac_top_srcdir=.
9100 else
9101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9102 fi ;;
9103 [\\/]* | ?:[\\/]* ) # Absolute path.
9104 ac_srcdir=$srcdir$ac_dir_suffix;
9105 ac_top_srcdir=$srcdir ;;
9106 *) # Relative path.
9107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9109esac
9110
9111# Do not use `cd foo && pwd` to compute absolute paths, because
9112# the directories may not exist.
9113case `pwd` in
9114.) ac_abs_builddir="$ac_dir";;
9115*)
9116 case "$ac_dir" in
9117 .) ac_abs_builddir=`pwd`;;
9118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9120 esac;;
9121esac
9122case $ac_abs_builddir in
9123.) ac_abs_top_builddir=${ac_top_builddir}.;;
9124*)
9125 case ${ac_top_builddir}. in
9126 .) ac_abs_top_builddir=$ac_abs_builddir;;
9127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9129 esac;;
9130esac
9131case $ac_abs_builddir in
9132.) ac_abs_srcdir=$ac_srcdir;;
9133*)
9134 case $ac_srcdir in
9135 .) ac_abs_srcdir=$ac_abs_builddir;;
9136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9138 esac;;
9139esac
9140case $ac_abs_builddir in
9141.) ac_abs_top_srcdir=$ac_top_srcdir;;
9142*)
9143 case $ac_top_srcdir in
9144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9147 esac;;
9148esac
252b5132 9149
979273e3
NN
9150
9151 case $INSTALL in
9152 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9153 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132
RH
9154 esac
9155
979273e3
NN
9156 # Let's still pretend it is `configure' which instantiates (i.e., don't
9157 # use $as_me), people would be surprised to read:
9158 # /* config.h. Generated by config.status. */
9159 if test x"$ac_file" = x-; then
9160 configure_input=
9161 else
9162 configure_input="$ac_file. "
9163 fi
9164 configure_input=$configure_input"Generated from `echo $ac_file_in |
9165 sed 's,.*/,,'` by configure."
9166
9167 # First look for the input files in the build tree, otherwise in the
9168 # src tree.
9169 ac_file_inputs=`IFS=:
9170 for f in $ac_file_in; do
9171 case $f in
9172 -) echo $tmp/stdin ;;
9173 [\\/$]*)
9174 # Absolute (can't be DOS-style, as IFS=:)
9175 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9176echo "$as_me: error: cannot find input file: $f" >&2;}
9177 { (exit 1); exit 1; }; }
9178 echo "$f";;
9179 *) # Relative
9180 if test -f "$f"; then
9181 # Build tree
9182 echo "$f"
9183 elif test -f "$srcdir/$f"; then
9184 # Source tree
9185 echo "$srcdir/$f"
9186 else
9187 # /dev/null tree
9188 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9189echo "$as_me: error: cannot find input file: $f" >&2;}
9190 { (exit 1); exit 1; }; }
9191 fi;;
9192 esac
9193 done` || { (exit 1); exit 1; }
9194
9195 if test x"$ac_file" != x-; then
9196 { echo "$as_me:$LINENO: creating $ac_file" >&5
9197echo "$as_me: creating $ac_file" >&6;}
9198 rm -f "$ac_file"
9199 fi
9200_ACEOF
9201cat >>$CONFIG_STATUS <<_ACEOF
9202 sed "$ac_vpsub
9203$extrasub
9204_ACEOF
9205cat >>$CONFIG_STATUS <<\_ACEOF
9206:t
9207/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9208s,@configure_input@,$configure_input,;t t
9209s,@srcdir@,$ac_srcdir,;t t
9210s,@abs_srcdir@,$ac_abs_srcdir,;t t
9211s,@top_srcdir@,$ac_top_srcdir,;t t
9212s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9213s,@builddir@,$ac_builddir,;t t
9214s,@abs_builddir@,$ac_abs_builddir,;t t
9215s,@top_builddir@,$ac_top_builddir,;t t
9216s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9217s,@INSTALL@,$ac_INSTALL,;t t
9218" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9219 rm -f $tmp/stdin
9220 if test x"$ac_file" != x-; then
9221 mv $tmp/out $ac_file
9222 else
9223 cat $tmp/out
9224 rm -f $tmp/out
9225 fi
9226
9227done
9228_ACEOF
9229cat >>$CONFIG_STATUS <<\_ACEOF
9230
9231#
9232# CONFIG_HEADER section.
9233#
252b5132
RH
9234
9235# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9236# NAME is the cpp macro being defined and VALUE is the value it is being given.
9237#
9238# ac_d sets the value in "#define NAME VALUE" lines.
979273e3
NN
9239ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9240ac_dB='[ ].*$,\1#\2'
9241ac_dC=' '
9242ac_dD=',;t'
9243# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9244ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9245ac_uB='$,\1#\2define\3'
252b5132 9246ac_uC=' '
979273e3
NN
9247ac_uD=',;t'
9248
9249for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 9250 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
979273e3
NN
9251 case $ac_file in
9252 - | *:- | *:-:* ) # input from stdin
9253 cat >$tmp/stdin
9254 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9255 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9256 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9258 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9259 esac
9260
979273e3
NN
9261 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9262echo "$as_me: creating $ac_file" >&6;}
9263
9264 # First look for the input files in the build tree, otherwise in the
9265 # src tree.
9266 ac_file_inputs=`IFS=:
9267 for f in $ac_file_in; do
9268 case $f in
9269 -) echo $tmp/stdin ;;
9270 [\\/$]*)
9271 # Absolute (can't be DOS-style, as IFS=:)
9272 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9273echo "$as_me: error: cannot find input file: $f" >&2;}
9274 { (exit 1); exit 1; }; }
9275 # Do quote $f, to prevent DOS paths from being IFS'd.
9276 echo "$f";;
9277 *) # Relative
9278 if test -f "$f"; then
9279 # Build tree
9280 echo "$f"
9281 elif test -f "$srcdir/$f"; then
9282 # Source tree
9283 echo "$srcdir/$f"
9284 else
9285 # /dev/null tree
9286 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9287echo "$as_me: error: cannot find input file: $f" >&2;}
9288 { (exit 1); exit 1; }; }
9289 fi;;
9290 esac
9291 done` || { (exit 1); exit 1; }
9292 # Remove the trailing spaces.
9293 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9294
9295_ACEOF
9296
9297# Transform confdefs.h into two sed scripts, `conftest.defines' and
9298# `conftest.undefs', that substitutes the proper values into
9299# config.h.in to produce config.h. The first handles `#define'
9300# templates, and the second `#undef' templates.
9301# And first: Protect against being on the right side of a sed subst in
9302# config.status. Protect against being in an unquoted here document
9303# in config.status.
9304rm -f conftest.defines conftest.undefs
9305# Using a here document instead of a string reduces the quoting nightmare.
9306# Putting comments in sed scripts is not portable.
9307#
9308# `end' is used to avoid that the second main sed command (meant for
9309# 0-ary CPP macros) applies to n-ary macro definitions.
9310# See the Autoconf documentation for `clear'.
9311cat >confdef2sed.sed <<\_ACEOF
9312s/[\\&,]/\\&/g
9313s,[\\$`],\\&,g
9314t clear
9315: clear
9316s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9317t end
9318s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9319: end
9320_ACEOF
9321# If some macros were called several times there might be several times
9322# the same #defines, which is useless. Nevertheless, we may not want to
9323# sort them, since we want the *last* AC-DEFINE to be honored.
9324uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9325sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9326rm -f confdef2sed.sed
252b5132
RH
9327
9328# This sed command replaces #undef with comments. This is necessary, for
9329# example, in the case of _POSIX_SOURCE, which is predefined and required
9330# on some systems where configure will not decide to define it.
979273e3
NN
9331cat >>conftest.undefs <<\_ACEOF
9332s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9333_ACEOF
9334
9335# Break up conftest.defines because some shells have a limit on the size
9336# of here documents, and old seds have small limits too (100 cmds).
9337echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9338echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9339echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9340echo ' :' >>$CONFIG_STATUS
9341rm -f conftest.tail
9342while grep . conftest.defines >/dev/null
9343do
9344 # Write a limited-size here document to $tmp/defines.sed.
9345 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9346 # Speed up: don't consider the non `#define' lines.
9347 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9348 # Work around the forget-to-reset-the-flag bug.
9349 echo 't clr' >>$CONFIG_STATUS
9350 echo ': clr' >>$CONFIG_STATUS
9351 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9352 echo 'CEOF
9353 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9354 rm -f $tmp/in
9355 mv $tmp/out $tmp/in
9356' >>$CONFIG_STATUS
9357 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9358 rm -f conftest.defines
9359 mv conftest.tail conftest.defines
9360done
9361rm -f conftest.defines
9362echo ' fi # grep' >>$CONFIG_STATUS
9363echo >>$CONFIG_STATUS
252b5132 9364
979273e3
NN
9365# Break up conftest.undefs because some shells have a limit on the size
9366# of here documents, and old seds have small limits too (100 cmds).
9367echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 9368rm -f conftest.tail
979273e3 9369while grep . conftest.undefs >/dev/null
252b5132 9370do
979273e3
NN
9371 # Write a limited-size here document to $tmp/undefs.sed.
9372 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9373 # Speed up: don't consider the non `#undef'
9374 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9375 # Work around the forget-to-reset-the-flag bug.
9376 echo 't clr' >>$CONFIG_STATUS
9377 echo ': clr' >>$CONFIG_STATUS
9378 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 9379 echo 'CEOF
979273e3
NN
9380 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9381 rm -f $tmp/in
9382 mv $tmp/out $tmp/in
9383' >>$CONFIG_STATUS
9384 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9385 rm -f conftest.undefs
9386 mv conftest.tail conftest.undefs
252b5132 9387done
979273e3
NN
9388rm -f conftest.undefs
9389
9390cat >>$CONFIG_STATUS <<\_ACEOF
9391 # Let's still pretend it is `configure' which instantiates (i.e., don't
9392 # use $as_me), people would be surprised to read:
9393 # /* config.h. Generated by config.status. */
9394 if test x"$ac_file" = x-; then
9395 echo "/* Generated by configure. */" >$tmp/config.h
9396 else
9397 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9398 fi
9399 cat $tmp/in >>$tmp/config.h
9400 rm -f $tmp/in
9401 if test x"$ac_file" != x-; then
9402 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9403 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9404echo "$as_me: $ac_file is unchanged" >&6;}
9405 else
9406 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9407$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9408 X"$ac_file" : 'X\(//\)[^/]' \| \
9409 X"$ac_file" : 'X\(//\)$' \| \
9410 X"$ac_file" : 'X\(/\)' \| \
9411 . : '\(.\)' 2>/dev/null ||
9412echo X"$ac_file" |
9413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9415 /^X\(\/\/\)$/{ s//\1/; q; }
9416 /^X\(\/\).*/{ s//\1/; q; }
9417 s/.*/./; q'`
9418 { if $as_mkdir_p; then
9419 mkdir -p "$ac_dir"
252b5132 9420 else
979273e3
NN
9421 as_dir="$ac_dir"
9422 as_dirs=
9423 while test ! -d "$as_dir"; do
9424 as_dirs="$as_dir $as_dirs"
9425 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9426$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9427 X"$as_dir" : 'X\(//\)[^/]' \| \
9428 X"$as_dir" : 'X\(//\)$' \| \
9429 X"$as_dir" : 'X\(/\)' \| \
9430 . : '\(.\)' 2>/dev/null ||
9431echo X"$as_dir" |
9432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9434 /^X\(\/\/\)$/{ s//\1/; q; }
9435 /^X\(\/\).*/{ s//\1/; q; }
9436 s/.*/./; q'`
9437 done
9438 test ! -n "$as_dirs" || mkdir $as_dirs
9439 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9440echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9441 { (exit 1); exit 1; }; }; }
9442
9443 rm -f $ac_file
9444 mv $tmp/config.h $ac_file
252b5132 9445 fi
979273e3
NN
9446 else
9447 cat $tmp/config.h
9448 rm -f $tmp/config.h
252b5132 9449 fi
979273e3
NN
9450done
9451_ACEOF
9452cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 9453
979273e3
NN
9454#
9455# CONFIG_COMMANDS section.
9456#
9457for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9458 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9459 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9460 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9461$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9462 X"$ac_dest" : 'X\(//\)[^/]' \| \
9463 X"$ac_dest" : 'X\(//\)$' \| \
9464 X"$ac_dest" : 'X\(/\)' \| \
9465 . : '\(.\)' 2>/dev/null ||
9466echo X"$ac_dest" |
9467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9469 /^X\(\/\/\)$/{ s//\1/; q; }
9470 /^X\(\/\).*/{ s//\1/; q; }
9471 s/.*/./; q'`
9472 { if $as_mkdir_p; then
9473 mkdir -p "$ac_dir"
9474 else
9475 as_dir="$ac_dir"
9476 as_dirs=
9477 while test ! -d "$as_dir"; do
9478 as_dirs="$as_dir $as_dirs"
9479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9481 X"$as_dir" : 'X\(//\)[^/]' \| \
9482 X"$as_dir" : 'X\(//\)$' \| \
9483 X"$as_dir" : 'X\(/\)' \| \
9484 . : '\(.\)' 2>/dev/null ||
9485echo X"$as_dir" |
9486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9488 /^X\(\/\/\)$/{ s//\1/; q; }
9489 /^X\(\/\).*/{ s//\1/; q; }
9490 s/.*/./; q'`
9491 done
9492 test ! -n "$as_dirs" || mkdir $as_dirs
9493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9494echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9495 { (exit 1); exit 1; }; }; }
252b5132 9496
979273e3 9497 ac_builddir=.
252b5132 9498
979273e3
NN
9499if test "$ac_dir" != .; then
9500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9501 # A "../" for each directory in $ac_dir_suffix.
9502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9503else
9504 ac_dir_suffix= ac_top_builddir=
9505fi
9506
9507case $srcdir in
9508 .) # No --srcdir option. We are building in place.
9509 ac_srcdir=.
9510 if test -z "$ac_top_builddir"; then
9511 ac_top_srcdir=.
9512 else
9513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9514 fi ;;
9515 [\\/]* | ?:[\\/]* ) # Absolute path.
9516 ac_srcdir=$srcdir$ac_dir_suffix;
9517 ac_top_srcdir=$srcdir ;;
9518 *) # Relative path.
9519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9521esac
9522
9523# Do not use `cd foo && pwd` to compute absolute paths, because
9524# the directories may not exist.
9525case `pwd` in
9526.) ac_abs_builddir="$ac_dir";;
9527*)
9528 case "$ac_dir" in
9529 .) ac_abs_builddir=`pwd`;;
9530 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9531 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9532 esac;;
9533esac
9534case $ac_abs_builddir in
9535.) ac_abs_top_builddir=${ac_top_builddir}.;;
9536*)
9537 case ${ac_top_builddir}. in
9538 .) ac_abs_top_builddir=$ac_abs_builddir;;
9539 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9540 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9541 esac;;
9542esac
9543case $ac_abs_builddir in
9544.) ac_abs_srcdir=$ac_srcdir;;
9545*)
9546 case $ac_srcdir in
9547 .) ac_abs_srcdir=$ac_abs_builddir;;
9548 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9549 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9550 esac;;
9551esac
9552case $ac_abs_builddir in
9553.) ac_abs_top_srcdir=$ac_top_srcdir;;
9554*)
9555 case $ac_top_srcdir in
9556 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9557 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9558 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9559 esac;;
9560esac
9561
9562
9563 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9564echo "$as_me: executing $ac_dest commands" >&6;}
9565 case $ac_dest in
9566 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
9567 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
9568 esac
9569done
9570_ACEOF
9571
9572cat >>$CONFIG_STATUS <<\_ACEOF
9573
9574{ (exit 0); exit 0; }
9575_ACEOF
252b5132 9576chmod +x $CONFIG_STATUS
979273e3
NN
9577ac_clean_files=$ac_clean_files_save
9578
9579
9580# configure is writing to config.log, and then calls config.status.
9581# config.status does its own redirection, appending to config.log.
9582# Unfortunately, on DOS this fails, as config.log is still kept open
9583# by configure, so config.status won't be able to write to it; its
9584# output is simply discarded. So we exec the FD to /dev/null,
9585# effectively closing config.log, so it can be properly (re)opened and
9586# appended to by config.status. When coming back to configure, we
9587# need to make the FD available again.
9588if test "$no_create" != yes; then
9589 ac_cs_success=:
9590 ac_config_status_args=
9591 test "$silent" = yes &&
9592 ac_config_status_args="$ac_config_status_args --quiet"
9593 exec 5>/dev/null
9594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9595 exec 5>>config.log
9596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9597 # would make configure fail if this is the last instruction.
9598 $ac_cs_success || { (exit 1); exit 1; }
9599fi
252b5132 9600