Do not use libiberty's getpagesize on Android
[deliverable/binutils-gdb.git] / libiberty / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
75086676
DD
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
75086676
DD
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
2299a76d 14
75086676
DD
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2299a76d
DJ
18 emulate sh
19 NULLCMD=:
75086676 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2299a76d
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
75086676
DD
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
2299a76d
DJ
31fi
32
75086676
DD
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
2299a76d
DJ
79fi
80
81
75086676
DD
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
2299a76d
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
75086676
DD
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2299a76d 184do
75086676
DD
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2299a76d 228 else
75086676
DD
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
2299a76d 233 fi
75086676
DD
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
2299a76d 372
75086676
DD
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2299a76d
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
75086676 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2299a76d
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
75086676
DD
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
2299a76d 391
75086676 392as_me=`$as_basename -- "$0" ||
2299a76d
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
75086676
DD
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
2299a76d 410
2299a76d
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
2299a76d 418
75086676
DD
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
2299a76d 428 sed '
75086676
DD
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
2299a76d 433 N
75086676
DD
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2299a76d 436 t loop
75086676 437 s/-\n.*//
2299a76d 438 ' >$as_me.lineno &&
75086676
DD
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
2299a76d
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
75086676
DD
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
2299a76d
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
75086676
DD
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
2299a76d
DJ
461esac
462
75086676
DD
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
2299a76d 466else
75086676
DD
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
2299a76d 469fi
75086676
DD
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2299a76d 472 as_ln_s='ln -s'
75086676
DD
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
2299a76d 483 fi
2299a76d
DJ
484else
485 as_ln_s='cp -p'
486fi
75086676
DD
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
2299a76d
DJ
489
490if mkdir -p . 2>/dev/null; then
75086676 491 as_mkdir_p='mkdir -p "$as_dir"'
2299a76d 492else
58670637 493 test -d ./-p && rmdir ./-p
2299a76d
DJ
494 as_mkdir_p=false
495fi
496
75086676
DD
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
2299a76d
DJ
519
520# Sed expression to map a string onto a valid CPP name.
58670637 521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2299a76d
DJ
522
523# Sed expression to map a string onto a valid variable name.
58670637 524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2299a76d
DJ
525
526
75086676 527exec 7<&0 </dev/null 6>&1
2299a76d
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
2299a76d
DJ
534#
535# Initializations.
536#
252b5132 537ac_default_prefix=/usr/local
75086676 538ac_clean_files=
2299a76d 539ac_config_libobj_dir=.
75086676 540LIBOBJS=
2299a76d
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2299a76d
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
75086676 552PACKAGE_URL=
2299a76d
DJ
553
554ac_unique_file="xmalloc.c"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
75086676 558#ifdef HAVE_SYS_TYPES_H
2299a76d
DJ
559# include <sys/types.h>
560#endif
75086676 561#ifdef HAVE_SYS_STAT_H
2299a76d
DJ
562# include <sys/stat.h>
563#endif
75086676 564#ifdef STDC_HEADERS
2299a76d
DJ
565# include <stdlib.h>
566# include <stddef.h>
567#else
75086676 568# ifdef HAVE_STDLIB_H
2299a76d
DJ
569# include <stdlib.h>
570# endif
571#endif
75086676
DD
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
2299a76d
DJ
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
75086676 578#ifdef HAVE_STRINGS_H
2299a76d
DJ
579# include <strings.h>
580#endif
75086676 581#ifdef HAVE_INTTYPES_H
2299a76d 582# include <inttypes.h>
2299a76d 583#endif
75086676
DD
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
2299a76d
DJ
588# include <unistd.h>
589#endif"
590
75086676
DD
591ac_subst_vars='LTLIBOBJS
592INSTALL_DEST
593pexecute
594target_header_dir
595CHECK
596LIBOBJS
3f48575a 597NOASANFLAG
75086676
DD
598PICFLAG
599INSTALL_DATA
600INSTALL_SCRIPT
601INSTALL_PROGRAM
75086676
DD
602OUTPUT_OPTION
603NO_MINUS_C_MINUS_O
604ac_libiberty_warn_cflags
f91ca6bc
IB
605EGREP
606GREP
75086676
DD
607CPP
608OBJEXT
609EXEEXT
610ac_ct_CC
611CPPFLAGS
612LDFLAGS
613CFLAGS
614CC
615RANLIB
616AR
617host_os
618host_vendor
619host_cpu
620host
621build_os
622build_vendor
623build_cpu
624build
625HAVE_PERL
626PERL
627BUILD_INFO
628MAKEINFO
629NOTMAINT
630MAINT
631libiberty_topdir
632target_alias
633host_alias
634build_alias
635LIBS
636ECHO_T
637ECHO_N
638ECHO_C
639DEFS
640mandir
641localedir
642libdir
643psdir
644pdfdir
645dvidir
646htmldir
647infodir
648docdir
649oldincludedir
650includedir
651localstatedir
652sharedstatedir
653sysconfdir
654datadir
655datarootdir
656libexecdir
657sbindir
658bindir
659program_transform_name
660prefix
661exec_prefix
662PACKAGE_URL
663PACKAGE_BUGREPORT
664PACKAGE_STRING
665PACKAGE_VERSION
666PACKAGE_TARNAME
667PACKAGE_NAME
668PATH_SEPARATOR
669SHELL'
2299a76d 670ac_subst_files='host_makefile_frag'
75086676
DD
671ac_user_opts='
672enable_option_checking
673with_target_subdir
674with_build_subdir
675with_cross_host
676with_newlib
677enable_maintainer_mode
678enable_multilib
75086676 679enable_install_libiberty
a4818a05 680enable_largefile
75086676
DD
681'
682 ac_precious_vars='build_alias
683host_alias
684target_alias
685CC
686CFLAGS
687LDFLAGS
688LIBS
689CPPFLAGS
690CPP'
691
252b5132
RH
692
693# Initialize some variables set by options.
2299a76d
DJ
694ac_init_help=
695ac_init_version=false
75086676
DD
696ac_unrecognized_opts=
697ac_unrecognized_sep=
252b5132
RH
698# The variables have the same names as the options, with
699# dashes changed to underlines.
2299a76d 700cache_file=/dev/null
252b5132 701exec_prefix=NONE
252b5132 702no_create=
252b5132
RH
703no_recursion=
704prefix=NONE
705program_prefix=NONE
706program_suffix=NONE
707program_transform_name=s,x,x,
708silent=
709site=
710srcdir=
252b5132
RH
711verbose=
712x_includes=NONE
713x_libraries=NONE
2299a76d
DJ
714
715# Installation directory options.
716# These are left unexpanded so users can "make install exec_prefix=/foo"
717# and all the variables that are supposed to be based on exec_prefix
718# by default will actually change.
719# Use braces instead of parens because sh, perl, etc. also accept them.
75086676 720# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
721bindir='${exec_prefix}/bin'
722sbindir='${exec_prefix}/sbin'
723libexecdir='${exec_prefix}/libexec'
75086676
DD
724datarootdir='${prefix}/share'
725datadir='${datarootdir}'
252b5132
RH
726sysconfdir='${prefix}/etc'
727sharedstatedir='${prefix}/com'
728localstatedir='${prefix}/var'
252b5132
RH
729includedir='${prefix}/include'
730oldincludedir='/usr/include'
75086676
DD
731docdir='${datarootdir}/doc/${PACKAGE}'
732infodir='${datarootdir}/info'
733htmldir='${docdir}'
734dvidir='${docdir}'
735pdfdir='${docdir}'
736psdir='${docdir}'
737libdir='${exec_prefix}/lib'
738localedir='${datarootdir}/locale'
739mandir='${datarootdir}/man'
252b5132 740
252b5132 741ac_prev=
75086676 742ac_dashdash=
252b5132
RH
743for ac_option
744do
252b5132
RH
745 # If the previous option needs an argument, assign it.
746 if test -n "$ac_prev"; then
75086676 747 eval $ac_prev=\$ac_option
252b5132
RH
748 ac_prev=
749 continue
750 fi
751
75086676
DD
752 case $ac_option in
753 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
754 *) ac_optarg=yes ;;
755 esac
252b5132
RH
756
757 # Accept the important Cygnus configure options, so we can diagnose typos.
758
75086676
DD
759 case $ac_dashdash$ac_option in
760 --)
761 ac_dashdash=yes ;;
252b5132
RH
762
763 -bindir | --bindir | --bindi | --bind | --bin | --bi)
764 ac_prev=bindir ;;
765 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2299a76d 766 bindir=$ac_optarg ;;
252b5132
RH
767
768 -build | --build | --buil | --bui | --bu)
2299a76d 769 ac_prev=build_alias ;;
252b5132 770 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2299a76d 771 build_alias=$ac_optarg ;;
252b5132
RH
772
773 -cache-file | --cache-file | --cache-fil | --cache-fi \
774 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
775 ac_prev=cache_file ;;
776 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
777 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2299a76d
DJ
778 cache_file=$ac_optarg ;;
779
780 --config-cache | -C)
781 cache_file=config.cache ;;
252b5132 782
75086676 783 -datadir | --datadir | --datadi | --datad)
252b5132 784 ac_prev=datadir ;;
75086676 785 -datadir=* | --datadir=* | --datadi=* | --datad=*)
2299a76d 786 datadir=$ac_optarg ;;
252b5132 787
75086676
DD
788 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
789 | --dataroo | --dataro | --datar)
790 ac_prev=datarootdir ;;
791 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
792 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
793 datarootdir=$ac_optarg ;;
794
252b5132 795 -disable-* | --disable-*)
75086676 796 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 797 # Reject names that are not valid shell variable names.
75086676
DD
798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
799 as_fn_error "invalid feature name: $ac_useropt"
800 ac_useropt_orig=$ac_useropt
801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
802 case $ac_user_opts in
803 *"
804"enable_$ac_useropt"
805"*) ;;
806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
807 ac_unrecognized_sep=', ';;
808 esac
809 eval enable_$ac_useropt=no ;;
810
811 -docdir | --docdir | --docdi | --doc | --do)
812 ac_prev=docdir ;;
813 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
814 docdir=$ac_optarg ;;
815
816 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
817 ac_prev=dvidir ;;
818 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
819 dvidir=$ac_optarg ;;
252b5132
RH
820
821 -enable-* | --enable-*)
75086676 822 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 823 # Reject names that are not valid shell variable names.
75086676
DD
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
829 *"
830"enable_$ac_useropt"
831"*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
252b5132 834 esac
75086676 835 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
836
837 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
838 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
839 | --exec | --exe | --ex)
840 ac_prev=exec_prefix ;;
841 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
842 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
843 | --exec=* | --exe=* | --ex=*)
2299a76d 844 exec_prefix=$ac_optarg ;;
252b5132
RH
845
846 -gas | --gas | --ga | --g)
847 # Obsolete; use --with-gas.
848 with_gas=yes ;;
849
2299a76d
DJ
850 -help | --help | --hel | --he | -h)
851 ac_init_help=long ;;
852 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
853 ac_init_help=recursive ;;
854 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
855 ac_init_help=short ;;
252b5132
RH
856
857 -host | --host | --hos | --ho)
2299a76d 858 ac_prev=host_alias ;;
252b5132 859 -host=* | --host=* | --hos=* | --ho=*)
2299a76d 860 host_alias=$ac_optarg ;;
252b5132 861
75086676
DD
862 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
863 ac_prev=htmldir ;;
864 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
865 | --ht=*)
866 htmldir=$ac_optarg ;;
867
252b5132
RH
868 -includedir | --includedir | --includedi | --included | --include \
869 | --includ | --inclu | --incl | --inc)
870 ac_prev=includedir ;;
871 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
872 | --includ=* | --inclu=* | --incl=* | --inc=*)
2299a76d 873 includedir=$ac_optarg ;;
252b5132
RH
874
875 -infodir | --infodir | --infodi | --infod | --info | --inf)
876 ac_prev=infodir ;;
877 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2299a76d 878 infodir=$ac_optarg ;;
252b5132
RH
879
880 -libdir | --libdir | --libdi | --libd)
881 ac_prev=libdir ;;
882 -libdir=* | --libdir=* | --libdi=* | --libd=*)
2299a76d 883 libdir=$ac_optarg ;;
252b5132
RH
884
885 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
886 | --libexe | --libex | --libe)
887 ac_prev=libexecdir ;;
888 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
889 | --libexe=* | --libex=* | --libe=*)
2299a76d 890 libexecdir=$ac_optarg ;;
252b5132 891
75086676
DD
892 -localedir | --localedir | --localedi | --localed | --locale)
893 ac_prev=localedir ;;
894 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
895 localedir=$ac_optarg ;;
896
252b5132 897 -localstatedir | --localstatedir | --localstatedi | --localstated \
75086676 898 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
899 ac_prev=localstatedir ;;
900 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
75086676 901 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2299a76d 902 localstatedir=$ac_optarg ;;
252b5132
RH
903
904 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
905 ac_prev=mandir ;;
906 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2299a76d 907 mandir=$ac_optarg ;;
252b5132
RH
908
909 -nfp | --nfp | --nf)
910 # Obsolete; use --without-fp.
911 with_fp=no ;;
912
913 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2299a76d 914 | --no-cr | --no-c | -n)
252b5132
RH
915 no_create=yes ;;
916
917 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
918 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
919 no_recursion=yes ;;
920
921 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
922 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
923 | --oldin | --oldi | --old | --ol | --o)
924 ac_prev=oldincludedir ;;
925 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
926 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
927 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2299a76d 928 oldincludedir=$ac_optarg ;;
252b5132
RH
929
930 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
931 ac_prev=prefix ;;
932 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2299a76d 933 prefix=$ac_optarg ;;
252b5132
RH
934
935 -program-prefix | --program-prefix | --program-prefi | --program-pref \
936 | --program-pre | --program-pr | --program-p)
937 ac_prev=program_prefix ;;
938 -program-prefix=* | --program-prefix=* | --program-prefi=* \
939 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2299a76d 940 program_prefix=$ac_optarg ;;
252b5132
RH
941
942 -program-suffix | --program-suffix | --program-suffi | --program-suff \
943 | --program-suf | --program-su | --program-s)
944 ac_prev=program_suffix ;;
945 -program-suffix=* | --program-suffix=* | --program-suffi=* \
946 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2299a76d 947 program_suffix=$ac_optarg ;;
252b5132
RH
948
949 -program-transform-name | --program-transform-name \
950 | --program-transform-nam | --program-transform-na \
951 | --program-transform-n | --program-transform- \
952 | --program-transform | --program-transfor \
953 | --program-transfo | --program-transf \
954 | --program-trans | --program-tran \
955 | --progr-tra | --program-tr | --program-t)
956 ac_prev=program_transform_name ;;
957 -program-transform-name=* | --program-transform-name=* \
958 | --program-transform-nam=* | --program-transform-na=* \
959 | --program-transform-n=* | --program-transform-=* \
960 | --program-transform=* | --program-transfor=* \
961 | --program-transfo=* | --program-transf=* \
962 | --program-trans=* | --program-tran=* \
963 | --progr-tra=* | --program-tr=* | --program-t=*)
2299a76d 964 program_transform_name=$ac_optarg ;;
252b5132 965
75086676
DD
966 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
967 ac_prev=pdfdir ;;
968 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
969 pdfdir=$ac_optarg ;;
970
971 -psdir | --psdir | --psdi | --psd | --ps)
972 ac_prev=psdir ;;
973 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
974 psdir=$ac_optarg ;;
975
252b5132
RH
976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
977 | -silent | --silent | --silen | --sile | --sil)
978 silent=yes ;;
979
980 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
981 ac_prev=sbindir ;;
982 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
983 | --sbi=* | --sb=*)
2299a76d 984 sbindir=$ac_optarg ;;
252b5132
RH
985
986 -sharedstatedir | --sharedstatedir | --sharedstatedi \
987 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
988 | --sharedst | --shareds | --shared | --share | --shar \
989 | --sha | --sh)
990 ac_prev=sharedstatedir ;;
991 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
992 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
993 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
994 | --sha=* | --sh=*)
2299a76d 995 sharedstatedir=$ac_optarg ;;
252b5132
RH
996
997 -site | --site | --sit)
998 ac_prev=site ;;
999 -site=* | --site=* | --sit=*)
2299a76d 1000 site=$ac_optarg ;;
252b5132
RH
1001
1002 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1003 ac_prev=srcdir ;;
1004 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2299a76d 1005 srcdir=$ac_optarg ;;
252b5132
RH
1006
1007 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1008 | --syscon | --sysco | --sysc | --sys | --sy)
1009 ac_prev=sysconfdir ;;
1010 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1011 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2299a76d 1012 sysconfdir=$ac_optarg ;;
252b5132
RH
1013
1014 -target | --target | --targe | --targ | --tar | --ta | --t)
2299a76d 1015 ac_prev=target_alias ;;
252b5132 1016 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2299a76d 1017 target_alias=$ac_optarg ;;
252b5132
RH
1018
1019 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1020 verbose=yes ;;
1021
2299a76d
DJ
1022 -version | --version | --versio | --versi | --vers | -V)
1023 ac_init_version=: ;;
252b5132
RH
1024
1025 -with-* | --with-*)
75086676 1026 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1027 # Reject names that are not valid shell variable names.
75086676
DD
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error "invalid package name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034"with_$ac_useropt"
1035"*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
252b5132 1038 esac
75086676 1039 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1040
1041 -without-* | --without-*)
75086676 1042 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1043 # Reject names that are not valid shell variable names.
75086676
DD
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error "invalid package name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050"with_$ac_useropt"
1051"*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval with_$ac_useropt=no ;;
252b5132
RH
1056
1057 --x)
1058 # Obsolete; use --with-x.
1059 with_x=yes ;;
1060
1061 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1062 | --x-incl | --x-inc | --x-in | --x-i)
1063 ac_prev=x_includes ;;
1064 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1065 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2299a76d 1066 x_includes=$ac_optarg ;;
252b5132
RH
1067
1068 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1069 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1070 ac_prev=x_libraries ;;
1071 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1072 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2299a76d 1073 x_libraries=$ac_optarg ;;
252b5132 1074
75086676
DD
1075 -*) as_fn_error "unrecognized option: \`$ac_option'
1076Try \`$0 --help' for more information."
252b5132
RH
1077 ;;
1078
2299a76d
DJ
1079 *=*)
1080 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1081 # Reject names that are not valid shell variable names.
75086676
DD
1082 case $ac_envvar in #(
1083 '' | [0-9]* | *[!_$as_cr_alnum]* )
1084 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1085 esac
1086 eval $ac_envvar=\$ac_optarg
2299a76d
DJ
1087 export $ac_envvar ;;
1088
252b5132 1089 *)
2299a76d 1090 # FIXME: should be removed in autoconf 3.0.
75086676 1091 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2299a76d 1092 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
75086676 1093 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2299a76d 1094 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1095 ;;
1096
1097 esac
1098done
1099
1100if test -n "$ac_prev"; then
2299a76d 1101 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
75086676 1102 as_fn_error "missing argument to $ac_option"
252b5132 1103fi
252b5132 1104
75086676
DD
1105if test -n "$ac_unrecognized_opts"; then
1106 case $enable_option_checking in
1107 no) ;;
1108 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1109 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2299a76d 1110 esac
75086676 1111fi
252b5132 1112
75086676
DD
1113# Check all directory arguments for consistency.
1114for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1115 datadir sysconfdir sharedstatedir localstatedir includedir \
1116 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1117 libdir localedir mandir
252b5132 1118do
75086676
DD
1119 eval ac_val=\$$ac_var
1120 # Remove trailing slashes.
2299a76d 1121 case $ac_val in
75086676
DD
1122 */ )
1123 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1124 eval $ac_var=\$ac_val;;
252b5132 1125 esac
75086676
DD
1126 # Be sure to have absolute directory names.
1127 case $ac_val in
1128 [\\/$]* | ?:[\\/]* ) continue;;
1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130 esac
1131 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1132done
1133
2299a76d
DJ
1134# There might be people who depend on the old broken behavior: `$host'
1135# used to hold the argument of --host etc.
1136# FIXME: To remove some day.
1137build=$build_alias
1138host=$host_alias
1139target=$target_alias
1140
1141# FIXME: To remove some day.
1142if test "x$host_alias" != x; then
1143 if test "x$build_alias" = x; then
1144 cross_compiling=maybe
75086676 1145 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2299a76d
DJ
1146 If a cross compiler is detected then cross compile mode will be used." >&2
1147 elif test "x$build_alias" != "x$host_alias"; then
1148 cross_compiling=yes
1149 fi
1150fi
252b5132 1151
2299a76d
DJ
1152ac_tool_prefix=
1153test -n "$host_alias" && ac_tool_prefix=$host_alias-
1154
1155test "$silent" = yes && exec 6>/dev/null
252b5132 1156
252b5132 1157
75086676
DD
1158ac_pwd=`pwd` && test -n "$ac_pwd" &&
1159ac_ls_di=`ls -di .` &&
1160ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1161 as_fn_error "working directory cannot be determined"
1162test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163 as_fn_error "pwd does not report name of working directory"
1164
1165
252b5132
RH
1166# Find the source files, if location was not specified.
1167if test -z "$srcdir"; then
1168 ac_srcdir_defaulted=yes
75086676
DD
1169 # Try the directory containing this script, then the parent directory.
1170 ac_confdir=`$as_dirname -- "$as_myself" ||
1171$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1172 X"$as_myself" : 'X\(//\)[^/]' \| \
1173 X"$as_myself" : 'X\(//\)$' \| \
1174 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1175$as_echo X"$as_myself" |
1176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177 s//\1/
1178 q
1179 }
1180 /^X\(\/\/\)[^/].*/{
1181 s//\1/
1182 q
1183 }
1184 /^X\(\/\/\)$/{
1185 s//\1/
1186 q
1187 }
1188 /^X\(\/\).*/{
1189 s//\1/
1190 q
1191 }
1192 s/.*/./; q'`
252b5132 1193 srcdir=$ac_confdir
75086676 1194 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1195 srcdir=..
1196 fi
1197else
1198 ac_srcdir_defaulted=no
1199fi
75086676
DD
1200if test ! -r "$srcdir/$ac_unique_file"; then
1201 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1202 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1203fi
1204ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1205ac_abs_confdir=`(
1206 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1207 pwd)`
1208# When building in place, set srcdir=.
1209if test "$ac_abs_confdir" = "$ac_pwd"; then
1210 srcdir=.
1211fi
1212# Remove unnecessary trailing slashes from srcdir.
1213# Double slashes in file names in object file debugging info
1214# mess up M-x gdb in Emacs.
1215case $srcdir in
1216*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217esac
1218for ac_var in $ac_precious_vars; do
1219 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1220 eval ac_env_${ac_var}_value=\$${ac_var}
1221 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1222 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1223done
2299a76d
DJ
1224
1225#
1226# Report the --help message.
1227#
1228if test "$ac_init_help" = "long"; then
1229 # Omit some internal or obsolete options to make the list less imposing.
1230 # This message is too long to be a string in the A/UX 3.1 sh.
1231 cat <<_ACEOF
1232\`configure' configures this package to adapt to many kinds of systems.
1233
1234Usage: $0 [OPTION]... [VAR=VALUE]...
1235
1236To assign environment variables (e.g., CC, CFLAGS...), specify them as
1237VAR=VALUE. See below for descriptions of some of the useful variables.
1238
1239Defaults for the options are specified in brackets.
1240
1241Configuration:
1242 -h, --help display this help and exit
1243 --help=short display options specific to this package
1244 --help=recursive display the short help of all the included packages
1245 -V, --version display version information and exit
1246 -q, --quiet, --silent do not print \`checking...' messages
1247 --cache-file=FILE cache test results in FILE [disabled]
1248 -C, --config-cache alias for \`--cache-file=config.cache'
1249 -n, --no-create do not create output files
1250 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1251
2299a76d
DJ
1252Installation directories:
1253 --prefix=PREFIX install architecture-independent files in PREFIX
75086676 1254 [$ac_default_prefix]
2299a76d 1255 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
75086676 1256 [PREFIX]
2299a76d
DJ
1257
1258By default, \`make install' will install all the files in
1259\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1260an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1261for instance \`--prefix=\$HOME'.
1262
1263For better control, use the options below.
1264
1265Fine tuning of the installation directories:
75086676
DD
1266 --bindir=DIR user executables [EPREFIX/bin]
1267 --sbindir=DIR system admin executables [EPREFIX/sbin]
1268 --libexecdir=DIR program executables [EPREFIX/libexec]
1269 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1270 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1271 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1272 --libdir=DIR object code libraries [EPREFIX/lib]
1273 --includedir=DIR C header files [PREFIX/include]
1274 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1275 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1276 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1277 --infodir=DIR info documentation [DATAROOTDIR/info]
1278 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1279 --mandir=DIR man documentation [DATAROOTDIR/man]
1280 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1281 --htmldir=DIR html documentation [DOCDIR]
1282 --dvidir=DIR dvi documentation [DOCDIR]
1283 --pdfdir=DIR pdf documentation [DOCDIR]
1284 --psdir=DIR ps documentation [DOCDIR]
2299a76d
DJ
1285_ACEOF
1286
1287 cat <<\_ACEOF
1288
1289System types:
1290 --build=BUILD configure for building on BUILD [guessed]
1291 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1292_ACEOF
1293fi
1294
1295if test -n "$ac_init_help"; then
1296
1297 cat <<\_ACEOF
1298
1299Optional Features:
75086676 1300 --disable-option-checking ignore unrecognized --enable/--with options
2299a76d
DJ
1301 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1302 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1303 --enable-maintainer-mode
1304 enable make rules and dependencies not useful
1305 (and sometimes confusing) to the casual installer
958afec3 1306 --enable-multilib build many library versions (default)
a4818a05 1307 --enable-install-libiberty Install headers and library for end users
899de170 1308 --disable-largefile omit support for large files
2299a76d
DJ
1309
1310Optional Packages:
1311 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1312 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1313 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1314 --with-build-subdir=SUBDIR Configuring in a subdirectory for build
1315 --with-cross-host=HOST Configuring with a cross compiler
1316 --with-newlib Configuring with newlib
1317
1318Some influential environment variables:
1319 CC C compiler command
1320 CFLAGS C compiler flags
1321 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1322 nonstandard directory <lib dir>
75086676
DD
1323 LIBS libraries to pass to the linker, e.g. -l<library>
1324 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1325 you have headers in a nonstandard directory <include dir>
2299a76d
DJ
1326 CPP C preprocessor
1327
1328Use these variables to override the choices made by `configure' or to help
1329it to find libraries and programs with nonstandard names/locations.
1330
75086676 1331Report bugs to the package provider.
2299a76d 1332_ACEOF
75086676 1333ac_status=$?
2299a76d
DJ
1334fi
1335
1336if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
2299a76d 1338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
75086676
DD
1339 test -d "$ac_dir" ||
1340 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1341 continue
2299a76d
DJ
1342 ac_builddir=.
1343
75086676
DD
1344case "$ac_dir" in
1345.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1346*)
1347 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1348 # A ".." for each directory in $ac_dir_suffix.
1349 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1350 case $ac_top_builddir_sub in
1351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1353 esac ;;
1354esac
1355ac_abs_top_builddir=$ac_pwd
1356ac_abs_builddir=$ac_pwd$ac_dir_suffix
1357# for backward compatibility:
1358ac_top_builddir=$ac_top_build_prefix
2299a76d
DJ
1359
1360case $srcdir in
75086676 1361 .) # We are building in place.
2299a76d 1362 ac_srcdir=.
75086676
DD
1363 ac_top_srcdir=$ac_top_builddir_sub
1364 ac_abs_top_srcdir=$ac_pwd ;;
1365 [\\/]* | ?:[\\/]* ) # Absolute name.
2299a76d 1366 ac_srcdir=$srcdir$ac_dir_suffix;
75086676
DD
1367 ac_top_srcdir=$srcdir
1368 ac_abs_top_srcdir=$srcdir ;;
1369 *) # Relative name.
1370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1371 ac_top_srcdir=$ac_top_build_prefix$srcdir
1372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
58670637 1373esac
75086676
DD
1374ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1375
1376 cd "$ac_dir" || { ac_status=$?; continue; }
1377 # Check for guested configure.
1378 if test -f "$ac_srcdir/configure.gnu"; then
1379 echo &&
1380 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1381 elif test -f "$ac_srcdir/configure"; then
1382 echo &&
1383 $SHELL "$ac_srcdir/configure" --help=recursive
2299a76d 1384 else
75086676
DD
1385 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1386 fi || ac_status=$?
1387 cd "$ac_pwd" || { ac_status=$?; break; }
2299a76d
DJ
1388 done
1389fi
1390
75086676 1391test -n "$ac_init_help" && exit $ac_status
2299a76d
DJ
1392if $ac_init_version; then
1393 cat <<\_ACEOF
75086676
DD
1394configure
1395generated by GNU Autoconf 2.64
2299a76d 1396
75086676 1397Copyright (C) 2009 Free Software Foundation, Inc.
2299a76d
DJ
1398This configure script is free software; the Free Software Foundation
1399gives unlimited permission to copy, distribute and modify it.
1400_ACEOF
75086676 1401 exit
2299a76d 1402fi
2299a76d 1403
75086676
DD
1404## ------------------------ ##
1405## Autoconf initialization. ##
1406## ------------------------ ##
2299a76d 1407
75086676
DD
1408# ac_fn_c_try_compile LINENO
1409# --------------------------
1410# Try to compile conftest.$ac_ext, and return whether this succeeded.
1411ac_fn_c_try_compile ()
2299a76d 1412{
75086676
DD
1413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1414 rm -f conftest.$ac_objext
1415 if { { ac_try="$ac_compile"
1416case "(($ac_try" in
1417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1418 *) ac_try_echo=$ac_try;;
1419esac
1420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1421$as_echo "$ac_try_echo"; } >&5
1422 (eval "$ac_compile") 2>conftest.err
1423 ac_status=$?
1424 if test -s conftest.err; then
1425 grep -v '^ *+' conftest.err >conftest.er1
1426 cat conftest.er1 >&5
1427 mv -f conftest.er1 conftest.err
1428 fi
1429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1430 test $ac_status = 0; } && {
1431 test -z "$ac_c_werror_flag" ||
1432 test ! -s conftest.err
1433 } && test -s conftest.$ac_objext; then :
1434 ac_retval=0
1435else
1436 $as_echo "$as_me: failed program was:" >&5
1437sed 's/^/| /' conftest.$ac_ext >&5
2299a76d 1438
75086676
DD
1439 ac_retval=1
1440fi
1441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1442 return $ac_retval
2299a76d 1443
75086676 1444} # ac_fn_c_try_compile
2299a76d 1445
75086676
DD
1446# ac_fn_c_try_cpp LINENO
1447# ----------------------
1448# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1449ac_fn_c_try_cpp ()
1450{
1451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1452 if { { ac_try="$ac_cpp conftest.$ac_ext"
1453case "(($ac_try" in
1454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455 *) ac_try_echo=$ac_try;;
1456esac
1457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458$as_echo "$ac_try_echo"; } >&5
1459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1460 ac_status=$?
1461 if test -s conftest.err; then
1462 grep -v '^ *+' conftest.err >conftest.er1
1463 cat conftest.er1 >&5
1464 mv -f conftest.er1 conftest.err
1465 fi
1466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467 test $ac_status = 0; } >/dev/null && {
1468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1469 test ! -s conftest.err
1470 }; then :
1471 ac_retval=0
1472else
1473 $as_echo "$as_me: failed program was:" >&5
1474sed 's/^/| /' conftest.$ac_ext >&5
2299a76d 1475
75086676
DD
1476 ac_retval=1
1477fi
1478 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1479 return $ac_retval
2299a76d 1480
75086676 1481} # ac_fn_c_try_cpp
2299a76d 1482
f91ca6bc
IB
1483# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1484# -------------------------------------------------------
1485# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1486# the include files in INCLUDES and setting the cache variable VAR
1487# accordingly.
1488ac_fn_c_check_header_mongrel ()
1489{
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1493$as_echo_n "checking for $2... " >&6; }
1494if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1495 $as_echo_n "(cached) " >&6
1496fi
1497eval ac_res=\$$3
1498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1499$as_echo "$ac_res" >&6; }
1500else
1501 # Is the header compilable?
1502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1503$as_echo_n "checking $2 usability... " >&6; }
1504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1505/* end confdefs.h. */
1506$4
1507#include <$2>
1508_ACEOF
1509if ac_fn_c_try_compile "$LINENO"; then :
1510 ac_header_compiler=yes
1511else
1512 ac_header_compiler=no
1513fi
1514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1516$as_echo "$ac_header_compiler" >&6; }
1517
1518# Is the header present?
1519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1520$as_echo_n "checking $2 presence... " >&6; }
1521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1522/* end confdefs.h. */
1523#include <$2>
1524_ACEOF
1525if ac_fn_c_try_cpp "$LINENO"; then :
1526 ac_header_preproc=yes
1527else
1528 ac_header_preproc=no
1529fi
1530rm -f conftest.err conftest.$ac_ext
1531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1532$as_echo "$ac_header_preproc" >&6; }
1533
1534# So? What about this header?
1535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1536 yes:no: )
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1538$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1540$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1541 ;;
1542 no:yes:* )
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1544$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1546$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1548$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1550$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1552$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1553 ;;
1554esac
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1556$as_echo_n "checking for $2... " >&6; }
1557if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1558 $as_echo_n "(cached) " >&6
1559else
1560 eval "$3=\$ac_header_compiler"
1561fi
1562eval ac_res=\$$3
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564$as_echo "$ac_res" >&6; }
1565fi
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567
1568} # ac_fn_c_check_header_mongrel
1569
75086676
DD
1570# ac_fn_c_try_run LINENO
1571# ----------------------
1572# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1573# that executables *can* be run.
1574ac_fn_c_try_run ()
1575{
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 if { { ac_try="$ac_link"
1578case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_link") 2>&5
1585 ac_status=$?
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1588 { { case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_try") 2>&5
1595 ac_status=$?
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; }; }; then :
1598 ac_retval=0
1599else
1600 $as_echo "$as_me: program exited with status $ac_status" >&5
1601 $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
2299a76d 1603
75086676
DD
1604 ac_retval=$ac_status
1605fi
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 return $ac_retval
2299a76d 1609
75086676 1610} # ac_fn_c_try_run
252b5132 1611
f91ca6bc
IB
1612# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613# -------------------------------------------------------
1614# Tests whether HEADER exists and can be compiled using the include files in
1615# INCLUDES, setting the cache variable VAR accordingly.
1616ac_fn_c_check_header_compile ()
1617{
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620$as_echo_n "checking for $2... " >&6; }
1621if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1622 $as_echo_n "(cached) " >&6
1623else
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625/* end confdefs.h. */
1626$4
1627#include <$2>
1628_ACEOF
1629if ac_fn_c_try_compile "$LINENO"; then :
1630 eval "$3=yes"
1631else
1632 eval "$3=no"
1633fi
1634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635fi
1636eval ac_res=\$$3
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638$as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640
1641} # ac_fn_c_check_header_compile
1642
75086676
DD
1643# ac_fn_c_check_header_preproc LINENO HEADER VAR
1644# ----------------------------------------------
1645# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1646ac_fn_c_check_header_preproc ()
1647{
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650$as_echo_n "checking for $2... " >&6; }
1651if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1652 $as_echo_n "(cached) " >&6
1653else
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h. */
1656#include <$2>
2299a76d 1657_ACEOF
75086676
DD
1658if ac_fn_c_try_cpp "$LINENO"; then :
1659 eval "$3=yes"
1660else
1661 eval "$3=no"
1662fi
1663rm -f conftest.err conftest.$ac_ext
1664fi
1665eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2299a76d 1669
75086676 1670} # ac_fn_c_check_header_preproc
2299a76d 1671
75086676
DD
1672# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1673# --------------------------------------------
1674# Tries to find the compile-time value of EXPR in a program that includes
1675# INCLUDES, setting VAR accordingly. Returns whether the value could be
1676# computed
1677ac_fn_c_compute_int ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if test "$cross_compiling" = yes; then
1681 # Depending upon the size, compute the lo and hi bounds.
1682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h. */
1684$4
1685int
1686main ()
1687{
1688static int test_array [1 - 2 * !(($2) >= 0)];
1689test_array [0] = 0
2299a76d 1690
75086676
DD
1691 ;
1692 return 0;
1693}
1694_ACEOF
1695if ac_fn_c_try_compile "$LINENO"; then :
1696 ac_lo=0 ac_mid=0
1697 while :; do
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699/* end confdefs.h. */
1700$4
1701int
1702main ()
2299a76d 1703{
75086676
DD
1704static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1705test_array [0] = 0
1706
1707 ;
1708 return 0;
2299a76d 1709}
75086676
DD
1710_ACEOF
1711if ac_fn_c_try_compile "$LINENO"; then :
1712 ac_hi=$ac_mid; break
1713else
1714 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1715 if test $ac_lo -le $ac_mid; then
1716 ac_lo= ac_hi=
1717 break
1718 fi
1719 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1720fi
1721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722 done
1723else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725/* end confdefs.h. */
1726$4
1727int
1728main ()
1729{
1730static int test_array [1 - 2 * !(($2) < 0)];
1731test_array [0] = 0
2299a76d 1732
75086676
DD
1733 ;
1734 return 0;
1735}
1736_ACEOF
1737if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_hi=-1 ac_mid=-1
1739 while :; do
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h. */
1742$4
1743int
1744main ()
1745{
1746static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1747test_array [0] = 0
2299a76d 1748
75086676
DD
1749 ;
1750 return 0;
1751}
1752_ACEOF
1753if ac_fn_c_try_compile "$LINENO"; then :
1754 ac_lo=$ac_mid; break
1755else
1756 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1757 if test $ac_mid -le $ac_hi; then
1758 ac_lo= ac_hi=
1759 break
1760 fi
1761 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 done
1765else
1766 ac_lo= ac_hi=
1767fi
1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769fi
1770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771# Binary search between lo and hi bounds.
1772while test "x$ac_lo" != "x$ac_hi"; do
1773 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h. */
1776$4
1777int
1778main ()
1779{
1780static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1781test_array [0] = 0
2299a76d 1782
75086676
DD
1783 ;
1784 return 0;
1785}
1786_ACEOF
1787if ac_fn_c_try_compile "$LINENO"; then :
1788 ac_hi=$ac_mid
1789else
1790 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1791fi
1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299a76d 1793done
75086676
DD
1794case $ac_lo in #((
1795?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1796'') ac_retval=1 ;;
1797esac
1798 else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h. */
1801$4
1802static long int longval () { return $2; }
1803static unsigned long int ulongval () { return $2; }
1804#include <stdio.h>
1805#include <stdlib.h>
1806int
1807main ()
1808{
2299a76d 1809
75086676
DD
1810 FILE *f = fopen ("conftest.val", "w");
1811 if (! f)
1812 return 1;
1813 if (($2) < 0)
1814 {
1815 long int i = longval ();
1816 if (i != ($2))
1817 return 1;
1818 fprintf (f, "%ld", i);
1819 }
1820 else
1821 {
1822 unsigned long int i = ulongval ();
1823 if (i != ($2))
1824 return 1;
1825 fprintf (f, "%lu", i);
1826 }
1827 /* Do not output a trailing newline, as this causes \r\n confusion
1828 on some platforms. */
1829 return ferror (f) || fclose (f) != 0;
2299a76d 1830
75086676
DD
1831 ;
1832 return 0;
1833}
2299a76d 1834_ACEOF
75086676
DD
1835if ac_fn_c_try_run "$LINENO"; then :
1836 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1837else
1838 ac_retval=1
1839fi
1840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1841 conftest.$ac_objext conftest.beam conftest.$ac_ext
1842rm -f conftest.val
2299a76d 1843
75086676
DD
1844 fi
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 return $ac_retval
2299a76d 1847
75086676 1848} # ac_fn_c_compute_int
2299a76d 1849
75086676
DD
1850# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1851# -------------------------------------------
1852# Tests whether TYPE exists after having included INCLUDES, setting cache
1853# variable VAR accordingly.
1854ac_fn_c_check_type ()
1855{
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858$as_echo_n "checking for $2... " >&6; }
1859if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1861else
1862 eval "$3=no"
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h. */
1865$4
1866int
1867main ()
1868{
1869if (sizeof ($2))
1870 return 0;
1871 ;
1872 return 0;
1873}
2299a76d 1874_ACEOF
75086676
DD
1875if ac_fn_c_try_compile "$LINENO"; then :
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h. */
1878$4
1879int
1880main ()
1881{
1882if (sizeof (($2)))
1883 return 0;
1884 ;
1885 return 0;
1886}
2299a76d 1887_ACEOF
75086676 1888if ac_fn_c_try_compile "$LINENO"; then :
2299a76d 1889
75086676
DD
1890else
1891 eval "$3=yes"
1892fi
1893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894fi
1895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2299a76d 1901
75086676 1902} # ac_fn_c_check_type
2299a76d 1903
75086676
DD
1904# ac_fn_c_try_link LINENO
1905# -----------------------
1906# Try to link conftest.$ac_ext, and return whether this succeeded.
1907ac_fn_c_try_link ()
1908{
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 rm -f conftest.$ac_objext conftest$ac_exeext
1911 if { { ac_try="$ac_link"
1912case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917$as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_link") 2>conftest.err
1919 ac_status=$?
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
252b5132 1924 fi
75086676
DD
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } && {
1927 test -z "$ac_c_werror_flag" ||
1928 test ! -s conftest.err
1929 } && test -s conftest$ac_exeext && {
1930 test "$cross_compiling" = yes ||
1931 $as_test_x conftest$ac_exeext
1932 }; then :
1933 ac_retval=0
1934else
1935 $as_echo "$as_me: failed program was:" >&5
1936sed 's/^/| /' conftest.$ac_ext >&5
1937
1938 ac_retval=1
252b5132 1939fi
75086676
DD
1940 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1941 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1942 # interfere with the next link command; also delete a directory that is
1943 # left behind by Apple's compiler. We do this before executing the actions.
1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 return $ac_retval
252b5132 1947
75086676
DD
1948} # ac_fn_c_try_link
1949
1950# ac_fn_c_check_func LINENO FUNC VAR
1951# ----------------------------------
1952# Tests whether FUNC exists, setting the cache variable VAR accordingly
1953ac_fn_c_check_func ()
1954{
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957$as_echo_n "checking for $2... " >&6; }
1958if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959 $as_echo_n "(cached) " >&6
252b5132 1960else
75086676
DD
1961 if test x$gcc_no_link = xyes; then
1962 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2299a76d 1963fi
75086676
DD
1964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
85f1f7cf
DD
1966/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1968#define $2 innocuous_$2
1969
75086676
DD
1970/* System header to define __stub macros and hopefully few prototypes,
1971 which can conflict with char $2 (); below.
1972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
85f1f7cf
DD
1973 <limits.h> exists even on freestanding compilers. */
1974
1975#ifdef __STDC__
75086676
DD
1976# include <limits.h>
1977#else
1978# include <assert.h>
1979#endif
85f1f7cf
DD
1980
1981#undef $2
1982
1983/* Override any GCC internal prototype to avoid an error.
1984 Use char because int might match the return type of a GCC
1985 builtin and then its argument prototype would still apply. */
75086676
DD
1986#ifdef __cplusplus
1987extern "C"
75086676 1988#endif
75086676
DD
1989char $2 ();
1990/* The GNU C library defines this for functions which it implements
1991 to always fail with ENOSYS. Some functions are actually named
1992 something starting with __ and the normal name is an alias. */
85f1f7cf 1993#if defined __stub_$2 || defined __stub___$2
75086676 1994choke me
75086676 1995#endif
2299a76d 1996
75086676
DD
1997int
1998main ()
1999{
85f1f7cf 2000return $2 ();
75086676
DD
2001 ;
2002 return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_link "$LINENO"; then :
2006 eval "$3=yes"
2007else
2008 eval "$3=no"
252b5132 2009fi
75086676
DD
2010rm -f core conftest.err conftest.$ac_objext \
2011 conftest$ac_exeext conftest.$ac_ext
2012fi
2013eval ac_res=\$$3
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015$as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
252b5132 2017
75086676 2018} # ac_fn_c_check_func
252b5132 2019
75086676
DD
2020# ac_fn_c_check_decl LINENO SYMBOL VAR
2021# ------------------------------------
2022# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2023ac_fn_c_check_decl ()
2024{
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
a2803021
DD
2026 as_decl_name=`echo $2|sed 's/ *(.*//'`
2027 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2029$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
75086676
DD
2030if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031 $as_echo_n "(cached) " >&6
2032else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h. */
2035$4
2036int
2037main ()
2038{
a2803021
DD
2039#ifndef $as_decl_name
2040#ifdef __cplusplus
2041 (void) $as_decl_use;
2042#else
2043 (void) $as_decl_name;
2044#endif
75086676 2045#endif
252b5132 2046
75086676
DD
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2052 eval "$3=yes"
2053else
2054 eval "$3=no"
2055fi
2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057fi
2058eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060$as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
252b5132 2062
75086676
DD
2063} # ac_fn_c_check_decl
2064cat >config.log <<_ACEOF
2065This file contains any messages produced by compilers while
2066running configure, to aid debugging if configure makes a mistake.
52d98c2d 2067
75086676
DD
2068It was created by $as_me, which was
2069generated by GNU Autoconf 2.64. Invocation command line was
252b5132 2070
75086676 2071 $ $0 $@
2299a76d 2072
75086676
DD
2073_ACEOF
2074exec 5>>config.log
2075{
2076cat <<_ASUNAME
2077## --------- ##
2078## Platform. ##
2079## --------- ##
2299a76d 2080
75086676
DD
2081hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2082uname -m = `(uname -m) 2>/dev/null || echo unknown`
2083uname -r = `(uname -r) 2>/dev/null || echo unknown`
2084uname -s = `(uname -s) 2>/dev/null || echo unknown`
2085uname -v = `(uname -v) 2>/dev/null || echo unknown`
2299a76d 2086
75086676
DD
2087/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2088/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2299a76d 2089
75086676
DD
2090/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2091/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2092/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2093/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2094/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2095/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2096/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2299a76d 2097
75086676 2098_ASUNAME
2299a76d 2099
75086676
DD
2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 $as_echo "PATH: $as_dir"
2106 done
2107IFS=$as_save_IFS
2299a76d 2108
75086676 2109} >&5
2299a76d 2110
75086676 2111cat >&5 <<_ACEOF
2299a76d
DJ
2112
2113
75086676
DD
2114## ----------- ##
2115## Core tests. ##
2116## ----------- ##
2299a76d 2117
75086676 2118_ACEOF
2299a76d 2119
c8536f38 2120
75086676
DD
2121# Keep a trace of the command line.
2122# Strip out --no-create and --no-recursion so they do not pile up.
2123# Strip out --silent because we don't want to record it for future runs.
2124# Also quote any args containing shell meta-characters.
2125# Make two passes to allow for proper duplicate-argument suppression.
2126ac_configure_args=
2127ac_configure_args0=
2128ac_configure_args1=
2129ac_must_keep_next=false
2130for ac_pass in 1 2
2131do
2132 for ac_arg
2133 do
2134 case $ac_arg in
2135 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2137 | -silent | --silent | --silen | --sile | --sil)
2138 continue ;;
2139 *\'*)
2140 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141 esac
2142 case $ac_pass in
2143 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2144 2)
2145 as_fn_append ac_configure_args1 " '$ac_arg'"
2146 if test $ac_must_keep_next = true; then
2147 ac_must_keep_next=false # Got value, back to normal.
2148 else
2149 case $ac_arg in
2150 *=* | --config-cache | -C | -disable-* | --disable-* \
2151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2153 | -with-* | --with-* | -without-* | --without-* | --x)
2154 case "$ac_configure_args0 " in
2155 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156 esac
2157 ;;
2158 -* ) ac_must_keep_next=true ;;
2159 esac
2160 fi
2161 as_fn_append ac_configure_args " '$ac_arg'"
2162 ;;
2163 esac
2164 done
2165done
2166{ ac_configure_args0=; unset ac_configure_args0;}
2167{ ac_configure_args1=; unset ac_configure_args1;}
c8536f38 2168
75086676
DD
2169# When interrupted or exit'd, cleanup temporary files, and complete
2170# config.log. We remove comments because anyway the quotes in there
2171# would cause problems or look ugly.
2172# WARNING: Use '\'' to represent an apostrophe within the trap.
2173# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2174trap 'exit_status=$?
2175 # Save into config.log some information that might help in debugging.
2176 {
2177 echo
c8536f38 2178
75086676
DD
2179 cat <<\_ASBOX
2180## ---------------- ##
2181## Cache variables. ##
2182## ---------------- ##
2183_ASBOX
2184 echo
2185 # The following way of writing the cache mishandles newlines in values,
2186(
2187 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in #(
2190 *${as_nl}*)
2191 case $ac_var in #(
2192 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2193$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2194 esac
2195 case $ac_var in #(
2196 _ | IFS | as_nl) ;; #(
2197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2198 *) { eval $ac_var=; unset $ac_var;} ;;
2199 esac ;;
2200 esac
2201 done
2202 (set) 2>&1 |
2203 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2204 *${as_nl}ac_space=\ *)
2205 sed -n \
2206 "s/'\''/'\''\\\\'\'''\''/g;
2207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2208 ;; #(
2209 *)
2210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2211 ;;
2212 esac |
2213 sort
2214)
2215 echo
2299a76d 2216
75086676
DD
2217 cat <<\_ASBOX
2218## ----------------- ##
2219## Output variables. ##
2220## ----------------- ##
2221_ASBOX
2222 echo
2223 for ac_var in $ac_subst_vars
2224 do
2225 eval ac_val=\$$ac_var
2226 case $ac_val in
2227 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228 esac
2229 $as_echo "$ac_var='\''$ac_val'\''"
2230 done | sort
2231 echo
2299a76d 2232
75086676
DD
2233 if test -n "$ac_subst_files"; then
2234 cat <<\_ASBOX
2235## ------------------- ##
2236## File substitutions. ##
2237## ------------------- ##
2238_ASBOX
2239 echo
2240 for ac_var in $ac_subst_files
2241 do
2242 eval ac_val=\$$ac_var
2243 case $ac_val in
2244 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245 esac
2246 $as_echo "$ac_var='\''$ac_val'\''"
2247 done | sort
2248 echo
2249 fi
bb6a587d 2250
75086676
DD
2251 if test -s confdefs.h; then
2252 cat <<\_ASBOX
2253## ----------- ##
2254## confdefs.h. ##
2255## ----------- ##
2256_ASBOX
2257 echo
2258 cat confdefs.h
2259 echo
2260 fi
2261 test "$ac_signal" != 0 &&
2262 $as_echo "$as_me: caught signal $ac_signal"
2263 $as_echo "$as_me: exit $exit_status"
2264 } >&5
2265 rm -f core *.core core.conftest.* &&
2266 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2267 exit $exit_status
2268' 0
2269for ac_signal in 1 2 13 15; do
2270 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2271done
2272ac_signal=0
2299a76d 2273
75086676
DD
2274# confdefs.h avoids OS command line length limits that DEFS can exceed.
2275rm -f -r conftest* confdefs.h
2299a76d 2276
75086676 2277$as_echo "/* confdefs.h */" > confdefs.h
2299a76d 2278
75086676 2279# Predefined preprocessor variables.
2299a76d 2280
75086676
DD
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_NAME "$PACKAGE_NAME"
2283_ACEOF
2299a76d 2284
75086676
DD
2285cat >>confdefs.h <<_ACEOF
2286#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2287_ACEOF
2299a76d 2288
75086676
DD
2289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_VERSION "$PACKAGE_VERSION"
2291_ACEOF
cfed0715 2292
75086676
DD
2293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_STRING "$PACKAGE_STRING"
2295_ACEOF
2299a76d 2296
75086676
DD
2297cat >>confdefs.h <<_ACEOF
2298#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2299_ACEOF
252b5132 2300
75086676
DD
2301cat >>confdefs.h <<_ACEOF
2302#define PACKAGE_URL "$PACKAGE_URL"
2303_ACEOF
252b5132
RH
2304
2305
75086676
DD
2306# Let the site file select an alternate cache file if it wants to.
2307# Prefer an explicitly selected file to automatically selected ones.
2308ac_site_file1=NONE
2309ac_site_file2=NONE
2310if test -n "$CONFIG_SITE"; then
2311 ac_site_file1=$CONFIG_SITE
2312elif test "x$prefix" != xNONE; then
2313 ac_site_file1=$prefix/share/config.site
2314 ac_site_file2=$prefix/etc/config.site
2315else
2316 ac_site_file1=$ac_default_prefix/share/config.site
2317 ac_site_file2=$ac_default_prefix/etc/config.site
2318fi
2319for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2320do
2321 test "x$ac_site_file" = xNONE && continue
2322 if test -r "$ac_site_file"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2324$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2325 sed 's/^/| /' "$ac_site_file" >&5
2326 . "$ac_site_file"
2327 fi
2328done
2329
2330if test -r "$cache_file"; then
2331 # Some versions of bash will fail to source /dev/null (special
2332 # files actually), so we avoid doing that.
2333 if test -f "$cache_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2335$as_echo "$as_me: loading cache $cache_file" >&6;}
2336 case $cache_file in
2337 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2338 *) . "./$cache_file";;
2339 esac
2340 fi
2341else
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2343$as_echo "$as_me: creating cache $cache_file" >&6;}
2344 >$cache_file
2345fi
2346
2347# Check that the precious variables saved in the cache have kept the same
2348# value.
2349ac_cache_corrupted=false
2350for ac_var in $ac_precious_vars; do
2351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2352 eval ac_new_set=\$ac_env_${ac_var}_set
2353 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2354 eval ac_new_val=\$ac_env_${ac_var}_value
2355 case $ac_old_set,$ac_new_set in
2356 set,)
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2358$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2359 ac_cache_corrupted=: ;;
2360 ,set)
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2362$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2363 ac_cache_corrupted=: ;;
2364 ,);;
2365 *)
2366 if test "x$ac_old_val" != "x$ac_new_val"; then
2367 # differences in whitespace do not lead to failure.
2368 ac_old_val_w=`echo x $ac_old_val`
2369 ac_new_val_w=`echo x $ac_new_val`
2370 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2372$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2373 ac_cache_corrupted=:
2374 else
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2376$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2377 eval $ac_var=\$ac_old_val
2378 fi
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2380$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2382$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2383 fi;;
2384 esac
2385 # Pass precious variables to config.status.
2386 if test "$ac_new_set" = set; then
2387 case $ac_new_val in
2388 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2389 *) ac_arg=$ac_var=$ac_new_val ;;
2390 esac
2391 case " $ac_configure_args " in
2392 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2393 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2394 esac
2395 fi
2396done
2397if $ac_cache_corrupted; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2401$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2402 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2403fi
2404## -------------------- ##
2405## Main body of script. ##
2406## -------------------- ##
2407
2408ac_ext=c
2409ac_cpp='$CPP $CPPFLAGS'
2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413
2414
2415
2416
2417
2418
2419
2420# This works around the fact that libtool configuration may change LD
2421# for this particular configuration, but some shells, instead of
2422# keeping the changes in LD private, export them just because LD is
2423# exported. We don't use libtool yet, but some day we might, so...
2424ORIGINAL_LD_FOR_MULTILIBS=$LD
2425
2426
2427# Check whether --with-target-subdir was given.
2428if test "${with_target_subdir+set}" = set; then :
2429 withval=$with_target_subdir;
2430fi
2431
2432
2433# Check whether --with-build-subdir was given.
2434if test "${with_build_subdir+set}" = set; then :
2435 withval=$with_build_subdir;
2436fi
2437
2438
2439# Check whether --with-cross-host was given.
2440if test "${with_cross_host+set}" = set; then :
2441 withval=$with_cross_host;
2442fi
2443
2444
2445# Check whether --with-newlib was given.
2446if test "${with_newlib+set}" = set; then :
2447 withval=$with_newlib;
2448fi
2449
2450
2451if test "${srcdir}" = "."; then
2452 if test -n "${with_build_subdir}"; then
2453 libiberty_topdir="${srcdir}/../.."
cfed0715
DD
2454 with_target_subdir=
2455 elif test -z "${with_target_subdir}"; then
252b5132
RH
2456 libiberty_topdir="${srcdir}/.."
2457 else
2458 if test "${with_target_subdir}" != "."; then
2459 libiberty_topdir="${srcdir}/${with_multisrctop}../.."
2460 else
2461 libiberty_topdir="${srcdir}/${with_multisrctop}.."
2462 fi
2463 fi
2464else
2465 libiberty_topdir="${srcdir}/.."
2466fi
85b9a938 2467
252b5132 2468ac_aux_dir=
75086676
DD
2469for ac_dir in $libiberty_topdir "$srcdir"/$libiberty_topdir; do
2470 for ac_t in install-sh install.sh shtool; do
2471 if test -f "$ac_dir/$ac_t"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/$ac_t -c"
2474 break 2
2475 fi
2476 done
252b5132
RH
2477done
2478if test -z "$ac_aux_dir"; then
75086676 2479 as_fn_error "cannot find install-sh, install.sh, or shtool in $libiberty_topdir \"$srcdir\"/$libiberty_topdir" "$LINENO" 5
252b5132 2480fi
252b5132 2481
75086676
DD
2482# These three variables are undocumented and unsupported,
2483# and are intended to be withdrawn in a future Autoconf release.
2484# They can cause serious problems if a builder's source tree is in a directory
2485# whose full name contains unusual characters.
2486ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2487ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2488ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
252b5132
RH
2489
2490
75086676
DD
2491
2492
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2494$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2495 # Check whether --enable-maintainer-mode was given.
2496if test "${enable_maintainer_mode+set}" = set; then :
2497 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
39423523
DD
2498else
2499 maintainer_mode=no
75086676 2500fi
39423523 2501
75086676
DD
2502
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
2504$as_echo "$maintainer_mode" >&6; }
39423523
DD
2505
2506if test "$maintainer_mode" = "yes"; then
2507 MAINT=''
2508 NOTMAINT='#'
2509else
2510 MAINT='#'
2511 NOTMAINT=''
2512fi
2513
da191b5b
DD
2514# Do we have a single-tree copy of texinfo? Even if we do, we can't
2515# rely on it - libiberty is built before texinfo.
2516# Extract the first word of "makeinfo", so it can be a program name with args.
39423523 2517set dummy makeinfo; ac_word=$2
75086676
DD
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519$as_echo_n "checking for $ac_word... " >&6; }
2520if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
2521 $as_echo_n "(cached) " >&6
39423523
DD
2522else
2523 if test -n "$MAKEINFO"; then
2524 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2525else
2299a76d
DJ
2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527for as_dir in $PATH
2528do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
75086676
DD
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299a76d 2533 ac_cv_prog_MAKEINFO="makeinfo"
75086676 2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299a76d
DJ
2535 break 2
2536 fi
2537done
75086676
DD
2538 done
2539IFS=$as_save_IFS
2299a76d 2540
39423523
DD
2541fi
2542fi
2299a76d 2543MAKEINFO=$ac_cv_prog_MAKEINFO
39423523 2544if test -n "$MAKEINFO"; then
75086676
DD
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
2546$as_echo "$MAKEINFO" >&6; }
39423523 2547else
75086676
DD
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549$as_echo "no" >&6; }
39423523
DD
2550fi
2551
75086676 2552
1a78a35a
DD
2553if test "x$MAKEINFO" = "x"; then
2554 MAKEINFO="@echo makeinfo missing; true"
da191b5b 2555 BUILD_INFO=
1a78a35a
DD
2556else
2557 BUILD_INFO=info
b7ca9213
L
2558 case "$MAKEINFO" in
2559 */missing\ makeinfo*)
1a78a35a 2560 BUILD_INFO=
75086676 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
b7ca9213 2562*** Makeinfo is missing. Info documentation will not be built." >&5
75086676 2563$as_echo "$as_me: WARNING:
b7ca9213
L
2564*** Makeinfo is missing. Info documentation will not be built." >&2;}
2565 ;;
2566 *)
2567 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
2568 x*\ [1-3].* )
2569 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
2570 BUILD_INFO=
75086676 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
2299a76d 2572*** Makeinfo is too old. Info documentation will not be built." >&5
75086676 2573$as_echo "$as_me: WARNING:
2299a76d 2574*** Makeinfo is too old. Info documentation will not be built." >&2;}
b7ca9213
L
2575 ;;
2576 esac
1a78a35a
DD
2577 ;;
2578 esac
2579fi
da191b5b 2580
39423523
DD
2581
2582
2583# Extract the first word of "perl", so it can be a program name with args.
2584set dummy perl; ac_word=$2
75086676
DD
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586$as_echo_n "checking for $ac_word... " >&6; }
2587if test "${ac_cv_prog_PERL+set}" = set; then :
2588 $as_echo_n "(cached) " >&6
39423523
DD
2589else
2590 if test -n "$PERL"; then
2591 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2592else
2299a76d
DJ
2593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594for as_dir in $PATH
2595do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
75086676
DD
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299a76d 2600 ac_cv_prog_PERL="perl"
75086676 2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299a76d
DJ
2602 break 2
2603 fi
2604done
75086676
DD
2605 done
2606IFS=$as_save_IFS
2299a76d 2607
39423523
DD
2608fi
2609fi
2299a76d 2610PERL=$ac_cv_prog_PERL
39423523 2611if test -n "$PERL"; then
75086676
DD
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
2613$as_echo "$PERL" >&6; }
39423523 2614else
75086676
DD
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616$as_echo "no" >&6; }
39423523
DD
2617fi
2618
75086676 2619
39423523
DD
2620if test x"$PERL" = x""; then
2621 HAVE_PERL='#'
2622else
2623 HAVE_PERL=''
2624fi
2625
2626
252b5132 2627# Make sure we can run config.sub.
75086676
DD
2628$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2629 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2630
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2632$as_echo_n "checking build system type... " >&6; }
2633if test "${ac_cv_build+set}" = set; then :
2634 $as_echo_n "(cached) " >&6
2635else
2636 ac_build_alias=$build_alias
2637test "x$ac_build_alias" = x &&
2638 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2639test "x$ac_build_alias" = x &&
2640 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2641ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2642 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2643
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2646$as_echo "$ac_cv_build" >&6; }
2647case $ac_cv_build in
2648*-*-*) ;;
2649*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2650esac
2299a76d 2651build=$ac_cv_build
75086676
DD
2652ac_save_IFS=$IFS; IFS='-'
2653set x $ac_cv_build
2654shift
2655build_cpu=$1
2656build_vendor=$2
2657shift; shift
2658# Remember, the first character of IFS is used to create $*,
2659# except with old shells:
2660build_os=$*
2661IFS=$ac_save_IFS
2662case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
252b5132
RH
2663
2664
75086676
DD
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2666$as_echo_n "checking host system type... " >&6; }
2667if test "${ac_cv_host+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2299a76d 2669else
75086676
DD
2670 if test "x$host_alias" = x; then
2671 ac_cv_host=$ac_cv_build
2672else
2673 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2674 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2675fi
252b5132 2676
2299a76d 2677fi
75086676
DD
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2679$as_echo "$ac_cv_host" >&6; }
2680case $ac_cv_host in
2681*-*-*) ;;
2682*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2683esac
2299a76d 2684host=$ac_cv_host
75086676
DD
2685ac_save_IFS=$IFS; IFS='-'
2686set x $ac_cv_host
2687shift
2688host_cpu=$1
2689host_vendor=$2
2690shift; shift
2691# Remember, the first character of IFS is used to create $*,
2692# except with old shells:
2693host_os=$*
2694IFS=$ac_save_IFS
2695case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
252b5132 2696
252b5132 2697
252b5132 2698
252b5132 2699
2299a76d
DJ
2700if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 2702set dummy ${ac_tool_prefix}ar; ac_word=$2
75086676
DD
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704$as_echo_n "checking for $ac_word... " >&6; }
2705if test "${ac_cv_prog_AR+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
252b5132
RH
2707else
2708 if test -n "$AR"; then
2709 ac_cv_prog_AR="$AR" # Let the user override the test.
2710else
2299a76d
DJ
2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
75086676
DD
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299a76d 2718 ac_cv_prog_AR="${ac_tool_prefix}ar"
75086676 2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299a76d
DJ
2720 break 2
2721 fi
2722done
75086676
DD
2723 done
2724IFS=$as_save_IFS
2299a76d 2725
252b5132
RH
2726fi
2727fi
2299a76d 2728AR=$ac_cv_prog_AR
252b5132 2729if test -n "$AR"; then
75086676
DD
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2731$as_echo "$AR" >&6; }
252b5132 2732else
75086676
DD
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734$as_echo "no" >&6; }
2299a76d
DJ
2735fi
2736
75086676 2737
252b5132 2738fi
2299a76d
DJ
2739if test -z "$ac_cv_prog_AR"; then
2740 ac_ct_AR=$AR
2741 # Extract the first word of "ar", so it can be a program name with args.
2742set dummy ar; ac_word=$2
75086676
DD
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744$as_echo_n "checking for $ac_word... " >&6; }
2745if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
2299a76d
DJ
2747else
2748 if test -n "$ac_ct_AR"; then
2749 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2750else
2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH
2753do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
75086676
DD
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299a76d 2758 ac_cv_prog_ac_ct_AR="ar"
75086676 2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299a76d
DJ
2760 break 2
2761 fi
2762done
75086676
DD
2763 done
2764IFS=$as_save_IFS
252b5132 2765
2299a76d
DJ
2766fi
2767fi
2768ac_ct_AR=$ac_cv_prog_ac_ct_AR
2769if test -n "$ac_ct_AR"; then
75086676
DD
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2771$as_echo "$ac_ct_AR" >&6; }
2299a76d 2772else
75086676
DD
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774$as_echo "no" >&6; }
2299a76d 2775fi
252b5132 2776
75086676
DD
2777 if test "x$ac_ct_AR" = x; then
2778 AR=""
2779 else
2780 case $cross_compiling:$ac_tool_warned in
2781yes:)
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2784ac_tool_warned=yes ;;
2785esac
2786 AR=$ac_ct_AR
2787 fi
2299a76d
DJ
2788else
2789 AR="$ac_cv_prog_AR"
2790fi
252b5132 2791
2299a76d
DJ
2792if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 2794set dummy ${ac_tool_prefix}ranlib; ac_word=$2
75086676
DD
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if test "${ac_cv_prog_RANLIB+set}" = set; then :
2798 $as_echo_n "(cached) " >&6
252b5132
RH
2799else
2800 if test -n "$RANLIB"; then
2801 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2802else
2299a76d
DJ
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
75086676
DD
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299a76d 2810 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
75086676 2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299a76d
DJ
2812 break 2
2813 fi
2814done
75086676
DD
2815 done
2816IFS=$as_save_IFS
2299a76d 2817
252b5132
RH
2818fi
2819fi
2299a76d 2820RANLIB=$ac_cv_prog_RANLIB
252b5132 2821if test -n "$RANLIB"; then
75086676
DD
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2823$as_echo "$RANLIB" >&6; }
252b5132 2824else
75086676
DD
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
252b5132
RH
2827fi
2828
75086676 2829
2299a76d 2830fi
252b5132 2831if test -z "$ac_cv_prog_RANLIB"; then
2299a76d 2832 ac_ct_RANLIB=$RANLIB
252b5132
RH
2833 # Extract the first word of "ranlib", so it can be a program name with args.
2834set dummy ranlib; ac_word=$2
75086676
DD
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836$as_echo_n "checking for $ac_word... " >&6; }
2837if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2838 $as_echo_n "(cached) " >&6
252b5132 2839else
2299a76d
DJ
2840 if test -n "$ac_ct_RANLIB"; then
2841 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 2842else
2299a76d
DJ
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
75086676
DD
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299a76d 2850 ac_cv_prog_ac_ct_RANLIB="ranlib"
75086676 2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299a76d
DJ
2852 break 2
2853 fi
2854done
75086676
DD
2855 done
2856IFS=$as_save_IFS
2299a76d 2857
252b5132
RH
2858fi
2859fi
2299a76d
DJ
2860ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2861if test -n "$ac_ct_RANLIB"; then
75086676
DD
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2863$as_echo "$ac_ct_RANLIB" >&6; }
252b5132 2864else
75086676
DD
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
252b5132
RH
2867fi
2868
75086676
DD
2869 if test "x$ac_ct_RANLIB" = x; then
2870 RANLIB=":"
2871 else
2872 case $cross_compiling:$ac_tool_warned in
2873yes:)
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876ac_tool_warned=yes ;;
2877esac
2878 RANLIB=$ac_ct_RANLIB
2879 fi
252b5132 2880else
2299a76d 2881 RANLIB="$ac_cv_prog_RANLIB"
252b5132
RH
2882fi
2883
2884
958afec3
GK
2885# Add --enable-multilib to configure.
2886# Default to --enable-multilib
75086676
DD
2887# Check whether --enable-multilib was given.
2888if test "${enable_multilib+set}" = set; then :
2889 enableval=$enable_multilib; case "$enableval" in
958afec3
GK
2890 yes) multilib=yes ;;
2891 no) multilib=no ;;
75086676 2892 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
958afec3
GK
2893 esac
2894else
2895 multilib=yes
75086676
DD
2896fi
2897
958afec3
GK
2898
2899# Even if the default multilib is not a cross compilation,
2900# it may be that some of the other multilibs are.
2901if test $cross_compiling = no && test $multilib = yes \
2902 && test "x${with_multisubdir}" != x ; then
2903 cross_compiling=maybe
2904fi
2905
a4818a05
DD
2906# We may wish to install the target headers somewhere.
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libiberty headers and static library" >&5
2908$as_echo_n "checking whether to install libiberty headers and static library... " >&6; }
2909
2910# Check whether --enable-install-libiberty was given.
2911if test "${enable_install_libiberty+set}" = set; then :
2912 enableval=$enable_install_libiberty; enable_install_libiberty=$enableval
2913else
2914 enable_install_libiberty=no
2915fi
2916
2917# Option parsed, now set things appropriately.
2918case x"$enable_install_libiberty" in
2919 xyes|x)
2920 target_header_dir=libiberty
2921 ;;
2922 xno)
2923 target_header_dir=
2924 ;;
2925 *)
2926 # This could be sanity-checked in various ways...
2927 target_header_dir="${enable_install_libiberty}"
2928 ;;
2929esac
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_install_libiberty" >&5
2931$as_echo "$enable_install_libiberty" >&6; }
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: target_header_dir = $target_header_dir" >&5
2933$as_echo "$as_me: target_header_dir = $target_header_dir" >&6;}
2934
0c0a36a4 2935
2299a76d
DJ
2936ac_ext=c
2937ac_cpp='$CPP $CPPFLAGS'
2938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2943set dummy ${ac_tool_prefix}gcc; ac_word=$2
75086676
DD
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945$as_echo_n "checking for $ac_word... " >&6; }
2946if test "${ac_cv_prog_CC+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
2299a76d
DJ
2948else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
75086676
DD
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299a76d 2959 ac_cv_prog_CC="${ac_tool_prefix}gcc"
75086676 2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299a76d
DJ
2961 break 2
2962 fi
2963done
75086676
DD
2964 done
2965IFS=$as_save_IFS
2299a76d
DJ
2966
2967fi
2968fi
2969CC=$ac_cv_prog_CC
2970if test -n "$CC"; then
75086676
DD
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972$as_echo "$CC" >&6; }
2299a76d 2973else
75086676
DD
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
2299a76d
DJ
2976fi
2977
75086676 2978
2299a76d
DJ
2979fi
2980if test -z "$ac_cv_prog_CC"; then
2981 ac_ct_CC=$CC
2982 # Extract the first word of "gcc", so it can be a program name with args.
252b5132 2983set dummy gcc; ac_word=$2
75086676
DD
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
2986if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2299a76d
DJ
2988else
2989 if test -n "$ac_ct_CC"; then
2990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
75086676
DD
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299a76d 2999 ac_cv_prog_ac_ct_CC="gcc"
75086676 3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299a76d
DJ
3001 break 2
3002 fi
3003done
75086676
DD
3004 done
3005IFS=$as_save_IFS
2299a76d
DJ
3006
3007fi
3008fi
3009ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010if test -n "$ac_ct_CC"; then
75086676
DD
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3012$as_echo "$ac_ct_CC" >&6; }
2299a76d 3013else
75086676
DD
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015$as_echo "no" >&6; }
2299a76d
DJ
3016fi
3017
75086676
DD
3018 if test "x$ac_ct_CC" = x; then
3019 CC=""
3020 else
3021 case $cross_compiling:$ac_tool_warned in
3022yes:)
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025ac_tool_warned=yes ;;
3026esac
3027 CC=$ac_ct_CC
3028 fi
2299a76d
DJ
3029else
3030 CC="$ac_cv_prog_CC"
3031fi
3032
3033if test -z "$CC"; then
75086676
DD
3034 if test -n "$ac_tool_prefix"; then
3035 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2299a76d 3036set dummy ${ac_tool_prefix}cc; ac_word=$2
75086676
DD
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038$as_echo_n "checking for $ac_word... " >&6; }
3039if test "${ac_cv_prog_CC+set}" = set; then :
3040 $as_echo_n "(cached) " >&6
252b5132
RH
3041else
3042 if test -n "$CC"; then
3043 ac_cv_prog_CC="$CC" # Let the user override the test.
3044else
2299a76d
DJ
3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH
3047do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
75086676
DD
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299a76d 3052 ac_cv_prog_CC="${ac_tool_prefix}cc"
75086676 3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299a76d
DJ
3054 break 2
3055 fi
3056done
75086676
DD
3057 done
3058IFS=$as_save_IFS
2299a76d 3059
252b5132
RH
3060fi
3061fi
2299a76d 3062CC=$ac_cv_prog_CC
252b5132 3063if test -n "$CC"; then
75086676
DD
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3065$as_echo "$CC" >&6; }
252b5132 3066else
75086676
DD
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068$as_echo "no" >&6; }
252b5132
RH
3069fi
3070
2299a76d 3071
75086676 3072 fi
2299a76d 3073fi
252b5132
RH
3074if test -z "$CC"; then
3075 # Extract the first word of "cc", so it can be a program name with args.
3076set dummy cc; ac_word=$2
75086676
DD
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078$as_echo_n "checking for $ac_word... " >&6; }
3079if test "${ac_cv_prog_CC+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
252b5132
RH
3081else
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3084else
252b5132 3085 ac_prog_rejected=no
2299a76d
DJ
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
75086676
DD
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299a76d
DJ
3093 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3094 ac_prog_rejected=yes
3095 continue
3096 fi
3097 ac_cv_prog_CC="cc"
75086676 3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299a76d
DJ
3099 break 2
3100 fi
3101done
75086676
DD
3102 done
3103IFS=$as_save_IFS
2299a76d 3104
252b5132
RH
3105if test $ac_prog_rejected = yes; then
3106 # We found a bogon in the path, so make sure we never use it.
3107 set dummy $ac_cv_prog_CC
3108 shift
2299a76d 3109 if test $# != 0; then
252b5132
RH
3110 # We chose a different compiler from the bogus one.
3111 # However, it has the same basename, so the bogon will be chosen
3112 # first if we set CC to just the basename; use the full file name.
3113 shift
2299a76d 3114 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
3115 fi
3116fi
3117fi
3118fi
2299a76d 3119CC=$ac_cv_prog_CC
252b5132 3120if test -n "$CC"; then
75086676
DD
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3122$as_echo "$CC" >&6; }
252b5132 3123else
75086676
DD
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125$as_echo "no" >&6; }
252b5132
RH
3126fi
3127
75086676 3128
252b5132 3129fi
2299a76d
DJ
3130if test -z "$CC"; then
3131 if test -n "$ac_tool_prefix"; then
75086676 3132 for ac_prog in cl.exe
2299a76d
DJ
3133 do
3134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3135set dummy $ac_tool_prefix$ac_prog; ac_word=$2
75086676
DD
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137$as_echo_n "checking for $ac_word... " >&6; }
3138if test "${ac_cv_prog_CC+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
252b5132 3140else
2299a76d
DJ
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3143else
2299a76d
DJ
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
75086676
DD
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299a76d 3151 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
75086676 3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299a76d
DJ
3153 break 2
3154 fi
3155done
75086676
DD
3156 done
3157IFS=$as_save_IFS
2299a76d 3158
252b5132
RH
3159fi
3160fi
2299a76d
DJ
3161CC=$ac_cv_prog_CC
3162if test -n "$CC"; then
75086676
DD
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164$as_echo "$CC" >&6; }
252b5132 3165else
75086676
DD
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167$as_echo "no" >&6; }
252b5132 3168fi
252b5132 3169
75086676 3170
2299a76d
DJ
3171 test -n "$CC" && break
3172 done
252b5132 3173fi
2299a76d
DJ
3174if test -z "$CC"; then
3175 ac_ct_CC=$CC
75086676 3176 for ac_prog in cl.exe
2299a76d
DJ
3177do
3178 # Extract the first word of "$ac_prog", so it can be a program name with args.
3179set dummy $ac_prog; ac_word=$2
75086676
DD
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181$as_echo_n "checking for $ac_word... " >&6; }
3182if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
2299a76d
DJ
3184else
3185 if test -n "$ac_ct_CC"; then
3186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187else
3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189for as_dir in $PATH
3190do
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
75086676
DD
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299a76d 3195 ac_cv_prog_ac_ct_CC="$ac_prog"
75086676 3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299a76d 3197 break 2
252b5132 3198 fi
2299a76d 3199done
75086676
DD
3200 done
3201IFS=$as_save_IFS
2299a76d
DJ
3202
3203fi
3204fi
3205ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206if test -n "$ac_ct_CC"; then
75086676
DD
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208$as_echo "$ac_ct_CC" >&6; }
252b5132 3209else
75086676
DD
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211$as_echo "no" >&6; }
252b5132
RH
3212fi
3213
75086676 3214
2299a76d
DJ
3215 test -n "$ac_ct_CC" && break
3216done
252b5132 3217
75086676
DD
3218 if test "x$ac_ct_CC" = x; then
3219 CC=""
3220 else
3221 case $cross_compiling:$ac_tool_warned in
3222yes:)
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3225ac_tool_warned=yes ;;
3226esac
3227 CC=$ac_ct_CC
3228 fi
2299a76d
DJ
3229fi
3230
3231fi
3232
3233
75086676
DD
3234test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236as_fn_error "no acceptable C compiler found in \$PATH
3237See \`config.log' for more details." "$LINENO" 5; }
2299a76d
DJ
3238
3239# Provide some information about the compiler.
75086676
DD
3240$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3241set X $ac_compile
3242ac_compiler=$2
3243for ac_option in --version -v -V -qversion; do
3244 { { ac_try="$ac_compiler $ac_option >&5"
3245case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248esac
3249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250$as_echo "$ac_try_echo"; } >&5
3251 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2299a76d 3252 ac_status=$?
75086676
DD
3253 if test -s conftest.err; then
3254 sed '10a\
3255... rest of stderr output deleted ...
3256 10q' conftest.err >conftest.er1
3257 cat conftest.er1 >&5
3258 rm -f conftest.er1 conftest.err
3259 fi
3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261 test $ac_status = 0; }
3262done
2299a76d 3263
75086676 3264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299a76d 3265/* end confdefs.h. */
92655e19 3266
2299a76d
DJ
3267int
3268main ()
3269{
3270
3271 ;
3272 return 0;
3273}
3274_ACEOF
3275# FIXME: Cleanup?
75086676 3276if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2299a76d
DJ
3277 (eval $ac_link) 2>&5
3278 ac_status=$?
75086676
DD
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; then :
2299a76d
DJ
3281 gcc_no_link=no
3282else
3283 gcc_no_link=yes
3284fi
2299a76d
DJ
3285if test x$gcc_no_link = xyes; then
3286 # Setting cross_compile will disable run tests; it will
3287 # also disable AC_CHECK_FILE but that's generally
3288 # correct if we can't link.
3289 cross_compiling=yes
3290 EXEEXT=
3291else
75086676 3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299a76d
DJ
3293/* end confdefs.h. */
3294
3295int
3296main ()
3297{
3298
3299 ;
3300 return 0;
3301}
3302_ACEOF
3303ac_clean_files_save=$ac_clean_files
75086676 3304ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2299a76d
DJ
3305# Try to create an executable without -o first, disregard a.out.
3306# It will help us diagnose broken compilers, and finding out an intuition
3307# of exeext.
75086676
DD
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3309$as_echo_n "checking for C compiler default output file name... " >&6; }
3310ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3311
3312# The possible output files:
3313ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3314
3315ac_rmfiles=
3316for ac_file in $ac_files
3317do
3318 case $ac_file in
3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3320 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3321 esac
3322done
3323rm -f $ac_rmfiles
3324
3325if { { ac_try="$ac_link_default"
3326case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329esac
3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331$as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_link_default") 2>&5
3333 ac_status=$?
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; then :
3336 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3337# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3338# in a Makefile. We should not override ac_cv_exeext if it was cached,
3339# so that the user can short-circuit this test for compilers unknown to
3340# Autoconf.
3341for ac_file in $ac_files ''
2299a76d
DJ
3342do
3343 test -f "$ac_file" || continue
3344 case $ac_file in
75086676 3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
58670637 3346 ;;
2299a76d 3347 [ab].out )
58670637
DD
3348 # We found the default executable, but exeext='' is most
3349 # certainly right.
3350 break;;
2299a76d 3351 *.* )
75086676
DD
3352 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3353 then :; else
3354 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355 fi
3356 # We set ac_cv_exeext here because the later test for it is not
3357 # safe: cross compilers may not add the suffix if given an `-o'
3358 # argument, so we may need to know it at that point already.
3359 # Even if this section looks crufty: it has the advantage of
3360 # actually working.
58670637 3361 break;;
2299a76d 3362 * )
58670637 3363 break;;
2299a76d
DJ
3364 esac
3365done
75086676
DD
3366test "$ac_cv_exeext" = no && ac_cv_exeext=
3367
b39b76b8 3368else
75086676
DD
3369 ac_file=''
3370fi
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3372$as_echo "$ac_file" >&6; }
3373if test -z "$ac_file"; then :
3374 $as_echo "$as_me: failed program was:" >&5
2299a76d
DJ
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
75086676
DD
3377{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379{ as_fn_set_status 77
3380as_fn_error "C compiler cannot create executables
3381See \`config.log' for more details." "$LINENO" 5; }; }
2299a76d 3382fi
2299a76d 3383ac_exeext=$ac_cv_exeext
2299a76d 3384
75086676 3385# Check that the compiler produces executables we can run. If not, either
2299a76d 3386# the compiler is broken, or we cross compile.
75086676
DD
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3388$as_echo_n "checking whether the C compiler works... " >&6; }
2299a76d
DJ
3389# If not cross compiling, check that we can run a simple program.
3390if test "$cross_compiling" != yes; then
3391 if { ac_try='./$ac_file'
75086676
DD
3392 { { case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395esac
3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397$as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_try") 2>&5
2299a76d 3399 ac_status=$?
75086676
DD
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }; }; then
2299a76d
DJ
3402 cross_compiling=no
3403 else
3404 if test "$cross_compiling" = maybe; then
3405 cross_compiling=yes
3406 else
75086676
DD
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409as_fn_error "cannot run C compiled programs.
2299a76d 3410If you meant to cross compile, use \`--host'.
75086676 3411See \`config.log' for more details." "$LINENO" 5; }
b39b76b8
DD
3412 fi
3413 fi
2299a76d 3414fi
75086676
DD
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3416$as_echo "yes" >&6; }
2299a76d 3417
75086676 3418rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2299a76d 3419ac_clean_files=$ac_clean_files_save
75086676 3420# Check that the compiler produces executables we can run. If not, either
2299a76d 3421# the compiler is broken, or we cross compile.
75086676
DD
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3423$as_echo_n "checking whether we are cross compiling... " >&6; }
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3425$as_echo "$cross_compiling" >&6; }
3426
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3428$as_echo_n "checking for suffix of executables... " >&6; }
3429if { { ac_try="$ac_link"
3430case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433esac
3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link") 2>&5
2299a76d 3437 ac_status=$?
75086676
DD
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
2299a76d
DJ
3440 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3441# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3442# work properly (i.e., refer to `conftest.exe'), while it won't with
3443# `rm'.
3444for ac_file in conftest.exe conftest conftest.*; do
3445 test -f "$ac_file" || continue
3446 case $ac_file in
75086676 3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2299a76d 3448 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
58670637 3449 break;;
2299a76d
DJ
3450 * ) break;;
3451 esac
3452done
b39b76b8 3453else
75086676
DD
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456as_fn_error "cannot compute suffix of executables: cannot compile and link
3457See \`config.log' for more details." "$LINENO" 5; }
b39b76b8 3458fi
2299a76d 3459rm -f conftest$ac_cv_exeext
75086676
DD
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3461$as_echo "$ac_cv_exeext" >&6; }
2299a76d
DJ
3462
3463rm -f conftest.$ac_ext
3464EXEEXT=$ac_cv_exeext
3465ac_exeext=$EXEEXT
b39b76b8 3466fi
75086676
DD
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3468$as_echo_n "checking for suffix of object files... " >&6; }
3469if test "${ac_cv_objext+set}" = set; then :
3470 $as_echo_n "(cached) " >&6
b39b76b8 3471else
75086676 3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299a76d 3473/* end confdefs.h. */
b39b76b8 3474
2299a76d
DJ
3475int
3476main ()
3477{
b39b76b8 3478
2299a76d
DJ
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483rm -f conftest.o conftest.obj
75086676
DD
3484if { { ac_try="$ac_compile"
3485case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488esac
3489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490$as_echo "$ac_try_echo"; } >&5
3491 (eval "$ac_compile") 2>&5
3492 ac_status=$?
3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494 test $ac_status = 0; }; then :
3495 for ac_file in conftest.o conftest.obj conftest.*; do
3496 test -f "$ac_file" || continue;
2299a76d 3497 case $ac_file in
75086676 3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2299a76d
DJ
3499 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3500 break;;
3501 esac
3502done
b39b76b8 3503else
75086676 3504 $as_echo "$as_me: failed program was:" >&5
2299a76d
DJ
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
75086676
DD
3507{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509as_fn_error "cannot compute suffix of object files: cannot compile
3510See \`config.log' for more details." "$LINENO" 5; }
2299a76d 3511fi
2299a76d 3512rm -f conftest.$ac_cv_objext conftest.$ac_ext
b39b76b8 3513fi
75086676
DD
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3515$as_echo "$ac_cv_objext" >&6; }
2299a76d
DJ
3516OBJEXT=$ac_cv_objext
3517ac_objext=$OBJEXT
75086676
DD
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3519$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3520if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
2299a76d 3522else
75086676 3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299a76d
DJ
3524/* end confdefs.h. */
3525
3526int
3527main ()
3528{
3529#ifndef __GNUC__
3530 choke me
3531#endif
b39b76b8 3532
2299a76d
DJ
3533 ;
3534 return 0;
3535}
3536_ACEOF
75086676 3537if ac_fn_c_try_compile "$LINENO"; then :
2299a76d
DJ
3538 ac_compiler_gnu=yes
3539else
75086676 3540 ac_compiler_gnu=no
2299a76d 3541fi
75086676 3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299a76d
DJ
3543ac_cv_c_compiler_gnu=$ac_compiler_gnu
3544
3545fi
75086676
DD
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3547$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3548if test $ac_compiler_gnu = yes; then
3549 GCC=yes
3550else
3551 GCC=
3552fi
2299a76d
DJ
3553ac_test_CFLAGS=${CFLAGS+set}
3554ac_save_CFLAGS=$CFLAGS
75086676
DD
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3556$as_echo_n "checking whether $CC accepts -g... " >&6; }
3557if test "${ac_cv_prog_cc_g+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
3559else
3560 ac_save_c_werror_flag=$ac_c_werror_flag
3561 ac_c_werror_flag=yes
3562 ac_cv_prog_cc_g=no
3563 CFLAGS="-g"
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299a76d 3565/* end confdefs.h. */
b39b76b8 3566
2299a76d
DJ
3567int
3568main ()
3569{
b39b76b8 3570
2299a76d
DJ
3571 ;
3572 return 0;
3573}
3574_ACEOF
75086676 3575if ac_fn_c_try_compile "$LINENO"; then :
2299a76d
DJ
3576 ac_cv_prog_cc_g=yes
3577else
75086676
DD
3578 CFLAGS=""
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580/* end confdefs.h. */
3581
3582int
3583main ()
3584{
3585
3586 ;
3587 return 0;
3588}
3589_ACEOF
3590if ac_fn_c_try_compile "$LINENO"; then :
3591
3592else
3593 ac_c_werror_flag=$ac_save_c_werror_flag
3594 CFLAGS="-g"
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h. */
3597
3598int
3599main ()
3600{
252b5132 3601
75086676
DD
3602 ;
3603 return 0;
3604}
3605_ACEOF
3606if ac_fn_c_try_compile "$LINENO"; then :
3607 ac_cv_prog_cc_g=yes
3608fi
3609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299a76d 3610fi
75086676 3611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299a76d 3612fi
75086676
DD
3613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 ac_c_werror_flag=$ac_save_c_werror_flag
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3617$as_echo "$ac_cv_prog_cc_g" >&6; }
2299a76d
DJ
3618if test "$ac_test_CFLAGS" = set; then
3619 CFLAGS=$ac_save_CFLAGS
3620elif test $ac_cv_prog_cc_g = yes; then
252b5132 3621 if test "$GCC" = yes; then
2299a76d 3622 CFLAGS="-g -O2"
252b5132 3623 else
2299a76d 3624 CFLAGS="-g"
252b5132
RH
3625 fi
3626else
2299a76d
DJ
3627 if test "$GCC" = yes; then
3628 CFLAGS="-O2"
3629 else
3630 CFLAGS=
3631 fi
252b5132 3632fi
75086676
DD
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3634$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3635if test "${ac_cv_prog_cc_c89+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
2299a76d 3637else
75086676 3638 ac_cv_prog_cc_c89=no
2299a76d 3639ac_save_CC=$CC
75086676 3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299a76d
DJ
3641/* end confdefs.h. */
3642#include <stdarg.h>
3643#include <stdio.h>
3644#include <sys/types.h>
3645#include <sys/stat.h>
3646/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3647struct buf { int x; };
3648FILE * (*rcsopen) (struct buf *, struct stat *, int);
3649static char *e (p, i)
3650 char **p;
3651 int i;
3652{
3653 return p[i];
92655e19 3654}
2299a76d
DJ
3655static char *f (char * (*g) (char **, int), char **p, ...)
3656{
3657 char *s;
3658 va_list v;
3659 va_start (v,p);
3660 s = g (p, va_arg (v,int));
3661 va_end (v);
3662 return s;
92655e19 3663}
58670637
DD
3664
3665/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3666 function prototypes and stuff, but not '\xHH' hex character constants.
3667 These don't provoke an error unfortunately, instead are silently treated
75086676 3668 as 'x'. The following induces an error, until -std is added to get
58670637
DD
3669 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3670 array size at least. It's necessary to write '\x00'==0 to get something
75086676 3671 that's true only with -std. */
58670637
DD
3672int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3673
75086676
DD
3674/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3675 inside strings and character constants. */
3676#define FOO(x) 'x'
3677int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3678
2299a76d
DJ
3679int test (int i, double x);
3680struct s1 {int (*f) (int a);};
3681struct s2 {int (*f) (double a);};
3682int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3683int argc;
3684char **argv;
3685int
3686main ()
3687{
3688return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3689 ;
3690 return 0;
92655e19 3691}
2299a76d 3692_ACEOF
75086676
DD
3693for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3694 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2299a76d
DJ
3695do
3696 CC="$ac_save_CC $ac_arg"
75086676
DD
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_cv_prog_cc_c89=$ac_arg
2299a76d 3699fi
75086676
DD
3700rm -f core conftest.err conftest.$ac_objext
3701 test "x$ac_cv_prog_cc_c89" != "xno" && break
2299a76d 3702done
75086676 3703rm -f conftest.$ac_ext
2299a76d
DJ
3704CC=$ac_save_CC
3705
3706fi
75086676
DD
3707# AC_CACHE_VAL
3708case "x$ac_cv_prog_cc_c89" in
3709 x)
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3711$as_echo "none needed" >&6; } ;;
3712 xno)
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3714$as_echo "unsupported" >&6; } ;;
2299a76d 3715 *)
75086676
DD
3716 CC="$CC $ac_cv_prog_cc_c89"
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3718$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2299a76d 3719esac
75086676 3720if test "x$ac_cv_prog_cc_c89" != xno; then :
2299a76d 3721
2299a76d
DJ
3722fi
3723
2299a76d
DJ
3724ac_ext=c
3725ac_cpp='$CPP $CPPFLAGS'
3726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729
899de170 3730
f91ca6bc
IB
3731ac_ext=c
3732ac_cpp='$CPP $CPPFLAGS'
3733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3737$as_echo_n "checking how to run the C preprocessor... " >&6; }
3738# On Suns, sometimes $CPP names a directory.
3739if test -n "$CPP" && test -d "$CPP"; then
3740 CPP=
75086676 3741fi
f91ca6bc
IB
3742if test -z "$CPP"; then
3743 if test "${ac_cv_prog_CPP+set}" = set; then :
75086676 3744 $as_echo_n "(cached) " >&6
899de170 3745else
f91ca6bc
IB
3746 # Double quotes because CPP needs to be expanded
3747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3748 do
3749 ac_preproc_ok=false
3750for ac_c_preproc_warn_flag in '' yes
3751do
3752 # Use a header file that comes with gcc, so configuring glibc
3753 # with a fresh cross-compiler works.
3754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755 # <limits.h> exists even on freestanding compilers.
3756 # On the NeXT, cc -E runs the code through the compiler's parser,
3757 # not just through cpp. "Syntax error" is here to catch this case.
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
899de170 3759/* end confdefs.h. */
f91ca6bc
IB
3760#ifdef __STDC__
3761# include <limits.h>
3762#else
3763# include <assert.h>
3764#endif
3765 Syntax error
899de170 3766_ACEOF
f91ca6bc
IB
3767if ac_fn_c_try_cpp "$LINENO"; then :
3768
3769else
3770 # Broken: fails on valid input.
3771continue
899de170 3772fi
f91ca6bc
IB
3773rm -f conftest.err conftest.$ac_ext
3774
3775 # OK, works on sane cases. Now check whether nonexistent headers
3776 # can be detected and how.
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778/* end confdefs.h. */
3779#include <ac_nonexistent.h>
3780_ACEOF
3781if ac_fn_c_try_cpp "$LINENO"; then :
3782 # Broken: success on invalid input.
3783continue
3784else
3785 # Passes both tests.
3786ac_preproc_ok=:
3787break
899de170 3788fi
f91ca6bc
IB
3789rm -f conftest.err conftest.$ac_ext
3790
3791done
3792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3793rm -f conftest.err conftest.$ac_ext
3794if $ac_preproc_ok; then :
3795 break
899de170 3796fi
899de170 3797
f91ca6bc
IB
3798 done
3799 ac_cv_prog_CPP=$CPP
3800
3801fi
3802 CPP=$ac_cv_prog_CPP
899de170 3803else
f91ca6bc
IB
3804 ac_cv_prog_CPP=$CPP
3805fi
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3807$as_echo "$CPP" >&6; }
3808ac_preproc_ok=false
3809for ac_c_preproc_warn_flag in '' yes
3810do
3811 # Use a header file that comes with gcc, so configuring glibc
3812 # with a fresh cross-compiler works.
3813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3814 # <limits.h> exists even on freestanding compilers.
3815 # On the NeXT, cc -E runs the code through the compiler's parser,
3816 # not just through cpp. "Syntax error" is here to catch this case.
75086676 3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
899de170 3818/* end confdefs.h. */
f91ca6bc
IB
3819#ifdef __STDC__
3820# include <limits.h>
3821#else
3822# include <assert.h>
3823#endif
3824 Syntax error
899de170 3825_ACEOF
f91ca6bc
IB
3826if ac_fn_c_try_cpp "$LINENO"; then :
3827
3828else
3829 # Broken: fails on valid input.
3830continue
899de170 3831fi
f91ca6bc
IB
3832rm -f conftest.err conftest.$ac_ext
3833
3834 # OK, works on sane cases. Now check whether nonexistent headers
3835 # can be detected and how.
75086676 3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
899de170 3837/* end confdefs.h. */
f91ca6bc 3838#include <ac_nonexistent.h>
8ddbb593 3839_ACEOF
75086676 3840if ac_fn_c_try_cpp "$LINENO"; then :
8ddbb593
DJ
3841 # Broken: success on invalid input.
3842continue
3843else
8ddbb593
DJ
3844 # Passes both tests.
3845ac_preproc_ok=:
3846break
3847fi
3848rm -f conftest.err conftest.$ac_ext
3849
3850done
3851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3852rm -f conftest.err conftest.$ac_ext
75086676
DD
3853if $ac_preproc_ok; then :
3854
8ddbb593 3855else
75086676
DD
3856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858as_fn_error "C preprocessor \"$CPP\" fails sanity check
3859See \`config.log' for more details." "$LINENO" 5; }
8ddbb593
DJ
3860fi
3861
3862ac_ext=c
3863ac_cpp='$CPP $CPPFLAGS'
3864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
3868
f91ca6bc
IB
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3870$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3871if test "${ac_cv_path_GREP+set}" = set; then :
75086676 3872 $as_echo_n "(cached) " >&6
fd7d450d 3873else
f91ca6bc
IB
3874 if test -z "$GREP"; then
3875 ac_path_GREP_found=false
3876 # Loop through the user's path and test for each of PROGNAME-LIST
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3879do
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
3882 for ac_prog in grep ggrep; do
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3885 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3886# Check for GNU ac_path_GREP and select it if it is found.
3887 # Check for GNU $ac_path_GREP
3888case `"$ac_path_GREP" --version 2>&1` in
3889*GNU*)
3890 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3891*)
3892 ac_count=0
3893 $as_echo_n 0123456789 >"conftest.in"
3894 while :
3895 do
3896 cat "conftest.in" "conftest.in" >"conftest.tmp"
3897 mv "conftest.tmp" "conftest.in"
3898 cp "conftest.in" "conftest.nl"
3899 $as_echo 'GREP' >> "conftest.nl"
3900 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3902 as_fn_arith $ac_count + 1 && ac_count=$as_val
3903 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3904 # Best one so far, save it but keep looking for a better one
3905 ac_cv_path_GREP="$ac_path_GREP"
3906 ac_path_GREP_max=$ac_count
3907 fi
3908 # 10*(2^10) chars as input seems more than enough
3909 test $ac_count -gt 10 && break
3910 done
3911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3912esac
3913
3914 $ac_path_GREP_found && break 3
3915 done
3916 done
3917 done
3918IFS=$as_save_IFS
3919 if test -z "$ac_cv_path_GREP"; then
3920 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3921 fi
1f616ca1 3922else
f91ca6bc
IB
3923 ac_cv_path_GREP=$GREP
3924fi
3925
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3928$as_echo "$ac_cv_path_GREP" >&6; }
3929 GREP="$ac_cv_path_GREP"
3930
3931
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3933$as_echo_n "checking for egrep... " >&6; }
3934if test "${ac_cv_path_EGREP+set}" = set; then :
3935 $as_echo_n "(cached) " >&6
3936else
3937 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3938 then ac_cv_path_EGREP="$GREP -E"
3939 else
3940 if test -z "$EGREP"; then
3941 ac_path_EGREP_found=false
3942 # Loop through the user's path and test for each of PROGNAME-LIST
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3945do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_prog in egrep; do
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3951 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3952# Check for GNU ac_path_EGREP and select it if it is found.
3953 # Check for GNU $ac_path_EGREP
3954case `"$ac_path_EGREP" --version 2>&1` in
3955*GNU*)
3956 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3957*)
3958 ac_count=0
3959 $as_echo_n 0123456789 >"conftest.in"
3960 while :
3961 do
3962 cat "conftest.in" "conftest.in" >"conftest.tmp"
3963 mv "conftest.tmp" "conftest.in"
3964 cp "conftest.in" "conftest.nl"
3965 $as_echo 'EGREP' >> "conftest.nl"
3966 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3968 as_fn_arith $ac_count + 1 && ac_count=$as_val
3969 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3970 # Best one so far, save it but keep looking for a better one
3971 ac_cv_path_EGREP="$ac_path_EGREP"
3972 ac_path_EGREP_max=$ac_count
3973 fi
3974 # 10*(2^10) chars as input seems more than enough
3975 test $ac_count -gt 10 && break
3976 done
3977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3978esac
3979
3980 $ac_path_EGREP_found && break 3
3981 done
3982 done
3983 done
3984IFS=$as_save_IFS
3985 if test -z "$ac_cv_path_EGREP"; then
3986 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3987 fi
3988else
3989 ac_cv_path_EGREP=$EGREP
3990fi
3991
3992 fi
3993fi
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3995$as_echo "$ac_cv_path_EGREP" >&6; }
3996 EGREP="$ac_cv_path_EGREP"
3997
3998
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4000$as_echo_n "checking for ANSI C header files... " >&6; }
4001if test "${ac_cv_header_stdc+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1f616ca1 4005/* end confdefs.h. */
f91ca6bc
IB
4006#include <stdlib.h>
4007#include <stdarg.h>
4008#include <string.h>
4009#include <float.h>
1f616ca1
PB
4010
4011int
4012main ()
4013{
4014
4015 ;
4016 return 0;
4017}
4018_ACEOF
75086676 4019if ac_fn_c_try_compile "$LINENO"; then :
f91ca6bc 4020 ac_cv_header_stdc=yes
1f616ca1 4021else
f91ca6bc 4022 ac_cv_header_stdc=no
1f616ca1 4023fi
75086676 4024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f91ca6bc
IB
4025
4026if test $ac_cv_header_stdc = yes; then
4027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029/* end confdefs.h. */
4030#include <string.h>
4031
4032_ACEOF
4033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4034 $EGREP "memchr" >/dev/null 2>&1; then :
4035
4036else
4037 ac_cv_header_stdc=no
1f616ca1 4038fi
f91ca6bc 4039rm -f conftest*
1f616ca1 4040
1f616ca1
PB
4041fi
4042
f91ca6bc
IB
4043if test $ac_cv_header_stdc = yes; then
4044 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h. */
4047#include <stdlib.h>
4048
4049_ACEOF
4050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4051 $EGREP "free" >/dev/null 2>&1; then :
1f616ca1 4052
46a10049 4053else
f91ca6bc 4054 ac_cv_header_stdc=no
46a10049 4055fi
f91ca6bc
IB
4056rm -f conftest*
4057
4058fi
4059
4060if test $ac_cv_header_stdc = yes; then
4061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4062 if test "$cross_compiling" = yes; then :
4063 :
46a10049 4064else
75086676 4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46a10049 4066/* end confdefs.h. */
f91ca6bc
IB
4067#include <ctype.h>
4068#include <stdlib.h>
4069#if ((' ' & 0x0FF) == 0x020)
4070# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4071# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4072#else
4073# define ISLOWER(c) \
4074 (('a' <= (c) && (c) <= 'i') \
4075 || ('j' <= (c) && (c) <= 'r') \
4076 || ('s' <= (c) && (c) <= 'z'))
4077# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4078#endif
46a10049 4079
f91ca6bc 4080#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
46a10049
DD
4081int
4082main ()
4083{
f91ca6bc
IB
4084 int i;
4085 for (i = 0; i < 256; i++)
4086 if (XOR (islower (i), ISLOWER (i))
4087 || toupper (i) != TOUPPER (i))
4088 return 2;
46a10049
DD
4089 return 0;
4090}
4091_ACEOF
f91ca6bc
IB
4092if ac_fn_c_try_run "$LINENO"; then :
4093
46a10049 4094else
f91ca6bc
IB
4095 ac_cv_header_stdc=no
4096fi
4097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4098 conftest.$ac_objext conftest.beam conftest.$ac_ext
46a10049 4099fi
46a10049
DD
4100
4101fi
f91ca6bc
IB
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4104$as_echo "$ac_cv_header_stdc" >&6; }
4105if test $ac_cv_header_stdc = yes; then
46a10049 4106
f91ca6bc 4107$as_echo "#define STDC_HEADERS 1" >>confdefs.h
46a10049
DD
4108
4109fi
4110
f91ca6bc
IB
4111# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4112for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4113 inttypes.h stdint.h unistd.h
4114do :
4115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4116ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4117"
4118eval as_val=\$$as_ac_Header
4119 if test "x$as_val" = x""yes; then :
4120 cat >>confdefs.h <<_ACEOF
4121#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122_ACEOF
4123
4124fi
4125
4126done
4127
4128
4129
4130 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4131if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4132 MINIX=yes
46a10049 4133else
f91ca6bc 4134 MINIX=
46a10049
DD
4135fi
4136
4137
f91ca6bc 4138 if test "$MINIX" = yes; then
46a10049 4139
f91ca6bc
IB
4140$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4141
4142
4143$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4144
4145
4146$as_echo "#define _MINIX 1" >>confdefs.h
4147
4148 fi
4149
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4152$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4153if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
75086676 4154 $as_echo_n "(cached) " >&6
96e00b33 4155else
75086676 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11a338da
DD
4157/* end confdefs.h. */
4158
f91ca6bc
IB
4159# define __EXTENSIONS__ 1
4160 $ac_includes_default
11a338da
DD
4161int
4162main ()
4163{
11a338da
DD
4164
4165 ;
4166 return 0;
4167}
4168_ACEOF
75086676 4169if ac_fn_c_try_compile "$LINENO"; then :
f91ca6bc 4170 ac_cv_safe_to_define___extensions__=yes
96e00b33 4171else
f91ca6bc 4172 ac_cv_safe_to_define___extensions__=no
96e00b33 4173fi
75086676 4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299a76d 4175fi
f91ca6bc
IB
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4177$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4178 test $ac_cv_safe_to_define___extensions__ = yes &&
4179 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4180
4181 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4182
4183 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4184
4185 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4186
4187 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4188
11a338da 4189
2299a76d 4190
f91ca6bc
IB
4191# Check whether --enable-largefile was given.
4192if test "${enable_largefile+set}" = set; then :
4193 enableval=$enable_largefile;
96e00b33 4194fi
11a338da 4195
f91ca6bc
IB
4196if test "$enable_largefile" != no; then
4197
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4199$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4200if test "${ac_cv_sys_largefile_CC+set}" = set; then :
75086676 4201 $as_echo_n "(cached) " >&6
96e00b33 4202else
f91ca6bc
IB
4203 ac_cv_sys_largefile_CC=no
4204 if test "$GCC" != yes; then
4205 ac_save_CC=$CC
4206 while :; do
4207 # IRIX 6.2 and later do not support large files by default,
4208 # so use the C compiler's -n32 option if that helps.
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h. */
4211#include <sys/types.h>
4212 /* Check that off_t can represent 2**63 - 1 correctly.
4213 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4214 since some C++ compilers masquerading as C compilers
4215 incorrectly reject 9223372036854775807. */
4216#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4218 && LARGE_OFF_T % 2147483647 == 1)
4219 ? 1 : -1];
4220int
4221main ()
4222{
4223
4224 ;
4225 return 0;
4226}
4227_ACEOF
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229 break
4230fi
4231rm -f core conftest.err conftest.$ac_objext
4232 CC="$CC -n32"
4233 if ac_fn_c_try_compile "$LINENO"; then :
4234 ac_cv_sys_largefile_CC=' -n32'; break
4235fi
4236rm -f core conftest.err conftest.$ac_objext
4237 break
4238 done
4239 CC=$ac_save_CC
4240 rm -f conftest.$ac_ext
4241 fi
4242fi
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4244$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4245 if test "$ac_cv_sys_largefile_CC" != no; then
4246 CC=$CC$ac_cv_sys_largefile_CC
4247 fi
4248
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4250$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4251if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4252 $as_echo_n "(cached) " >&6
4253else
4254 while :; do
75086676 4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11a338da 4256/* end confdefs.h. */
f91ca6bc
IB
4257#include <sys/types.h>
4258 /* Check that off_t can represent 2**63 - 1 correctly.
4259 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4260 since some C++ compilers masquerading as C compilers
4261 incorrectly reject 9223372036854775807. */
4262#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4263 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4264 && LARGE_OFF_T % 2147483647 == 1)
4265 ? 1 : -1];
4266int
4267main ()
4268{
96e00b33 4269
f91ca6bc
IB
4270 ;
4271 return 0;
4272}
11a338da 4273_ACEOF
75086676 4274if ac_fn_c_try_compile "$LINENO"; then :
f91ca6bc 4275 ac_cv_sys_file_offset_bits=no; break
96e00b33 4276fi
75086676 4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f91ca6bc
IB
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279/* end confdefs.h. */
4280#define _FILE_OFFSET_BITS 64
4281#include <sys/types.h>
4282 /* Check that off_t can represent 2**63 - 1 correctly.
4283 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4284 since some C++ compilers masquerading as C compilers
4285 incorrectly reject 9223372036854775807. */
4286#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4287 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4288 && LARGE_OFF_T % 2147483647 == 1)
4289 ? 1 : -1];
4290int
4291main ()
4292{
11a338da 4293
f91ca6bc
IB
4294 ;
4295 return 0;
4296}
4297_ACEOF
4298if ac_fn_c_try_compile "$LINENO"; then :
4299 ac_cv_sys_file_offset_bits=64; break
96e00b33 4300fi
f91ca6bc
IB
4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 ac_cv_sys_file_offset_bits=unknown
4303 break
4304done
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4307$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4308case $ac_cv_sys_file_offset_bits in #(
4309 no | unknown) ;;
4310 *)
4311cat >>confdefs.h <<_ACEOF
4312#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11a338da 4313_ACEOF
f91ca6bc 4314;;
11a338da 4315esac
f91ca6bc
IB
4316rm -rf conftest*
4317 if test $ac_cv_sys_file_offset_bits = unknown; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4319$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4320if test "${ac_cv_sys_large_files+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4322else
4323 while :; do
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325/* end confdefs.h. */
4326#include <sys/types.h>
4327 /* Check that off_t can represent 2**63 - 1 correctly.
4328 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4329 since some C++ compilers masquerading as C compilers
4330 incorrectly reject 9223372036854775807. */
4331#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4333 && LARGE_OFF_T % 2147483647 == 1)
4334 ? 1 : -1];
4335int
4336main ()
4337{
96e00b33 4338
f91ca6bc
IB
4339 ;
4340 return 0;
4341}
4342_ACEOF
4343if ac_fn_c_try_compile "$LINENO"; then :
4344 ac_cv_sys_large_files=no; break
4345fi
4346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h. */
4349#define _LARGE_FILES 1
4350#include <sys/types.h>
4351 /* Check that off_t can represent 2**63 - 1 correctly.
4352 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4353 since some C++ compilers masquerading as C compilers
4354 incorrectly reject 9223372036854775807. */
4355#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4357 && LARGE_OFF_T % 2147483647 == 1)
4358 ? 1 : -1];
4359int
4360main ()
4361{
75086676 4362
f91ca6bc
IB
4363 ;
4364 return 0;
4365}
4366_ACEOF
4367if ac_fn_c_try_compile "$LINENO"; then :
4368 ac_cv_sys_large_files=1; break
4369fi
4370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 ac_cv_sys_large_files=unknown
4372 break
4373done
4374fi
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4376$as_echo "$ac_cv_sys_large_files" >&6; }
4377case $ac_cv_sys_large_files in #(
4378 no | unknown) ;;
4379 *)
4380cat >>confdefs.h <<_ACEOF
4381#define _LARGE_FILES $ac_cv_sys_large_files
4382_ACEOF
4383;;
4384esac
4385rm -rf conftest*
4386 fi
4387fi
4388
4389
4390ac_c_preproc_warn_flag=yes
4391
8a643cc3
L
4392ac_ext=c
4393ac_cpp='$CPP $CPPFLAGS'
4394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397
f91ca6bc
IB
4398ac_libiberty_warn_cflags=
4399save_CFLAGS="$CFLAGS"
4400for real_option in -W -Wall -Wwrite-strings -Wc++-compat \
4401 -Wstrict-prototypes; do
4402 # Do the check with the no- prefix removed since gcc silently
4403 # accepts any -Wno-* option on purpose
4404 case $real_option in
4405 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4406 *) option=$real_option ;;
4407 esac
4408 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4409
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4411$as_echo_n "checking whether $CC supports $option... " >&6; }
4412if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
75086676 4413 $as_echo_n "(cached) " >&6
96e00b33 4414else
f91ca6bc
IB
4415 CFLAGS="$option"
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417/* end confdefs.h. */
75086676 4418
f91ca6bc
IB
4419int
4420main ()
4421{
4422
4423 ;
4424 return 0;
4425}
4426_ACEOF
4427if ac_fn_c_try_compile "$LINENO"; then :
4428 eval "$as_acx_Woption=yes"
4429else
4430 eval "$as_acx_Woption=no"
4431fi
4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433
4434fi
4435eval ac_res=\$$as_acx_Woption
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4437$as_echo "$ac_res" >&6; }
4438 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4439 ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$real_option"
4440fi
75086676 4441 done
f91ca6bc 4442CFLAGS="$save_CFLAGS"
8a643cc3
L
4443ac_ext=c
4444ac_cpp='$CPP $CPPFLAGS'
4445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448
4449
4450ac_ext=c
4451ac_cpp='$CPP $CPPFLAGS'
4452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454ac_compiler_gnu=$ac_cv_c_compiler_gnu
f91ca6bc
IB
4455
4456# Do the check with the no- prefix removed from the warning options
4457# since gcc silently accepts any -Wno-* option on purpose
4458if test "$GCC" = yes; then :
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic " >&5
4460$as_echo_n "checking whether $CC supports -pedantic ... " >&6; }
4461if test "${acx_cv_prog_cc_pedantic_+set}" = set; then :
4462 $as_echo_n "(cached) " >&6
75086676 4463else
f91ca6bc
IB
4464 save_CFLAGS="$CFLAGS"
4465CFLAGS="-pedantic "
4466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h. */
4468
4469int
4470main ()
4471{
4472
4473 ;
4474 return 0;
4475}
4476_ACEOF
4477if ac_fn_c_try_compile "$LINENO"; then :
4478 acx_cv_prog_cc_pedantic_=yes
4479else
4480 acx_cv_prog_cc_pedantic_=no
4481fi
4482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483CFLAGS="$save_CFLAGS"
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic_" >&5
4486$as_echo "$acx_cv_prog_cc_pedantic_" >&6; }
4487if test $acx_cv_prog_cc_pedantic_ = yes; then :
4488 ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
75086676
DD
4489fi
4490
4491fi
8a643cc3
L
4492ac_ext=c
4493ac_cpp='$CPP $CPPFLAGS'
4494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497
75086676
DD
4498
4499
f91ca6bc
IB
4500if test "x$CC" != xcc; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4502$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4503else
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4505$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4506fi
4507set dummy $CC; ac_cc=`$as_echo "$2" |
4508 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4509if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
75086676
DD
4510 $as_echo_n "(cached) " >&6
4511else
f91ca6bc
IB
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513/* end confdefs.h. */
4514
4515int
4516main ()
4517{
4518
4519 ;
4520 return 0;
4521}
4522_ACEOF
4523# Make sure it works both with $CC and with simple cc.
4524# We do the test twice because some compilers refuse to overwrite an
4525# existing .o file with -o, though they will create one.
4526ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4527rm -f conftest2.*
4528if { { case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531esac
4532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533$as_echo "$ac_try_echo"; } >&5
4534 (eval "$ac_try") 2>&5
4535 ac_status=$?
4536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537 test $ac_status = 0; } &&
4538 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541esac
4542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4543$as_echo "$ac_try_echo"; } >&5
4544 (eval "$ac_try") 2>&5
4545 ac_status=$?
4546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547 test $ac_status = 0; };
4548then
4549 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4550 if test "x$CC" != xcc; then
4551 # Test first that cc exists at all.
4552 if { ac_try='cc -c conftest.$ac_ext >&5'
4553 { { case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
75086676 4556esac
f91ca6bc
IB
4557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558$as_echo "$ac_try_echo"; } >&5
4559 (eval "$ac_try") 2>&5
4560 ac_status=$?
4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }; }; then
4563 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4564 rm -f conftest2.*
4565 if { { case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570$as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_try") 2>&5
4572 ac_status=$?
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; } &&
4575 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578esac
4579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580$as_echo "$ac_try_echo"; } >&5
4581 (eval "$ac_try") 2>&5
4582 ac_status=$?
4583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584 test $ac_status = 0; };
4585 then
4586 # cc works too.
4587 :
4588 else
4589 # cc exists but doesn't like -o.
4590 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4591 fi
4592 fi
75086676
DD
4593 fi
4594else
f91ca6bc 4595 eval ac_cv_prog_cc_${ac_cc}_c_o=no
75086676 4596fi
f91ca6bc 4597rm -f core conftest*
75086676 4598
75086676 4599fi
f91ca6bc
IB
4600if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4602$as_echo "yes" >&6; }
4603else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605$as_echo "no" >&6; }
75086676 4606
f91ca6bc 4607$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
75086676 4608
f91ca6bc
IB
4609fi
4610
4611# autoconf is lame and doesn't give us any substitution variable for this.
4612if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4613 NO_MINUS_C_MINUS_O=yes
4614else
4615 OUTPUT_OPTION='-o $@'
4616fi
4617
4618
4619
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4621$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4622if test "${ac_cv_c_const+set}" = set; then :
75086676
DD
4623 $as_echo_n "(cached) " >&6
4624else
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11a338da 4626/* end confdefs.h. */
0093138c 4627
11a338da
DD
4628int
4629main ()
4630{
f91ca6bc
IB
4631/* FIXME: Include the comments suggested by Paul. */
4632#ifndef __cplusplus
4633 /* Ultrix mips cc rejects this. */
4634 typedef int charset[2];
4635 const charset cs;
4636 /* SunOS 4.1.1 cc rejects this. */
4637 char const *const *pcpcc;
4638 char **ppc;
4639 /* NEC SVR4.0.2 mips cc rejects this. */
4640 struct point {int x, y;};
4641 static struct point const zero = {0,0};
4642 /* AIX XL C 1.02.0.0 rejects this.
4643 It does not let you subtract one const X* pointer from another in
4644 an arm of an if-expression whose if-part is not a constant
4645 expression */
4646 const char *g = "string";
4647 pcpcc = &g + (g ? g-g : 0);
4648 /* HPUX 7.0 cc rejects these. */
4649 ++pcpcc;
4650 ppc = (char**) pcpcc;
4651 pcpcc = (char const *const *) ppc;
4652 { /* SCO 3.2v4 cc rejects this. */
4653 char *t;
4654 char const *s = 0 ? (char *) 0 : (char const *) 0;
4655
4656 *t++ = 0;
4657 if (s) return 0;
4658 }
4659 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4660 int x[] = {25, 17};
4661 const int *foo = &x[0];
4662 ++foo;
4663 }
4664 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4665 typedef const int *iptr;
4666 iptr p = 0;
4667 ++p;
4668 }
4669 { /* AIX XL C 1.02.0.0 rejects this saying
4670 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4671 struct s { int j; const int *ap[3]; };
4672 struct s *b; b->j = 5;
4673 }
4674 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4675 const int foo = 10;
4676 if (!foo) return 0;
4677 }
4678 return !cs[0] && !zero.x;
4679#endif
0093138c 4680
11a338da
DD
4681 ;
4682 return 0;
4683}
4684_ACEOF
75086676 4685if ac_fn_c_try_compile "$LINENO"; then :
f91ca6bc 4686 ac_cv_c_const=yes
75086676 4687else
f91ca6bc 4688 ac_cv_c_const=no
75086676
DD
4689fi
4690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75086676 4691fi
f91ca6bc
IB
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4693$as_echo "$ac_cv_c_const" >&6; }
4694if test $ac_cv_c_const = no; then
75086676 4695
f91ca6bc 4696$as_echo "#define const /**/" >>confdefs.h
75086676
DD
4697
4698fi
4699
f91ca6bc
IB
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4701$as_echo_n "checking for inline... " >&6; }
4702if test "${ac_cv_c_inline+set}" = set; then :
4703 $as_echo_n "(cached) " >&6
75086676 4704else
f91ca6bc
IB
4705 ac_cv_c_inline=no
4706for ac_kw in inline __inline__ __inline; do
75086676
DD
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708/* end confdefs.h. */
f91ca6bc
IB
4709#ifndef __cplusplus
4710typedef int foo_t;
4711static $ac_kw foo_t static_foo () {return 0; }
4712$ac_kw foo_t foo () {return 0; }
46a10049 4713#endif
0093138c 4714
2299a76d 4715_ACEOF
f91ca6bc
IB
4716if ac_fn_c_try_compile "$LINENO"; then :
4717 ac_cv_c_inline=$ac_kw
75086676 4718fi
f91ca6bc
IB
4719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 test "$ac_cv_c_inline" != no && break
4721done
75086676
DD
4722
4723fi
f91ca6bc
IB
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4725$as_echo "$ac_cv_c_inline" >&6; }
75086676 4726
f91ca6bc
IB
4727case $ac_cv_c_inline in
4728 inline | yes) ;;
4729 *)
4730 case $ac_cv_c_inline in
4731 no) ac_val=;;
4732 *) ac_val=$ac_cv_c_inline;;
4733 esac
4734 cat >>confdefs.h <<_ACEOF
4735#ifndef __cplusplus
4736#define inline $ac_val
4737#endif
75086676 4738_ACEOF
f91ca6bc
IB
4739 ;;
4740esac
75086676
DD
4741
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4743$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4744if test "${ac_cv_c_bigendian+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4746else
0093138c 4747 ac_cv_c_bigendian=unknown
75086676
DD
4748 # See if we're dealing with a universal compiler.
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750/* end confdefs.h. */
4751#ifndef __APPLE_CC__
4752 not a universal capable compiler
4753 #endif
4754 typedef int dummy;
4755
4756_ACEOF
4757if ac_fn_c_try_compile "$LINENO"; then :
4758
4759 # Check for potential -arch flags. It is not universal unless
4760 # there are at least two -arch flags with different values.
4761 ac_arch=
4762 ac_prev=
4763 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4764 if test -n "$ac_prev"; then
4765 case $ac_word in
4766 i?86 | x86_64 | ppc | ppc64)
4767 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4768 ac_arch=$ac_word
4769 else
4770 ac_cv_c_bigendian=universal
4771 break
4772 fi
4773 ;;
4774 esac
4775 ac_prev=
4776 elif test "x$ac_word" = "x-arch"; then
4777 ac_prev=arch
4778 fi
4779 done
4780fi
4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 if test $ac_cv_c_bigendian = unknown; then
4783 # See if sys/param.h defines the BYTE_ORDER macro.
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h. */
4786#include <sys/types.h>
4787 #include <sys/param.h>
4788
4789int
4790main ()
4791{
4792#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4793 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4794 && LITTLE_ENDIAN)
4795 bogus endian macros
4796 #endif
4797
4798 ;
4799 return 0;
4800}
0093138c 4801_ACEOF
75086676
DD
4802if ac_fn_c_try_compile "$LINENO"; then :
4803 # It does; now see whether it defined to BIG_ENDIAN or not.
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0093138c 4805/* end confdefs.h. */
75086676
DD
4806#include <sys/types.h>
4807 #include <sys/param.h>
4808
0093138c
DD
4809int
4810main ()
4811{
75086676
DD
4812#if BYTE_ORDER != BIG_ENDIAN
4813 not big endian
4814 #endif
4815
0093138c
DD
4816 ;
4817 return 0;
4818}
4819_ACEOF
75086676 4820if ac_fn_c_try_compile "$LINENO"; then :
0093138c 4821 ac_cv_c_bigendian=yes
75086676
DD
4822else
4823 ac_cv_c_bigendian=no
0093138c 4824fi
75086676 4825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0093138c 4826fi
75086676
DD
4827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 fi
4829 if test $ac_cv_c_bigendian = unknown; then
4830 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832/* end confdefs.h. */
4833#include <limits.h>
0093138c 4834
75086676
DD
4835int
4836main ()
4837{
4838#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4839 bogus endian macros
4840 #endif
4841
4842 ;
4843 return 0;
4844}
46a10049 4845_ACEOF
75086676
DD
4846if ac_fn_c_try_compile "$LINENO"; then :
4847 # It does; now see whether it defined to _BIG_ENDIAN or not.
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46a10049 4849/* end confdefs.h. */
75086676
DD
4850#include <limits.h>
4851
0093138c
DD
4852int
4853main ()
4854{
75086676
DD
4855#ifndef _BIG_ENDIAN
4856 not big endian
4857 #endif
4858
4859 ;
4860 return 0;
46a10049 4861}
2299a76d 4862_ACEOF
75086676
DD
4863if ac_fn_c_try_compile "$LINENO"; then :
4864 ac_cv_c_bigendian=yes
46a10049 4865else
75086676 4866 ac_cv_c_bigendian=no
7108c5dc 4867fi
75086676 4868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46a10049 4869fi
75086676
DD
4870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 fi
4872 if test $ac_cv_c_bigendian = unknown; then
4873 # Compile a test program.
4874 if test "$cross_compiling" = yes; then :
4875 # Try to guess by grepping values from an object file.
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877/* end confdefs.h. */
4878short int ascii_mm[] =
4879 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4880 short int ascii_ii[] =
4881 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4882 int use_ascii (int i) {
4883 return ascii_mm[i] + ascii_ii[i];
4884 }
4885 short int ebcdic_ii[] =
4886 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4887 short int ebcdic_mm[] =
4888 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4889 int use_ebcdic (int i) {
4890 return ebcdic_mm[i] + ebcdic_ii[i];
4891 }
4892 extern int foo;
4893
4894int
4895main ()
4896{
4897return use_ascii (foo) == use_ebcdic (foo);
4898 ;
4899 return 0;
4900}
4901_ACEOF
4902if ac_fn_c_try_compile "$LINENO"; then :
4903 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4904 ac_cv_c_bigendian=yes
4905 fi
4906 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4907 if test "$ac_cv_c_bigendian" = unknown; then
4908 ac_cv_c_bigendian=no
4909 else
4910 # finding both strings is unlikely to happen, but who knows?
4911 ac_cv_c_bigendian=unknown
4912 fi
4913 fi
4914fi
4915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916else
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h. */
4919$ac_includes_default
4920int
4921main ()
4922{
4923
4924 /* Are we little or big endian? From Harbison&Steele. */
4925 union
4926 {
4927 long int l;
4928 char c[sizeof (long int)];
4929 } u;
4930 u.l = 1;
4931 return u.c[sizeof (long int) - 1] == 1;
4932
4933 ;
4934 return 0;
4935}
4936_ACEOF
4937if ac_fn_c_try_run "$LINENO"; then :
4938 ac_cv_c_bigendian=no
4939else
4940 ac_cv_c_bigendian=yes
46a10049 4941fi
75086676
DD
4942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4943 conftest.$ac_objext conftest.beam conftest.$ac_ext
46a10049 4944fi
2299a76d 4945
75086676
DD
4946 fi
4947fi
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4949$as_echo "$ac_cv_c_bigendian" >&6; }
4950 case $ac_cv_c_bigendian in #(
4951 yes)
4952 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4953;; #(
4954 no)
4955 ;; #(
4956 universal)
4957
4958$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4959
4960 ;; #(
4961 *)
4962 as_fn_error "unknown endianness
4963 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4964 esac
7108c5dc 4965
252b5132
RH
4966
4967
4968
75086676 4969ac_config_headers="$ac_config_headers config.h:config.in"
252b5132
RH
4970
4971
4972
4973# Find a good install program. We prefer a C program (faster),
4974# so one script is as good as another. But avoid the broken or
4975# incompatible versions:
4976# SysV /etc/install, /usr/sbin/install
4977# SunOS /usr/etc/install
4978# IRIX /sbin/install
4979# AIX /bin/install
2299a76d 4980# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
4981# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4982# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4983# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
58670637 4984# OS/2's system install, which has a completely different semantic
252b5132 4985# ./install, which can be erroneously created by make from ./install.sh.
75086676
DD
4986# Reject install programs that cannot install multiple files.
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4988$as_echo_n "checking for a BSD-compatible install... " >&6; }
252b5132 4989if test -z "$INSTALL"; then
75086676
DD
4990if test "${ac_cv_path_install+set}" = set; then :
4991 $as_echo_n "(cached) " >&6
2299a76d
DJ
4992else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
75086676
DD
4998 # Account for people who put trailing slashes in PATH elements.
4999case $as_dir/ in #((
5000 ./ | .// | /[cC]/* | \
2299a76d 5001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
75086676 5002 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2299a76d
DJ
5003 /usr/ucb/* ) ;;
5004 *)
5005 # OSF1 and SCO ODT 3.0 have their own names for install.
5006 # Don't use installbsd from OSF since it installs stuff as root
5007 # by default.
5008 for ac_prog in ginstall scoinst install; do
5009 for ac_exec_ext in '' $ac_executable_extensions; do
75086676 5010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
58670637
DD
5011 if test $ac_prog = install &&
5012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5013 # AIX install. It has an incompatible calling convention.
5014 :
5015 elif test $ac_prog = install &&
5016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5017 # program-specific install script used by HP pwplus--don't use.
5018 :
5019 else
75086676
DD
5020 rm -rf conftest.one conftest.two conftest.dir
5021 echo one > conftest.one
5022 echo two > conftest.two
5023 mkdir conftest.dir
5024 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5025 test -s conftest.one && test -s conftest.two &&
5026 test -s conftest.dir/conftest.one &&
5027 test -s conftest.dir/conftest.two
5028 then
5029 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5030 break 3
5031 fi
58670637
DD
5032 fi
5033 fi
252b5132 5034 done
2299a76d
DJ
5035 done
5036 ;;
5037esac
2299a76d 5038
75086676
DD
5039 done
5040IFS=$as_save_IFS
5041
5042rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
5043
5044fi
5045 if test "${ac_cv_path_install+set}" = set; then
2299a76d 5046 INSTALL=$ac_cv_path_install
252b5132 5047 else
75086676
DD
5048 # As a last resort, use the slow shell script. Don't cache a
5049 # value for INSTALL within a source directory, because that will
252b5132 5050 # break other packages using the cache if that directory is
75086676 5051 # removed, or if the value is a relative name.
2299a76d 5052 INSTALL=$ac_install_sh
252b5132
RH
5053 fi
5054fi
75086676
DD
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5056$as_echo "$INSTALL" >&6; }
252b5132
RH
5057
5058# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5059# It thinks the first close brace ends the variable substitution.
5060test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5061
2299a76d 5062test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
5063
5064test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5065
5066
4cf896a5
KC
5067# Don't build the shared library for build.
5068if [ -n "${with_build_subdir}" ]; then
5069 enable_shared=no
5070fi
5071
5072frag=
5073case "${host}" in
5074 rs6000-ibm-aix3.1 | rs6000-ibm-aix)
5075 frag=mh-aix ;;
5076 *-*-cxux7*) frag=mh-cxux7 ;;
5077 *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
5078 *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
5079 i370-*-opened*) frag=mh-openedition ;;
5080 i[34567]86-*-windows*) frag=mh-windows ;;
5081esac
5082
5083if [ -n "${frag}" ]; then
c779bab8 5084 frag=${libiberty_topdir}/libiberty/config/$frag
4cf896a5
KC
5085fi
5086
601a99c6
DD
5087
5088
5089
5090
5091case "${host}" in
5092 # PIC is the default on some targets or must not be used.
5093 *-*-darwin*)
f91ca6bc
IB
5094 # For darwin, common symbols are not allowed in MH_DYLIB files
5095 case "${CFLAGS}" in
5096 # If we are using a compiler supporting mdynamic-no-pic
5097 # and the option has been tested as safe to add, then cancel
5098 # it here, since the code generated is incompatible with shared
5099 # libs.
5100 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
5101 *) PICFLAG=-fno-common ;;
5102 esac
601a99c6
DD
5103 ;;
5104 alpha*-dec-osf5*)
5105 # PIC is the default.
5106 ;;
5107 hppa*64*-*-hpux*)
5108 # PIC is the default for 64-bit PA HP-UX.
5109 ;;
3afd2652
DD
5110 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5111 ;;
5112 i[34567]86-*-mingw* | x86_64-*-mingw*)
601a99c6 5113 ;;
d12c31df 5114 i[34567]86-*-interix[3-9]*)
601a99c6
DD
5115 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5116 # Instead, we relocate shared libraries at runtime.
5117 ;;
5118 i[34567]86-*-nto-qnx*)
5119 # QNX uses GNU C++, but need to define -shared option too, otherwise
5120 # it will coredump.
5121 PICFLAG='-fPIC -shared'
5122 ;;
5123 i[34567]86-pc-msdosdjgpp*)
5124 # DJGPP does not support shared libraries at all.
5125 ;;
5126 ia64*-*-hpux*)
5127 # On IA64 HP-UX, PIC is the default but the pic flag
5128 # sets the default TLS model and affects inlining.
5129 PICFLAG=-fPIC
5130 ;;
5131 mips-sgi-irix6*)
5132 # PIC is the default.
5133 ;;
5134 rs6000-ibm-aix* | powerpc-ibm-aix*)
5135 # All AIX code is PIC.
5136 ;;
5137
5138 # Some targets support both -fPIC and -fpic, but prefer the latter.
5139 # FIXME: Why?
5140 i[34567]86-*-* | x86_64-*-*)
5141 PICFLAG=-fpic
5142 ;;
601a99c6
DD
5143 # FIXME: Override -fPIC default in libgcc only?
5144 sh-*-linux* | sh[2346lbe]*-*-linux*)
5145 PICFLAG=-fpic
5146 ;;
5147 # FIXME: Simplify to sh*-*-netbsd*?
5148 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5149 sh64-*-netbsd* | sh64l*-*-netbsd*)
5150 PICFLAG=-fpic
5151 ;;
5152 # Default to -fPIC unless specified otherwise.
5153 *)
5154 PICFLAG=-fPIC
5155 ;;
5156esac
5157
5158# If the user explicitly uses -fpic/-fPIC, keep that.
5159case "${CFLAGS}" in
5160 *-fpic*)
5161 PICFLAG=-fpic
5162 ;;
5163 *-fPIC*)
5164 PICFLAG=-fPIC
5165 ;;
5166esac
5167
5168
4cf896a5
KC
5169# If they didn't specify --enable-shared, don't generate shared libs.
5170case "${enable_shared}" in
5171 yes) shared=yes ;;
5172 no) shared=no ;;
5173 "") shared=no ;;
5174 *) shared=yes ;;
5175esac
26505cc0
DD
5176
5177# ...unless --enable-host-shared was passed from top-level config:
5178if [ "${enable_host_shared}" = "yes" ]; then
5179 shared=yes
5180fi
5181
601a99c6
DD
5182if [ "${shared}" != "yes" ]; then
5183 PICFLAG=
4cf896a5
KC
5184fi
5185
c779bab8 5186
3f48575a 5187NOASANFLAG=
5188case " ${CFLAGS} " in
5189 *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;;
5190esac
5191
5192
4cf896a5
KC
5193echo "# Warning: this fragment is automatically generated" > temp-frag
5194
c779bab8
PB
5195if [ -n "${frag}" ] && [ -f "${frag}" ]; then
5196 echo "Appending ${frag} to xhost-mkfrag"
5197 echo "# Following fragment copied from ${frag}" >> temp-frag
5198 cat ${frag} >> temp-frag
5199fi
4cf896a5
KC
5200
5201# record if we want to build shared libs.
5202if [ "${shared}" = "yes" ]; then
5203 echo enable_shared = yes >> temp-frag
5204else
5205 echo enable_shared = no >> temp-frag
5206fi
5207
5208frag=xhost-mkfrag
5209${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
5210
252b5132
RH
5211host_makefile_frag=${frag}
5212
5213
5214# It's OK to check for header files. Although the compiler may not be
5215# able to link anything, it had better be able to at least compile
5216# something.
62b06a9e 5217for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h
75086676
DD
5218do :
5219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5220ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
5221eval as_val=\$$as_ac_Header
5222 if test "x$as_val" = x""yes; then :
2299a76d 5223 cat >>confdefs.h <<_ACEOF
75086676 5224#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2299a76d
DJ
5225_ACEOF
5226
5227fi
2299a76d
DJ
5228done
5229
75086676
DD
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5231$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5232if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
2299a76d 5234else
75086676 5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299a76d 5236/* end confdefs.h. */
dc579051 5237#include <sys/types.h>
2299a76d
DJ
5238#include <sys/wait.h>
5239#ifndef WEXITSTATUS
75086676 5240# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15ae9e71 5241#endif
2299a76d
DJ
5242#ifndef WIFEXITED
5243# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5244#endif
5245
5246int
5247main ()
5248{
5249 int s;
5250 wait (&s);
5251 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5252 ;
5253 return 0;
5254}
5255_ACEOF
75086676 5256if ac_fn_c_try_compile "$LINENO"; then :
2299a76d 5257 ac_cv_header_sys_wait_h=yes
dc579051 5258else
75086676 5259 ac_cv_header_sys_wait_h=no
dc579051 5260fi
75086676 5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299a76d 5262fi
75086676
DD
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5264$as_echo "$ac_cv_header_sys_wait_h" >&6; }
2299a76d
DJ
5265if test $ac_cv_header_sys_wait_h = yes; then
5266
75086676 5267$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8ddbb593
DJ
5268
5269fi
5270
75086676
DD
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5272$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5273if test "${ac_cv_header_time+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
8ddbb593 5275else
75086676 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8ddbb593
DJ
5277/* end confdefs.h. */
5278#include <sys/types.h>
5279#include <sys/time.h>
5280#include <time.h>
5281
5282int
5283main ()
5284{
5285if ((struct tm *) 0)
5286return 0;
5287 ;
5288 return 0;
5289}
5290_ACEOF
75086676 5291if ac_fn_c_try_compile "$LINENO"; then :
8ddbb593
DJ
5292 ac_cv_header_time=yes
5293else
75086676 5294 ac_cv_header_time=no
8ddbb593 5295fi
75086676 5296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8ddbb593 5297fi
75086676
DD
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5299$as_echo "$ac_cv_header_time" >&6; }
8ddbb593
DJ
5300if test $ac_cv_header_time = yes; then
5301
75086676 5302$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8ddbb593
DJ
5303
5304fi
5305
5306
75086676
DD
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether errno must be declared" >&5
5308$as_echo_n "checking whether errno must be declared... " >&6; }
5309if test "${libiberty_cv_declare_errno+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
8ddbb593 5311else
75086676 5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8ddbb593
DJ
5313/* end confdefs.h. */
5314#include <errno.h>
5315int
5316main ()
5317{
5318int x = errno;
5319 ;
5320 return 0;
5321}
5322_ACEOF
75086676 5323if ac_fn_c_try_compile "$LINENO"; then :
8ddbb593
DJ
5324 libiberty_cv_declare_errno=no
5325else
75086676 5326 libiberty_cv_declare_errno=yes
8ddbb593 5327fi
75086676 5328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8ddbb593 5329fi
75086676
DD
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_declare_errno" >&5
5331$as_echo "$libiberty_cv_declare_errno" >&6; }
8ddbb593
DJ
5332if test $libiberty_cv_declare_errno = yes
5333then
75086676 5334$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
8ddbb593
DJ
5335
5336fi
5337
5338
abdef8eb 5339# Determine sizes of some types.
75086676
DD
5340# The cast to long int works around a bug in the HP C Compiler
5341# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5342# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5343# This bug is HP SR number 8606223364.
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5345$as_echo_n "checking size of int... " >&6; }
5346if test "${ac_cv_sizeof_int+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5348else
5349 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5350
5351else
5352 if test "$ac_cv_type_int" = yes; then
5353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5355{ as_fn_set_status 77
5356as_fn_error "cannot compute sizeof (int)
5357See \`config.log' for more details." "$LINENO" 5; }; }
5358 else
5359 ac_cv_sizeof_int=0
5360 fi
8ddbb593 5361fi
8ddbb593 5362
75086676
DD
5363fi
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5365$as_echo "$ac_cv_sizeof_int" >&6; }
8ddbb593 5366
8ddbb593 5367
8ddbb593 5368
75086676
DD
5369cat >>confdefs.h <<_ACEOF
5370#define SIZEOF_INT $ac_cv_sizeof_int
8ddbb593 5371_ACEOF
8ddbb593 5372
8ddbb593 5373
abdef8eb
JBG
5374# The cast to long int works around a bug in the HP C Compiler
5375# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5376# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5377# This bug is HP SR number 8606223364.
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5379$as_echo_n "checking size of long... " >&6; }
5380if test "${ac_cv_sizeof_long+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5382else
5383 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5384
5385else
5386 if test "$ac_cv_type_long" = yes; then
5387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5389{ as_fn_set_status 77
5390as_fn_error "cannot compute sizeof (long)
5391See \`config.log' for more details." "$LINENO" 5; }; }
5392 else
5393 ac_cv_sizeof_long=0
5394 fi
5395fi
5396
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5399$as_echo "$ac_cv_sizeof_long" >&6; }
5400
5401
5402
5403cat >>confdefs.h <<_ACEOF
5404#define SIZEOF_LONG $ac_cv_sizeof_long
5405_ACEOF
5406
5407
5408
5409# Check for presense of long long
5410ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5411if test "x$ac_cv_type_long_long" = x""yes; then :
5412
5413$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
5414 # The cast to long int works around a bug in the HP C Compiler
5415# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5416# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5417# This bug is HP SR number 8606223364.
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5419$as_echo_n "checking size of long long... " >&6; }
5420if test "${ac_cv_sizeof_long_long+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5422else
5423 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5424
5425else
5426 if test "$ac_cv_type_long_long" = yes; then
5427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5429{ as_fn_set_status 77
5430as_fn_error "cannot compute sizeof (long long)
5431See \`config.log' for more details." "$LINENO" 5; }; }
5432 else
5433 ac_cv_sizeof_long_long=0
5434 fi
5435fi
5436
5437fi
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5439$as_echo "$ac_cv_sizeof_long_long" >&6; }
5440
5441
5442
5443cat >>confdefs.h <<_ACEOF
5444#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5445_ACEOF
5446
5447
5448fi
5449
8ddbb593 5450
75086676
DD
5451# Look for a 64-bit type.
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit type" >&5
5453$as_echo_n "checking for a 64-bit type... " >&6; }
5454if test "${liberty_cv_uint64+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
2299a76d 5456else
75086676
DD
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h. */
5459#ifdef HAVE_STDINT_H
5460#include <stdint.h>
5461#endif
5462int
5463main ()
5464{
5465extern uint64_t foo;
5466 ;
5467 return 0;
5468}
2299a76d 5469_ACEOF
75086676
DD
5470if ac_fn_c_try_compile "$LINENO"; then :
5471 liberty_cv_uint64=uint64_t
5472else
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299a76d 5474/* end confdefs.h. */
75086676
DD
5475#ifdef HAVE_LIMITS_H
5476#include <limits.h>
5477#endif
5478#ifndef CHAR_BIT
5479#define CHAR_BIT 8
8ddbb593 5480#endif
2299a76d
DJ
5481int
5482main ()
5483{
75086676
DD
5484extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
5485 ;
5486 return 0;
2299a76d
DJ
5487}
5488_ACEOF
75086676
DD
5489if ac_fn_c_try_compile "$LINENO"; then :
5490 liberty_cv_uint64="unsigned long"
2299a76d 5491else
75086676
DD
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h. */
5494#ifdef HAVE_LIMITS_H
5495#include <limits.h>
5496#endif
5497#ifndef CHAR_BIT
5498#define CHAR_BIT 8
5499#endif
5500int
5501main ()
5502{
5503extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
5504 ;
5505 return 0;
5506}
5507_ACEOF
5508if ac_fn_c_try_compile "$LINENO"; then :
5509 liberty_cv_uint64="unsigned long long"
5510else
5511 liberty_cv_uint64=none
2299a76d 5512fi
75086676 5513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299a76d 5514fi
75086676 5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8ddbb593 5516fi
75086676 5517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8ddbb593 5518fi
2299a76d 5519
75086676
DD
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liberty_cv_uint64" >&5
5521$as_echo "$liberty_cv_uint64" >&6; }
5522if test "$liberty_cv_uint64" != none; then
5523
5524cat >>confdefs.h <<_ACEOF
5525#define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
2299a76d
DJ
5526_ACEOF
5527
5528fi
5529
b4a451f5
L
5530
5531 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5532if test "x$ac_cv_type_intptr_t" = x""yes; then :
5533
5534$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5535
5536else
5537 for ac_type in 'int' 'long int' 'long long int'; do
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539/* end confdefs.h. */
5540$ac_includes_default
5541int
5542main ()
5543{
5544static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5545test_array [0] = 0
5546
5547 ;
5548 return 0;
5549}
5550_ACEOF
5551if ac_fn_c_try_compile "$LINENO"; then :
5552
5553cat >>confdefs.h <<_ACEOF
5554#define intptr_t $ac_type
5555_ACEOF
5556
5557 ac_type=
5558fi
5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 test -z "$ac_type" && break
5561 done
5562fi
5563
5564
5565
5566 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5567if test "x$ac_cv_type_uintptr_t" = x""yes; then :
5568
5569$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5570
5571else
5572 for ac_type in 'unsigned int' 'unsigned long int' \
5573 'unsigned long long int'; do
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575/* end confdefs.h. */
5576$ac_includes_default
5577int
5578main ()
5579{
5580static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5581test_array [0] = 0
5582
5583 ;
5584 return 0;
5585}
5586_ACEOF
5587if ac_fn_c_try_compile "$LINENO"; then :
5588
5589cat >>confdefs.h <<_ACEOF
5590#define uintptr_t $ac_type
5591_ACEOF
5592
5593 ac_type=
5594fi
5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 test -z "$ac_type" && break
5597 done
5598fi
5599
5600
ffa54e5c
DD
5601ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5602if test "x$ac_cv_type_ssize_t" = x""yes; then :
5603
5604else
5605
5606cat >>confdefs.h <<_ACEOF
5607#define ssize_t int
5608_ACEOF
5609
5610fi
5611
b4a451f5 5612
75086676
DD
5613# Given the above check, we always have uintptr_t or a fallback
5614# definition. So define HAVE_UINTPTR_T in case any imported code
5615# relies on it.
2299a76d 5616
75086676 5617$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
8ddbb593
DJ
5618
5619
75086676
DD
5620ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5621if test "x$ac_cv_type_pid_t" = x""yes; then :
8ddbb593 5622
75086676 5623else
8ddbb593 5624
75086676
DD
5625cat >>confdefs.h <<_ACEOF
5626#define pid_t int
5627_ACEOF
8ddbb593 5628
75086676 5629fi
8ddbb593
DJ
5630
5631
75086676
DD
5632# This is the list of functions which libiberty will provide if they
5633# are not available on the host.
8ddbb593 5634
75086676
DD
5635funcs="asprintf"
5636funcs="$funcs atexit"
5637funcs="$funcs basename"
5638funcs="$funcs bcmp"
5639funcs="$funcs bcopy"
5640funcs="$funcs bsearch"
5641funcs="$funcs bzero"
5642funcs="$funcs calloc"
5643funcs="$funcs clock"
5644funcs="$funcs ffs"
5645funcs="$funcs getcwd"
5646funcs="$funcs getpagesize"
5647funcs="$funcs gettimeofday"
5648funcs="$funcs index"
5649funcs="$funcs insque"
5650funcs="$funcs memchr"
5651funcs="$funcs memcmp"
5652funcs="$funcs memcpy"
5653funcs="$funcs memmem"
5654funcs="$funcs memmove"
5655funcs="$funcs mempcpy"
5656funcs="$funcs memset"
5657funcs="$funcs mkstemps"
5658funcs="$funcs putenv"
5659funcs="$funcs random"
5660funcs="$funcs rename"
5661funcs="$funcs rindex"
5662funcs="$funcs setenv"
5663funcs="$funcs snprintf"
5664funcs="$funcs sigsetmask"
5665funcs="$funcs stpcpy"
5666funcs="$funcs stpncpy"
5667funcs="$funcs strcasecmp"
5668funcs="$funcs strchr"
5669funcs="$funcs strdup"
5670funcs="$funcs strncasecmp"
5671funcs="$funcs strndup"
995b61fe 5672funcs="$funcs strnlen"
75086676
DD
5673funcs="$funcs strrchr"
5674funcs="$funcs strstr"
5675funcs="$funcs strtod"
5676funcs="$funcs strtol"
5677funcs="$funcs strtoul"
abdef8eb
JBG
5678funcs="$funcs strtoll"
5679funcs="$funcs strtoull"
75086676
DD
5680funcs="$funcs strverscmp"
5681funcs="$funcs tmpnam"
5682funcs="$funcs vasprintf"
5683funcs="$funcs vfprintf"
5684funcs="$funcs vprintf"
5685funcs="$funcs vsnprintf"
5686funcs="$funcs vsprintf"
5687funcs="$funcs waitpid"
9711ae4d 5688funcs="$funcs setproctitle"
2299a76d 5689
75086676
DD
5690# Also in the old function.def file: alloca, vfork, getopt.
5691
5692vars="sys_errlist sys_nerr sys_siglist"
5693
26ac1280
DD
5694checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
5695 getsysinfo gettimeofday on_exit psignal pstat_getdynamic pstat_getstatic \
5696 realpath setrlimit sbrk spawnve spawnvpe strerror strsignal sysconf sysctl \
5697 sysmp table times wait3 wait4"
75086676
DD
5698
5699# These are neither executed nor required, but they help keep
5700# autoheader happy without adding a bunch of text to acconfig.h.
5701if test "x" = "y"; then
e96158fc
BE
5702 for ac_func in asprintf atexit \
5703 basename bcmp bcopy bsearch bzero \
5704 calloc canonicalize_file_name clock \
9c55e064 5705 dup3 \
e96158fc 5706 ffs __fsetlocking \
26ac1280 5707 getcwd getpagesize getrlimit getrusage getsysinfo gettimeofday \
e96158fc
BE
5708 index insque \
5709 memchr memcmp memcpy memmem memmove memset mkstemps \
5710 on_exit \
5711 psignal pstat_getdynamic pstat_getstatic putenv \
5712 random realpath rename rindex \
26ac1280 5713 sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
9c55e064 5714 stpcpy stpncpy strcasecmp strchr strdup \
995b61fe 5715 strerror strncasecmp strndup strnlen strrchr strsignal strstr strtod \
abdef8eb 5716 strtol strtoul strtoll strtoull strverscmp sysconf sysctl sysmp \
e96158fc
BE
5717 table times tmpnam \
5718 vasprintf vfprintf vprintf vsprintf \
5719 wait3 wait4 waitpid
75086676
DD
5720do :
5721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5722ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5723eval as_val=\$$as_ac_var
5724 if test "x$as_val" = x""yes; then :
8ddbb593 5725 cat >>confdefs.h <<_ACEOF
75086676 5726#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2299a76d
DJ
5727_ACEOF
5728
5729fi
8ddbb593 5730done
2299a76d 5731
a2803021
DD
5732 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5733if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
75086676 5734 ac_have_decl=1
40a59a4c 5735else
75086676
DD
5736 ac_have_decl=0
5737fi
5738
5739cat >>confdefs.h <<_ACEOF
5740#define HAVE_DECL_BASENAME $ac_have_decl
40a59a4c 5741_ACEOF
75086676
DD
5742ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
5743if test "x$ac_cv_have_decl_ffs" = x""yes; then :
5744 ac_have_decl=1
40a59a4c 5745else
75086676 5746 ac_have_decl=0
40a59a4c 5747fi
75086676
DD
5748
5749cat >>confdefs.h <<_ACEOF
5750#define HAVE_DECL_FFS $ac_have_decl
5751_ACEOF
5752ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5753if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
5754 ac_have_decl=1
5755else
5756 ac_have_decl=0
40a59a4c 5757fi
40a59a4c 5758
75086676
DD
5759cat >>confdefs.h <<_ACEOF
5760#define HAVE_DECL_ASPRINTF $ac_have_decl
5761_ACEOF
5762ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5763if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5764 ac_have_decl=1
40a59a4c 5765else
75086676
DD
5766 ac_have_decl=0
5767fi
5768
5769cat >>confdefs.h <<_ACEOF
5770#define HAVE_DECL_VASPRINTF $ac_have_decl
40a59a4c 5771_ACEOF
75086676
DD
5772ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
5773if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
5774 ac_have_decl=1
5775else
5776 ac_have_decl=0
5777fi
40a59a4c 5778
75086676
DD
5779cat >>confdefs.h <<_ACEOF
5780#define HAVE_DECL_SNPRINTF $ac_have_decl
40a59a4c 5781_ACEOF
75086676
DD
5782ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
5783if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
5784 ac_have_decl=1
5785else
5786 ac_have_decl=0
5787fi
5788
5789cat >>confdefs.h <<_ACEOF
5790#define HAVE_DECL_VSNPRINTF $ac_have_decl
40a59a4c 5791_ACEOF
abdef8eb
JBG
5792ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
5793if test "x$ac_cv_have_decl_strtol" = x""yes; then :
5794 ac_have_decl=1
5795else
5796 ac_have_decl=0
5797fi
5798
5799cat >>confdefs.h <<_ACEOF
5800#define HAVE_DECL_STRTOL $ac_have_decl
5801_ACEOF
5802ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
5803if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
5804 ac_have_decl=1
5805else
5806 ac_have_decl=0
5807fi
5808
5809cat >>confdefs.h <<_ACEOF
5810#define HAVE_DECL_STRTOUL $ac_have_decl
5811_ACEOF
5812ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
5813if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
5814 ac_have_decl=1
5815else
5816 ac_have_decl=0
5817fi
5818
5819cat >>confdefs.h <<_ACEOF
5820#define HAVE_DECL_STRTOLL $ac_have_decl
5821_ACEOF
5822ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
5823if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
5824 ac_have_decl=1
5825else
5826 ac_have_decl=0
5827fi
5828
5829cat >>confdefs.h <<_ACEOF
5830#define HAVE_DECL_STRTOULL $ac_have_decl
5831_ACEOF
40a59a4c 5832
40a59a4c 5833
75086676 5834$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
40a59a4c 5835
40a59a4c 5836
75086676 5837$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
40a59a4c 5838
40a59a4c 5839
75086676 5840$as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
40a59a4c 5841
40a59a4c 5842fi
40a59a4c 5843
75086676
DD
5844# For each of these functions, if the host does not provide the
5845# function we want to put FN.o in LIBOBJS, and if the host does
5846# provide the function, we want to define HAVE_FN in config.h.
40a59a4c 5847
75086676
DD
5848setobjs=
5849CHECK=
75086676 5850if test -n "${with_target_subdir}"; then
40a59a4c 5851
75086676
DD
5852 # We are being configured as a target library. AC_REPLACE_FUNCS
5853 # may not work correctly, because the compiler may not be able to
5854 # link executables. Note that we may still be being configured
5855 # native.
40a59a4c 5856
75086676
DD
5857 # If we are being configured for newlib, we know which functions
5858 # newlib provide and which ones we will be expected to provide.
40a59a4c 5859
75086676
DD
5860 if test "x${with_newlib}" = "xyes"; then
5861 case " $LIBOBJS " in
5862 *" asprintf.$ac_objext "* ) ;;
5863 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
5864 ;;
5865esac
40a59a4c 5866
75086676
DD
5867 case " $LIBOBJS " in
5868 *" basename.$ac_objext "* ) ;;
5869 *) LIBOBJS="$LIBOBJS basename.$ac_objext"
5870 ;;
5871esac
40a59a4c 5872
75086676
DD
5873 case " $LIBOBJS " in
5874 *" insque.$ac_objext "* ) ;;
5875 *) LIBOBJS="$LIBOBJS insque.$ac_objext"
5876 ;;
5877esac
40a59a4c 5878
75086676
DD
5879 case " $LIBOBJS " in
5880 *" random.$ac_objext "* ) ;;
5881 *) LIBOBJS="$LIBOBJS random.$ac_objext"
5882 ;;
5883esac
dc579051 5884
75086676
DD
5885 case " $LIBOBJS " in
5886 *" strdup.$ac_objext "* ) ;;
5887 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
5888 ;;
5889esac
2299a76d 5890
75086676
DD
5891 case " $LIBOBJS " in
5892 *" vasprintf.$ac_objext "* ) ;;
5893 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
5894 ;;
5895esac
5896
5897
5898 for f in $funcs; do
5899 case "$f" in
5900 asprintf | basename | insque | random | strdup | vasprintf)
5901 ;;
5902 *)
5903 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5904 cat >>confdefs.h <<_ACEOF
5905#define $n 1
2299a76d 5906_ACEOF
15ae9e71 5907
75086676
DD
5908 ;;
5909 esac
5910 done
2299a76d 5911
75086676
DD
5912 # newlib doesnt provide any of the variables in $vars, so we
5913 # dont have to check them here.
2299a76d 5914
75086676
DD
5915 # Of the functions in $checkfuncs, newlib only has strerror.
5916 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
2299a76d
DJ
5917
5918
75086676 5919 setobjs=yes
2299a76d 5920
75086676 5921 fi
2299a76d 5922
75086676
DD
5923 # If we are being configured for Mingw, we know which functions
5924 # Mingw provides and which ones we will be expected to provide.
2299a76d 5925
75086676
DD
5926 case "${host}" in
5927 *-*-mingw*)
5928 case " $LIBOBJS " in
5929 *" asprintf.$ac_objext "* ) ;;
5930 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
5931 ;;
5932esac
2299a76d 5933
75086676
DD
5934 case " $LIBOBJS " in
5935 *" basename.$ac_objext "* ) ;;
5936 *) LIBOBJS="$LIBOBJS basename.$ac_objext"
5937 ;;
5938esac
2299a76d 5939
75086676
DD
5940 case " $LIBOBJS " in
5941 *" bcmp.$ac_objext "* ) ;;
5942 *) LIBOBJS="$LIBOBJS bcmp.$ac_objext"
5943 ;;
5944esac
2299a76d 5945
75086676
DD
5946 case " $LIBOBJS " in
5947 *" bcopy.$ac_objext "* ) ;;
5948 *) LIBOBJS="$LIBOBJS bcopy.$ac_objext"
5949 ;;
5950esac
2299a76d 5951
75086676
DD
5952 case " $LIBOBJS " in
5953 *" bzero.$ac_objext "* ) ;;
5954 *) LIBOBJS="$LIBOBJS bzero.$ac_objext"
5955 ;;
5956esac
2299a76d 5957
75086676
DD
5958 case " $LIBOBJS " in
5959 *" clock.$ac_objext "* ) ;;
5960 *) LIBOBJS="$LIBOBJS clock.$ac_objext"
5961 ;;
5962esac
2299a76d 5963
75086676
DD
5964 case " $LIBOBJS " in
5965 *" ffs.$ac_objext "* ) ;;
5966 *) LIBOBJS="$LIBOBJS ffs.$ac_objext"
5967 ;;
5968esac
2299a76d 5969
75086676
DD
5970 case " $LIBOBJS " in
5971 *" getpagesize.$ac_objext "* ) ;;
5972 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
5973 ;;
5974esac
2299a76d 5975
75086676
DD
5976 case " $LIBOBJS " in
5977 *" index.$ac_objext "* ) ;;
5978 *) LIBOBJS="$LIBOBJS index.$ac_objext"
5979 ;;
5980esac
2299a76d 5981
75086676
DD
5982 case " $LIBOBJS " in
5983 *" insque.$ac_objext "* ) ;;
5984 *) LIBOBJS="$LIBOBJS insque.$ac_objext"
5985 ;;
5986esac
2299a76d 5987
75086676
DD
5988 case " $LIBOBJS " in
5989 *" mempcpy.$ac_objext "* ) ;;
5990 *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext"
5991 ;;
5992esac
2299a76d 5993
75086676
DD
5994 case " $LIBOBJS " in
5995 *" mkstemps.$ac_objext "* ) ;;
5996 *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext"
5997 ;;
5998esac
2299a76d 5999
75086676
DD
6000 case " $LIBOBJS " in
6001 *" random.$ac_objext "* ) ;;
6002 *) LIBOBJS="$LIBOBJS random.$ac_objext"
6003 ;;
6004esac
2299a76d 6005
75086676
DD
6006 case " $LIBOBJS " in
6007 *" rindex.$ac_objext "* ) ;;
6008 *) LIBOBJS="$LIBOBJS rindex.$ac_objext"
6009 ;;
6010esac
2299a76d 6011
75086676
DD
6012 case " $LIBOBJS " in
6013 *" sigsetmask.$ac_objext "* ) ;;
6014 *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext"
6015 ;;
6016esac
2299a76d 6017
75086676
DD
6018 case " $LIBOBJS " in
6019 *" stpcpy.$ac_objext "* ) ;;
6020 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
6021 ;;
6022esac
2299a76d 6023
75086676
DD
6024 case " $LIBOBJS " in
6025 *" stpncpy.$ac_objext "* ) ;;
6026 *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext"
6027 ;;
6028esac
2299a76d 6029
75086676
DD
6030 case " $LIBOBJS " in
6031 *" strndup.$ac_objext "* ) ;;
6032 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
6033 ;;
6034esac
2299a76d 6035
995b61fe
DD
6036 case " $LIBOBJS " in
6037 *" strnlen.$ac_objext "* ) ;;
6038 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
6039 ;;
6040esac
6041
75086676
DD
6042 case " $LIBOBJS " in
6043 *" strverscmp.$ac_objext "* ) ;;
6044 *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext"
6045 ;;
6046esac
2299a76d 6047
75086676
DD
6048 case " $LIBOBJS " in
6049 *" vasprintf.$ac_objext "* ) ;;
6050 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
6051 ;;
6052esac
2299a76d 6053
75086676
DD
6054 case " $LIBOBJS " in
6055 *" waitpid.$ac_objext "* ) ;;
6056 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
6057 ;;
6058esac
2299a76d
DJ
6059
6060
75086676
DD
6061 for f in $funcs; do
6062 case "$f" in
995b61fe 6063 asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strnlen | strverscmp | vasprintf | waitpid)
75086676
DD
6064 ;;
6065 *)
6066 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6067 cat >>confdefs.h <<_ACEOF
6068#define $n 1
6069_ACEOF
2299a76d 6070
75086676
DD
6071 ;;
6072 esac
6073 done
2299a76d 6074
75086676
DD
6075 # Mingw doesnt provide any of the variables in $vars, so we
6076 # dont have to check them here.
2299a76d 6077
75086676
DD
6078 # Of the functions in $checkfuncs, Mingw only has strerror.
6079 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
2299a76d
DJ
6080
6081
75086676
DD
6082 setobjs=yes
6083 ;;
2299a76d 6084
75086676
DD
6085 *-*-msdosdjgpp)
6086 case " $LIBOBJS " in
6087 *" vasprintf.$ac_objext "* ) ;;
6088 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
6089 ;;
6090esac
2299a76d 6091
75086676
DD
6092 case " $LIBOBJS " in
6093 *" vsnprintf.$ac_objext "* ) ;;
6094 *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext"
6095 ;;
6096esac
2299a76d 6097
75086676
DD
6098 case " $LIBOBJS " in
6099 *" snprintf.$ac_objext "* ) ;;
6100 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6101 ;;
6102esac
2299a76d 6103
75086676
DD
6104 case " $LIBOBJS " in
6105 *" asprintf.$ac_objext "* ) ;;
6106 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
6107 ;;
6108esac
2299a76d
DJ
6109
6110
75086676
DD
6111 for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
6112 getcwd getpagesize getrusage gettimeofday \
6113 index insque memchr memcmp memcpy memmove memset psignal \
6114 putenv random rename rindex sbrk setenv stpcpy strcasecmp \
6115 strchr strdup strerror strncasecmp strrchr strstr strtod \
6116 strtol strtoul sysconf times tmpnam vfprintf vprintf \
6117 vsprintf waitpid
6118 do
6119 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6120 cat >>confdefs.h <<_ACEOF
6121#define $n 1
6122_ACEOF
2299a76d 6123
75086676 6124 done
2299a76d 6125
0fad4bdb 6126
75086676
DD
6127 setobjs=yes
6128 ;;
0fad4bdb 6129
75086676 6130 esac
aa55ccb1 6131
252b5132 6132else
2299a76d 6133
75086676
DD
6134 # Not a target library, so we set things up to run the test suite.
6135 CHECK=really-check
252b5132
RH
6136
6137fi
6138
2299a76d 6139
2299a76d 6140
2299a76d 6141
75086676
DD
6142case "${host}" in
6143 *-*-cygwin* | *-*-mingw*)
6144 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
2299a76d 6145
75086676 6146 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
2299a76d 6147
75086676
DD
6148 ;;
6149esac
252b5132 6150
75086676
DD
6151if test -z "${setobjs}"; then
6152 case "${host}" in
252b5132 6153
75086676
DD
6154 *-*-vxworks*)
6155 # Handle VxWorks configuration specially, since on VxWorks the
6156 # libraries are actually on the target board, not in the file
6157 # system.
6158 case " $LIBOBJS " in
6159 *" basename.$ac_objext "* ) ;;
6160 *) LIBOBJS="$LIBOBJS basename.$ac_objext"
6161 ;;
58670637
DD
6162esac
6163
75086676
DD
6164 case " $LIBOBJS " in
6165 *" getpagesize.$ac_objext "* ) ;;
6166 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
6167 ;;
6168esac
2299a76d 6169
75086676
DD
6170 case " $LIBOBJS " in
6171 *" insque.$ac_objext "* ) ;;
6172 *) LIBOBJS="$LIBOBJS insque.$ac_objext"
6173 ;;
6174esac
24acd898 6175
75086676
DD
6176 case " $LIBOBJS " in
6177 *" random.$ac_objext "* ) ;;
6178 *) LIBOBJS="$LIBOBJS random.$ac_objext"
6179 ;;
6180esac
2299a76d 6181
75086676
DD
6182 case " $LIBOBJS " in
6183 *" strcasecmp.$ac_objext "* ) ;;
6184 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
6185 ;;
6186esac
2299a76d 6187
75086676
DD
6188 case " $LIBOBJS " in
6189 *" strncasecmp.$ac_objext "* ) ;;
6190 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
6191 ;;
58670637
DD
6192esac
6193
75086676
DD
6194 case " $LIBOBJS " in
6195 *" strdup.$ac_objext "* ) ;;
6196 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
6197 ;;
6198esac
24acd898 6199
75086676
DD
6200 case " $LIBOBJS " in
6201 *" vfork.$ac_objext "* ) ;;
6202 *) LIBOBJS="$LIBOBJS vfork.$ac_objext"
6203 ;;
6204esac
24acd898 6205
75086676
DD
6206 case " $LIBOBJS " in
6207 *" waitpid.$ac_objext "* ) ;;
6208 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
6209 ;;
6210esac
2299a76d 6211
75086676
DD
6212 case " $LIBOBJS " in
6213 *" vasprintf.$ac_objext "* ) ;;
6214 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
6215 ;;
6216esac
cc096b71 6217
75086676
DD
6218 for f in $funcs; do
6219 case "$f" in
6220 basename | getpagesize | insque | random | strcasecmp)
6221 ;;
6222 strncasecmp | strdup | vfork | waitpid | vasprintf)
6223 ;;
6224 *)
6225 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6226 cat >>confdefs.h <<_ACEOF
6227#define $n 1
2299a76d 6228_ACEOF
2299a76d 6229
75086676
DD
6230 ;;
6231 esac
6232 done
cc096b71 6233
75086676
DD
6234 # VxWorks doesn't provide any of the variables in $vars, so we
6235 # don't have to check them here.
cc096b71 6236
75086676
DD
6237 # Of the functions in $checkfuncs, VxWorks only has strerror.
6238 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
24acd898 6239
2299a76d 6240
75086676
DD
6241 setobjs=yes
6242 ;;
6243
6244 esac
252b5132
RH
6245fi
6246
75086676 6247if test -z "${setobjs}"; then
252b5132 6248
75086676 6249 case "${host}" in
e69f6c8c 6250
82ef0f70
JB
6251 *-*-android*)
6252 # On android, getpagesize is defined in unistd.h as a static inline
6253 # function, which AC_CHECK_FUNCS does not handle properly.
6254 ac_cv_func_getpagesize=yes
6255 ;;
6256
75086676
DD
6257 *-*-mingw32*)
6258 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6259 # macros, so the test below won't find them.
6260 libiberty_cv_var_sys_nerr=yes
6261 libiberty_cv_var_sys_errlist=yes
6262 ;;
2299a76d 6263
75086676
DD
6264 *-*-msdosdjgpp*)
6265 # vfork and fork are stubs.
6266 ac_cv_func_vfork_works=no
6267 ;;
e69f6c8c 6268
75086676
DD
6269 *-*-uwin*)
6270 # Under some versions of uwin, vfork is notoriously buggy and the test
6271 # can hang configure; on other versions, vfork exists just as a stub.
6272 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6273 ac_cv_func_vfork_works=no
6274 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6275 # macros (actually, these are imported from a DLL, but the end effect
6276 # is the same), so the test below won't find them.
6277 libiberty_cv_var_sys_nerr=yes
6278 libiberty_cv_var_sys_errlist=yes
6279 ;;
2299a76d 6280
75086676
DD
6281 *-*-*vms*)
6282 # Under VMS, vfork works very different than on Unix. The standard test
6283 # won't work, and it isn't easily adaptable. It makes more sense to
6284 # just force it.
6285 ac_cv_func_vfork_works=yes
6286 ;;
2299a76d 6287
75086676 6288 esac
e69f6c8c 6289
75086676
DD
6290 # We haven't set the list of objects yet. Use the standard autoconf
6291 # tests. This will only work if the compiler works.
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6293$as_echo_n "checking for library containing strerror... " >&6; }
6294if test "${ac_cv_search_strerror+set}" = set; then :
6295 $as_echo_n "(cached) " >&6
2299a76d 6296else
75086676
DD
6297 ac_func_search_save_LIBS=$LIBS
6298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299a76d 6299/* end confdefs.h. */
75086676
DD
6300
6301/* Override any GCC internal prototype to avoid an error.
6302 Use char because int might match the return type of a GCC
2299a76d 6303 builtin and then its argument prototype would still apply. */
2299a76d 6304#ifdef __cplusplus
75086676 6305extern "C"
eb383413 6306#endif
75086676 6307char strerror ();
2299a76d
DJ
6308int
6309main ()
6310{
75086676 6311return strerror ();
2299a76d
DJ
6312 ;
6313 return 0;
6314}
6315_ACEOF
75086676
DD
6316for ac_lib in '' cposix; do
6317 if test -z "$ac_lib"; then
6318 ac_res="none required"
6319 else
6320 ac_res=-l$ac_lib
6321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6322 fi
6323 if test x$gcc_no_link = xyes; then
6324 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6325fi
6326if ac_fn_c_try_link "$LINENO"; then :
6327 ac_cv_search_strerror=$ac_res
6328fi
6329rm -f core conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext
6331 if test "${ac_cv_search_strerror+set}" = set; then :
6332 break
6333fi
6334done
6335if test "${ac_cv_search_strerror+set}" = set; then :
2299a76d 6336
75086676
DD
6337else
6338 ac_cv_search_strerror=no
2299a76d 6339fi
75086676
DD
6340rm conftest.$ac_ext
6341LIBS=$ac_func_search_save_LIBS
6342fi
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6344$as_echo "$ac_cv_search_strerror" >&6; }
6345ac_res=$ac_cv_search_strerror
6346if test "$ac_res" != no; then :
6347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6348
2299a76d 6349fi
75086676
DD
6350
6351 for ac_func in $funcs
6352do :
6353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6354ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6355eval as_val=\$$as_ac_var
6356 if test "x$as_val" = x""yes; then :
2299a76d 6357 cat >>confdefs.h <<_ACEOF
75086676 6358#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2299a76d 6359_ACEOF
eb383413 6360
75086676
DD
6361else
6362 case " $LIBOBJS " in
6363 *" $ac_func.$ac_objext "* ) ;;
6364 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6365 ;;
6366esac
6367
eb383413
L
6368fi
6369done
6370
75086676
DD
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloca needs Cray hooks" >&5
6373$as_echo_n "checking whether alloca needs Cray hooks... " >&6; }
6374if test "${ac_cv_os_cray+set}" = set; then :
6375 $as_echo_n "(cached) " >&6
fa99459d 6376else
75086676 6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa99459d 6378/* end confdefs.h. */
75086676
DD
6379#if defined(CRAY) && ! defined(CRAY2)
6380webecray
6381#else
6382wenotbecray
fa99459d
DD
6383#endif
6384
fa99459d 6385_ACEOF
75086676
DD
6386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 $EGREP "webecray" >/dev/null 2>&1; then :
6388 ac_cv_os_cray=yes
fa99459d 6389else
75086676 6390 ac_cv_os_cray=no
fa99459d 6391fi
75086676
DD
6392rm -f conftest*
6393
fa99459d 6394fi
75086676
DD
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6396$as_echo "$ac_cv_os_cray" >&6; }
6397if test $ac_cv_os_cray = yes; then
6398 for ac_func in _getb67 GETB67 getb67; do
6399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6400ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6401eval as_val=\$$as_ac_var
6402 if test "x$as_val" = x""yes; then :
fa99459d
DD
6403
6404cat >>confdefs.h <<_ACEOF
75086676 6405#define CRAY_STACKSEG_END $ac_func
fa99459d 6406_ACEOF
75086676
DD
6407 break
6408fi
fa99459d 6409
75086676
DD
6410 done
6411fi
fa99459d 6412
75086676
DD
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6414$as_echo_n "checking stack direction for C alloca... " >&6; }
6415if test "${ac_cv_c_stack_direction+set}" = set; then :
6416 $as_echo_n "(cached) " >&6
fa99459d 6417else
75086676
DD
6418 if test "$cross_compiling" = yes; then :
6419 ac_cv_c_stack_direction=0
fa99459d 6420else
75086676 6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa99459d 6422/* end confdefs.h. */
75086676
DD
6423find_stack_direction ()
6424{
6425 static char *addr = 0;
6426 auto char dummy;
6427 if (addr == 0)
6428 {
6429 addr = &dummy;
6430 return find_stack_direction ();
6431 }
6432 else
6433 return (&dummy > addr) ? 1 : -1;
6434}
fa99459d
DD
6435main ()
6436{
75086676 6437 exit (find_stack_direction() < 0);
fa99459d
DD
6438}
6439_ACEOF
75086676
DD
6440if ac_fn_c_try_run "$LINENO"; then :
6441 ac_cv_c_stack_direction=1
fa99459d 6442else
75086676
DD
6443 ac_cv_c_stack_direction=-1
6444fi
6445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6446 conftest.$ac_objext conftest.beam conftest.$ac_ext
fa99459d 6447fi
75086676 6448
fa99459d 6449fi
75086676
DD
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6451$as_echo "$ac_cv_c_stack_direction" >&6; }
fa99459d
DD
6452
6453cat >>confdefs.h <<_ACEOF
75086676 6454#define STACK_DIRECTION $ac_cv_c_stack_direction
fa99459d
DD
6455_ACEOF
6456
6457
75086676
DD
6458 for ac_header in vfork.h
6459do :
6460 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
6461if test "x$ac_cv_header_vfork_h" = x""yes; then :
fa99459d 6462 cat >>confdefs.h <<_ACEOF
75086676 6463#define HAVE_VFORK_H 1
fa99459d
DD
6464_ACEOF
6465
75086676
DD
6466fi
6467done
6468
6469for ac_func in fork vfork
6470do :
6471 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6472ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6473eval as_val=\$$as_ac_var
6474 if test "x$as_val" = x""yes; then :
6475 cat >>confdefs.h <<_ACEOF
6476#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6477_ACEOF
fa99459d
DD
6478
6479fi
75086676
DD
6480done
6481
6482if test "x$ac_cv_func_fork" = xyes; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6484$as_echo_n "checking for working fork... " >&6; }
6485if test "${ac_cv_func_fork_works+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
fa99459d 6487else
75086676
DD
6488 if test "$cross_compiling" = yes; then :
6489 ac_cv_func_fork_works=cross
6490else
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa99459d
DD
6492/* end confdefs.h. */
6493$ac_includes_default
6494int
6495main ()
6496{
75086676
DD
6497
6498 /* By Ruediger Kuhlmann. */
6499 return fork () < 0;
fa99459d
DD
6500
6501 ;
6502 return 0;
6503}
6504_ACEOF
75086676
DD
6505if ac_fn_c_try_run "$LINENO"; then :
6506 ac_cv_func_fork_works=yes
fa99459d 6507else
75086676 6508 ac_cv_func_fork_works=no
fa99459d 6509fi
75086676
DD
6510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6511 conftest.$ac_objext conftest.beam conftest.$ac_ext
fa99459d 6512fi
fa99459d 6513
75086676
DD
6514fi
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6516$as_echo "$ac_cv_func_fork_works" >&6; }
fa99459d
DD
6517
6518else
75086676
DD
6519 ac_cv_func_fork_works=$ac_cv_func_fork
6520fi
6521if test "x$ac_cv_func_fork_works" = xcross; then
6522 case $host in
6523 *-*-amigaos* | *-*-msdosdjgpp*)
6524 # Override, as these systems have only a dummy fork() stub
6525 ac_cv_func_fork_works=no
6526 ;;
6527 *)
6528 ac_cv_func_fork_works=yes
6529 ;;
6530 esac
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6532$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fa99459d 6533fi
75086676
DD
6534ac_cv_func_vfork_works=$ac_cv_func_vfork
6535if test "x$ac_cv_func_vfork" = xyes; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6537$as_echo_n "checking for working vfork... " >&6; }
6538if test "${ac_cv_func_vfork_works+set}" = set; then :
6539 $as_echo_n "(cached) " >&6
fa99459d 6540else
75086676
DD
6541 if test "$cross_compiling" = yes; then :
6542 ac_cv_func_vfork_works=cross
6543else
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa99459d 6545/* end confdefs.h. */
75086676 6546/* Thanks to Paul Eggert for this test. */
fa99459d 6547$ac_includes_default
75086676
DD
6548#include <sys/wait.h>
6549#ifdef HAVE_VFORK_H
6550# include <vfork.h>
6551#endif
6552/* On some sparc systems, changes by the child to local and incoming
6553 argument registers are propagated back to the parent. The compiler
6554 is told about this with #include <vfork.h>, but some compilers
6555 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6556 static variable whose address is put into a register that is
6557 clobbered by the vfork. */
6558static void
6559#ifdef __cplusplus
6560sparc_address_test (int arg)
6561# else
6562sparc_address_test (arg) int arg;
6563#endif
6564{
6565 static pid_t child;
6566 if (!child) {
6567 child = vfork ();
6568 if (child < 0) {
6569 perror ("vfork");
6570 _exit(2);
6571 }
6572 if (!child) {
6573 arg = getpid();
6574 write(-1, "", 0);
6575 _exit (arg);
6576 }
6577 }
6578}
6579
fa99459d
DD
6580int
6581main ()
6582{
75086676
DD
6583 pid_t parent = getpid ();
6584 pid_t child;
fa99459d 6585
75086676 6586 sparc_address_test (0);
fa99459d 6587
75086676 6588 child = vfork ();
fa99459d 6589
75086676
DD
6590 if (child == 0) {
6591 /* Here is another test for sparc vfork register problems. This
6592 test uses lots of local variables, at least as many local
6593 variables as main has allocated so far including compiler
6594 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6595 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6596 reuse the register of parent for one of the local variables,
6597 since it will think that parent can't possibly be used any more
6598 in this routine. Assigning to the local variable will thus
6599 munge parent in the parent process. */
6600 pid_t
6601 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6602 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6603 /* Convince the compiler that p..p7 are live; otherwise, it might
6604 use the same hardware register for all 8 local variables. */
6605 if (p != p1 || p != p2 || p != p3 || p != p4
6606 || p != p5 || p != p6 || p != p7)
6607 _exit(1);
fa99459d 6608
75086676
DD
6609 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6610 from child file descriptors. If the child closes a descriptor
6611 before it execs or exits, this munges the parent's descriptor
6612 as well. Test for this by closing stdout in the child. */
6613 _exit(close(fileno(stdout)) != 0);
6614 } else {
6615 int status;
6616 struct stat st;
fa99459d 6617
75086676
DD
6618 while (wait(&status) != child)
6619 ;
6620 return (
6621 /* Was there some problem with vforking? */
6622 child < 0
fa99459d 6623
75086676
DD
6624 /* Did the child fail? (This shouldn't happen.) */
6625 || status
fa99459d 6626
75086676
DD
6627 /* Did the vfork/compiler bug occur? */
6628 || parent != getpid()
01e94249 6629
75086676
DD
6630 /* Did the file descriptor bug occur? */
6631 || fstat(fileno(stdout), &st) != 0
6632 );
6633 }
01e94249
DD
6634}
6635_ACEOF
75086676
DD
6636if ac_fn_c_try_run "$LINENO"; then :
6637 ac_cv_func_vfork_works=yes
01e94249 6638else
75086676
DD
6639 ac_cv_func_vfork_works=no
6640fi
6641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6642 conftest.$ac_objext conftest.beam conftest.$ac_ext
6643fi
01e94249 6644
01e94249 6645fi
75086676
DD
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6647$as_echo "$ac_cv_func_vfork_works" >&6; }
6648
6649fi;
6650if test "x$ac_cv_func_fork_works" = xcross; then
6651 ac_cv_func_vfork_works=$ac_cv_func_vfork
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6653$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
01e94249 6654fi
01e94249 6655
75086676 6656if test "x$ac_cv_func_vfork_works" = xyes; then
01e94249 6657
75086676 6658$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
01e94249
DD
6659
6660else
01e94249 6661
75086676 6662$as_echo "#define vfork fork" >>confdefs.h
01e94249
DD
6663
6664fi
75086676 6665if test "x$ac_cv_func_fork_works" = xyes; then
01e94249 6666
75086676 6667$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
01e94249 6668
01e94249 6669fi
01e94249 6670
75086676
DD
6671 if test $ac_cv_func_vfork_works = no; then
6672 case " $LIBOBJS " in
6673 *" vfork.$ac_objext "* ) ;;
6674 *) LIBOBJS="$LIBOBJS vfork.$ac_objext"
6675 ;;
6676esac
01e94249 6677
75086676
DD
6678 fi
6679 # We only need _doprnt if we might use it to implement v*printf.
6680 if test $ac_cv_func_vprintf != yes \
6681 || test $ac_cv_func_vfprintf != yes \
6682 || test $ac_cv_func_vsprintf != yes; then
6683 for ac_func in _doprnt
6684do :
6685 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6686if test "x$ac_cv_func__doprnt" = x""yes; then :
01e94249 6687 cat >>confdefs.h <<_ACEOF
75086676 6688#define HAVE__DOPRNT 1
01e94249
DD
6689_ACEOF
6690
75086676
DD
6691else
6692 case " $LIBOBJS " in
6693 *" $ac_func.$ac_objext "* ) ;;
6694 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6695 ;;
6696esac
01e94249 6697
abf6a75b 6698fi
75086676 6699done
abf6a75b
DD
6700
6701
75086676
DD
6702 else
6703 for ac_func in _doprnt
6704do :
6705 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6706if test "x$ac_cv_func__doprnt" = x""yes; then :
6707 cat >>confdefs.h <<_ACEOF
6708#define HAVE__DOPRNT 1
abf6a75b 6709_ACEOF
abf6a75b 6710
abf6a75b 6711fi
75086676 6712done
abf6a75b 6713
75086676 6714 fi
abf6a75b 6715
75086676
DD
6716 for v in $vars; do
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $v" >&5
6718$as_echo_n "checking for $v... " >&6; }
6719 if { as_var=libiberty_cv_var_$v; eval "test \"\${$as_var+set}\" = set"; }; then :
6720 $as_echo_n "(cached) " >&6
abf6a75b 6721else
75086676
DD
6722 if test x$gcc_no_link = xyes; then
6723 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
abf6a75b 6724fi
75086676 6725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
abf6a75b 6726/* end confdefs.h. */
75086676 6727int *p;
abf6a75b
DD
6728int
6729main ()
6730{
75086676 6731extern int $v []; p = $v;
abf6a75b
DD
6732 ;
6733 return 0;
6734}
6735_ACEOF
75086676
DD
6736if ac_fn_c_try_link "$LINENO"; then :
6737 eval "libiberty_cv_var_$v=yes"
abf6a75b 6738else
75086676 6739 eval "libiberty_cv_var_$v=no"
abf6a75b 6740fi
75086676
DD
6741rm -f core conftest.err conftest.$ac_objext \
6742 conftest$ac_exeext conftest.$ac_ext
abf6a75b 6743fi
abf6a75b 6744
75086676
DD
6745 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6747$as_echo "yes" >&6; }
6748 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6749 cat >>confdefs.h <<_ACEOF
6750#define $n 1
abf6a75b
DD
6751_ACEOF
6752
75086676
DD
6753 else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
6756 fi
6757 done
abf6a75b 6758
75086676
DD
6759 # special check for _system_configuration because AIX <4.3.2 do not
6760 # contain the `physmem' member.
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
6762$as_echo_n "checking for external symbol _system_configuration... " >&6; }
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a4e5c0d8 6764/* end confdefs.h. */
75086676 6765#include <sys/systemcfg.h>
a4e5c0d8
DD
6766int
6767main ()
6768{
75086676 6769double x = _system_configuration.physmem;
a4e5c0d8
DD
6770 ;
6771 return 0;
6772}
6773_ACEOF
75086676
DD
6774if ac_fn_c_try_compile "$LINENO"; then :
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6776$as_echo "yes" >&6; }
a4e5c0d8 6777
75086676 6778$as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
a4e5c0d8
DD
6779
6780else
75086676
DD
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782$as_echo "no" >&6; }
6783fi
6784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785
6786 for ac_func in $checkfuncs
6787do :
6788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6789ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6790eval as_val=\$$as_ac_var
6791 if test "x$as_val" = x""yes; then :
a4e5c0d8 6792 cat >>confdefs.h <<_ACEOF
75086676 6793#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a4e5c0d8
DD
6794_ACEOF
6795
abf6a75b 6796fi
75086676 6797done
abf6a75b 6798
a2803021
DD
6799 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
6800if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
75086676 6801 ac_have_decl=1
abf6a75b 6802else
75086676 6803 ac_have_decl=0
abf6a75b 6804fi
abf6a75b
DD
6805
6806cat >>confdefs.h <<_ACEOF
75086676 6807#define HAVE_DECL_BASENAME $ac_have_decl
abf6a75b 6808_ACEOF
75086676
DD
6809ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
6810if test "x$ac_cv_have_decl_ffs" = x""yes; then :
6811 ac_have_decl=1
abf6a75b 6812else
75086676 6813 ac_have_decl=0
abf6a75b 6814fi
abf6a75b 6815
75086676
DD
6816cat >>confdefs.h <<_ACEOF
6817#define HAVE_DECL_FFS $ac_have_decl
abf6a75b 6818_ACEOF
75086676
DD
6819ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6820if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
6821 ac_have_decl=1
abf6a75b 6822else
75086676 6823 ac_have_decl=0
abf6a75b 6824fi
abf6a75b
DD
6825
6826cat >>confdefs.h <<_ACEOF
75086676 6827#define HAVE_DECL_ASPRINTF $ac_have_decl
abf6a75b 6828_ACEOF
75086676
DD
6829ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6830if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
6831 ac_have_decl=1
abf6a75b 6832else
75086676 6833 ac_have_decl=0
abf6a75b 6834fi
abf6a75b 6835
75086676
DD
6836cat >>confdefs.h <<_ACEOF
6837#define HAVE_DECL_VASPRINTF $ac_have_decl
abf6a75b 6838_ACEOF
75086676
DD
6839ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
6840if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
6841 ac_have_decl=1
abf6a75b 6842else
75086676 6843 ac_have_decl=0
abf6a75b 6844fi
abf6a75b
DD
6845
6846cat >>confdefs.h <<_ACEOF
75086676 6847#define HAVE_DECL_SNPRINTF $ac_have_decl
abf6a75b 6848_ACEOF
75086676
DD
6849ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
6850if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
6851 ac_have_decl=1
abf6a75b 6852else
75086676 6853 ac_have_decl=0
67f3cb05
GK
6854fi
6855
75086676
DD
6856cat >>confdefs.h <<_ACEOF
6857#define HAVE_DECL_VSNPRINTF $ac_have_decl
6858_ACEOF
67f3cb05 6859
75086676
DD
6860 ac_fn_c_check_decl "$LINENO" "calloc" "ac_cv_have_decl_calloc" "$ac_includes_default"
6861if test "x$ac_cv_have_decl_calloc" = x""yes; then :
6862 ac_have_decl=1
6863else
6864 ac_have_decl=0
67f3cb05 6865fi
75086676
DD
6866
6867cat >>confdefs.h <<_ACEOF
6868#define HAVE_DECL_CALLOC $ac_have_decl
6869_ACEOF
6870ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
6871if test "x$ac_cv_have_decl_getenv" = x""yes; then :
6872 ac_have_decl=1
6873else
6874 ac_have_decl=0
67f3cb05 6875fi
67f3cb05
GK
6876
6877cat >>confdefs.h <<_ACEOF
75086676 6878#define HAVE_DECL_GETENV $ac_have_decl
67f3cb05 6879_ACEOF
75086676
DD
6880ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
6881if test "x$ac_cv_have_decl_getopt" = x""yes; then :
6882 ac_have_decl=1
6883else
6884 ac_have_decl=0
6885fi
67f3cb05 6886
75086676
DD
6887cat >>confdefs.h <<_ACEOF
6888#define HAVE_DECL_GETOPT $ac_have_decl
6889_ACEOF
6890ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
6891if test "x$ac_cv_have_decl_malloc" = x""yes; then :
6892 ac_have_decl=1
6893else
6894 ac_have_decl=0
6895fi
67f3cb05 6896
75086676
DD
6897cat >>confdefs.h <<_ACEOF
6898#define HAVE_DECL_MALLOC $ac_have_decl
6899_ACEOF
6900ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
6901if test "x$ac_cv_have_decl_realloc" = x""yes; then :
6902 ac_have_decl=1
67f3cb05 6903else
75086676
DD
6904 ac_have_decl=0
6905fi
6906
6907cat >>confdefs.h <<_ACEOF
6908#define HAVE_DECL_REALLOC $ac_have_decl
67f3cb05 6909_ACEOF
75086676
DD
6910ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
6911if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
6912 ac_have_decl=1
6913else
6914 ac_have_decl=0
6915fi
67f3cb05 6916
75086676
DD
6917cat >>confdefs.h <<_ACEOF
6918#define HAVE_DECL_SBRK $ac_have_decl
7c89917f
RE
6919_ACEOF
6920
6921 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
6922if test "x$ac_cv_have_decl_strtol" = x""yes; then :
6923 ac_have_decl=1
6924else
6925 ac_have_decl=0
6926fi
6927
6928cat >>confdefs.h <<_ACEOF
6929#define HAVE_DECL_STRTOL $ac_have_decl
6930_ACEOF
6931ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
6932if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
6933 ac_have_decl=1
6934else
6935 ac_have_decl=0
6936fi
6937
6938cat >>confdefs.h <<_ACEOF
6939#define HAVE_DECL_STRTOUL $ac_have_decl
6940_ACEOF
6941ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
6942if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
6943 ac_have_decl=1
6944else
6945 ac_have_decl=0
6946fi
6947
6948cat >>confdefs.h <<_ACEOF
6949#define HAVE_DECL_STRTOLL $ac_have_decl
6950_ACEOF
6951ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
6952if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
6953 ac_have_decl=1
6954else
6955 ac_have_decl=0
6956fi
6957
6958cat >>confdefs.h <<_ACEOF
6959#define HAVE_DECL_STRTOULL $ac_have_decl
75086676 6960_ACEOF
67f3cb05 6961
75086676
DD
6962 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
6963if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
6964 ac_have_decl=1
6965else
6966 ac_have_decl=0
fa99459d
DD
6967fi
6968
75086676
DD
6969cat >>confdefs.h <<_ACEOF
6970#define HAVE_DECL_STRVERSCMP $ac_have_decl
6971_ACEOF
fa99459d 6972
75086676
DD
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5
6974$as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; }
6975if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
ba61a412 6977else
75086676 6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299a76d 6979/* end confdefs.h. */
ba61a412
DJ
6980
6981#include "confdefs.h"
6982#include <stdio.h>
6983#ifdef HAVE_STRING_H
6984#include <string.h>
6985#else
6986#ifdef HAVE_STRINGS_H
6987#include <strings.h>
6988#endif
6989#endif
6990#ifdef HAVE_STDLIB_H
6991#include <stdlib.h>
6992#endif
6993#ifdef HAVE_UNISTD_H
6994#include <unistd.h>
6995#endif
2299a76d
DJ
6996int
6997main ()
6998{
ba61a412 6999char *(*pfn) = (char *(*)) canonicalize_file_name
2299a76d
DJ
7000 ;
7001 return 0;
7002}
7003_ACEOF
75086676 7004if ac_fn_c_try_compile "$LINENO"; then :
ba61a412
DJ
7005 libiberty_cv_decl_needed_canonicalize_file_name=no
7006else
75086676 7007 libiberty_cv_decl_needed_canonicalize_file_name=yes
ba61a412 7008fi
75086676 7009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ba61a412
DJ
7010fi
7011
75086676
DD
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
7013$as_echo "$libiberty_cv_decl_needed_canonicalize_file_name" >&6; }
ba61a412 7014if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
2299a76d 7015
75086676 7016$as_echo "#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ba61a412
DJ
7017
7018fi
7019
eb383413
L
7020fi
7021
5a17353c
DD
7022# Figure out which version of pexecute to use.
7023case "${host}" in
497462ef
DD
7024 *-*-mingw* | *-*-winnt*) pexecute=pex-win32 ;;
7025 *-*-msdosdjgpp*) pexecute=pex-djgpp ;;
7026 *-*-msdos*) pexecute=pex-msdos ;;
7027 *) pexecute=pex-unix ;;
5a17353c
DD
7028esac
7029
7030
2299a76d
DJ
7031if test x$gcc_no_link = xyes; then
7032 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
7033 ac_cv_func_mmap_fixed_mapped=no
7034 fi
7035fi
67f3cb05 7036if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
75086676
DD
7037 for ac_header in stdlib.h unistd.h
7038do :
7039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7040ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7041eval as_val=\$$as_ac_Header
7042 if test "x$as_val" = x""yes; then :
2299a76d 7043 cat >>confdefs.h <<_ACEOF
75086676 7044#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2299a76d
DJ
7045_ACEOF
7046
eb383413
L
7047fi
7048done
7049
7050for ac_func in getpagesize
75086676
DD
7051do :
7052 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7053if test "x$ac_cv_func_getpagesize" = x""yes; then :
2299a76d 7054 cat >>confdefs.h <<_ACEOF
75086676 7055#define HAVE_GETPAGESIZE 1
2299a76d 7056_ACEOF
252b5132 7057
252b5132
RH
7058fi
7059done
7060
75086676
DD
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7062$as_echo_n "checking for working mmap... " >&6; }
7063if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7064 $as_echo_n "(cached) " >&6
eb383413 7065else
75086676 7066 if test "$cross_compiling" = yes; then :
eb383413
L
7067 ac_cv_func_mmap_fixed_mapped=no
7068else
75086676 7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299a76d
DJ
7070/* end confdefs.h. */
7071$ac_includes_default
7072/* malloc might have been renamed as rpl_malloc. */
7073#undef malloc
eb383413
L
7074
7075/* Thanks to Mike Haertel and Jim Avera for this test.
7076 Here is a matrix of mmap possibilities:
7077 mmap private not fixed
7078 mmap private fixed at somewhere currently unmapped
7079 mmap private fixed at somewhere already mapped
7080 mmap shared not fixed
7081 mmap shared fixed at somewhere currently unmapped
7082 mmap shared fixed at somewhere already mapped
7083 For private mappings, we should verify that changes cannot be read()
7084 back from the file, nor mmap's back from the file at a different
7085 address. (There have been systems where private was not correctly
7086 implemented like the infamous i386 svr4.0, and systems where the
2299a76d 7087 VM page cache was not coherent with the file system buffer cache
eb383413
L
7088 like early versions of FreeBSD and possibly contemporary NetBSD.)
7089 For shared mappings, we should conversely verify that changes get
2299a76d 7090 propagated back to all the places they're supposed to be.
eb383413
L
7091
7092 Grep wants private fixed already mapped.
7093 The main things grep needs to know about mmap are:
7094 * does it exist and is it safe to write into the mmap'd area
7095 * how to use it (BSD variants) */
2299a76d 7096
eb383413
L
7097#include <fcntl.h>
7098#include <sys/mman.h>
7099
75086676 7100#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
2299a76d 7101char *malloc ();
5f73c378
DD
7102#endif
7103
eb383413 7104/* This mess was copied from the GNU getpagesize.h. */
75086676 7105#ifndef HAVE_GETPAGESIZE
eb383413 7106/* Assume that all systems that can run configure have sys/param.h. */
75086676 7107# ifndef HAVE_SYS_PARAM_H
eb383413
L
7108# define HAVE_SYS_PARAM_H 1
7109# endif
7110
7111# ifdef _SC_PAGESIZE
7112# define getpagesize() sysconf(_SC_PAGESIZE)
7113# else /* no _SC_PAGESIZE */
75086676 7114# ifdef HAVE_SYS_PARAM_H
eb383413
L
7115# include <sys/param.h>
7116# ifdef EXEC_PAGESIZE
7117# define getpagesize() EXEC_PAGESIZE
7118# else /* no EXEC_PAGESIZE */
7119# ifdef NBPG
7120# define getpagesize() NBPG * CLSIZE
7121# ifndef CLSIZE
7122# define CLSIZE 1
7123# endif /* no CLSIZE */
7124# else /* no NBPG */
7125# ifdef NBPC
7126# define getpagesize() NBPC
7127# else /* no NBPC */
7128# ifdef PAGESIZE
7129# define getpagesize() PAGESIZE
7130# endif /* PAGESIZE */
7131# endif /* no NBPC */
7132# endif /* no NBPG */
7133# endif /* no EXEC_PAGESIZE */
7134# else /* no HAVE_SYS_PARAM_H */
7135# define getpagesize() 8192 /* punt totally */
7136# endif /* no HAVE_SYS_PARAM_H */
7137# endif /* no _SC_PAGESIZE */
7138
7139#endif /* no HAVE_GETPAGESIZE */
7140
eb383413 7141int
2299a76d 7142main ()
eb383413 7143{
2299a76d
DJ
7144 char *data, *data2, *data3;
7145 int i, pagesize;
7146 int fd;
eb383413 7147
2299a76d
DJ
7148 pagesize = getpagesize ();
7149
7150 /* First, make a file with some known garbage in it. */
7151 data = (char *) malloc (pagesize);
7152 if (!data)
75086676 7153 return 1;
2299a76d
DJ
7154 for (i = 0; i < pagesize; ++i)
7155 *(data + i) = rand ();
7156 umask (0);
7157 fd = creat ("conftest.mmap", 0600);
7158 if (fd < 0)
75086676 7159 return 1;
2299a76d 7160 if (write (fd, data, pagesize) != pagesize)
75086676 7161 return 1;
2299a76d
DJ
7162 close (fd);
7163
7164 /* Next, try to mmap the file at a fixed address which already has
7165 something else allocated at it. If we can, also make sure that
7166 we see the same garbage. */
7167 fd = open ("conftest.mmap", O_RDWR);
7168 if (fd < 0)
75086676 7169 return 1;
2299a76d
DJ
7170 data2 = (char *) malloc (2 * pagesize);
7171 if (!data2)
75086676
DD
7172 return 1;
7173 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
2299a76d 7174 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
58670637 7175 MAP_PRIVATE | MAP_FIXED, fd, 0L))
75086676 7176 return 1;
2299a76d
DJ
7177 for (i = 0; i < pagesize; ++i)
7178 if (*(data + i) != *(data2 + i))
75086676 7179 return 1;
2299a76d
DJ
7180
7181 /* Finally, make sure that changes to the mapped area do not
7182 percolate back to the file as seen by read(). (This is a bug on
7183 some variants of i386 svr4.0.) */
7184 for (i = 0; i < pagesize; ++i)
7185 *(data2 + i) = *(data2 + i) + 1;
7186 data3 = (char *) malloc (pagesize);
7187 if (!data3)
75086676 7188 return 1;
2299a76d 7189 if (read (fd, data3, pagesize) != pagesize)
75086676 7190 return 1;
2299a76d
DJ
7191 for (i = 0; i < pagesize; ++i)
7192 if (*(data + i) != *(data3 + i))
75086676 7193 return 1;
2299a76d 7194 close (fd);
75086676 7195 return 0;
2299a76d
DJ
7196}
7197_ACEOF
75086676 7198if ac_fn_c_try_run "$LINENO"; then :
eb383413
L
7199 ac_cv_func_mmap_fixed_mapped=yes
7200else
75086676 7201 ac_cv_func_mmap_fixed_mapped=no
eb383413 7202fi
75086676
DD
7203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7204 conftest.$ac_objext conftest.beam conftest.$ac_ext
eb383413 7205fi
75086676 7206
eb383413 7207fi
75086676
DD
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7209$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
eb383413 7210if test $ac_cv_func_mmap_fixed_mapped = yes; then
2299a76d 7211
75086676 7212$as_echo "#define HAVE_MMAP 1" >>confdefs.h
eb383413 7213
252b5132 7214fi
2299a76d 7215rm -f conftest.mmap
252b5132 7216
2299a76d 7217fi
eb383413 7218
75086676
DD
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strncmp" >&5
7220$as_echo_n "checking for working strncmp... " >&6; }
7221if test "${ac_cv_func_strncmp_works+set}" = set; then :
7222 $as_echo_n "(cached) " >&6
eb383413 7223else
75086676 7224 if test "$cross_compiling" = yes; then :
3fee530e 7225 ac_cv_func_strncmp_works=yes
eb383413 7226else
75086676 7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299a76d 7228/* end confdefs.h. */
eb383413
L
7229
7230/* Test by Jim Wilson and Kaveh Ghazi.
7231 Check whether strncmp reads past the end of its string parameters. */
7232#include <sys/types.h>
7233
7234#ifdef HAVE_FCNTL_H
7235#include <fcntl.h>
7236#endif
7237
7238#ifdef HAVE_SYS_MMAN_H
7239#include <sys/mman.h>
7240#endif
7241
7242#ifndef MAP_ANON
7243#ifdef MAP_ANONYMOUS
7244#define MAP_ANON MAP_ANONYMOUS
7245#else
7246#define MAP_ANON MAP_FILE
7247#endif
7248#endif
7249
7250#ifndef MAP_FILE
7251#define MAP_FILE 0
7252#endif
7253#ifndef O_RDONLY
7254#define O_RDONLY 0
7255#endif
7256
7257#define MAP_LEN 0x10000
7258
7259main ()
7260{
7261#if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
7262 char *p;
7263 int dev_zero;
7264
7265 dev_zero = open ("/dev/zero", O_RDONLY);
7266 if (dev_zero < 0)
7267 exit (1);
2299a76d 7268
eb383413
L
7269 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
7270 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
f348a7b1
DD
7271 if (p == (char *)-1)
7272 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
7273 MAP_ANON|MAP_PRIVATE, -1, 0);
eb383413
L
7274 if (p == (char *)-1)
7275 exit (2);
7276 else
7277 {
7278 char *string = "__si_type_info";
7279 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
7280 char *r = (char *) p + 0xe;
7281
7282 strcpy (q, string);
7283 strcpy (r, string);
7284 strncmp (r, q, 14);
7285 }
7286#endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
7287 exit (0);
7288}
7289
2299a76d 7290_ACEOF
75086676 7291if ac_fn_c_try_run "$LINENO"; then :
eb383413
L
7292 ac_cv_func_strncmp_works=yes
7293else
75086676 7294 ac_cv_func_strncmp_works=no
eb383413 7295fi
75086676
DD
7296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7297 conftest.$ac_objext conftest.beam conftest.$ac_ext
eb383413 7298fi
75086676 7299
eb383413
L
7300rm -f core core.* *.core
7301fi
75086676
DD
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strncmp_works" >&5
7303$as_echo "$ac_cv_func_strncmp_works" >&6; }
eb383413 7304if test $ac_cv_func_strncmp_works = no ; then
75086676 7305 case " $LIBOBJS " in
58670637 7306 *" strncmp.$ac_objext "* ) ;;
75086676
DD
7307 *) LIBOBJS="$LIBOBJS strncmp.$ac_objext"
7308 ;;
58670637
DD
7309esac
7310
eb383413
L
7311fi
7312
7313
252b5132
RH
7314# Install a library built with a cross compiler in $(tooldir) rather
7315# than $(libdir).
7316if test -z "${with_cross_host}"; then
7317 INSTALL_DEST=libdir
7318else
7319 INSTALL_DEST=tooldir
7320fi
7321
7322
11a338da
DD
7323
7324L=""
7325for l in x $LIBOBJS; do
7326 case $l in
7327 x) ;;
7328 *) L="$L ./$l" ;;
7329 esac
7330done
7331LIBOBJS="$L"
7332
545c9aee
DD
7333
7334
7335
7336
252b5132 7337# We need multilib support, but only if configuring for the target.
75086676 7338ac_config_files="$ac_config_files Makefile testsuite/Makefile"
bb6a587d 7339
75086676 7340ac_config_commands="$ac_config_commands default"
bb6a587d 7341
2299a76d 7342cat >confcache <<\_ACEOF
252b5132
RH
7343# This file is a shell script that caches the results of configure
7344# tests run on this system so they can be shared between configure
2299a76d
DJ
7345# scripts and configure runs, see configure's option --config-cache.
7346# It is not useful on other systems. If it contains results you don't
7347# want to keep, you may remove or edit it.
252b5132 7348#
2299a76d
DJ
7349# config.status only pays attention to the cache file if you give it
7350# the --recheck option to rerun configure.
252b5132 7351#
2299a76d
DJ
7352# `ac_cv_env_foo' variables (set or unset) will be overridden when
7353# loading this file, other *unset* `ac_cv_foo' will be assigned the
7354# following values.
7355
7356_ACEOF
7357
252b5132
RH
7358# The following way of writing the cache mishandles newlines in values,
7359# but we know of no workaround that is simple, portable, and efficient.
75086676 7360# So, we kill variables containing newlines.
252b5132
RH
7361# Ultrix sh set writes to stderr and can't be redirected directly,
7362# and sets the high bit in the cache file unless we assign to the vars.
75086676
DD
7363(
7364 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7365 eval ac_val=\$$ac_var
7366 case $ac_val in #(
7367 *${as_nl}*)
7368 case $ac_var in #(
7369 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7370$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7371 esac
7372 case $ac_var in #(
7373 _ | IFS | as_nl) ;; #(
7374 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7375 *) { eval $ac_var=; unset $ac_var;} ;;
7376 esac ;;
7377 esac
7378 done
7379
2299a76d 7380 (set) 2>&1 |
75086676
DD
7381 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7382 *${as_nl}ac_space=\ *)
7383 # `set' does not quote correctly, so add quotes: double-quote
7384 # substitution turns \\\\ into \\, and sed turns \\ into \.
2299a76d 7385 sed -n \
58670637
DD
7386 "s/'/'\\\\''/g;
7387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
75086676 7388 ;; #(
2299a76d
DJ
7389 *)
7390 # `set' quotes correctly as required by POSIX, so do not add quotes.
75086676 7391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2299a76d 7392 ;;
75086676
DD
7393 esac |
7394 sort
7395) |
2299a76d 7396 sed '
75086676 7397 /^ac_cv_env_/b end
2299a76d 7398 t clear
75086676 7399 :clear
2299a76d
DJ
7400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7401 t end
75086676
DD
7402 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7403 :end' >>confcache
7404if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7405 if test -w "$cache_file"; then
7406 test "x$cache_file" != "x/dev/null" &&
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7408$as_echo "$as_me: updating cache $cache_file" >&6;}
2299a76d 7409 cat confcache >$cache_file
252b5132 7410 else
75086676
DD
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7412$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
252b5132
RH
7413 fi
7414fi
7415rm -f confcache
7416
252b5132
RH
7417test "x$prefix" = xNONE && prefix=$ac_default_prefix
7418# Let make expand exec_prefix.
7419test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7420
252b5132
RH
7421DEFS=-DHAVE_CONFIG_H
7422
2299a76d
DJ
7423ac_libobjs=
7424ac_ltlibobjs=
7425for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7426 # 1. Remove the extension, and $U if already installed.
75086676
DD
7427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7428 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7430 # will be set to the directory where LIBOBJS objects are built.
7431 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7432 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2299a76d
DJ
7433done
7434LIBOBJS=$ac_libobjs
252b5132 7435
2299a76d
DJ
7436LTLIBOBJS=$ac_ltlibobjs
7437
7438
7439
75086676 7440
2299a76d 7441: ${CONFIG_STATUS=./config.status}
75086676 7442ac_write_fail=0
2299a76d
DJ
7443ac_clean_files_save=$ac_clean_files
7444ac_clean_files="$ac_clean_files $CONFIG_STATUS"
75086676
DD
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7446$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7447as_write_fail=0
7448cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2299a76d
DJ
7449#! $SHELL
7450# Generated by $as_me.
252b5132 7451# Run this file to recreate the current configuration.
252b5132 7452# Compiler output produced by configure, useful for debugging
2299a76d 7453# configure, is in config.log if it exists.
252b5132 7454
2299a76d
DJ
7455debug=false
7456ac_cs_recheck=false
7457ac_cs_silent=false
2299a76d 7458
75086676
DD
7459SHELL=\${CONFIG_SHELL-$SHELL}
7460export SHELL
7461_ASEOF
7462cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7463## -------------------- ##
7464## M4sh Initialization. ##
7465## -------------------- ##
7466
7467# Be more Bourne compatible
7468DUALCASE=1; export DUALCASE # for MKS sh
7469if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2299a76d
DJ
7470 emulate sh
7471 NULLCMD=:
75086676 7472 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2299a76d
DJ
7473 # is contrary to our usage. Disable this feature.
7474 alias -g '${1+"$@"}'='"$@"'
75086676
DD
7475 setopt NO_GLOB_SUBST
7476else
7477 case `(set -o) 2>/dev/null` in #(
7478 *posix*) :
7479 set -o posix ;; #(
7480 *) :
7481 ;;
7482esac
2299a76d
DJ
7483fi
7484
75086676
DD
7485
7486as_nl='
7487'
7488export as_nl
7489# Printing a long string crashes Solaris 7 /usr/bin/printf.
7490as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7491as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7492as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7493# Prefer a ksh shell builtin over an external printf program on Solaris,
7494# but without wasting forks for bash or zsh.
7495if test -z "$BASH_VERSION$ZSH_VERSION" \
7496 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7497 as_echo='print -r --'
7498 as_echo_n='print -rn --'
7499elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7500 as_echo='printf %s\n'
7501 as_echo_n='printf %s'
7502else
7503 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7504 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7505 as_echo_n='/usr/ucb/echo -n'
7506 else
7507 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7508 as_echo_n_body='eval
7509 arg=$1;
7510 case $arg in #(
7511 *"$as_nl"*)
7512 expr "X$arg" : "X\\(.*\\)$as_nl";
7513 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7514 esac;
7515 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7516 '
7517 export as_echo_n_body
7518 as_echo_n='sh -c $as_echo_n_body as_echo'
7519 fi
7520 export as_echo_body
7521 as_echo='sh -c $as_echo_body as_echo'
7522fi
7523
7524# The user is always right.
7525if test "${PATH_SEPARATOR+set}" != set; then
7526 PATH_SEPARATOR=:
7527 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7528 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7529 PATH_SEPARATOR=';'
7530 }
2299a76d
DJ
7531fi
7532
7533
75086676
DD
7534# IFS
7535# We need space, tab and new line, in precisely that order. Quoting is
7536# there to prevent editors from complaining about space-tab.
7537# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7538# splitting by setting IFS to empty value.)
7539IFS=" "" $as_nl"
7540
7541# Find who we are. Look in the path if we contain no directory separator.
7542case $0 in #((
7543 *[\\/]* ) as_myself=$0 ;;
7544 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545for as_dir in $PATH
7546do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7550 done
7551IFS=$as_save_IFS
7552
7553 ;;
7554esac
7555# We did not find ourselves, most probably we were run as `sh COMMAND'
7556# in which case we are not to be found in the path.
7557if test "x$as_myself" = x; then
7558 as_myself=$0
7559fi
7560if test ! -f "$as_myself"; then
7561 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7562 exit 1
7563fi
7564
7565# Unset variables that we do not need and which cause bugs (e.g. in
7566# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7567# suppresses any "Segmentation fault" message there. '((' could
7568# trigger a bug in pdksh 5.2.14.
7569for as_var in BASH_ENV ENV MAIL MAILPATH
7570do eval test x\${$as_var+set} = xset \
7571 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7572done
2299a76d
DJ
7573PS1='$ '
7574PS2='> '
7575PS4='+ '
7576
7577# NLS nuisances.
75086676
DD
7578LC_ALL=C
7579export LC_ALL
7580LANGUAGE=C
7581export LANGUAGE
7582
7583# CDPATH.
7584(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7585
7586
7587# as_fn_error ERROR [LINENO LOG_FD]
7588# ---------------------------------
7589# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7590# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7591# script with status $?, using 1 if that was 0.
7592as_fn_error ()
7593{
7594 as_status=$?; test $as_status -eq 0 && as_status=1
7595 if test "$3"; then
7596 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7597 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
2299a76d 7598 fi
75086676
DD
7599 $as_echo "$as_me: error: $1" >&2
7600 as_fn_exit $as_status
7601} # as_fn_error
7602
7603
7604# as_fn_set_status STATUS
7605# -----------------------
7606# Set $? to STATUS, without forking.
7607as_fn_set_status ()
7608{
7609 return $1
7610} # as_fn_set_status
7611
7612# as_fn_exit STATUS
7613# -----------------
7614# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7615as_fn_exit ()
7616{
7617 set +e
7618 as_fn_set_status $1
7619 exit $1
7620} # as_fn_exit
7621
7622# as_fn_unset VAR
7623# ---------------
7624# Portably unset VAR.
7625as_fn_unset ()
7626{
7627 { eval $1=; unset $1;}
7628}
7629as_unset=as_fn_unset
7630# as_fn_append VAR VALUE
7631# ----------------------
7632# Append the text in VALUE to the end of the definition contained in VAR. Take
7633# advantage of any shell optimizations that allow amortized linear growth over
7634# repeated appends, instead of the typical quadratic growth present in naive
7635# implementations.
7636if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7637 eval 'as_fn_append ()
7638 {
7639 eval $1+=\$2
7640 }'
7641else
7642 as_fn_append ()
7643 {
7644 eval $1=\$$1\$2
7645 }
7646fi # as_fn_append
7647
7648# as_fn_arith ARG...
7649# ------------------
7650# Perform arithmetic evaluation on the ARGs, and store the result in the
7651# global $as_val. Take advantage of shells that can avoid forks. The arguments
7652# must be portable across $(()) and expr.
7653if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7654 eval 'as_fn_arith ()
7655 {
7656 as_val=$(( $* ))
7657 }'
7658else
7659 as_fn_arith ()
7660 {
7661 as_val=`expr "$@" || test $? -eq 1`
7662 }
7663fi # as_fn_arith
7664
252b5132 7665
75086676
DD
7666if expr a : '\(a\)' >/dev/null 2>&1 &&
7667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2299a76d
DJ
7668 as_expr=expr
7669else
7670 as_expr=false
7671fi
252b5132 7672
75086676 7673if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2299a76d
DJ
7674 as_basename=basename
7675else
7676 as_basename=false
7677fi
252b5132 7678
75086676
DD
7679if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7680 as_dirname=dirname
7681else
7682 as_dirname=false
7683fi
252b5132 7684
75086676 7685as_me=`$as_basename -- "$0" ||
2299a76d
DJ
7686$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7687 X"$0" : 'X\(//\)$' \| \
75086676
DD
7688 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7689$as_echo X/"$0" |
7690 sed '/^.*\/\([^/][^/]*\)\/*$/{
7691 s//\1/
7692 q
7693 }
7694 /^X\/\(\/\/\)$/{
7695 s//\1/
7696 q
7697 }
7698 /^X\/\(\/\).*/{
7699 s//\1/
7700 q
7701 }
7702 s/.*/./; q'`
2299a76d 7703
2299a76d
DJ
7704# Avoid depending upon Character Ranges.
7705as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7706as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7707as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7708as_cr_digits='0123456789'
7709as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 7710
75086676
DD
7711ECHO_C= ECHO_N= ECHO_T=
7712case `echo -n x` in #(((((
7713-n*)
7714 case `echo 'xy\c'` in
7715 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7716 xy) ECHO_C='\c';;
7717 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7718 ECHO_T=' ';;
7719 esac;;
7720*)
7721 ECHO_N='-n';;
2299a76d
DJ
7722esac
7723
75086676
DD
7724rm -f conf$$ conf$$.exe conf$$.file
7725if test -d conf$$.dir; then
7726 rm -f conf$$.dir/conf$$.file
2299a76d 7727else
75086676
DD
7728 rm -f conf$$.dir
7729 mkdir conf$$.dir 2>/dev/null
2299a76d 7730fi
75086676
DD
7731if (echo >conf$$.file) 2>/dev/null; then
7732 if ln -s conf$$.file conf$$ 2>/dev/null; then
2299a76d 7733 as_ln_s='ln -s'
75086676
DD
7734 # ... but there are two gotchas:
7735 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7736 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7737 # In both cases, we have to default to `cp -p'.
7738 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7739 as_ln_s='cp -p'
7740 elif ln conf$$.file conf$$ 2>/dev/null; then
7741 as_ln_s=ln
7742 else
7743 as_ln_s='cp -p'
252b5132 7744 fi
2299a76d
DJ
7745else
7746 as_ln_s='cp -p'
7747fi
75086676
DD
7748rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7749rmdir conf$$.dir 2>/dev/null
7750
7751
7752# as_fn_mkdir_p
7753# -------------
7754# Create "$as_dir" as a directory, including parents if necessary.
7755as_fn_mkdir_p ()
7756{
7757
7758 case $as_dir in #(
7759 -*) as_dir=./$as_dir;;
7760 esac
7761 test -d "$as_dir" || eval $as_mkdir_p || {
7762 as_dirs=
7763 while :; do
7764 case $as_dir in #(
7765 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7766 *) as_qdir=$as_dir;;
7767 esac
7768 as_dirs="'$as_qdir' $as_dirs"
7769 as_dir=`$as_dirname -- "$as_dir" ||
7770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7771 X"$as_dir" : 'X\(//\)[^/]' \| \
7772 X"$as_dir" : 'X\(//\)$' \| \
7773 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7774$as_echo X"$as_dir" |
7775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7776 s//\1/
7777 q
7778 }
7779 /^X\(\/\/\)[^/].*/{
7780 s//\1/
7781 q
7782 }
7783 /^X\(\/\/\)$/{
7784 s//\1/
7785 q
7786 }
7787 /^X\(\/\).*/{
7788 s//\1/
7789 q
7790 }
7791 s/.*/./; q'`
7792 test -d "$as_dir" && break
7793 done
7794 test -z "$as_dirs" || eval "mkdir $as_dirs"
7795 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
2299a76d 7796
75086676
DD
7797
7798} # as_fn_mkdir_p
2299a76d 7799if mkdir -p . 2>/dev/null; then
75086676 7800 as_mkdir_p='mkdir -p "$as_dir"'
2299a76d 7801else
58670637 7802 test -d ./-p && rmdir ./-p
2299a76d
DJ
7803 as_mkdir_p=false
7804fi
7805
75086676
DD
7806if test -x / >/dev/null 2>&1; then
7807 as_test_x='test -x'
7808else
7809 if ls -dL / >/dev/null 2>&1; then
7810 as_ls_L_option=L
7811 else
7812 as_ls_L_option=
7813 fi
7814 as_test_x='
7815 eval sh -c '\''
7816 if test -d "$1"; then
7817 test -d "$1/.";
7818 else
7819 case $1 in #(
7820 -*)set "./$1";;
7821 esac;
7822 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7823 ???[sx]*):;;*)false;;esac;fi
7824 '\'' sh
7825 '
7826fi
7827as_executable_p=$as_test_x
2299a76d
DJ
7828
7829# Sed expression to map a string onto a valid CPP name.
58670637 7830as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2299a76d
DJ
7831
7832# Sed expression to map a string onto a valid variable name.
58670637 7833as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2299a76d
DJ
7834
7835
2299a76d 7836exec 6>&1
75086676
DD
7837## ----------------------------------- ##
7838## Main body of $CONFIG_STATUS script. ##
7839## ----------------------------------- ##
7840_ASEOF
7841test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7842
7843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7844# Save the log message, to keep $0 and so on meaningful, and to
2299a76d 7845# report actual input values of CONFIG_FILES etc. instead of their
75086676
DD
7846# values after options handling.
7847ac_log="
2299a76d 7848This file was extended by $as_me, which was
75086676 7849generated by GNU Autoconf 2.64. Invocation command line was
2299a76d
DJ
7850
7851 CONFIG_FILES = $CONFIG_FILES
7852 CONFIG_HEADERS = $CONFIG_HEADERS
7853 CONFIG_LINKS = $CONFIG_LINKS
7854 CONFIG_COMMANDS = $CONFIG_COMMANDS
7855 $ $0 $@
7856
75086676
DD
7857on `(hostname || uname -n) 2>/dev/null | sed 1q`
7858"
7859
2299a76d
DJ
7860_ACEOF
7861
75086676
DD
7862case $ac_config_files in *"
7863"*) set x $ac_config_files; shift; ac_config_files=$*;;
7864esac
2299a76d 7865
75086676
DD
7866case $ac_config_headers in *"
7867"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7868esac
2299a76d 7869
2299a76d 7870
75086676
DD
7871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7872# Files that config.status was made for.
7873config_files="$ac_config_files"
7874config_headers="$ac_config_headers"
7875config_commands="$ac_config_commands"
2299a76d 7876
75086676 7877_ACEOF
2299a76d 7878
75086676 7879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2299a76d 7880ac_cs_usage="\
75086676
DD
7881\`$as_me' instantiates files and other configuration actions
7882from templates according to the current configuration. Unless the files
7883and actions are specified as TAGs, all are instantiated by default.
2299a76d 7884
75086676 7885Usage: $0 [OPTION]... [TAG]...
2299a76d
DJ
7886
7887 -h, --help print this help, then exit
75086676
DD
7888 -V, --version print version number and configuration settings, then exit
7889 -q, --quiet, --silent
7890 do not print progress messages
2299a76d
DJ
7891 -d, --debug don't remove temporary files
7892 --recheck update $as_me by reconfiguring in the same conditions
75086676
DD
7893 --file=FILE[:TEMPLATE]
7894 instantiate the configuration file FILE
7895 --header=FILE[:TEMPLATE]
7896 instantiate the configuration header FILE
2299a76d
DJ
7897
7898Configuration files:
7899$config_files
7900
7901Configuration headers:
7902$config_headers
7903
7904Configuration commands:
7905$config_commands
7906
75086676 7907Report bugs to the package provider."
2299a76d 7908
75086676
DD
7909_ACEOF
7910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2299a76d
DJ
7911ac_cs_version="\\
7912config.status
75086676
DD
7913configured by $0, generated by GNU Autoconf 2.64,
7914 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2299a76d 7915
75086676 7916Copyright (C) 2009 Free Software Foundation, Inc.
2299a76d
DJ
7917This config.status script is free software; the Free Software Foundation
7918gives unlimited permission to copy, distribute and modify it."
75086676
DD
7919
7920ac_pwd='$ac_pwd'
7921srcdir='$srcdir'
7922INSTALL='$INSTALL'
7923test -n "\$AWK" || AWK=awk
2299a76d
DJ
7924_ACEOF
7925
75086676
DD
7926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7927# The default lists apply if the user does not specify any file.
2299a76d
DJ
7928ac_need_defaults=:
7929while test $# != 0
7930do
7931 case $1 in
7932 --*=*)
75086676
DD
7933 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7934 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2299a76d
DJ
7935 ac_shift=:
7936 ;;
75086676 7937 *)
2299a76d
DJ
7938 ac_option=$1
7939 ac_optarg=$2
7940 ac_shift=shift
7941 ;;
2299a76d
DJ
7942 esac
7943
7944 case $ac_option in
7945 # Handling of the options.
2299a76d
DJ
7946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7947 ac_cs_recheck=: ;;
75086676
DD
7948 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7949 $as_echo "$ac_cs_version"; exit ;;
7950 --debug | --debu | --deb | --de | --d | -d )
2299a76d
DJ
7951 debug=: ;;
7952 --file | --fil | --fi | --f )
7953 $ac_shift
75086676
DD
7954 case $ac_optarg in
7955 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7956 esac
7957 as_fn_append CONFIG_FILES " '$ac_optarg'"
2299a76d
DJ
7958 ac_need_defaults=false;;
7959 --header | --heade | --head | --hea )
7960 $ac_shift
75086676
DD
7961 case $ac_optarg in
7962 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7963 esac
7964 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
2299a76d 7965 ac_need_defaults=false;;
75086676
DD
7966 --he | --h)
7967 # Conflict between --help and --header
7968 as_fn_error "ambiguous option: \`$1'
7969Try \`$0 --help' for more information.";;
7970 --help | --hel | -h )
7971 $as_echo "$ac_cs_usage"; exit ;;
2299a76d
DJ
7972 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7973 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7974 ac_cs_silent=: ;;
7975
7976 # This is an error.
75086676
DD
7977 -*) as_fn_error "unrecognized option: \`$1'
7978Try \`$0 --help' for more information." ;;
2299a76d 7979
75086676
DD
7980 *) as_fn_append ac_config_targets " $1"
7981 ac_need_defaults=false ;;
2299a76d
DJ
7982
7983 esac
7984 shift
252b5132 7985done
2299a76d
DJ
7986
7987ac_configure_extra_args=
7988
7989if $ac_cs_silent; then
7990 exec 6>/dev/null
7991 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 7992fi
252b5132 7993
2299a76d 7994_ACEOF
75086676 7995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2299a76d 7996if \$ac_cs_recheck; then
75086676
DD
7997 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7998 shift
7999 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8000 CONFIG_SHELL='$SHELL'
8001 export CONFIG_SHELL
8002 exec "\$@"
2299a76d 8003fi
252b5132 8004
2299a76d 8005_ACEOF
75086676
DD
8006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8007exec 5>>config.log
8008{
8009 echo
8010 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8011## Running $as_me. ##
8012_ASBOX
8013 $as_echo "$ac_log"
8014} >&5
2299a76d 8015
75086676
DD
8016_ACEOF
8017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2299a76d 8018#
75086676 8019# INIT-COMMANDS
2299a76d 8020#
2299a76d
DJ
8021srcdir=${srcdir}
8022host=${host}
8023target=${target}
8024with_target_subdir=${with_target_subdir}
2299a76d
DJ
8025with_multisubdir=${with_multisubdir}
8026ac_configure_args="--enable-multilib ${ac_configure_args}"
8027CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8028ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
8029libiberty_topdir=${libiberty_topdir}
8030
8031
8032_ACEOF
8033
75086676 8034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2299a76d 8035
75086676 8036# Handling of arguments.
2299a76d
DJ
8037for ac_config_target in $ac_config_targets
8038do
75086676
DD
8039 case $ac_config_target in
8040 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8041 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8042 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
8043 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8044
8045 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132 8046 esac
2299a76d 8047done
252b5132 8048
75086676 8049
2299a76d
DJ
8050# If the user did not use the arguments to specify the items to instantiate,
8051# then the envvar interface is used. Set only those that are not.
8052# We use the long form for the default assignment because of an extremely
8053# bizarre bug on SunOS 4.1.3.
8054if $ac_need_defaults; then
8055 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8056 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8057 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8058fi
8059
8060# Have a temporary directory for convenience. Make it in the build tree
75086676 8061# simply because there is no reason against having it here, and in addition,
2299a76d 8062# creating and moving files from /tmp can sometimes cause problems.
75086676
DD
8063# Hook for its removal unless debugging.
8064# Note that there is a small window in which the directory will not be cleaned:
8065# after its creation but before its name has been assigned to `$tmp'.
2299a76d
DJ
8066$debug ||
8067{
75086676
DD
8068 tmp=
8069 trap 'exit_status=$?
8070 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8071' 0
8072 trap 'as_fn_exit 1' 1 2 13 15
2299a76d 8073}
2299a76d
DJ
8074# Create a (secure) tmp directory for tmp files.
8075
8076{
75086676 8077 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2299a76d
DJ
8078 test -n "$tmp" && test -d "$tmp"
8079} ||
8080{
75086676
DD
8081 tmp=./conf$$-$RANDOM
8082 (umask 077 && mkdir "$tmp")
8083} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8084
8085# Set up the scripts for CONFIG_FILES section.
8086# No need to generate them if there are no CONFIG_FILES.
8087# This happens for instance with `./config.status config.h'.
8088if test -n "$CONFIG_FILES"; then
8089
8090if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
8091 ac_cs_awk_getline=:
8092 ac_cs_awk_pipe_init=
8093 ac_cs_awk_read_file='
8094 while ((getline aline < (F[key])) > 0)
8095 print(aline)
8096 close(F[key])'
8097 ac_cs_awk_pipe_fini=
8098else
8099 ac_cs_awk_getline=false
8100 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
8101 ac_cs_awk_read_file='
8102 print "|#_!!_#|"
8103 print "cat " F[key] " &&"
8104 '$ac_cs_awk_pipe_init
8105 # The final `:' finishes the AND list.
8106 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
8107fi
8108ac_cr=`echo X | tr X '\015'`
8109# On cygwin, bash can eat \r inside `` if the user requested igncr.
8110# But we know of no other shell where ac_cr would be empty at this
8111# point, so we can use a bashism as a fallback.
8112if test "x$ac_cr" = x; then
8113 eval ac_cr=\$\'\\r\'
8114fi
8115ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8116if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8117 ac_cs_awk_cr='\r'
8118else
8119 ac_cs_awk_cr=$ac_cr
8120fi
8121
8122echo 'BEGIN {' >"$tmp/subs1.awk" &&
8123_ACEOF
8124
8125# Create commands to substitute file output variables.
8126{
8127 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
8128 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
8129 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
8130 echo "_ACAWK" &&
8131 echo "_ACEOF"
8132} >conf$$files.sh &&
8133. ./conf$$files.sh ||
8134 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8135rm -f conf$$files.sh
8136
2299a76d 8137{
75086676
DD
8138 echo "cat >conf$$subs.awk <<_ACEOF" &&
8139 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8140 echo "_ACEOF"
8141} >conf$$subs.sh ||
8142 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8143ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8144ac_delim='%!_!# '
8145for ac_last_try in false false false false false :; do
8146 . ./conf$$subs.sh ||
8147 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8148
8149 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8150 if test $ac_delim_n = $ac_delim_num; then
8151 break
8152 elif $ac_last_try; then
8153 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8154 else
8155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8156 fi
8157done
8158rm -f conf$$subs.sh
8159
8160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8161cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8162_ACEOF
8163sed -n '
8164h
8165s/^/S["/; s/!.*/"]=/
8166p
8167g
8168s/^[^!]*!//
8169:repl
8170t repl
8171s/'"$ac_delim"'$//
8172t delim
8173:nl
8174h
8175s/\(.\{148\}\).*/\1/
8176t more1
8177s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8178p
8179n
8180b repl
8181:more1
8182s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8183p
8184g
8185s/.\{148\}//
8186t nl
8187:delim
8188h
8189s/\(.\{148\}\).*/\1/
8190t more2
8191s/["\\]/\\&/g; s/^/"/; s/$/"/
8192p
8193b
8194:more2
8195s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8196p
8197g
8198s/.\{148\}//
8199t delim
8200' <conf$$subs.awk | sed '
8201/^[^""]/{
8202 N
8203 s/\n//
2299a76d 8204}
75086676
DD
8205' >>$CONFIG_STATUS || ac_write_fail=1
8206rm -f conf$$subs.awk
8207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8208_ACAWK
8209cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8210 for (key in S) S_is_set[key] = 1
8211 FS = "\a"
8212 \$ac_cs_awk_pipe_init
8213}
8214{
8215 line = $ 0
8216 nfields = split(line, field, "@")
8217 substed = 0
8218 len = length(field[1])
8219 for (i = 2; i < nfields; i++) {
8220 key = field[i]
8221 keylen = length(key)
8222 if (S_is_set[key]) {
8223 value = S[key]
8224 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8225 len += length(value) + length(field[++i])
8226 substed = 1
8227 } else
8228 len += 1 + keylen
8229 }
8230 if (nfields == 3 && !substed) {
8231 key = field[2]
8232 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
8233 \$ac_cs_awk_read_file
8234 next
8235 }
8236 }
8237 print line
8238}
8239\$ac_cs_awk_pipe_fini
8240_ACAWK
8241_ACEOF
8242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8243if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8244 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8245else
8246 cat
8247fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8248 || as_fn_error "could not setup config files machinery" "$LINENO" 5
2299a76d
DJ
8249_ACEOF
8250
75086676
DD
8251# VPATH may cause trouble with some makes, so we remove $(srcdir),
8252# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8253# trailing colons and then remove the whole line if VPATH becomes empty
8254# (actually we leave an empty line to preserve line numbers).
8255if test "x$srcdir" = x.; then
8256 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8257s/:*\$(srcdir):*/:/
8258s/:*\${srcdir}:*/:/
8259s/:*@srcdir@:*/:/
8260s/^\([^=]*=[ ]*\):*/\1/
8261s/:*$//
8262s/^[^=]*=[ ]*$//
8263}'
8264fi
2299a76d 8265
75086676
DD
8266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8267fi # test -n "$CONFIG_FILES"
2299a76d 8268
75086676
DD
8269# Set up the scripts for CONFIG_HEADERS section.
8270# No need to generate them if there are no CONFIG_HEADERS.
8271# This happens for instance with `./config.status Makefile'.
8272if test -n "$CONFIG_HEADERS"; then
8273cat >"$tmp/defines.awk" <<\_ACAWK ||
8274BEGIN {
8275_ACEOF
8276
8277# Transform confdefs.h into an awk script `defines.awk', embedded as
8278# here-document in config.status, that substitutes the proper values into
8279# config.h.in to produce config.h.
8280
8281# Create a delimiter string that does not exist in confdefs.h, to ease
8282# handling of long lines.
8283ac_delim='%!_!# '
8284for ac_last_try in false false :; do
8285 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8286 if test -z "$ac_t"; then
8287 break
8288 elif $ac_last_try; then
8289 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8290 else
8291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 8292 fi
75086676 8293done
252b5132 8294
75086676
DD
8295# For the awk script, D is an array of macro values keyed by name,
8296# likewise P contains macro parameters if any. Preserve backslash
8297# newline sequences.
8298
8299ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8300sed -n '
8301s/.\{148\}/&'"$ac_delim"'/g
8302t rset
8303:rset
8304s/^[ ]*#[ ]*define[ ][ ]*/ /
8305t def
8306d
8307:def
8308s/\\$//
8309t bsnl
8310s/["\\]/\\&/g
8311s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8312D["\1"]=" \3"/p
8313s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8314d
8315:bsnl
8316s/["\\]/\\&/g
8317s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8318D["\1"]=" \3\\\\\\n"\\/p
8319t cont
8320s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8321t cont
8322d
8323:cont
8324n
8325s/.\{148\}/&'"$ac_delim"'/g
8326t clear
8327:clear
8328s/\\$//
8329t bsnlc
8330s/["\\]/\\&/g; s/^/"/; s/$/"/p
8331d
8332:bsnlc
8333s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8334b cont
8335' <confdefs.h | sed '
8336s/'"$ac_delim"'/"\\\
8337"/g' >>$CONFIG_STATUS || ac_write_fail=1
8338
8339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8340 for (key in D) D_is_set[key] = 1
8341 FS = "\a"
8342}
8343/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8344 line = \$ 0
8345 split(line, arg, " ")
8346 if (arg[1] == "#") {
8347 defundef = arg[2]
8348 mac1 = arg[3]
8349 } else {
8350 defundef = substr(arg[1], 2)
8351 mac1 = arg[2]
8352 }
8353 split(mac1, mac2, "(") #)
8354 macro = mac2[1]
8355 prefix = substr(line, 1, index(line, defundef) - 1)
8356 if (D_is_set[macro]) {
8357 # Preserve the white space surrounding the "#".
8358 print prefix "define", macro P[macro] D[macro]
8359 next
8360 } else {
8361 # Replace #undef with comments. This is necessary, for example,
8362 # in the case of _POSIX_SOURCE, which is predefined and required
8363 # on some systems where configure will not decide to define it.
8364 if (defundef == "undef") {
8365 print "/*", prefix defundef, macro, "*/"
8366 next
8367 }
8368 }
8369}
8370{ print }
8371_ACAWK
2299a76d 8372_ACEOF
75086676
DD
8373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8374 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8375fi # test -n "$CONFIG_HEADERS"
8376
8377
8378eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8379shift
8380for ac_tag
8381do
8382 case $ac_tag in
8383 :[FHLC]) ac_mode=$ac_tag; continue;;
8384 esac
8385 case $ac_mode$ac_tag in
8386 :[FHL]*:*);;
8387 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8388 :[FH]-) ac_tag=-:-;;
8389 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8390 esac
8391 ac_save_IFS=$IFS
8392 IFS=:
8393 set x $ac_tag
8394 IFS=$ac_save_IFS
8395 shift
8396 ac_file=$1
8397 shift
8398
8399 case $ac_mode in
8400 :L) ac_source=$1;;
8401 :[FH])
8402 ac_file_inputs=
8403 for ac_f
8404 do
8405 case $ac_f in
8406 -) ac_f="$tmp/stdin";;
8407 *) # Look for the file first in the build tree, then in the source tree
8408 # (if the path is not absolute). The absolute path cannot be DOS-style,
8409 # because $ac_f cannot contain `:'.
8410 test -f "$ac_f" ||
8411 case $ac_f in
8412 [\\/$]*) false;;
8413 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8414 esac ||
8415 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8416 esac
8417 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8418 as_fn_append ac_file_inputs " '$ac_f'"
8419 done
8420
8421 # Let's still pretend it is `configure' which instantiates (i.e., don't
8422 # use $as_me), people would be surprised to read:
8423 # /* config.h. Generated by config.status. */
8424 configure_input='Generated from '`
8425 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8426 `' by configure.'
8427 if test x"$ac_file" != x-; then
8428 configure_input="$ac_file. $configure_input"
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8430$as_echo "$as_me: creating $ac_file" >&6;}
8431 fi
8432 # Neutralize special characters interpreted by sed in replacement strings.
8433 case $configure_input in #(
8434 *\&* | *\|* | *\\* )
8435 ac_sed_conf_input=`$as_echo "$configure_input" |
8436 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8437 *) ac_sed_conf_input=$configure_input;;
8438 esac
8439
8440 case $ac_tag in
8441 *:-:* | *:-) cat >"$tmp/stdin" \
8442 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8443 esac
8444 ;;
252b5132
RH
8445 esac
8446
75086676 8447 ac_dir=`$as_dirname -- "$ac_file" ||
2299a76d 8448$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
58670637
DD
8449 X"$ac_file" : 'X\(//\)[^/]' \| \
8450 X"$ac_file" : 'X\(//\)$' \| \
75086676
DD
8451 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8452$as_echo X"$ac_file" |
8453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8454 s//\1/
8455 q
8456 }
8457 /^X\(\/\/\)[^/].*/{
8458 s//\1/
8459 q
8460 }
8461 /^X\(\/\/\)$/{
8462 s//\1/
8463 q
8464 }
8465 /^X\(\/\).*/{
8466 s//\1/
8467 q
8468 }
8469 s/.*/./; q'`
8470 as_dir="$ac_dir"; as_fn_mkdir_p
2299a76d 8471 ac_builddir=.
252b5132 8472
75086676
DD
8473case "$ac_dir" in
8474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8475*)
8476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8477 # A ".." for each directory in $ac_dir_suffix.
8478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8479 case $ac_top_builddir_sub in
8480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8482 esac ;;
8483esac
8484ac_abs_top_builddir=$ac_pwd
8485ac_abs_builddir=$ac_pwd$ac_dir_suffix
8486# for backward compatibility:
8487ac_top_builddir=$ac_top_build_prefix
2299a76d
DJ
8488
8489case $srcdir in
75086676 8490 .) # We are building in place.
2299a76d 8491 ac_srcdir=.
75086676
DD
8492 ac_top_srcdir=$ac_top_builddir_sub
8493 ac_abs_top_srcdir=$ac_pwd ;;
8494 [\\/]* | ?:[\\/]* ) # Absolute name.
2299a76d 8495 ac_srcdir=$srcdir$ac_dir_suffix;
75086676
DD
8496 ac_top_srcdir=$srcdir
8497 ac_abs_top_srcdir=$srcdir ;;
8498 *) # Relative name.
8499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8500 ac_top_srcdir=$ac_top_build_prefix$srcdir
8501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2299a76d 8502esac
75086676 8503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
85f969cd 8504
2299a76d 8505
75086676
DD
8506 case $ac_mode in
8507 :F)
8508 #
8509 # CONFIG_FILE
8510 #
2299a76d
DJ
8511
8512 case $INSTALL in
8513 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
75086676 8514 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
252b5132 8515 esac
75086676 8516_ACEOF
252b5132 8517
75086676
DD
8518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8519# If the template does not know about datarootdir, expand it.
8520# FIXME: This hack should be removed a few years after 2.60.
8521ac_datarootdir_hack=; ac_datarootdir_seen=
8522ac_sed_dataroot='
8523/datarootdir/ {
8524 p
8525 q
8526}
8527/@datadir@/p
8528/@docdir@/p
8529/@infodir@/p
8530/@localedir@/p
8531/@mandir@/p'
8532case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8533*datarootdir*) ac_datarootdir_seen=yes;;
8534*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8536$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8537_ACEOF
8538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8539 ac_datarootdir_hack='
8540 s&@datadir@&$datadir&g
8541 s&@docdir@&$docdir&g
8542 s&@infodir@&$infodir&g
8543 s&@localedir@&$localedir&g
8544 s&@mandir@&$mandir&g
8545 s&\\\${datarootdir}&$datarootdir&g' ;;
8546esac
2299a76d 8547_ACEOF
75086676
DD
8548
8549# Neutralize VPATH when `$srcdir' = `.'.
8550# Shell code in configure.ac might set extrasub.
8551# FIXME: do we really want to maintain this feature?
8552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8553ac_sed_extra="$ac_vpsub
2299a76d
DJ
8554$extrasub
8555_ACEOF
75086676 8556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2299a76d
DJ
8557:t
8558/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
75086676
DD
8559s|@configure_input@|$ac_sed_conf_input|;t t
8560s&@top_builddir@&$ac_top_builddir_sub&;t t
8561s&@top_build_prefix@&$ac_top_build_prefix&;t t
8562s&@srcdir@&$ac_srcdir&;t t
8563s&@abs_srcdir@&$ac_abs_srcdir&;t t
8564s&@top_srcdir@&$ac_top_srcdir&;t t
8565s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8566s&@builddir@&$ac_builddir&;t t
8567s&@abs_builddir@&$ac_abs_builddir&;t t
8568s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8569s&@INSTALL@&$ac_INSTALL&;t t
8570$ac_datarootdir_hack
8571"
8572eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
8573if $ac_cs_awk_getline; then
8574 $AWK -f "$tmp/subs.awk"
8575else
8576 $AWK -f "$tmp/subs.awk" | $SHELL
8577fi >$tmp/out \
8578 || as_fn_error "could not create $ac_file" "$LINENO" 5
8579
8580test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8581 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8582 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8584which seems to be undefined. Please make sure it is defined." >&5
8585$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8586which seems to be undefined. Please make sure it is defined." >&2;}
8587
8588 rm -f "$tmp/stdin"
2299a76d 8589 case $ac_file in
75086676
DD
8590 -) cat "$tmp/out" && rm -f "$tmp/out";;
8591 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8592 esac \
8593 || as_fn_error "could not create $ac_file" "$LINENO" 5
8594 ;;
8595 :H)
8596 #
8597 # CONFIG_HEADER
8598 #
2299a76d 8599 if test x"$ac_file" != x-; then
75086676
DD
8600 {
8601 $as_echo "/* $configure_input */" \
8602 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8603 } >"$tmp/config.h" \
8604 || as_fn_error "could not create $ac_file" "$LINENO" 5
8605 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8607$as_echo "$as_me: $ac_file is unchanged" >&6;}
2299a76d 8608 else
75086676
DD
8609 rm -f "$ac_file"
8610 mv "$tmp/config.h" "$ac_file" \
8611 || as_fn_error "could not create $ac_file" "$LINENO" 5
2299a76d
DJ
8612 fi
8613 else
75086676
DD
8614 $as_echo "/* $configure_input */" \
8615 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8616 || as_fn_error "could not create -" "$LINENO" 5
2299a76d 8617 fi
75086676 8618 ;;
85f969cd 8619
75086676
DD
8620 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8621$as_echo "$as_me: executing $ac_file commands" >&6;}
8622 ;;
8623 esac
2299a76d
DJ
8624
8625
75086676
DD
8626 case $ac_file$ac_mode in
8627 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
252b5132 8628if test -n "$CONFIG_FILES"; then
c7efc4d5 8629 if test -n "${with_target_subdir}"; then
252b5132
RH
8630 # FIXME: We shouldn't need to set ac_file
8631 ac_file=Makefile
52d98c2d 8632 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
252b5132
RH
8633 . ${libiberty_topdir}/config-ml.in
8634 fi
2299a76d 8635fi ;;
75086676 8636
2299a76d 8637 esac
75086676 8638done # for ac_tag
2299a76d 8639
2299a76d 8640
75086676 8641as_fn_exit 0
2299a76d 8642_ACEOF
2299a76d
DJ
8643ac_clean_files=$ac_clean_files_save
8644
75086676
DD
8645test $ac_write_fail = 0 ||
8646 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8647
2299a76d
DJ
8648
8649# configure is writing to config.log, and then calls config.status.
8650# config.status does its own redirection, appending to config.log.
8651# Unfortunately, on DOS this fails, as config.log is still kept open
8652# by configure, so config.status won't be able to write to it; its
8653# output is simply discarded. So we exec the FD to /dev/null,
8654# effectively closing config.log, so it can be properly (re)opened and
8655# appended to by config.status. When coming back to configure, we
8656# need to make the FD available again.
8657if test "$no_create" != yes; then
8658 ac_cs_success=:
8659 ac_config_status_args=
8660 test "$silent" = yes &&
8661 ac_config_status_args="$ac_config_status_args --quiet"
8662 exec 5>/dev/null
8663 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8664 exec 5>>config.log
8665 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8666 # would make configure fail if this is the last instruction.
75086676
DD
8667 $ac_cs_success || as_fn_exit $?
8668fi
8669if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8671$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
2299a76d 8672fi
252b5132 8673
This page took 1.450743 seconds and 4 git commands to generate.