sim: move from common.m4 to SIM_AC_COMMON
[deliverable/binutils-gdb.git] / sim / ppc / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
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.
b7026657 8#
b7026657
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c906108c 14
81ecdfbb
RW
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 :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b7026657 31fi
c906108c 32
81ecdfbb
RW
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 }
b7026657 79fi
c906108c
SS
80
81
81ecdfbb
RW
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
b7026657
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
c906108c 124
b7026657 125# NLS nuisances.
81ecdfbb
RW
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
b7026657 184do
81ecdfbb
RW
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."
b7026657 228 else
81ecdfbb
RW
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."
b7026657 233 fi
81ecdfbb
RW
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
c906108c 356
81ecdfbb
RW
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
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
c906108c 379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
c906108c 385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c906108c 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
b7026657
AC
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
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'`
c906108c 410
b7026657
AC
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
c906108c 417
c906108c 418
81ecdfbb
RW
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 |
b7026657 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
b7026657 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 436 t loop
81ecdfbb 437 s/-\n.*//
b7026657 438 ' >$as_me.lineno &&
81ecdfbb
RW
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; }
b7026657
AC
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
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
b7026657
AC
446 # Exit status is that of the last command.
447 exit
448}
c906108c 449
81ecdfbb
RW
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';;
b7026657 461esac
c906108c 462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
b7026657 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
b7026657 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 472 as_ln_s='ln -s'
81ecdfbb
RW
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'
b7026657 483 fi
b7026657
AC
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c906108c 489
b7026657 490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
c906108c 496
81ecdfbb
RW
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
c906108c 519
b7026657
AC
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 522
b7026657
AC
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
c906108c 528
b7026657
AC
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`
c906108c 533
c906108c 534#
b7026657 535# Initializations.
c906108c 536#
b7026657 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
b7026657 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
b7026657
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
b7026657
AC
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
b7026657
AC
553
554ac_unique_file="Makefile.in"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
81ecdfbb 558#ifdef HAVE_SYS_TYPES_H
b7026657
AC
559# include <sys/types.h>
560#endif
81ecdfbb 561#ifdef HAVE_SYS_STAT_H
b7026657
AC
562# include <sys/stat.h>
563#endif
81ecdfbb 564#ifdef STDC_HEADERS
b7026657
AC
565# include <stdlib.h>
566# include <stddef.h>
567#else
81ecdfbb 568# ifdef HAVE_STDLIB_H
b7026657
AC
569# include <stdlib.h>
570# endif
571#endif
81ecdfbb
RW
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
81ecdfbb 578#ifdef HAVE_STRINGS_H
b7026657
AC
579# include <strings.h>
580#endif
81ecdfbb 581#ifdef HAVE_INTTYPES_H
b7026657 582# include <inttypes.h>
b7026657 583#endif
81ecdfbb
RW
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
b7026657
AC
588# include <unistd.h>
589#endif"
c906108c 590
81ecdfbb
RW
591ac_subst_vars='LTLIBOBJS
592sim_fpu
593sim_fpu_cflags
594sim_targ_vals
595sim_callback
596sim_devzero
597sim_termio
598sim_stdio
599sim_model_issue
600sim_model
601sim_monitor
602sim_reserved
603sim_trace
604sim_timebase
605sim_env
606sim_hostbitsize
607sim_igen_smp
608sim_bswap
609sim_pk_obj
610sim_pk_src
611sim_hw_obj
612sim_hw_src
613sim_icache
614sim_filter
615sim_jump
616sim_decode_mechanism
617sim_dup
618sim_switch
619sim_opcode
620sim_config
621sim_line_nr
622sim_warnings
623sim_cflags
624RANLIB
625AR
626HDEFINES
627CFLAGS_FOR_BUILD
628CC_FOR_BUILD
629LIBOBJS
630target_os
631target_vendor
632target_cpu
633target
634host_os
635host_vendor
636host_cpu
637host
638build_os
639build_vendor
640build_cpu
641build
642REPORT_BUGS_TEXI
643REPORT_BUGS_TO
644PKGVERSION
645EGREP
646GREP
647CPP
648CATOBJEXT
649GENCAT
650INSTOBJEXT
651DATADIRNAME
652CATALOGS
653POSUB
654GMSGFMT
655XGETTEXT
656INCINTL
657LIBINTL_DEP
658LIBINTL
659USE_NLS
660OBJEXT
661EXEEXT
662ac_ct_CC
663CPPFLAGS
664LDFLAGS
665CFLAGS
666CC
667INSTALL_DATA
668INSTALL_SCRIPT
669INSTALL_PROGRAM
6ffe910a
MF
670WERROR_CFLAGS
671WARN_CFLAGS
672sim_xor_endian
673sim_stdcall
674sim_smp
675sim_reserved_bits
676sim_regparm
677sim_packages
678sim_inline
679sim_hw
680sim_hw_objs
681sim_hw_cflags
682sim_default_model
683sim_scache
684sim_float
685sim_hostendian
686sim_endian
687sim_bitsize
688sim_assert
689sim_alignment
690sim_environment
81ecdfbb
RW
691target_alias
692host_alias
693build_alias
694LIBS
695ECHO_T
696ECHO_N
697ECHO_C
698DEFS
699mandir
700localedir
701libdir
702psdir
703pdfdir
704dvidir
705htmldir
706infodir
707docdir
708oldincludedir
709includedir
710localstatedir
711sharedstatedir
712sysconfdir
713datadir
714datarootdir
715libexecdir
716sbindir
717bindir
718program_transform_name
719prefix
720exec_prefix
721PACKAGE_URL
722PACKAGE_BUGREPORT
723PACKAGE_STRING
724PACKAGE_VERSION
725PACKAGE_TARNAME
726PACKAGE_NAME
727PATH_SEPARATOR
6ffe910a 728SHELL'
b7026657 729ac_subst_files=''
81ecdfbb
RW
730ac_user_opts='
731enable_option_checking
732enable_sim_alignment
733enable_sim_assert
734enable_sim_bitsize
735enable_sim_bswap
736enable_sim_cflags
737enable_sim_config
738enable_sim_decode_mechanism
739enable_sim_default_model
740enable_sim_duplicate
741enable_sim_endian
742enable_sim_env
743enable_sim_filter
744enable_sim_float
745enable_sim_hardware
746enable_sim_hostbitsize
747enable_sim_hostendian
748enable_sim_icache
749enable_sim_inline
750enable_sim_jump
751enable_sim_line_nr
752enable_sim_model
753enable_sim_model_issue
754enable_sim_monitor
755enable_sim_opcode
756enable_sim_packages
757enable_sim_regparm
758enable_sim_reserved_bits
759enable_sim_smp
760enable_sim_stdcall
761enable_sim_stdio
762enable_sim_switch
763enable_sim_timebase
764enable_sim_trace
765enable_sim_warnings
766enable_sim_xor_endian
767with_pkgversion
768with_bugurl
5912fadd 769with_zlib
81ecdfbb
RW
770'
771 ac_precious_vars='build_alias
772host_alias
773target_alias
774CC
775CFLAGS
776LDFLAGS
777LIBS
778CPPFLAGS
779CPP'
780
c906108c
SS
781
782# Initialize some variables set by options.
b7026657
AC
783ac_init_help=
784ac_init_version=false
81ecdfbb
RW
785ac_unrecognized_opts=
786ac_unrecognized_sep=
c906108c
SS
787# The variables have the same names as the options, with
788# dashes changed to underlines.
b7026657 789cache_file=/dev/null
c906108c 790exec_prefix=NONE
c906108c 791no_create=
c906108c
SS
792no_recursion=
793prefix=NONE
794program_prefix=NONE
795program_suffix=NONE
796program_transform_name=s,x,x,
797silent=
798site=
799srcdir=
c906108c
SS
800verbose=
801x_includes=NONE
802x_libraries=NONE
b7026657
AC
803
804# Installation directory options.
805# These are left unexpanded so users can "make install exec_prefix=/foo"
806# and all the variables that are supposed to be based on exec_prefix
807# by default will actually change.
808# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 809# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
810bindir='${exec_prefix}/bin'
811sbindir='${exec_prefix}/sbin'
812libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
813datarootdir='${prefix}/share'
814datadir='${datarootdir}'
c906108c
SS
815sysconfdir='${prefix}/etc'
816sharedstatedir='${prefix}/com'
817localstatedir='${prefix}/var'
c906108c
SS
818includedir='${prefix}/include'
819oldincludedir='/usr/include'
81ecdfbb
RW
820docdir='${datarootdir}/doc/${PACKAGE}'
821infodir='${datarootdir}/info'
822htmldir='${docdir}'
823dvidir='${docdir}'
824pdfdir='${docdir}'
825psdir='${docdir}'
826libdir='${exec_prefix}/lib'
827localedir='${datarootdir}/locale'
828mandir='${datarootdir}/man'
c906108c 829
c906108c 830ac_prev=
81ecdfbb 831ac_dashdash=
c906108c
SS
832for ac_option
833do
c906108c
SS
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
81ecdfbb 836 eval $ac_prev=\$ac_option
c906108c
SS
837 ac_prev=
838 continue
839 fi
840
81ecdfbb
RW
841 case $ac_option in
842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *) ac_optarg=yes ;;
844 esac
c906108c
SS
845
846 # Accept the important Cygnus configure options, so we can diagnose typos.
847
81ecdfbb
RW
848 case $ac_dashdash$ac_option in
849 --)
850 ac_dashdash=yes ;;
c906108c
SS
851
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 855 bindir=$ac_optarg ;;
c906108c
SS
856
857 -build | --build | --buil | --bui | --bu)
b7026657 858 ac_prev=build_alias ;;
c906108c 859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 860 build_alias=$ac_optarg ;;
c906108c
SS
861
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
867 cache_file=$ac_optarg ;;
868
869 --config-cache | -C)
870 cache_file=config.cache ;;
c906108c 871
81ecdfbb 872 -datadir | --datadir | --datadi | --datad)
c906108c 873 ac_prev=datadir ;;
81ecdfbb 874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 875 datadir=$ac_optarg ;;
c906108c 876
81ecdfbb
RW
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
883
c906108c 884 -disable-* | --disable-*)
81ecdfbb 885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 886 # Reject names that are not valid shell variable names.
81ecdfbb
RW
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893"enable_$ac_useropt"
894"*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
c906108c
SS
909
910 -enable-* | --enable-*)
81ecdfbb 911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 912 # Reject names that are not valid shell variable names.
81ecdfbb
RW
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919"enable_$ac_useropt"
920"*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
c906108c 923 esac
81ecdfbb 924 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
b7026657 933 exec_prefix=$ac_optarg ;;
c906108c
SS
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
b7026657
AC
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
c906108c
SS
945
946 -host | --host | --hos | --ho)
b7026657 947 ac_prev=host_alias ;;
c906108c 948 -host=* | --host=* | --hos=* | --ho=*)
b7026657 949 host_alias=$ac_optarg ;;
c906108c 950
81ecdfbb
RW
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
c906108c
SS
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 962 includedir=$ac_optarg ;;
c906108c
SS
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 967 infodir=$ac_optarg ;;
c906108c
SS
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 972 libdir=$ac_optarg ;;
c906108c
SS
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
b7026657 979 libexecdir=$ac_optarg ;;
c906108c 980
81ecdfbb
RW
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
c906108c 986 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 987 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 991 localstatedir=$ac_optarg ;;
c906108c
SS
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 996 mandir=$ac_optarg ;;
c906108c
SS
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1003 | --no-cr | --no-c | -n)
c906108c
SS
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1017 oldincludedir=$ac_optarg ;;
c906108c
SS
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1022 prefix=$ac_optarg ;;
c906108c
SS
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1029 program_prefix=$ac_optarg ;;
c906108c
SS
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1036 program_suffix=$ac_optarg ;;
c906108c
SS
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1053 program_transform_name=$ac_optarg ;;
c906108c 1054
81ecdfbb
RW
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
c906108c
SS
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
b7026657 1073 sbindir=$ac_optarg ;;
c906108c
SS
1074
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
b7026657 1084 sharedstatedir=$ac_optarg ;;
c906108c
SS
1085
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
b7026657 1089 site=$ac_optarg ;;
eb2d80b4 1090
c906108c
SS
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1094 srcdir=$ac_optarg ;;
c906108c
SS
1095
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1101 sysconfdir=$ac_optarg ;;
c906108c
SS
1102
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1104 ac_prev=target_alias ;;
c906108c 1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1106 target_alias=$ac_optarg ;;
c906108c
SS
1107
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1110
b7026657
AC
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
c906108c
SS
1113
1114 -with-* | --with-*)
81ecdfbb 1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1116 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123"with_$ac_useropt"
1124"*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
c906108c 1127 esac
81ecdfbb 1128 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1129
1130 -without-* | --without-*)
81ecdfbb 1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1132 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139"with_$ac_useropt"
1140"*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=no ;;
c906108c
SS
1145
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1149
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1155 x_includes=$ac_optarg ;;
c906108c
SS
1156
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1162 x_libraries=$ac_optarg ;;
c906108c 1163
81ecdfbb
RW
1164 -*) as_fn_error "unrecognized option: \`$ac_option'
1165Try \`$0 --help' for more information."
c906108c
SS
1166 ;;
1167
b7026657
AC
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1174 esac
1175 eval $ac_envvar=\$ac_optarg
b7026657
AC
1176 export $ac_envvar ;;
1177
c906108c 1178 *)
b7026657 1179 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b7026657 1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1184 ;;
1185
1186 esac
1187done
1188
1189if test -n "$ac_prev"; then
b7026657 1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1191 as_fn_error "missing argument to $ac_option"
c906108c 1192fi
c906108c 1193
81ecdfbb
RW
1194if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1196 no) ;;
1197 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1199 esac
81ecdfbb 1200fi
c906108c 1201
81ecdfbb
RW
1202# Check all directory arguments for consistency.
1203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
c906108c 1207do
81ecdfbb
RW
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
b7026657 1216 case $ac_val in
81ecdfbb
RW
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1219 esac
81ecdfbb 1220 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1221done
1222
b7026657
AC
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
81ecdfbb 1234 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b7026657
AC
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239fi
c906108c 1240
b7026657
AC
1241ac_tool_prefix=
1242test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244test "$silent" = yes && exec 6>/dev/null
c906108c 1245
c906108c 1246
81ecdfbb
RW
1247ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248ac_ls_di=`ls -di .` &&
1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error "working directory cannot be determined"
1251test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error "pwd does not report name of working directory"
1253
1254
c906108c
SS
1255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
81ecdfbb
RW
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264$as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
c906108c 1282 srcdir=$ac_confdir
81ecdfbb 1283 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1284 srcdir=..
1285 fi
1286else
1287 ac_srcdir_defaulted=no
1288fi
81ecdfbb
RW
1289if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1292fi
1293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
c906108c 1313
b7026657
AC
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321\`configure' configures this package to adapt to many kinds of systems.
c906108c 1322
b7026657 1323Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1324
b7026657
AC
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1327
b7026657 1328Defaults for the options are specified in brackets.
c906108c 1329
b7026657
AC
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
b7026657
AC
1341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1343 [$ac_default_prefix]
b7026657 1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1345 [PREFIX]
c906108c 1346
b7026657
AC
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
c906108c 1351
b7026657 1352For better control, use the options below.
c906108c 1353
b7026657 1354Fine tuning of the installation directories:
81ecdfbb
RW
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 --target=TARGET configure for building compilers for TARGET [HOST]
1387_ACEOF
c906108c 1388fi
c906108c 1389
b7026657 1390if test -n "$ac_init_help"; then
c906108c 1391
b7026657 1392 cat <<\_ACEOF
cd0fc7c3 1393
b7026657 1394Optional Features:
81ecdfbb 1395 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b7026657
AC
1398 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1399 --enable-sim-assert Specify whether to perform random assertions.
1400 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
1401 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums.
1402 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
1403 --enable-sim-config=file Override default config file
1404 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1405 --enable-sim-default-model=which Specify default PowerPC to model.
1406 --enable-sim-duplicate Expand (duplicate) semantic functions.
1407 --enable-sim-endian=endian Specify target byte endian orientation.
1408 --enable-sim-env=env Specify target environment (operating, virtual, user).
1409 --enable-sim-filter=rule Specify filter rules.
1410 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
1411 --enable-sim-hardware=list Specify the hardware to be included in the build.
1412 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
1413 --enable-sim-hostendian=end Specify host byte endian orientation.
1414 --enable-sim-icache=size Specify instruction-decode cache size and type.
1415 --enable-sim-inline=inlines Specify which functions should be inlined.
1416 --enable-sim-jump Jump between semantic code (instead of call/return).
1417 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
1418 --enable-sim-model=which Specify PowerPC to model.
1419 --enable-sim-model-issue Specify whether to simulate model specific actions
1420 --enable-sim-monitor=mon Specify whether to enable monitoring events.
1421 --enable-sim-opcode=which Override default opcode lookup.
1422 --enable-sim-packages=list Specify the packages to be included in the build.
1423 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific.
1424 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
1425 --enable-sim-smp=n Specify number of processors to configure for.
1426 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific.
1427 --enable-sim-stdio Specify whether to use stdio for console input/output.
1428 --enable-sim-switch Use a switch instead of a table for instruction call.
1429 --enable-sim-timebase Specify whether the PPC timebase is supported.
1430 --enable-sim-trace Specify whether tracing is supported.
1431 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
1432 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
1433
6efef468
JM
1434Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1438 --with-bugurl=URL Direct users to URL to report a bug
3725885a 1439 --with-zlib include zlib support (auto/yes/no) default=auto
6efef468 1440
b7026657
AC
1441Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
81ecdfbb
RW
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
b7026657
AC
1449 CPP C preprocessor
1450
1451Use these variables to override the choices made by `configure' or to help
1452it to find libraries and programs with nonstandard names/locations.
1453
81ecdfbb 1454Report bugs to the package provider.
b7026657 1455_ACEOF
81ecdfbb 1456ac_status=$?
b7026657
AC
1457fi
1458
1459if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
b7026657 1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
b7026657
AC
1465 ac_builddir=.
1466
81ecdfbb
RW
1467case "$ac_dir" in
1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469*)
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477esac
1478ac_abs_top_builddir=$ac_pwd
1479ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480# for backward compatibility:
1481ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1482
1483case $srcdir in
81ecdfbb 1484 .) # We are building in place.
b7026657 1485 ac_srcdir=.
81ecdfbb
RW
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1489 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1496esac
81ecdfbb
RW
1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1507 else
81ecdfbb
RW
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1511 done
1512fi
1513
81ecdfbb 1514test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1515if $ac_init_version; then
1516 cat <<\_ACEOF
81ecdfbb
RW
1517configure
1518generated by GNU Autoconf 2.64
b7026657 1519
81ecdfbb 1520Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
1521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
81ecdfbb 1524 exit
b7026657 1525fi
b7026657 1526
81ecdfbb
RW
1527## ------------------------ ##
1528## Autoconf initialization. ##
1529## ------------------------ ##
b7026657 1530
81ecdfbb
RW
1531# ac_fn_c_try_compile LINENO
1532# --------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_compile ()
b7026657 1535{
81ecdfbb
RW
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558else
1559 $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1561
81ecdfbb
RW
1562 ac_retval=1
1563fi
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565 return $ac_retval
b7026657 1566
81ecdfbb 1567} # ac_fn_c_try_compile
b7026657 1568
81ecdfbb
RW
1569# ac_fn_c_try_run LINENO
1570# ----------------------
1571# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1572# that executables *can* be run.
1573ac_fn_c_try_run ()
1574{
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_link"
1577case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>&5
1584 ac_status=$?
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1587 { { case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592$as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_try") 2>&5
1594 ac_status=$?
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; }; }; then :
1597 ac_retval=0
1598else
1599 $as_echo "$as_me: program exited with status $ac_status" >&5
1600 $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1602
81ecdfbb
RW
1603 ac_retval=$ac_status
1604fi
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607 return $ac_retval
b7026657 1608
81ecdfbb 1609} # ac_fn_c_try_run
b7026657 1610
81ecdfbb
RW
1611# ac_fn_c_try_cpp LINENO
1612# ----------------------
1613# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_cpp ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_cpp conftest.$ac_ext"
1618case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } >/dev/null && {
1633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 }; then :
1636 ac_retval=0
1637else
1638 $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642fi
1643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 return $ac_retval
1645
1646} # ac_fn_c_try_cpp
1647
1648# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649# -------------------------------------------------------
1650# Tests whether HEADER exists and can be compiled using the include files in
1651# INCLUDES, setting the cache variable VAR accordingly.
1652ac_fn_c_check_header_compile ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656$as_echo_n "checking for $2... " >&6; }
1657if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1659else
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h. */
1662$4
1663#include <$2>
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"; then :
1666 eval "$3=yes"
1667else
1668 eval "$3=no"
1669fi
1670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671fi
1672eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674$as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676
1677} # ac_fn_c_check_header_compile
1678
1679# ac_fn_c_try_link LINENO
1680# -----------------------
1681# Try to link conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_link ()
1683{
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1687case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest$ac_exeext
1707 }; then :
1708 ac_retval=0
1709else
1710 $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1
1714fi
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1722
1723} # ac_fn_c_try_link
1724
1725# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726# -------------------------------------------------------
1727# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728# the include files in INCLUDES and setting the cache variable VAR
1729# accordingly.
1730ac_fn_c_check_header_mongrel ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737 $as_echo_n "(cached) " >&6
1738fi
1739eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742else
1743 # Is the header compilable?
1744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745$as_echo_n "checking $2 usability... " >&6; }
1746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h. */
1748$4
1749#include <$2>
1750_ACEOF
1751if ac_fn_c_try_compile "$LINENO"; then :
1752 ac_header_compiler=yes
1753else
1754 ac_header_compiler=no
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758$as_echo "$ac_header_compiler" >&6; }
1759
1760# Is the header present?
1761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762$as_echo_n "checking $2 presence... " >&6; }
1763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h. */
1765#include <$2>
1766_ACEOF
1767if ac_fn_c_try_cpp "$LINENO"; then :
1768 ac_header_preproc=yes
1769else
1770 ac_header_preproc=no
1771fi
1772rm -f conftest.err conftest.$ac_ext
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774$as_echo "$ac_header_preproc" >&6; }
1775
1776# So? What about this header?
1777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 yes:no: )
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783 ;;
1784 no:yes:* )
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 ;;
1796esac
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1801else
1802 eval "$3=\$ac_header_compiler"
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810} # ac_fn_c_check_header_mongrel
1811
1812# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1813# ----------------------------------------------------
1814# Tries to find if the field MEMBER exists in type AGGR, after including
1815# INCLUDES, setting cache variable VAR accordingly.
1816ac_fn_c_check_member ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1820$as_echo_n "checking for $2.$3... " >&6; }
1821if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h. */
1826$5
1827int
1828main ()
1829{
1830static $2 ac_aggr;
1831if (ac_aggr.$3)
1832return 0;
1833 ;
1834 return 0;
1835}
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838 eval "$4=yes"
1839else
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841/* end confdefs.h. */
1842$5
1843int
1844main ()
1845{
1846static $2 ac_aggr;
1847if (sizeof ac_aggr.$3)
1848return 0;
1849 ;
1850 return 0;
1851}
1852_ACEOF
1853if ac_fn_c_try_compile "$LINENO"; then :
1854 eval "$4=yes"
1855else
1856 eval "$4=no"
1857fi
1858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859fi
1860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861fi
1862eval ac_res=\$$4
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864$as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866
1867} # ac_fn_c_check_member
1868
1869# ac_fn_c_check_decl LINENO SYMBOL VAR
1870# ------------------------------------
1871# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1872ac_fn_c_check_decl ()
1873{
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6ffe910a
MF
1875 as_decl_name=`echo $2|sed 's/ *(.*//'`
1876 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1878$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1879if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 $as_echo_n "(cached) " >&6
1881else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884$4
1885int
1886main ()
1887{
6ffe910a
MF
1888#ifndef $as_decl_name
1889#ifdef __cplusplus
1890 (void) $as_decl_use;
1891#else
1892 (void) $as_decl_name;
1893#endif
81ecdfbb
RW
1894#endif
1895
1896 ;
1897 return 0;
1898}
1899_ACEOF
1900if ac_fn_c_try_compile "$LINENO"; then :
1901 eval "$3=yes"
1902else
1903 eval "$3=no"
1904fi
1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906fi
1907eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911
1912} # ac_fn_c_check_decl
1913
1914# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1915# -------------------------------------------
1916# Tests whether TYPE exists after having included INCLUDES, setting cache
1917# variable VAR accordingly.
1918ac_fn_c_check_type ()
1919{
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922$as_echo_n "checking for $2... " >&6; }
1923if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1925else
1926 eval "$3=no"
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928/* end confdefs.h. */
1929$4
1930int
1931main ()
1932{
1933if (sizeof ($2))
1934 return 0;
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h. */
1942$4
1943int
1944main ()
1945{
1946if (sizeof (($2)))
1947 return 0;
1948 ;
1949 return 0;
1950}
1951_ACEOF
1952if ac_fn_c_try_compile "$LINENO"; then :
1953
1954else
1955 eval "$3=yes"
1956fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958fi
1959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960fi
1961eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963$as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965
1966} # ac_fn_c_check_type
1967
1968# ac_fn_c_check_func LINENO FUNC VAR
1969# ----------------------------------
1970# Tests whether FUNC exists, setting the cache variable VAR accordingly
1971ac_fn_c_check_func ()
1972{
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
1976if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977 $as_echo_n "(cached) " >&6
1978else
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h. */
1981/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1983#define $2 innocuous_$2
1984
1985/* System header to define __stub macros and hopefully few prototypes,
1986 which can conflict with char $2 (); below.
1987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1988 <limits.h> exists even on freestanding compilers. */
1989
1990#ifdef __STDC__
1991# include <limits.h>
1992#else
1993# include <assert.h>
1994#endif
1995
1996#undef $2
1997
1998/* Override any GCC internal prototype to avoid an error.
1999 Use char because int might match the return type of a GCC
2000 builtin and then its argument prototype would still apply. */
2001#ifdef __cplusplus
2002extern "C"
2003#endif
2004char $2 ();
2005/* The GNU C library defines this for functions which it implements
2006 to always fail with ENOSYS. Some functions are actually named
2007 something starting with __ and the normal name is an alias. */
2008#if defined __stub_$2 || defined __stub___$2
2009choke me
2010#endif
2011
2012int
2013main ()
2014{
2015return $2 ();
2016 ;
2017 return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_link "$LINENO"; then :
2021 eval "$3=yes"
2022else
2023 eval "$3=no"
2024fi
2025rm -f core conftest.err conftest.$ac_objext \
2026 conftest$ac_exeext conftest.$ac_ext
2027fi
2028eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030$as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032
2033} # ac_fn_c_check_func
2034cat >config.log <<_ACEOF
2035This file contains any messages produced by compilers while
2036running configure, to aid debugging if configure makes a mistake.
2037
2038It was created by $as_me, which was
2039generated by GNU Autoconf 2.64. Invocation command line was
2040
2041 $ $0 $@
2042
2043_ACEOF
2044exec 5>>config.log
2045{
2046cat <<_ASUNAME
2047## --------- ##
2048## Platform. ##
2049## --------- ##
2050
2051hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2052uname -m = `(uname -m) 2>/dev/null || echo unknown`
2053uname -r = `(uname -r) 2>/dev/null || echo unknown`
2054uname -s = `(uname -s) 2>/dev/null || echo unknown`
2055uname -v = `(uname -v) 2>/dev/null || echo unknown`
2056
2057/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2058/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2059
2060/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2061/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2062/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2063/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2064/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2065/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2066/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2067
2068_ASUNAME
2069
2070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071for as_dir in $PATH
2072do
2073 IFS=$as_save_IFS
2074 test -z "$as_dir" && as_dir=.
2075 $as_echo "PATH: $as_dir"
2076 done
2077IFS=$as_save_IFS
2078
2079} >&5
2080
2081cat >&5 <<_ACEOF
b7026657
AC
2082
2083
2084## ----------- ##
2085## Core tests. ##
2086## ----------- ##
2087
2088_ACEOF
2089
2090
2091# Keep a trace of the command line.
2092# Strip out --no-create and --no-recursion so they do not pile up.
2093# Strip out --silent because we don't want to record it for future runs.
2094# Also quote any args containing shell meta-characters.
2095# Make two passes to allow for proper duplicate-argument suppression.
2096ac_configure_args=
2097ac_configure_args0=
2098ac_configure_args1=
b7026657
AC
2099ac_must_keep_next=false
2100for ac_pass in 1 2
2101do
2102 for ac_arg
2103 do
2104 case $ac_arg in
2105 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2107 | -silent | --silent | --silen | --sile | --sil)
2108 continue ;;
81ecdfbb
RW
2109 *\'*)
2110 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2111 esac
2112 case $ac_pass in
81ecdfbb 2113 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2114 2)
81ecdfbb 2115 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2116 if test $ac_must_keep_next = true; then
2117 ac_must_keep_next=false # Got value, back to normal.
2118 else
2119 case $ac_arg in
2120 *=* | --config-cache | -C | -disable-* | --disable-* \
2121 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2122 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2123 | -with-* | --with-* | -without-* | --without-* | --x)
2124 case "$ac_configure_args0 " in
2125 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2126 esac
2127 ;;
2128 -* ) ac_must_keep_next=true ;;
2129 esac
2130 fi
81ecdfbb 2131 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2132 ;;
2133 esac
2134 done
2135done
81ecdfbb
RW
2136{ ac_configure_args0=; unset ac_configure_args0;}
2137{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2138
2139# When interrupted or exit'd, cleanup temporary files, and complete
2140# config.log. We remove comments because anyway the quotes in there
2141# would cause problems or look ugly.
81ecdfbb
RW
2142# WARNING: Use '\'' to represent an apostrophe within the trap.
2143# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2144trap 'exit_status=$?
2145 # Save into config.log some information that might help in debugging.
2146 {
2147 echo
2148
2149 cat <<\_ASBOX
2150## ---------------- ##
2151## Cache variables. ##
2152## ---------------- ##
2153_ASBOX
2154 echo
2155 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2156(
2157 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2158 eval ac_val=\$$ac_var
2159 case $ac_val in #(
2160 *${as_nl}*)
2161 case $ac_var in #(
2162 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2163$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2164 esac
2165 case $ac_var in #(
2166 _ | IFS | as_nl) ;; #(
2167 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2168 *) { eval $ac_var=; unset $ac_var;} ;;
2169 esac ;;
2170 esac
2171 done
b7026657 2172 (set) 2>&1 |
81ecdfbb
RW
2173 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2174 *${as_nl}ac_space=\ *)
b7026657 2175 sed -n \
81ecdfbb
RW
2176 "s/'\''/'\''\\\\'\'''\''/g;
2177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2178 ;; #(
b7026657 2179 *)
81ecdfbb 2180 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2181 ;;
81ecdfbb
RW
2182 esac |
2183 sort
2184)
b7026657
AC
2185 echo
2186
2187 cat <<\_ASBOX
2188## ----------------- ##
2189## Output variables. ##
2190## ----------------- ##
2191_ASBOX
2192 echo
2193 for ac_var in $ac_subst_vars
2194 do
81ecdfbb
RW
2195 eval ac_val=\$$ac_var
2196 case $ac_val in
2197 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2198 esac
2199 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2200 done | sort
2201 echo
2202
2203 if test -n "$ac_subst_files"; then
2204 cat <<\_ASBOX
81ecdfbb
RW
2205## ------------------- ##
2206## File substitutions. ##
2207## ------------------- ##
b7026657
AC
2208_ASBOX
2209 echo
2210 for ac_var in $ac_subst_files
2211 do
81ecdfbb
RW
2212 eval ac_val=\$$ac_var
2213 case $ac_val in
2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215 esac
2216 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2217 done | sort
2218 echo
2219 fi
2220
2221 if test -s confdefs.h; then
2222 cat <<\_ASBOX
2223## ----------- ##
2224## confdefs.h. ##
2225## ----------- ##
2226_ASBOX
2227 echo
81ecdfbb 2228 cat confdefs.h
b7026657
AC
2229 echo
2230 fi
2231 test "$ac_signal" != 0 &&
81ecdfbb
RW
2232 $as_echo "$as_me: caught signal $ac_signal"
2233 $as_echo "$as_me: exit $exit_status"
b7026657 2234 } >&5
81ecdfbb
RW
2235 rm -f core *.core core.conftest.* &&
2236 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2237 exit $exit_status
81ecdfbb 2238' 0
b7026657 2239for ac_signal in 1 2 13 15; do
81ecdfbb 2240 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2241done
2242ac_signal=0
2243
2244# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2245rm -f -r conftest* confdefs.h
2246
2247$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2248
2249# Predefined preprocessor variables.
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_NAME "$PACKAGE_NAME"
2253_ACEOF
2254
b7026657
AC
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2257_ACEOF
2258
b7026657
AC
2259cat >>confdefs.h <<_ACEOF
2260#define PACKAGE_VERSION "$PACKAGE_VERSION"
2261_ACEOF
2262
b7026657
AC
2263cat >>confdefs.h <<_ACEOF
2264#define PACKAGE_STRING "$PACKAGE_STRING"
2265_ACEOF
2266
b7026657
AC
2267cat >>confdefs.h <<_ACEOF
2268#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2269_ACEOF
2270
81ecdfbb
RW
2271cat >>confdefs.h <<_ACEOF
2272#define PACKAGE_URL "$PACKAGE_URL"
2273_ACEOF
2274
b7026657
AC
2275
2276# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2277# Prefer an explicitly selected file to automatically selected ones.
2278ac_site_file1=NONE
2279ac_site_file2=NONE
2280if test -n "$CONFIG_SITE"; then
2281 ac_site_file1=$CONFIG_SITE
2282elif test "x$prefix" != xNONE; then
2283 ac_site_file1=$prefix/share/config.site
2284 ac_site_file2=$prefix/etc/config.site
2285else
2286 ac_site_file1=$ac_default_prefix/share/config.site
2287 ac_site_file2=$ac_default_prefix/etc/config.site
2288fi
2289for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2290do
2291 test "x$ac_site_file" = xNONE && continue
b7026657 2292 if test -r "$ac_site_file"; then
81ecdfbb
RW
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2294$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657
AC
2295 sed 's/^/| /' "$ac_site_file" >&5
2296 . "$ac_site_file"
2297 fi
2298done
2299
2300if test -r "$cache_file"; then
2301 # Some versions of bash will fail to source /dev/null (special
2302 # files actually), so we avoid doing that.
2303 if test -f "$cache_file"; then
81ecdfbb
RW
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2305$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2306 case $cache_file in
81ecdfbb
RW
2307 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2308 *) . "./$cache_file";;
b7026657
AC
2309 esac
2310 fi
2311else
81ecdfbb
RW
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2313$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2314 >$cache_file
2315fi
2316
2317# Check that the precious variables saved in the cache have kept the same
2318# value.
2319ac_cache_corrupted=false
81ecdfbb 2320for ac_var in $ac_precious_vars; do
b7026657
AC
2321 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2322 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2323 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2324 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2325 case $ac_old_set,$ac_new_set in
2326 set,)
81ecdfbb
RW
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2328$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2329 ac_cache_corrupted=: ;;
2330 ,set)
81ecdfbb
RW
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2332$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2333 ac_cache_corrupted=: ;;
2334 ,);;
2335 *)
2336 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2337 # differences in whitespace do not lead to failure.
2338 ac_old_val_w=`echo x $ac_old_val`
2339 ac_new_val_w=`echo x $ac_new_val`
2340 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2342$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2343 ac_cache_corrupted=:
2344 else
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2346$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2347 eval $ac_var=\$ac_old_val
2348 fi
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2350$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2352$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2353 fi;;
2354 esac
2355 # Pass precious variables to config.status.
2356 if test "$ac_new_set" = set; then
2357 case $ac_new_val in
81ecdfbb 2358 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2359 *) ac_arg=$ac_var=$ac_new_val ;;
2360 esac
2361 case " $ac_configure_args " in
2362 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2363 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2364 esac
2365 fi
2366done
2367if $ac_cache_corrupted; then
81ecdfbb
RW
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2371$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2372 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2373fi
81ecdfbb
RW
2374## -------------------- ##
2375## Main body of script. ##
2376## -------------------- ##
b7026657
AC
2377
2378ac_ext=c
2379ac_cpp='$CPP $CPPFLAGS'
2380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383
6ffe910a
MF
2384
2385# This file contains common code used by all simulators.
2386#
2387# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2388# directory. It is intended to be invoked before any target specific stuff.
2389# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2390# It is intended to be invoked last.
2391#
2392# The simulator's configure.in should look like:
2393#
2394# dnl Process this file with autoconf to produce a configure script.
2395# AC_PREREQ(2.64)dnl
2396# AC_INIT(Makefile.in)
2397# sinclude(../common/aclocal.m4)
2398#
2399# SIM_AC_COMMON
2400#
2401# ... target specific stuff ...
2402#
2403# SIM_AC_OUTPUT
2404
2405# Include global overrides and fixes for Autoconf.
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432# _AC_CHECK_DECL_BODY
2433# -------------------
2434# Shell function body for AC_CHECK_DECL.
2435# _AC_CHECK_DECL_BODY
2436
2437# _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2438# INCLUDES)
2439# -------------------------------------------------------------
2440# Helper to AC_CHECK_DECLS, which generates the check for a single
2441# SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2442# ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501sim_inline="-DDEFAULT_INLINE=0"
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538# intl sister-directory configuration rules.
2539#
2540
2541# The idea behind this macro is that there's no need to repeat all the
2542# autoconf probes done by the intl directory - it's already done them
2543# for us. In fact, there's no need even to look at the cache for the
2544# answers. All we need to do is nab a few pieces of information.
2545# The intl directory is set up to make this easy, by generating a
2546# small file which can be sourced as a shell script; then we produce
2547# the necessary substitutions and definitions for this directory.
2548
2549
2550
2551# Autoconf M4 include file defining utility macros for complex Canadian
2552# cross builds.
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562####
2563# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2564# or AC_INIT.
2565# These demand that AC_CANONICAL_SYSTEM be called beforehand.
2566
2567####
2568# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2569# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2570
2571
2572####
2573# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2574# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2575
2576
2577
2578# Backported from Autoconf 2.5x; can go away when and if
2579# we switch. Put the OS path separator in $PATH_SEPARATOR.
2580
2581
2582
2583
2584# ACX_HAVE_GCC_FOR_TARGET
2585# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2586
2587
2588# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2589# Searching for installed target binutils. We need to take extra care,
2590# else we may find the wrong assembler, linker, etc., and lose.
2591#
2592# First try --with-build-time-tools, if specified.
2593#
2594# For build != host, we ask the installed GCC for the name of the tool it
2595# uses, and accept it if it is an absolute path. This is because the
2596# only good choice for a compiler is the same GCC version that is being
2597# installed (or we couldn't make target libraries), and we assume that
2598# on the host system we'll have not only the same GCC version, but also
2599# the same binutils version.
2600#
2601# For build == host, search the same directories that the installed
2602# compiler will search. We used to do this for the assembler, linker,
2603# and nm only; for simplicity of configuration, however, we extend this
2604# criterion to tools (such as ar and ranlib) that are never invoked by
2605# the compiler, to avoid mismatches.
2606#
2607# Also note we have to check MD_EXEC_PREFIX before checking the user's path
2608# if build == target. This makes the most sense only when bootstrapping,
2609# but we also do so when build != host. In this case, we hope that the
2610# build and host systems will have similar contents of MD_EXEC_PREFIX.
2611#
2612# If we do not find a suitable binary, then try the user's path.
2613
2614
2615###
2616# AC_PROG_CPP_WERROR
2617# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2618# triggers warnings from the preprocessor. Will be in autoconf 2.58.
2619# For now, using this also overrides header checks to use only the
2620# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2621# bit harder from here).
2622# Eventually autoconf will default to checking headers with the compiler
2623# instead, and we'll have to do this differently.
2624
2625# AC_PROG_CPP_WERROR
2626
2627# Test for GNAT.
2628# We require the gnatbind program, and a compiler driver that
2629# understands Ada. We use the user's CC setting, already found,
2630# and possibly add $1 to the command-line parameters.
2631#
2632# Sets the shell variable have_gnat to yes or no as appropriate, and
2633# substitutes GNATBIND and GNATMAKE.
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
b7026657
AC
2654
2655
b7026657
AC
2656
2657
2658
2659ac_aux_dir=
81ecdfbb
RW
2660for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2661 for ac_t in install-sh install.sh shtool; do
2662 if test -f "$ac_dir/$ac_t"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/$ac_t -c"
2665 break 2
2666 fi
2667 done
b7026657
AC
2668done
2669if test -z "$ac_aux_dir"; then
81ecdfbb 2670 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b7026657 2671fi
81ecdfbb
RW
2672
2673# These three variables are undocumented and unsupported,
2674# and are intended to be withdrawn in a future Autoconf release.
2675# They can cause serious problems if a builder's source tree is in a directory
2676# whose full name contains unusual characters.
2677ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2678ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2679ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2680
b7026657
AC
2681
2682# Find a good install program. We prefer a C program (faster),
2683# so one script is as good as another. But avoid the broken or
2684# incompatible versions:
2685# SysV /etc/install, /usr/sbin/install
2686# SunOS /usr/etc/install
2687# IRIX /sbin/install
2688# AIX /bin/install
2689# AmigaOS /C/install, which installs bootblocks on floppy discs
2690# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2691# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2692# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2693# OS/2's system install, which has a completely different semantic
2694# ./install, which can be erroneously created by make from ./install.sh.
81ecdfbb
RW
2695# Reject install programs that cannot install multiple files.
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2697$as_echo_n "checking for a BSD-compatible install... " >&6; }
b7026657 2698if test -z "$INSTALL"; then
81ecdfbb
RW
2699if test "${ac_cv_path_install+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
b7026657
AC
2701else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2707 # Account for people who put trailing slashes in PATH elements.
2708case $as_dir/ in #((
2709 ./ | .// | /[cC]/* | \
b7026657 2710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2711 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b7026657
AC
2712 /usr/ucb/* ) ;;
2713 *)
2714 # OSF1 and SCO ODT 3.0 have their own names for install.
2715 # Don't use installbsd from OSF since it installs stuff as root
2716 # by default.
2717 for ac_prog in ginstall scoinst install; do
2718 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2719 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b7026657
AC
2720 if test $ac_prog = install &&
2721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # AIX install. It has an incompatible calling convention.
2723 :
2724 elif test $ac_prog = install &&
2725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2726 # program-specific install script used by HP pwplus--don't use.
2727 :
2728 else
81ecdfbb
RW
2729 rm -rf conftest.one conftest.two conftest.dir
2730 echo one > conftest.one
2731 echo two > conftest.two
2732 mkdir conftest.dir
2733 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2734 test -s conftest.one && test -s conftest.two &&
2735 test -s conftest.dir/conftest.one &&
2736 test -s conftest.dir/conftest.two
2737 then
2738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2739 break 3
2740 fi
b7026657
AC
2741 fi
2742 fi
2743 done
2744 done
2745 ;;
2746esac
b7026657 2747
81ecdfbb
RW
2748 done
2749IFS=$as_save_IFS
2750
2751rm -rf conftest.one conftest.two conftest.dir
b7026657
AC
2752
2753fi
2754 if test "${ac_cv_path_install+set}" = set; then
2755 INSTALL=$ac_cv_path_install
2756 else
81ecdfbb
RW
2757 # As a last resort, use the slow shell script. Don't cache a
2758 # value for INSTALL within a source directory, because that will
b7026657 2759 # break other packages using the cache if that directory is
81ecdfbb 2760 # removed, or if the value is a relative name.
b7026657
AC
2761 INSTALL=$ac_install_sh
2762 fi
2763fi
81ecdfbb
RW
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2765$as_echo "$INSTALL" >&6; }
b7026657
AC
2766
2767# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2768# It thinks the first close brace ends the variable substitution.
2769test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2770
2771test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2772
2773test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2774
2775ac_ext=c
2776ac_cpp='$CPP $CPPFLAGS'
2777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2782set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784$as_echo_n "checking for $ac_word... " >&6; }
2785if test "${ac_cv_prog_CC+set}" = set; then :
2786 $as_echo_n "(cached) " >&6
c906108c
SS
2787else
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2790else
b7026657
AC
2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792for as_dir in $PATH
2793do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 2798 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
2800 break 2
2801 fi
2802done
81ecdfbb
RW
2803 done
2804IFS=$as_save_IFS
b7026657 2805
c906108c
SS
2806fi
2807fi
b7026657 2808CC=$ac_cv_prog_CC
c906108c 2809if test -n "$CC"; then
81ecdfbb
RW
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811$as_echo "$CC" >&6; }
b7026657 2812else
81ecdfbb
RW
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814$as_echo "no" >&6; }
b7026657
AC
2815fi
2816
81ecdfbb 2817
b7026657
AC
2818fi
2819if test -z "$ac_cv_prog_CC"; then
2820 ac_ct_CC=$CC
2821 # Extract the first word of "gcc", so it can be a program name with args.
2822set dummy gcc; ac_word=$2
81ecdfbb
RW
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824$as_echo_n "checking for $ac_word... " >&6; }
2825if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
b7026657
AC
2827else
2828 if test -n "$ac_ct_CC"; then
2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 2838 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
2840 break 2
2841 fi
2842done
81ecdfbb
RW
2843 done
2844IFS=$as_save_IFS
b7026657
AC
2845
2846fi
2847fi
2848ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2851$as_echo "$ac_ct_CC" >&6; }
c906108c 2852else
81ecdfbb
RW
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854$as_echo "no" >&6; }
b7026657
AC
2855fi
2856
81ecdfbb
RW
2857 if test "x$ac_ct_CC" = x; then
2858 CC=""
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861yes:)
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864ac_tool_warned=yes ;;
2865esac
2866 CC=$ac_ct_CC
2867 fi
b7026657
AC
2868else
2869 CC="$ac_cv_prog_CC"
c906108c
SS
2870fi
2871
2872if test -z "$CC"; then
81ecdfbb
RW
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b7026657 2875set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877$as_echo_n "checking for $ac_word... " >&6; }
2878if test "${ac_cv_prog_CC+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
b7026657
AC
2880else
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 2891 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
2893 break 2
2894 fi
2895done
81ecdfbb
RW
2896 done
2897IFS=$as_save_IFS
b7026657
AC
2898
2899fi
2900fi
2901CC=$ac_cv_prog_CC
2902if test -n "$CC"; then
81ecdfbb
RW
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904$as_echo "$CC" >&6; }
b7026657 2905else
81ecdfbb
RW
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907$as_echo "no" >&6; }
b7026657
AC
2908fi
2909
b7026657 2910
81ecdfbb 2911 fi
b7026657
AC
2912fi
2913if test -z "$CC"; then
2914 # Extract the first word of "cc", so it can be a program name with args.
2915set dummy cc; ac_word=$2
81ecdfbb
RW
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917$as_echo_n "checking for $ac_word... " >&6; }
2918if test "${ac_cv_prog_CC+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
c906108c
SS
2920else
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2923else
c906108c 2924 ac_prog_rejected=no
b7026657
AC
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
2932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2933 ac_prog_rejected=yes
2934 continue
2935 fi
2936 ac_cv_prog_CC="cc"
81ecdfbb 2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
2938 break 2
2939 fi
2940done
81ecdfbb
RW
2941 done
2942IFS=$as_save_IFS
b7026657 2943
c906108c
SS
2944if test $ac_prog_rejected = yes; then
2945 # We found a bogon in the path, so make sure we never use it.
2946 set dummy $ac_cv_prog_CC
2947 shift
b7026657 2948 if test $# != 0; then
c906108c
SS
2949 # We chose a different compiler from the bogus one.
2950 # However, it has the same basename, so the bogon will be chosen
2951 # first if we set CC to just the basename; use the full file name.
2952 shift
b7026657 2953 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
2954 fi
2955fi
2956fi
2957fi
b7026657 2958CC=$ac_cv_prog_CC
c906108c 2959if test -n "$CC"; then
81ecdfbb
RW
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961$as_echo "$CC" >&6; }
c906108c 2962else
81ecdfbb
RW
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964$as_echo "no" >&6; }
c906108c
SS
2965fi
2966
81ecdfbb 2967
b7026657
AC
2968fi
2969if test -z "$CC"; then
2970 if test -n "$ac_tool_prefix"; then
81ecdfbb 2971 for ac_prog in cl.exe
b7026657
AC
2972 do
2973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2974set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976$as_echo_n "checking for $ac_word... " >&6; }
2977if test "${ac_cv_prog_CC+set}" = set; then :
2978 $as_echo_n "(cached) " >&6
c906108c
SS
2979else
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982else
b7026657
AC
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 2990 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
2992 break 2
2993 fi
2994done
81ecdfbb
RW
2995 done
2996IFS=$as_save_IFS
b7026657
AC
2997
2998fi
2999fi
3000CC=$ac_cv_prog_CC
3001if test -n "$CC"; then
81ecdfbb
RW
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003$as_echo "$CC" >&6; }
b7026657 3004else
81ecdfbb
RW
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006$as_echo "no" >&6; }
b7026657
AC
3007fi
3008
81ecdfbb 3009
b7026657
AC
3010 test -n "$CC" && break
3011 done
3012fi
3013if test -z "$CC"; then
3014 ac_ct_CC=$CC
81ecdfbb 3015 for ac_prog in cl.exe
b7026657
AC
3016do
3017 # Extract the first word of "$ac_prog", so it can be a program name with args.
3018set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020$as_echo_n "checking for $ac_word... " >&6; }
3021if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3022 $as_echo_n "(cached) " >&6
b7026657
AC
3023else
3024 if test -n "$ac_ct_CC"; then
3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026else
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 3034 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
3036 break 2
3037 fi
3038done
81ecdfbb
RW
3039 done
3040IFS=$as_save_IFS
b7026657
AC
3041
3042fi
3043fi
3044ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3047$as_echo "$ac_ct_CC" >&6; }
b7026657 3048else
81ecdfbb
RW
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050$as_echo "no" >&6; }
b7026657
AC
3051fi
3052
81ecdfbb 3053
b7026657
AC
3054 test -n "$ac_ct_CC" && break
3055done
3056
81ecdfbb
RW
3057 if test "x$ac_ct_CC" = x; then
3058 CC=""
3059 else
3060 case $cross_compiling:$ac_tool_warned in
3061yes:)
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064ac_tool_warned=yes ;;
3065esac
3066 CC=$ac_ct_CC
3067 fi
b7026657
AC
3068fi
3069
3070fi
3071
3072
81ecdfbb
RW
3073test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075as_fn_error "no acceptable C compiler found in \$PATH
3076See \`config.log' for more details." "$LINENO" 5; }
b7026657
AC
3077
3078# Provide some information about the compiler.
81ecdfbb
RW
3079$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3080set X $ac_compile
3081ac_compiler=$2
3082for ac_option in --version -v -V -qversion; do
3083 { { ac_try="$ac_compiler $ac_option >&5"
3084case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089$as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b7026657 3091 ac_status=$?
81ecdfbb
RW
3092 if test -s conftest.err; then
3093 sed '10a\
3094... rest of stderr output deleted ...
3095 10q' conftest.err >conftest.er1
3096 cat conftest.er1 >&5
3097 rm -f conftest.er1 conftest.err
3098 fi
3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }
3101done
b7026657 3102
81ecdfbb 3103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3104/* end confdefs.h. */
3105
3106int
3107main ()
3108{
3109
3110 ;
3111 return 0;
3112}
3113_ACEOF
3114ac_clean_files_save=$ac_clean_files
81ecdfbb 3115ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b7026657
AC
3116# Try to create an executable without -o first, disregard a.out.
3117# It will help us diagnose broken compilers, and finding out an intuition
3118# of exeext.
81ecdfbb
RW
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3120$as_echo_n "checking for C compiler default output file name... " >&6; }
3121ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3122
3123# The possible output files:
3124ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3125
3126ac_rmfiles=
3127for ac_file in $ac_files
3128do
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3132 esac
3133done
3134rm -f $ac_rmfiles
3135
3136if { { ac_try="$ac_link_default"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142$as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_link_default") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; then :
3147 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3148# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3149# in a Makefile. We should not override ac_cv_exeext if it was cached,
3150# so that the user can short-circuit this test for compilers unknown to
3151# Autoconf.
3152for ac_file in $ac_files ''
b7026657
AC
3153do
3154 test -f "$ac_file" || continue
3155 case $ac_file in
81ecdfbb 3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
3157 ;;
3158 [ab].out )
3159 # We found the default executable, but exeext='' is most
3160 # certainly right.
3161 break;;
3162 *.* )
81ecdfbb
RW
3163 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3164 then :; else
3165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 fi
3167 # We set ac_cv_exeext here because the later test for it is not
3168 # safe: cross compilers may not add the suffix if given an `-o'
3169 # argument, so we may need to know it at that point already.
3170 # Even if this section looks crufty: it has the advantage of
3171 # actually working.
b7026657
AC
3172 break;;
3173 * )
3174 break;;
3175 esac
3176done
81ecdfbb
RW
3177test "$ac_cv_exeext" = no && ac_cv_exeext=
3178
b7026657 3179else
81ecdfbb
RW
3180 ac_file=''
3181fi
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3183$as_echo "$ac_file" >&6; }
3184if test -z "$ac_file"; then :
3185 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
81ecdfbb
RW
3188{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190{ as_fn_set_status 77
3191as_fn_error "C compiler cannot create executables
3192See \`config.log' for more details." "$LINENO" 5; }; }
b7026657 3193fi
b7026657 3194ac_exeext=$ac_cv_exeext
b7026657 3195
81ecdfbb 3196# Check that the compiler produces executables we can run. If not, either
b7026657 3197# the compiler is broken, or we cross compile.
81ecdfbb
RW
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3199$as_echo_n "checking whether the C compiler works... " >&6; }
b7026657
AC
3200# If not cross compiling, check that we can run a simple program.
3201if test "$cross_compiling" != yes; then
3202 if { ac_try='./$ac_file'
81ecdfbb
RW
3203 { { case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206esac
3207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208$as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_try") 2>&5
b7026657 3210 ac_status=$?
81ecdfbb
RW
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; }; then
b7026657
AC
3213 cross_compiling=no
3214 else
3215 if test "$cross_compiling" = maybe; then
3216 cross_compiling=yes
3217 else
81ecdfbb
RW
3218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220as_fn_error "cannot run C compiled programs.
b7026657 3221If you meant to cross compile, use \`--host'.
81ecdfbb 3222See \`config.log' for more details." "$LINENO" 5; }
c906108c 3223 fi
b7026657 3224 fi
c906108c 3225fi
81ecdfbb
RW
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227$as_echo "yes" >&6; }
b7026657 3228
81ecdfbb 3229rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b7026657 3230ac_clean_files=$ac_clean_files_save
81ecdfbb 3231# Check that the compiler produces executables we can run. If not, either
b7026657 3232# the compiler is broken, or we cross compile.
81ecdfbb
RW
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3234$as_echo_n "checking whether we are cross compiling... " >&6; }
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3236$as_echo "$cross_compiling" >&6; }
3237
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3239$as_echo_n "checking for suffix of executables... " >&6; }
3240if { { ac_try="$ac_link"
3241case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
3245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246$as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_link") 2>&5
b7026657 3248 ac_status=$?
81ecdfbb
RW
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; then :
b7026657
AC
3251 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3252# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3253# work properly (i.e., refer to `conftest.exe'), while it won't with
3254# `rm'.
3255for ac_file in conftest.exe conftest conftest.*; do
3256 test -f "$ac_file" || continue
3257 case $ac_file in
81ecdfbb 3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 3259 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
3260 break;;
3261 * ) break;;
3262 esac
3263done
c906108c 3264else
81ecdfbb
RW
3265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267as_fn_error "cannot compute suffix of executables: cannot compile and link
3268See \`config.log' for more details." "$LINENO" 5; }
c906108c 3269fi
b7026657 3270rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3272$as_echo "$ac_cv_exeext" >&6; }
c906108c 3273
b7026657
AC
3274rm -f conftest.$ac_ext
3275EXEEXT=$ac_cv_exeext
3276ac_exeext=$EXEEXT
81ecdfbb
RW
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3278$as_echo_n "checking for suffix of object files... " >&6; }
3279if test "${ac_cv_objext+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
b7026657 3281else
81ecdfbb 3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3283/* end confdefs.h. */
3284
3285int
3286main ()
3287{
3288
3289 ;
3290 return 0;
3291}
3292_ACEOF
3293rm -f conftest.o conftest.obj
81ecdfbb
RW
3294if { { ac_try="$ac_compile"
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_compile") 2>&5
3302 ac_status=$?
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 for ac_file in conftest.o conftest.obj conftest.*; do
3306 test -f "$ac_file" || continue;
b7026657 3307 case $ac_file in
81ecdfbb 3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
3309 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3310 break;;
3311 esac
3312done
c906108c 3313else
81ecdfbb 3314 $as_echo "$as_me: failed program was:" >&5
b7026657 3315sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3316
81ecdfbb
RW
3317{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319as_fn_error "cannot compute suffix of object files: cannot compile
3320See \`config.log' for more details." "$LINENO" 5; }
c906108c 3321fi
b7026657
AC
3322rm -f conftest.$ac_cv_objext conftest.$ac_ext
3323fi
81ecdfbb
RW
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3325$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
3326OBJEXT=$ac_cv_objext
3327ac_objext=$OBJEXT
81ecdfbb
RW
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3329$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3330if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3331 $as_echo_n "(cached) " >&6
c906108c 3332else
81ecdfbb 3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3334/* end confdefs.h. */
3335
3336int
3337main ()
3338{
3339#ifndef __GNUC__
3340 choke me
c906108c 3341#endif
c906108c 3342
b7026657
AC
3343 ;
3344 return 0;
3345}
3346_ACEOF
81ecdfbb 3347if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
3348 ac_compiler_gnu=yes
3349else
81ecdfbb 3350 ac_compiler_gnu=no
b7026657 3351fi
81ecdfbb 3352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
3353ac_cv_c_compiler_gnu=$ac_compiler_gnu
3354
3355fi
81ecdfbb
RW
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3357$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3358if test $ac_compiler_gnu = yes; then
3359 GCC=yes
3360else
3361 GCC=
3362fi
b7026657
AC
3363ac_test_CFLAGS=${CFLAGS+set}
3364ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3366$as_echo_n "checking whether $CC accepts -g... " >&6; }
3367if test "${ac_cv_prog_cc_g+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3369else
3370 ac_save_c_werror_flag=$ac_c_werror_flag
3371 ac_c_werror_flag=yes
3372 ac_cv_prog_cc_g=no
3373 CFLAGS="-g"
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3375/* end confdefs.h. */
c906108c 3376
b7026657
AC
3377int
3378main ()
3379{
c906108c 3380
b7026657
AC
3381 ;
3382 return 0;
3383}
3384_ACEOF
81ecdfbb 3385if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
3386 ac_cv_prog_cc_g=yes
3387else
81ecdfbb
RW
3388 CFLAGS=""
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390/* end confdefs.h. */
3391
3392int
3393main ()
3394{
3395
3396 ;
3397 return 0;
3398}
3399_ACEOF
3400if ac_fn_c_try_compile "$LINENO"; then :
3401
3402else
3403 ac_c_werror_flag=$ac_save_c_werror_flag
3404 CFLAGS="-g"
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406/* end confdefs.h. */
3407
3408int
3409main ()
3410{
c906108c 3411
81ecdfbb
RW
3412 ;
3413 return 0;
3414}
3415_ACEOF
3416if ac_fn_c_try_compile "$LINENO"; then :
3417 ac_cv_prog_cc_g=yes
3418fi
3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420fi
3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3422fi
81ecdfbb
RW
3423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 ac_c_werror_flag=$ac_save_c_werror_flag
b7026657 3425fi
81ecdfbb
RW
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3427$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 3428if test "$ac_test_CFLAGS" = set; then
b7026657 3429 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3430elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3432 CFLAGS="-g -O2"
3433 else
3434 CFLAGS="-g"
3435 fi
3436else
3437 if test "$GCC" = yes; then
3438 CFLAGS="-O2"
3439 else
3440 CFLAGS=
3441 fi
3442fi
81ecdfbb
RW
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3444$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3445if test "${ac_cv_prog_cc_c89+set}" = set; then :
3446 $as_echo_n "(cached) " >&6
b7026657 3447else
81ecdfbb 3448 ac_cv_prog_cc_c89=no
b7026657 3449ac_save_CC=$CC
81ecdfbb 3450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3451/* end confdefs.h. */
3452#include <stdarg.h>
3453#include <stdio.h>
3454#include <sys/types.h>
3455#include <sys/stat.h>
3456/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3457struct buf { int x; };
3458FILE * (*rcsopen) (struct buf *, struct stat *, int);
3459static char *e (p, i)
3460 char **p;
3461 int i;
3462{
3463 return p[i];
3464}
3465static char *f (char * (*g) (char **, int), char **p, ...)
3466{
3467 char *s;
3468 va_list v;
3469 va_start (v,p);
3470 s = g (p, va_arg (v,int));
3471 va_end (v);
3472 return s;
3473}
c906108c 3474
b7026657
AC
3475/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3476 function prototypes and stuff, but not '\xHH' hex character constants.
3477 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3478 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
3479 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3480 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3481 that's true only with -std. */
b7026657
AC
3482int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3483
81ecdfbb
RW
3484/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3485 inside strings and character constants. */
3486#define FOO(x) 'x'
3487int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3488
b7026657
AC
3489int test (int i, double x);
3490struct s1 {int (*f) (int a);};
3491struct s2 {int (*f) (double a);};
3492int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3493int argc;
3494char **argv;
3495int
3496main ()
3497{
3498return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3499 ;
3500 return 0;
3501}
3502_ACEOF
81ecdfbb
RW
3503for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3504 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
3505do
3506 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3507 if ac_fn_c_try_compile "$LINENO"; then :
3508 ac_cv_prog_cc_c89=$ac_arg
b7026657 3509fi
81ecdfbb
RW
3510rm -f core conftest.err conftest.$ac_objext
3511 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 3512done
81ecdfbb 3513rm -f conftest.$ac_ext
b7026657 3514CC=$ac_save_CC
c906108c 3515
c906108c 3516fi
81ecdfbb
RW
3517# AC_CACHE_VAL
3518case "x$ac_cv_prog_cc_c89" in
3519 x)
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3521$as_echo "none needed" >&6; } ;;
3522 xno)
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3524$as_echo "unsupported" >&6; } ;;
b7026657 3525 *)
81ecdfbb
RW
3526 CC="$CC $ac_cv_prog_cc_c89"
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3528$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 3529esac
81ecdfbb 3530if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 3531
c906108c 3532fi
b7026657 3533
b7026657
AC
3534ac_ext=c
3535ac_cpp='$CPP $CPPFLAGS'
3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539
3540
3541# Put a plausible default for CC_FOR_BUILD in Makefile.
3542if test "x$cross_compiling" = "xno"; then
3543 CC_FOR_BUILD='$(CC)'
c906108c 3544else
b7026657 3545 CC_FOR_BUILD=gcc
c906108c 3546fi
4b164edf 3547CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
c906108c 3548
b7026657 3549ALL_LINGUAS=
20e95c23
DJ
3550# If we haven't got the data from the intl directory,
3551# assume NLS is disabled.
3552USE_NLS=no
3553LIBINTL=
3554LIBINTL_DEP=
3555INCINTL=
3556XGETTEXT=
3557GMSGFMT=
3558POSUB=
e85e3205 3559
29035cbe
NH
3560if test -f ../../intl/config.intl; then
3561 . ../../intl/config.intl
20e95c23 3562fi
81ecdfbb
RW
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3564$as_echo_n "checking whether NLS is requested... " >&6; }
20e95c23 3565if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567$as_echo "no" >&6; }
c906108c 3568else
81ecdfbb
RW
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3570$as_echo "yes" >&6; }
c906108c 3571
81ecdfbb 3572$as_echo "#define ENABLE_NLS 1" >>confdefs.h
20e95c23
DJ
3573
3574
81ecdfbb
RW
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3576$as_echo_n "checking for catalogs to be installed... " >&6; }
20e95c23
DJ
3577 # Look for .po and .gmo files in the source directory.
3578 CATALOGS=
3579 XLINGUAS=
3580 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3581 # If there aren't any .gmo files the shell will give us the
3582 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3583 # weeded out.
3584 case "$cat" in *\**)
3585 continue;;
3586 esac
3587 # The quadruple backslash is collapsed to a double backslash
3588 # by the backticks, then collapsed again by the double quotes,
3589 # leaving us with one backslash in the sed expression (right
3590 # before the dot that mustn't act as a wildcard).
3591 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3592 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3593 # The user is allowed to set LINGUAS to a list of languages to
3594 # install catalogs for. If it's empty that means "all of them."
3595 if test "x$LINGUAS" = x; then
3596 CATALOGS="$CATALOGS $cat"
3597 XLINGUAS="$XLINGUAS $lang"
3598 else
3599 case "$LINGUAS" in *$lang*)
3600 CATALOGS="$CATALOGS $cat"
3601 XLINGUAS="$XLINGUAS $lang"
3602 ;;
3603 esac
3604 fi
3605 done
3606 LINGUAS="$XLINGUAS"
81ecdfbb
RW
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3608$as_echo "$LINGUAS" >&6; }
20e95c23
DJ
3609
3610
3611 DATADIRNAME=share
3612
3613 INSTOBJEXT=.mo
3614
3615 GENCAT=gencat
3616
3617 CATOBJEXT=.gmo
b7026657 3618
c906108c 3619fi
20e95c23
DJ
3620
3621
81ecdfbb
RW
3622# Check whether --enable-sim-alignment was given.
3623if test "${enable_sim_alignment+set}" = set; then :
3624 enableval=$enable_sim_alignment; case "${enableval}" in
20e95c23
DJ
3625 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3626 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3627 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
81ecdfbb 3628 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
20e95c23
DJ
3629esac
3630if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
3631 echo "Setting alignment flags = $sim_alignment" 6>&1
c906108c 3632fi
c906108c 3633else
20e95c23 3634 sim_alignment=""
81ecdfbb 3635fi
20e95c23 3636
81ecdfbb
RW
3637
3638# Check whether --enable-sim-assert was given.
3639if test "${enable_sim_assert+set}" = set; then :
3640 enableval=$enable_sim_assert; case "${enableval}" in
20e95c23
DJ
3641 yes) sim_assert="-DWITH_ASSERT=1";;
3642 no) sim_assert="-DWITH_ASSERT=0";;
81ecdfbb 3643 *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
20e95c23
DJ
3644esac
3645if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
3646 echo "Setting assert flags = $sim_assert" 6>&1
b7026657 3647fi
20e95c23
DJ
3648else
3649 sim_assert=""
81ecdfbb 3650fi
b7026657 3651
81ecdfbb
RW
3652
3653# Check whether --enable-sim-bitsize was given.
3654if test "${enable_sim_bitsize+set}" = set; then :
3655 enableval=$enable_sim_bitsize; case "${enableval}" in
20e95c23 3656 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
81ecdfbb 3657 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
20e95c23
DJ
3658esac
3659if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3660 echo "Setting bitsize flags = $sim_bitsize" 6>&1
c906108c 3661fi
b7026657 3662else
20e95c23 3663 sim_bitsize=""
81ecdfbb 3664fi
20e95c23 3665
81ecdfbb
RW
3666
3667# Check whether --enable-sim-bswap was given.
3668if test "${enable_sim_bswap+set}" = set; then :
3669 enableval=$enable_sim_bswap; case "${enableval}" in
20e95c23
DJ
3670 yes) sim_bswap="-DWITH_BSWAP=1";;
3671 no) sim_bswap="-DWITH_BSWAP=0";;
81ecdfbb 3672 *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
20e95c23
DJ
3673esac
3674if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3675 echo "Setting bswap flags = $sim_bswap" 6>&1
3676fi
b7026657 3677else
20e95c23 3678 sim_bswap=""
81ecdfbb 3679fi
c906108c 3680
81ecdfbb
RW
3681
3682# Check whether --enable-sim-cflags was given.
3683if test "${enable_sim_cflags+set}" = set; then :
3684 enableval=$enable_sim_cflags; case "${enableval}" in
20e95c23
DJ
3685 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3686 no) sim_cflags="";;
3687 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3688esac
3689if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3690 echo "Setting sim cflags = $sim_cflags" 6>&1
b7026657 3691fi
20e95c23
DJ
3692else
3693 sim_cflags=""
81ecdfbb
RW
3694fi
3695
3696
3697# Check whether --enable-sim-config was given.
3698if test "${enable_sim_config+set}" = set; then :
3699 enableval=$enable_sim_config; case "${enableval}" in
3700 yes|no) as_fn_error "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
20e95c23
DJ
3701 *) if test -f "${srcdir}/${enableval}"; then
3702 sim_config="${enableval}";
3703 elif test -f "${srcdir}/${enableval}-config.h"; then
3704 sim_config="${enableval}-config.h"
3705 else
81ecdfbb 3706 as_fn_error "\"Config file $enableval was not found\"" "$LINENO" 5;
20e95c23
DJ
3707 sim_config=std-config.h
3708 fi;;
3709esac
3710if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
3711 echo "Setting config flags = $sim_config" 6>&1
b7026657 3712fi
b7026657 3713else
20e95c23
DJ
3714 sim_config="std-config.h"
3715if test x"$silent" != x"yes"; then
3716 echo "Setting config flags = $sim_config" 6>&1
b7026657 3717fi
81ecdfbb
RW
3718fi
3719
c906108c 3720
81ecdfbb
RW
3721# Check whether --enable-sim-decode-mechanism was given.
3722if test "${enable_sim_decode_mechanism+set}" = set; then :
3723 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
3724 yes|no) as_fn_error "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
20e95c23 3725 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
81ecdfbb 3726 *) as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
20e95c23
DJ
3727 sim_decode_mechanism="switch";;
3728esac
3729if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3730 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3731fi
b7026657 3732else
20e95c23
DJ
3733 sim_decode_mechanism=""
3734if test x"$silent" != x"yes"; then
3735 echo "Setting decode mechanism flags = $sim_decode_mechanism"
b7026657 3736fi
81ecdfbb
RW
3737fi
3738
b7026657 3739
81ecdfbb
RW
3740# Check whether --enable-sim-default-model was given.
3741if test "${enable_sim_default_model+set}" = set; then :
3742 enableval=$enable_sim_default_model; case "${enableval}" in
3743 yes|no) as_fn_error "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
20e95c23
DJ
3744 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3745esac
3746if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3747 echo "Setting default-model flags = $sim_default_model" 6>&1
3748fi
3749else
3750 sim_default_model=""
81ecdfbb
RW
3751fi
3752
b7026657 3753
81ecdfbb
RW
3754# Check whether --enable-sim-duplicate was given.
3755if test "${enable_sim_duplicate+set}" = set; then :
3756 enableval=$enable_sim_duplicate; case "${enableval}" in
20e95c23
DJ
3757 yes) sim_dup="-E";;
3758 no) sim_dup="";;
81ecdfbb 3759 *) as_fn_error "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
20e95c23
DJ
3760esac
3761if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3762 echo "Setting duplicate flags = $sim_dup" 6>&1
3763fi
b7026657 3764else
20e95c23
DJ
3765 sim_dup="-E"
3766if test x"$silent" != x"yes"; then
3767 echo "Setting duplicate flags = $sim_dup" 6>&1
3768fi
81ecdfbb
RW
3769fi
3770
20e95c23 3771
81ecdfbb
RW
3772# Check whether --enable-sim-endian was given.
3773if test "${enable_sim_endian+set}" = set; then :
3774 enableval=$enable_sim_endian; case "${enableval}" in
20e95c23
DJ
3775 yes) case "$target" in
3776 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3777 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3778 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3779 esac;;
3780 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3781 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3782 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
81ecdfbb 3783 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
20e95c23
DJ
3784esac
3785if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3786 echo "Setting endian flags = $sim_endian" 6>&1
3787fi
3788else
3789 sim_endian=""
81ecdfbb
RW
3790fi
3791
20e95c23 3792
81ecdfbb
RW
3793# Check whether --enable-sim-env was given.
3794if test "${enable_sim_env+set}" = set; then :
3795 enableval=$enable_sim_env; case "${enableval}" in
20e95c23
DJ
3796 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
3797 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
3798 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
3799 no) sim_env="-DWITH_ENVIRONMENT=0";;
81ecdfbb 3800 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-env\"" "$LINENO" 5; sim_env="";;
20e95c23
DJ
3801esac
3802if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
3803 echo "Setting env flags = $sim_env" 6>&1
3804fi
3805else
3806 sim_env=""
81ecdfbb
RW
3807fi
3808
3809
3810# Check whether --enable-sim-filter was given.
3811if test "${enable_sim_filter+set}" = set; then :
3812 enableval=$enable_sim_filter; case "${enableval}" in
3813 yes) as_fn_error "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
20e95c23
DJ
3814 no) sim_filter="";;
3815 *) sim_filter="-F $enableval";;
3816esac
3817if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3818 echo "Setting filter flags = $sim_filter" 6>&1
3819fi
3820else
3821 sim_filter="-F 32,f,o"
3822if test x"$silent" != x"yes"; then
3823 echo "Setting filter flags = $sim_filter" 6>&1
3824fi
81ecdfbb 3825fi
20e95c23 3826
81ecdfbb
RW
3827
3828# Check whether --enable-sim-float was given.
3829if test "${enable_sim_float+set}" = set; then :
3830 enableval=$enable_sim_float; case "${enableval}" in
20e95c23
DJ
3831 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3832 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3833 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3834 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
81ecdfbb 3835 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
20e95c23
DJ
3836esac
3837if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3838 echo "Setting float flags = $sim_float" 6>&1
3839fi
3840else
3841
3842case "${target}" in
3843 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3844 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3845 *) sim_float=""
3846esac
3847
81ecdfbb
RW
3848fi
3849
20e95c23 3850
81ecdfbb
RW
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3852$as_echo_n "checking if union semun defined... " >&6; }
3853if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then :
3854 $as_echo_n "(cached) " >&6
00a0b122 3855else
81ecdfbb 3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
3857/* end confdefs.h. */
3858
3859#include <sys/types.h>
3860#include <sys/ipc.h>
3861#include <sys/sem.h>
3862int
3863main ()
3864{
3865union semun arg ;
3866 ;
3867 return 0;
3868}
3869_ACEOF
81ecdfbb 3870if ac_fn_c_try_compile "$LINENO"; then :
00a0b122
JS
3871 ac_cv_has_union_semun="yes"
3872else
81ecdfbb 3873 ac_cv_has_union_semun="no"
00a0b122 3874fi
81ecdfbb
RW
3875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3877$as_echo "$ac_cv_has_union_semun" >&6; }
00a0b122
JS
3878
3879fi
81ecdfbb
RW
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3881$as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
00a0b122
JS
3882
3883
3884if test "$ac_cv_has_union_semun" = "yes"; then
81ecdfbb
RW
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3886$as_echo_n "checking whether System V semaphores are supported... " >&6; }
3887if test "${ac_cv_sysv_sem+set}" = set; then :
3888 $as_echo_n "(cached) " >&6
00a0b122
JS
3889else
3890
81ecdfbb 3891 if test "$cross_compiling" = yes; then :
00a0b122
JS
3892 :
3893else
81ecdfbb 3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
3895/* end confdefs.h. */
3896
3897 #include <sys/types.h>
3898 #include <sys/ipc.h>
3899 #include <sys/sem.h>
3900 int main () {
3901 union semun arg ;
3902
3903 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3904 if (id == -1)
3905 exit(1);
3906 arg.val = 0; /* avoid implicit type cast to union */
3907 if (semctl(id, 0, IPC_RMID, arg) == -1)
3908 exit(1);
3909 exit(0);
3910 }
3911
3912_ACEOF
81ecdfbb 3913if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
3914 ac_cv_sysv_sem="yes"
3915else
81ecdfbb 3916 ac_cv_sysv_sem="no"
00a0b122 3917fi
81ecdfbb
RW
3918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3919 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
3920fi
3921
81ecdfbb 3922
00a0b122 3923fi
81ecdfbb
RW
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3925$as_echo "$ac_cv_sysv_sem" >&6; }
00a0b122 3926else # semun is not defined
81ecdfbb
RW
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3928$as_echo_n "checking whether System V semaphores are supported... " >&6; }
3929if test "${ac_cv_sysv_sem+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
00a0b122
JS
3931else
3932
81ecdfbb 3933 if test "$cross_compiling" = yes; then :
00a0b122
JS
3934 :
3935else
81ecdfbb 3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
3937/* end confdefs.h. */
3938
3939 #include <sys/types.h>
3940 #include <sys/ipc.h>
3941 #include <sys/sem.h>
3942 union semun {
3943 int val;
3944 struct semid_ds *buf;
3945 ushort *array;
3946 };
3947 int main () {
3948 union semun arg ;
3949
3950 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3951 if (id == -1)
3952 exit(1);
3953 arg.val = 0; /* avoid implicit type cast to union */
3954 if (semctl(id, 0, IPC_RMID, arg) == -1)
3955 exit(1);
3956 exit(0);
3957 }
3958
3959_ACEOF
81ecdfbb 3960if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
3961 ac_cv_sysv_sem="yes"
3962else
81ecdfbb 3963 ac_cv_sysv_sem="no"
00a0b122 3964fi
81ecdfbb
RW
3965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3966 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
3967fi
3968
81ecdfbb 3969
00a0b122 3970fi
81ecdfbb
RW
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3972$as_echo "$ac_cv_sysv_sem" >&6; }
00a0b122
JS
3973fi
3974
81ecdfbb
RW
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3976$as_echo_n "checking whether System V shared memory is supported... " >&6; }
3977if test "${ac_cv_sysv_shm+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
00a0b122
JS
3979else
3980
81ecdfbb 3981if test "$cross_compiling" = yes; then :
00a0b122
JS
3982 :
3983else
81ecdfbb 3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
3985/* end confdefs.h. */
3986
3987#include <sys/types.h>
3988#include <sys/ipc.h>
3989#include <sys/shm.h>
3990int main () {
3991 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3992 if (id == -1)
3993 exit(1);
3994 if (shmctl(id, IPC_RMID, 0) == -1)
3995 exit(1);
3996 exit(0);
3997}
3998
3999_ACEOF
81ecdfbb 4000if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
4001 ac_cv_sysv_shm="yes"
4002else
81ecdfbb 4003 ac_cv_sysv_shm="no"
00a0b122 4004fi
81ecdfbb
RW
4005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4006 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
4007fi
4008
81ecdfbb 4009
00a0b122 4010fi
81ecdfbb
RW
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
4012$as_echo "$ac_cv_sysv_shm" >&6; }
00a0b122
JS
4013
4014if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
4015 sim_sysv_ipc_hw=",sem,shm";
4016else
4017 sim_sysv_ipc_hw="";
4018fi
4019
4020if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
bf0275b1
DE
4021
4022$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
4023
00a0b122
JS
4024fi
4025
4026
81ecdfbb
RW
4027# Check whether --enable-sim-hardware was given.
4028if test "${enable_sim_hardware+set}" = set; then :
4029 enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
20e95c23
DJ
4030case "${enableval}" in
4031 yes) ;;
81ecdfbb 4032 no) as_fn_error "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
20e95c23
DJ
4033 ,*) hardware="${hardware}${enableval}";;
4034 *,) hardware="${enableval}${hardware}";;
4035 *) hardware="${enableval}"'';;
4036esac
4037sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
4038sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
4039if test x"$silent" != x"yes" && test x"$hardware" != x""; then
4040 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
4041fi
4042else
00a0b122 4043 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
20e95c23
DJ
4044sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
4045sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
4046if test x"$silent" != x"yes"; then
4047 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
4048fi
81ecdfbb
RW
4049fi
4050
4051# Check whether --enable-sim-hostbitsize was given.
4052if test "${enable_sim_hostbitsize+set}" = set; then :
4053 enableval=$enable_sim_hostbitsize; case "${enableval}" in
20e95c23 4054 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
81ecdfbb 4055 *) as_fn_error "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
20e95c23
DJ
4056esac
4057if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
4058 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
4059fi
4060else
4061 sim_hostbitsize=""
20e95c23 4062fi
b7026657 4063
20e95c23 4064
20e95c23
DJ
4065ac_ext=c
4066ac_cpp='$CPP $CPPFLAGS'
4067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4071$as_echo_n "checking how to run the C preprocessor... " >&6; }
20e95c23
DJ
4072# On Suns, sometimes $CPP names a directory.
4073if test -n "$CPP" && test -d "$CPP"; then
4074 CPP=
4075fi
4076if test -z "$CPP"; then
81ecdfbb
RW
4077 if test "${ac_cv_prog_CPP+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
c906108c 4079else
20e95c23
DJ
4080 # Double quotes because CPP needs to be expanded
4081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4082 do
81ecdfbb
RW
4083 ac_preproc_ok=false
4084for ac_c_preproc_warn_flag in '' yes
4085do
4086 # Use a header file that comes with gcc, so configuring glibc
4087 # with a fresh cross-compiler works.
4088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4089 # <limits.h> exists even on freestanding compilers.
4090 # On the NeXT, cc -E runs the code through the compiler's parser,
4091 # not just through cpp. "Syntax error" is here to catch this case.
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20e95c23 4093/* end confdefs.h. */
81ecdfbb
RW
4094#ifdef __STDC__
4095# include <limits.h>
20e95c23 4096#else
81ecdfbb 4097# include <assert.h>
20e95c23 4098#endif
81ecdfbb 4099 Syntax error
20e95c23 4100_ACEOF
81ecdfbb 4101if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 4102
81ecdfbb
RW
4103else
4104 # Broken: fails on valid input.
4105continue
b7026657 4106fi
81ecdfbb 4107rm -f conftest.err conftest.$ac_ext
b7026657 4108
81ecdfbb
RW
4109 # OK, works on sane cases. Now check whether nonexistent headers
4110 # can be detected and how.
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20e95c23 4112/* end confdefs.h. */
81ecdfbb 4113#include <ac_nonexistent.h>
20e95c23 4114_ACEOF
81ecdfbb
RW
4115if ac_fn_c_try_cpp "$LINENO"; then :
4116 # Broken: success on invalid input.
4117continue
20e95c23 4118else
81ecdfbb
RW
4119 # Passes both tests.
4120ac_preproc_ok=:
4121break
20e95c23 4122fi
81ecdfbb 4123rm -f conftest.err conftest.$ac_ext
058ad269 4124
20e95c23 4125done
81ecdfbb
RW
4126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127rm -f conftest.err conftest.$ac_ext
4128if $ac_preproc_ok; then :
4129 break
35689115 4130fi
35689115 4131
81ecdfbb
RW
4132 done
4133 ac_cv_prog_CPP=$CPP
35689115
HPN
4134
4135fi
81ecdfbb
RW
4136 CPP=$ac_cv_prog_CPP
4137else
4138 ac_cv_prog_CPP=$CPP
35689115 4139fi
81ecdfbb
RW
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4141$as_echo "$CPP" >&6; }
4142ac_preproc_ok=false
4143for ac_c_preproc_warn_flag in '' yes
35689115 4144do
81ecdfbb
RW
4145 # Use a header file that comes with gcc, so configuring glibc
4146 # with a fresh cross-compiler works.
4147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4148 # <limits.h> exists even on freestanding compilers.
4149 # On the NeXT, cc -E runs the code through the compiler's parser,
4150 # not just through cpp. "Syntax error" is here to catch this case.
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35689115 4152/* end confdefs.h. */
81ecdfbb
RW
4153#ifdef __STDC__
4154# include <limits.h>
4155#else
4156# include <assert.h>
4157#endif
4158 Syntax error
35689115 4159_ACEOF
81ecdfbb 4160if ac_fn_c_try_cpp "$LINENO"; then :
35689115 4161
81ecdfbb
RW
4162else
4163 # Broken: fails on valid input.
4164continue
35689115 4165fi
81ecdfbb 4166rm -f conftest.err conftest.$ac_ext
35689115 4167
81ecdfbb
RW
4168 # OK, works on sane cases. Now check whether nonexistent headers
4169 # can be detected and how.
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35689115 4171/* end confdefs.h. */
81ecdfbb 4172#include <ac_nonexistent.h>
35689115 4173_ACEOF
81ecdfbb
RW
4174if ac_fn_c_try_cpp "$LINENO"; then :
4175 # Broken: success on invalid input.
4176continue
35689115 4177else
81ecdfbb
RW
4178 # Passes both tests.
4179ac_preproc_ok=:
4180break
35689115 4181fi
81ecdfbb 4182rm -f conftest.err conftest.$ac_ext
35689115 4183
81ecdfbb
RW
4184done
4185# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35689115 4186rm -f conftest.err conftest.$ac_ext
81ecdfbb 4187if $ac_preproc_ok; then :
35689115 4188
35689115 4189else
81ecdfbb
RW
4190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192as_fn_error "C preprocessor \"$CPP\" fails sanity check
4193See \`config.log' for more details." "$LINENO" 5; }
35689115 4194fi
35689115 4195
81ecdfbb
RW
4196ac_ext=c
4197ac_cpp='$CPP $CPPFLAGS'
4198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_c_compiler_gnu
35689115 4201
35689115 4202
81ecdfbb
RW
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4204$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4205if test "${ac_cv_path_GREP+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207else
4208 if test -z "$GREP"; then
4209 ac_path_GREP_found=false
4210 # Loop through the user's path and test for each of PROGNAME-LIST
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4213do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_prog in grep ggrep; do
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4219 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4220# Check for GNU ac_path_GREP and select it if it is found.
4221 # Check for GNU $ac_path_GREP
4222case `"$ac_path_GREP" --version 2>&1` in
4223*GNU*)
4224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4225*)
4226 ac_count=0
4227 $as_echo_n 0123456789 >"conftest.in"
4228 while :
4229 do
4230 cat "conftest.in" "conftest.in" >"conftest.tmp"
4231 mv "conftest.tmp" "conftest.in"
4232 cp "conftest.in" "conftest.nl"
4233 $as_echo 'GREP' >> "conftest.nl"
4234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4236 as_fn_arith $ac_count + 1 && ac_count=$as_val
4237 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4238 # Best one so far, save it but keep looking for a better one
4239 ac_cv_path_GREP="$ac_path_GREP"
4240 ac_path_GREP_max=$ac_count
4241 fi
4242 # 10*(2^10) chars as input seems more than enough
4243 test $ac_count -gt 10 && break
4244 done
4245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246esac
35689115 4247
81ecdfbb
RW
4248 $ac_path_GREP_found && break 3
4249 done
4250 done
4251 done
4252IFS=$as_save_IFS
4253 if test -z "$ac_cv_path_GREP"; then
4254 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4255 fi
4256else
4257 ac_cv_path_GREP=$GREP
35689115
HPN
4258fi
4259
81ecdfbb
RW
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4262$as_echo "$ac_cv_path_GREP" >&6; }
4263 GREP="$ac_cv_path_GREP"
35689115 4264
35689115 4265
81ecdfbb
RW
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4267$as_echo_n "checking for egrep... " >&6; }
4268if test "${ac_cv_path_EGREP+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270else
4271 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4272 then ac_cv_path_EGREP="$GREP -E"
4273 else
4274 if test -z "$EGREP"; then
4275 ac_path_EGREP_found=false
4276 # Loop through the user's path and test for each of PROGNAME-LIST
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_prog in egrep; do
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4285 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4286# Check for GNU ac_path_EGREP and select it if it is found.
4287 # Check for GNU $ac_path_EGREP
4288case `"$ac_path_EGREP" --version 2>&1` in
4289*GNU*)
4290 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4291*)
4292 ac_count=0
4293 $as_echo_n 0123456789 >"conftest.in"
4294 while :
4295 do
4296 cat "conftest.in" "conftest.in" >"conftest.tmp"
4297 mv "conftest.tmp" "conftest.in"
4298 cp "conftest.in" "conftest.nl"
4299 $as_echo 'EGREP' >> "conftest.nl"
4300 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4302 as_fn_arith $ac_count + 1 && ac_count=$as_val
4303 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4304 # Best one so far, save it but keep looking for a better one
4305 ac_cv_path_EGREP="$ac_path_EGREP"
4306 ac_path_EGREP_max=$ac_count
4307 fi
4308 # 10*(2^10) chars as input seems more than enough
4309 test $ac_count -gt 10 && break
4310 done
4311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
35689115
HPN
4312esac
4313
81ecdfbb
RW
4314 $ac_path_EGREP_found && break 3
4315 done
4316 done
4317 done
4318IFS=$as_save_IFS
4319 if test -z "$ac_cv_path_EGREP"; then
4320 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4321 fi
4322else
4323 ac_cv_path_EGREP=$EGREP
4324fi
4325
4326 fi
4327fi
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4329$as_echo "$ac_cv_path_EGREP" >&6; }
4330 EGREP="$ac_cv_path_EGREP"
35689115
HPN
4331
4332
81ecdfbb
RW
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4334$as_echo_n "checking for ANSI C header files... " >&6; }
4335if test "${ac_cv_header_stdc+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337else
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339/* end confdefs.h. */
4340#include <stdlib.h>
4341#include <stdarg.h>
4342#include <string.h>
4343#include <float.h>
c906108c 4344
b7026657
AC
4345int
4346main ()
4347{
81ecdfbb 4348
b7026657
AC
4349 ;
4350 return 0;
4351}
4352_ACEOF
81ecdfbb
RW
4353if ac_fn_c_try_compile "$LINENO"; then :
4354 ac_cv_header_stdc=yes
b7026657 4355else
81ecdfbb
RW
4356 ac_cv_header_stdc=no
4357fi
4358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4359
81ecdfbb
RW
4360if test $ac_cv_header_stdc = yes; then
4361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4363/* end confdefs.h. */
81ecdfbb
RW
4364#include <string.h>
4365
b7026657 4366_ACEOF
81ecdfbb
RW
4367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4368 $EGREP "memchr" >/dev/null 2>&1; then :
b7026657 4369
81ecdfbb
RW
4370else
4371 ac_cv_header_stdc=no
b7026657 4372fi
81ecdfbb 4373rm -f conftest*
b7026657 4374
81ecdfbb 4375fi
b7026657 4376
81ecdfbb
RW
4377if test $ac_cv_header_stdc = yes; then
4378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380/* end confdefs.h. */
4381#include <stdlib.h>
b7026657 4382
b7026657 4383_ACEOF
81ecdfbb
RW
4384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4385 $EGREP "free" >/dev/null 2>&1; then :
c906108c 4386
81ecdfbb
RW
4387else
4388 ac_cv_header_stdc=no
c906108c 4389fi
81ecdfbb 4390rm -f conftest*
c906108c 4391
81ecdfbb 4392fi
c906108c 4393
81ecdfbb
RW
4394if test $ac_cv_header_stdc = yes; then
4395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4396 if test "$cross_compiling" = yes; then :
4397 :
b7026657 4398else
81ecdfbb 4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4400/* end confdefs.h. */
81ecdfbb
RW
4401#include <ctype.h>
4402#include <stdlib.h>
4403#if ((' ' & 0x0FF) == 0x020)
4404# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4405# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4406#else
4407# define ISLOWER(c) \
4408 (('a' <= (c) && (c) <= 'i') \
4409 || ('j' <= (c) && (c) <= 'r') \
4410 || ('s' <= (c) && (c) <= 'z'))
4411# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4412#endif
b7026657 4413
81ecdfbb 4414#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
4415int
4416main ()
4417{
81ecdfbb
RW
4418 int i;
4419 for (i = 0; i < 256; i++)
4420 if (XOR (islower (i), ISLOWER (i))
4421 || toupper (i) != TOUPPER (i))
4422 return 2;
b7026657
AC
4423 return 0;
4424}
4425_ACEOF
81ecdfbb 4426if ac_fn_c_try_run "$LINENO"; then :
b7026657 4427
81ecdfbb
RW
4428else
4429 ac_cv_header_stdc=no
4430fi
4431rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4432 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 4433fi
81ecdfbb 4434
b7026657 4435fi
b7026657 4436fi
81ecdfbb
RW
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4438$as_echo "$ac_cv_header_stdc" >&6; }
4439if test $ac_cv_header_stdc = yes; then
b7026657 4440
81ecdfbb 4441$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b7026657 4442
81ecdfbb 4443fi
b7026657 4444
81ecdfbb
RW
4445# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4446for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4447 inttypes.h stdint.h unistd.h
4448do :
4449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4450ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4451"
4452eval as_val=\$$as_ac_Header
4453 if test "x$as_val" = x""yes; then :
4454 cat >>confdefs.h <<_ACEOF
4455#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b7026657 4456_ACEOF
c906108c 4457
c906108c
SS
4458fi
4459
81ecdfbb
RW
4460done
4461
b7026657 4462
81ecdfbb
RW
4463# Check whether --enable-sim-hostendian was given.
4464if test "${enable_sim_hostendian+set}" = set; then :
4465 enableval=$enable_sim_hostendian; case "${enableval}" in
4466 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4467 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4468 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4469 *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
4470esac
4471if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4472 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4473fi
4474else
b7026657 4475
81ecdfbb
RW
4476if test "x$cross_compiling" = "xno"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4478$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4479if test "${ac_cv_c_bigendian+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
b7026657 4481else
81ecdfbb
RW
4482 ac_cv_c_bigendian=unknown
4483 # See if we're dealing with a universal compiler.
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4485/* end confdefs.h. */
81ecdfbb
RW
4486#ifndef __APPLE_CC__
4487 not a universal capable compiler
4488 #endif
4489 typedef int dummy;
4490
4491_ACEOF
4492if ac_fn_c_try_compile "$LINENO"; then :
4493
4494 # Check for potential -arch flags. It is not universal unless
4495 # there are at least two -arch flags with different values.
4496 ac_arch=
4497 ac_prev=
4498 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4499 if test -n "$ac_prev"; then
4500 case $ac_word in
4501 i?86 | x86_64 | ppc | ppc64)
4502 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4503 ac_arch=$ac_word
4504 else
4505 ac_cv_c_bigendian=universal
4506 break
4507 fi
4508 ;;
4509 esac
4510 ac_prev=
4511 elif test "x$ac_word" = "x-arch"; then
4512 ac_prev=arch
4513 fi
4514 done
4515fi
4516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 if test $ac_cv_c_bigendian = unknown; then
4518 # See if sys/param.h defines the BYTE_ORDER macro.
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520/* end confdefs.h. */
4521#include <sys/types.h>
4522 #include <sys/param.h>
4523
b7026657
AC
4524int
4525main ()
4526{
81ecdfbb
RW
4527#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4528 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4529 && LITTLE_ENDIAN)
4530 bogus endian macros
4531 #endif
4532
b7026657
AC
4533 ;
4534 return 0;
4535}
4536_ACEOF
81ecdfbb
RW
4537if ac_fn_c_try_compile "$LINENO"; then :
4538 # It does; now see whether it defined to BIG_ENDIAN or not.
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4540/* end confdefs.h. */
81ecdfbb
RW
4541#include <sys/types.h>
4542 #include <sys/param.h>
4543
b7026657
AC
4544int
4545main ()
4546{
81ecdfbb
RW
4547#if BYTE_ORDER != BIG_ENDIAN
4548 not big endian
4549 #endif
4550
b7026657
AC
4551 ;
4552 return 0;
4553}
4554_ACEOF
81ecdfbb
RW
4555if ac_fn_c_try_compile "$LINENO"; then :
4556 ac_cv_c_bigendian=yes
b7026657 4557else
81ecdfbb 4558 ac_cv_c_bigendian=no
b7026657 4559fi
81ecdfbb 4560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4561fi
81ecdfbb
RW
4562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 fi
4564 if test $ac_cv_c_bigendian = unknown; then
4565 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567/* end confdefs.h. */
4568#include <limits.h>
c906108c 4569
81ecdfbb
RW
4570int
4571main ()
4572{
4573#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4574 bogus endian macros
4575 #endif
b7026657 4576
81ecdfbb
RW
4577 ;
4578 return 0;
4579}
b7026657 4580_ACEOF
81ecdfbb
RW
4581if ac_fn_c_try_compile "$LINENO"; then :
4582 # It does; now see whether it defined to _BIG_ENDIAN or not.
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4584/* end confdefs.h. */
81ecdfbb 4585#include <limits.h>
b7026657
AC
4586
4587int
4588main ()
4589{
81ecdfbb
RW
4590#ifndef _BIG_ENDIAN
4591 not big endian
4592 #endif
4593
b7026657
AC
4594 ;
4595 return 0;
4596}
4597_ACEOF
81ecdfbb
RW
4598if ac_fn_c_try_compile "$LINENO"; then :
4599 ac_cv_c_bigendian=yes
c906108c 4600else
81ecdfbb 4601 ac_cv_c_bigendian=no
c906108c 4602fi
81ecdfbb 4603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4604fi
81ecdfbb
RW
4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 fi
4607 if test $ac_cv_c_bigendian = unknown; then
4608 # Compile a test program.
4609 if test "$cross_compiling" = yes; then :
4610 # Try to guess by grepping values from an object file.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4612/* end confdefs.h. */
81ecdfbb
RW
4613short int ascii_mm[] =
4614 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4615 short int ascii_ii[] =
4616 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4617 int use_ascii (int i) {
4618 return ascii_mm[i] + ascii_ii[i];
4619 }
4620 short int ebcdic_ii[] =
4621 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4622 short int ebcdic_mm[] =
4623 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4624 int use_ebcdic (int i) {
4625 return ebcdic_mm[i] + ebcdic_ii[i];
4626 }
4627 extern int foo;
b7026657
AC
4628
4629int
4630main ()
4631{
81ecdfbb 4632return use_ascii (foo) == use_ebcdic (foo);
b7026657
AC
4633 ;
4634 return 0;
4635}
4636_ACEOF
81ecdfbb
RW
4637if ac_fn_c_try_compile "$LINENO"; then :
4638 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4639 ac_cv_c_bigendian=yes
4640 fi
4641 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4642 if test "$ac_cv_c_bigendian" = unknown; then
4643 ac_cv_c_bigendian=no
4644 else
4645 # finding both strings is unlikely to happen, but who knows?
4646 ac_cv_c_bigendian=unknown
4647 fi
4648 fi
4649fi
4650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651else
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4653/* end confdefs.h. */
81ecdfbb 4654$ac_includes_default
b7026657
AC
4655int
4656main ()
4657{
81ecdfbb
RW
4658
4659 /* Are we little or big endian? From Harbison&Steele. */
4660 union
4661 {
4662 long int l;
4663 char c[sizeof (long int)];
4664 } u;
4665 u.l = 1;
4666 return u.c[sizeof (long int) - 1] == 1;
4667
b7026657
AC
4668 ;
4669 return 0;
4670}
4671_ACEOF
81ecdfbb
RW
4672if ac_fn_c_try_run "$LINENO"; then :
4673 ac_cv_c_bigendian=no
b7026657 4674else
81ecdfbb
RW
4675 ac_cv_c_bigendian=yes
4676fi
4677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4678 conftest.$ac_objext conftest.beam conftest.$ac_ext
4679fi
4680
4681 fi
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4684$as_echo "$ac_cv_c_bigendian" >&6; }
4685 case $ac_cv_c_bigendian in #(
4686 yes)
4687 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4688;; #(
4689 no)
4690 ;; #(
4691 universal)
4692
4693$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
b7026657 4694
81ecdfbb
RW
4695 ;; #(
4696 *)
4697 as_fn_error "unknown endianness
4698 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4699 esac
4700
4701 if test $ac_cv_c_bigendian = yes; then
4702 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4703 else
4704 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4705 fi
4706else
4707 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
4708fi
4709fi
4710
4711
4712# Check whether --enable-sim-icache was given.
4713if test "${enable_sim_icache+set}" = set; then :
4714 enableval=$enable_sim_icache; icache="-R"
4715 case "${enableval}" in
4716 yes) icache="1024"; sim_icache="-I $icache";;
4717 no) sim_icache="-R";;
4718 *) icache=1024
4719 sim_icache="-"
4720 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
4721 case "$x" in
4722 define) sim_icache="${sim_icache}R";;
4723 semantic) sim_icache="${sim_icache}C";;
4724 insn) sim_icache="${sim_icache}S";;
4725 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
4726 *) as_fn_error "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
4727 esac
4728 done
4729 sim_icache="${sim_icache}I $icache";;
4730esac
4731if test x"$silent" != x"yes" && test x"$icache" != x""; then
4732 echo "Setting instruction cache size to $icache ($sim_icache)"
b7026657 4733fi
81ecdfbb
RW
4734else
4735 sim_icache="-CSRI 1024"
4736if test x"$silent" != x"yes"; then
4737 echo "Setting instruction cache size to 1024 ($sim_icache)"
b7026657 4738fi
b7026657 4739fi
b7026657
AC
4740
4741
81ecdfbb
RW
4742# Check whether --enable-sim-inline was given.
4743if test "${enable_sim_inline+set}" = set; then :
4744 enableval=$enable_sim_inline; sim_inline=""
4745case "$enableval" in
4746 no) sim_inline="-DDEFAULT_INLINE=0";;
4747 0) sim_inline="-DDEFAULT_INLINE=0";;
4748 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
4749 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
4750 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4751 new_flag=""
4752 case "$x" in
4753 *_INLINE=*) new_flag="-D$x";;
4754 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4755 *_INLINE) new_flag="-D$x=ALL_INLINE";;
4756 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
4757 esac
4758 if test x"$sim_inline" = x""; then
4759 sim_inline="$new_flag"
4760 else
4761 sim_inline="$sim_inline $new_flag"
4762 fi
4763 done;;
4764esac
4765if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
4766 echo "Setting inline flags = $sim_inline" 6>&1
b7026657 4767fi
c906108c 4768else
81ecdfbb
RW
4769 if test x"$GCC" != ""; then
4770 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
4771 if test x"$silent" != x"yes"; then
4772 echo "Setting inline flags = $sim_inline" 6>&1
4773 fi
c906108c 4774else
81ecdfbb 4775 sim_inline=""
c906108c 4776fi
c906108c 4777fi
b7026657 4778
c906108c 4779
81ecdfbb
RW
4780# Check whether --enable-sim-jump was given.
4781if test "${enable_sim_jump+set}" = set; then :
4782 enableval=$enable_sim_jump; case "${enableval}" in
4783 yes) sim_jump="-J";;
4784 no) sim_jump="";;
4785 *) as_fn_error "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
4786esac
4787if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
4788 echo "Setting jump flag = $sim_jump" 6>&1
c906108c 4789fi
c906108c 4790else
81ecdfbb
RW
4791 sim_jump=""
4792if test x"$silent" != x"yes"; then
4793 echo "Setting jump flag = $sim_jump" 6>&1
c906108c 4794fi
c906108c 4795fi
c906108c 4796
b7026657 4797
81ecdfbb
RW
4798# Check whether --enable-sim-line-nr was given.
4799if test "${enable_sim_line_nr+set}" = set; then :
4800 enableval=$enable_sim_line_nr; case "${enableval}" in
4801 yes) sim_line_nr="";;
4802 no) sim_line_nr="-L";;
4803 *) as_fn_error "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
4804esac
4805if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
4806 echo "Setting warning flags = $sim_line_nr" 6>&1
c906108c 4807fi
c906108c 4808else
81ecdfbb
RW
4809 sim_line_nr=""
4810fi
b7026657 4811
c906108c 4812
81ecdfbb
RW
4813# Check whether --enable-sim-model was given.
4814if test "${enable_sim_model+set}" = set; then :
4815 enableval=$enable_sim_model; case "${enableval}" in
4816 yes|no) as_fn_error "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
4817 *) sim_model="-DWITH_MODEL=${enableval}";;
4818esac
4819if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
4820 echo "Setting model flags = $sim_model" 6>&1
4821fi
c906108c 4822else
81ecdfbb
RW
4823 sim_model=""
4824fi
4825
b7026657 4826
81ecdfbb
RW
4827# Check whether --enable-sim-model-issue was given.
4828if test "${enable_sim_model_issue+set}" = set; then :
4829 enableval=$enable_sim_model_issue; case "${enableval}" in
4830 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
4831 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
4832 *) as_fn_error "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
4833esac
4834if test x"$silent" != x"yes"; then
4835 echo "Setting model-issue flags = $sim_model_issue" 6>&1
c906108c 4836fi
81ecdfbb
RW
4837else
4838 sim_model_issue=""
c906108c 4839fi
b7026657 4840
81ecdfbb
RW
4841
4842# Check whether --enable-sim-monitor was given.
4843if test "${enable_sim_monitor+set}" = set; then :
4844 enableval=$enable_sim_monitor; case "${enableval}" in
4845 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
4846 no) sim_monitor="-DWITH_MON=0";;
4847 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
4848 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
4849 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env="";;
4850esac
4851if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
4852 echo "Setting monitor flags = $sim_monitor" 6>&1
4853fi
c906108c 4854else
81ecdfbb 4855 sim_monitor=""
c906108c 4856fi
c906108c 4857
81ecdfbb
RW
4858
4859# Check whether --enable-sim-opcode was given.
4860if test "${enable_sim_opcode+set}" = set; then :
4861 enableval=$enable_sim_opcode; case "${enableval}" in
4862 yes|no) as_fn_error "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
4863 *) if test -f "${srcdir}/${enableval}"; then
4864 sim_opcode="${enableval}"
4865 elif test -f "${srcdir}/dc-${enableval}"; then
4866 sim_opcode="dc-${enableval}"
4867 else
4868 as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
4869 sim_opcode="dc-complex"
4870 fi;;
4871esac
4872if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
4873 echo "Setting opcode flags = $sim_opcode" 6>&1
4874fi
4875else
4876 sim_opcode="dc-complex"
4877if test x"$silent" != x"yes"; then
4878 echo "Setting opcode flags = $sim_opcode"
c906108c
SS
4879fi
4880fi
c906108c
SS
4881
4882
81ecdfbb
RW
4883# Check whether --enable-sim-packages was given.
4884if test "${enable_sim_packages+set}" = set; then :
4885 enableval=$enable_sim_packages; packages=disklabel
4886case "${enableval}" in
4887 yes) ;;
4888 no) as_fn_error "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";;
4889 ,*) packages="${packages}${enableval}";;
4890 *,) packages="${enableval}${packages}";;
4891 *) packages="${enableval}"'';;
4892esac
4893sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4894sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4895if test x"$silent" != x"yes" && test x"$packages" != x""; then
4896 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4897fi
c906108c 4898else
81ecdfbb
RW
4899 packages=disklabel
4900sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4901sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4902if test x"$silent" != x"yes"; then
4903 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
b7026657 4904fi
c906108c 4905fi
b7026657 4906
c906108c 4907
81ecdfbb
RW
4908# Check whether --enable-sim-regparm was given.
4909if test "${enable_sim_regparm+set}" = set; then :
4910 enableval=$enable_sim_regparm; case "${enableval}" in
4911 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
4912 no) sim_regparm="" ;;
4913 yes) sim_regparm="-DWITH_REGPARM=3";;
4914 *) as_fn_error "\"Unknown value $enableval for --enable-sim-regparm\"" "$LINENO" 5; sim_regparm="";;
4915esac
4916if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
4917 echo "Setting regparm flags = $sim_regparm" 6>&1
c906108c 4918fi
c906108c 4919else
81ecdfbb
RW
4920 sim_regparm=""
4921fi
4922
c906108c 4923
81ecdfbb
RW
4924# Check whether --enable-sim-reserved-bits was given.
4925if test "${enable_sim_reserved_bits+set}" = set; then :
4926 enableval=$enable_sim_reserved_bits; case "${enableval}" in
4927 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
4928 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
4929 *) as_fn_error "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";;
4930esac
4931if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
4932 echo "Setting reserved flags = $sim_reserved" 6>&1
4933fi
4934else
4935 sim_reserved=""
b7026657 4936fi
81ecdfbb
RW
4937
4938
4939# Check whether --enable-sim-smp was given.
4940if test "${enable_sim_smp+set}" = set; then :
4941 enableval=$enable_sim_smp; case "${enableval}" in
4942 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
4943 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
4944 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
4945esac
4946if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
4947 echo "Setting smp flags = $sim_smp" 6>&1
c906108c 4948fi
b7026657 4949else
81ecdfbb
RW
4950 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
4951if test x"$silent" != x"yes"; then
4952 echo "Setting smp flags = $sim_smp" 6>&1
4953fi
c906108c
SS
4954fi
4955
c906108c 4956
81ecdfbb
RW
4957# Check whether --enable-sim-stdcall was given.
4958if test "${enable_sim_stdcall+set}" = set; then :
4959 enableval=$enable_sim_stdcall; case "${enableval}" in
4960 no) sim_stdcall="" ;;
4961 std*) sim_stdcall="-DWITH_STDCALL=1";;
4962 yes) sim_stdcall="-DWITH_STDCALL=1";;
4963 *) as_fn_error "\"Unknown value $enableval for --enable-sim-stdcall\"" "$LINENO" 5; sim_stdcall="";;
4964esac
4965if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
4966 echo "Setting function call flags = $sim_stdcall" 6>&1
c906108c 4967fi
b7026657 4968else
81ecdfbb
RW
4969 sim_stdcall=""
4970fi
b7026657 4971
c906108c 4972
81ecdfbb
RW
4973# Check whether --enable-sim-stdio was given.
4974if test "${enable_sim_stdio+set}" = set; then :
4975 enableval=$enable_sim_stdio; case "${enableval}" in
4976 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4977 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4978 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
4979esac
4980if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4981 echo "Setting stdio flags = $sim_stdio" 6>&1
c906108c 4982fi
c906108c 4983else
81ecdfbb
RW
4984 sim_stdio=""
4985fi
c906108c 4986
b7026657 4987
81ecdfbb
RW
4988# Check whether --enable-sim-switch was given.
4989if test "${enable_sim_switch+set}" = set; then :
4990 enableval=$enable_sim_switch; case "${enableval}" in
4991 yes) sim_switch="-s";;
4992 no) sim_switch="";;
4993 *) as_fn_error "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
4994esac
4995if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
4996 echo "Setting switch flags = $sim_switch" 6>&1
4997fi
4998else
4999 sim_switch="";
5000if test x"$silent" != x"yes"; then
5001 echo "Setting switch flags = $sim_switch" 6>&1
c906108c 5002fi
c906108c 5003fi
c906108c
SS
5004
5005
81ecdfbb
RW
5006# Check whether --enable-sim-timebase was given.
5007if test "${enable_sim_timebase+set}" = set; then :
5008 enableval=$enable_sim_timebase; case "${enableval}" in
5009 yes) sim_timebase="-DWITH_TIME_BASE=1";;
5010 no) sim_timebase="-DWITH_TIME_BASE=0";;
5011 *) as_fn_error "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
5012esac
5013if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
5014 echo "Setting timebase flags = $sim_timebase" 6>&1
5015fi
c906108c 5016else
81ecdfbb 5017 sim_timebase=""
c906108c 5018fi
81ecdfbb
RW
5019
5020
5021# Check whether --enable-sim-trace was given.
5022if test "${enable_sim_trace+set}" = set; then :
5023 enableval=$enable_sim_trace; case "${enableval}" in
5024 yes) sim_trace="-DWITH_TRACE=1";;
5025 no) sim_trace="-DWITH_TRACE=0";;
5026 *) as_fn_error "\"--enable-sim-trace does not take a value\"" "$LINENO" 5; sim_trace="";;
5027esac
5028if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
5029 echo "Setting trace flags = $sim_trace" 6>&1
b7026657 5030fi
b7026657 5031else
81ecdfbb
RW
5032 sim_trace=""
5033fi
b7026657 5034
c906108c 5035
81ecdfbb
RW
5036# Check whether --enable-sim-warnings was given.
5037if test "${enable_sim_warnings+set}" = set; then :
5038 enableval=$enable_sim_warnings; case "${enableval}" in
5039 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
5040 no) sim_warnings="-w";;
5041 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5042esac
5043if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
5044 echo "Setting warning flags = $sim_warnings" 6>&1
c906108c 5045fi
c906108c 5046else
81ecdfbb
RW
5047 sim_warnings=""
5048fi
b7026657 5049
81ecdfbb
RW
5050
5051# Check whether --enable-sim-xor-endian was given.
5052if test "${enable_sim_xor_endian+set}" = set; then :
5053 enableval=$enable_sim_xor_endian; case "${enableval}" in
5054 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
5055 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
5056 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
5057esac
5058if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
5059 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
5060fi
c906108c 5061else
81ecdfbb 5062 sim_xor_endian=""
c906108c 5063fi
c906108c 5064
b7026657 5065
b7026657 5066
c906108c 5067
81ecdfbb
RW
5068# Check whether --with-pkgversion was given.
5069if test "${with_pkgversion+set}" = set; then :
5070 withval=$with_pkgversion; case "$withval" in
5071 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5072 no) PKGVERSION= ;;
5073 *) PKGVERSION="($withval) " ;;
5074 esac
5075else
5076 PKGVERSION="(GDB) "
c906108c
SS
5077
5078fi
5079
5080
b7026657
AC
5081
5082
5083
81ecdfbb
RW
5084# Check whether --with-bugurl was given.
5085if test "${with_bugurl+set}" = set; then :
5086 withval=$with_bugurl; case "$withval" in
5087 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5088 no) BUGURL=
5089 ;;
5090 *) BUGURL="$withval"
5091 ;;
5092 esac
5093else
5094 BUGURL="http://www.gnu.org/software/gdb/bugs/"
b7026657 5095
81ecdfbb 5096fi
b7026657 5097
81ecdfbb
RW
5098 case ${BUGURL} in
5099 "")
5100 REPORT_BUGS_TO=
5101 REPORT_BUGS_TEXI=
5102 ;;
5103 *)
5104 REPORT_BUGS_TO="<$BUGURL>"
5105 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5106 ;;
5107 esac;
b7026657
AC
5108
5109
5110
5111
81ecdfbb
RW
5112cat >>confdefs.h <<_ACEOF
5113#define PKGVERSION "$PKGVERSION"
5114_ACEOF
b7026657
AC
5115
5116
81ecdfbb
RW
5117cat >>confdefs.h <<_ACEOF
5118#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5119_ACEOF
b7026657
AC
5120
5121
81ecdfbb
RW
5122# Make sure we can run config.sub.
5123$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5124 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5125
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5127$as_echo_n "checking build system type... " >&6; }
5128if test "${ac_cv_build+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130else
5131 ac_build_alias=$build_alias
5132test "x$ac_build_alias" = x &&
5133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5134test "x$ac_build_alias" = x &&
5135 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5136ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5137 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5138
5139fi
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5141$as_echo "$ac_cv_build" >&6; }
5142case $ac_cv_build in
5143*-*-*) ;;
5144*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5145esac
5146build=$ac_cv_build
5147ac_save_IFS=$IFS; IFS='-'
5148set x $ac_cv_build
5149shift
5150build_cpu=$1
5151build_vendor=$2
5152shift; shift
5153# Remember, the first character of IFS is used to create $*,
5154# except with old shells:
5155build_os=$*
5156IFS=$ac_save_IFS
5157case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657
AC
5158
5159
81ecdfbb
RW
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5161$as_echo_n "checking host system type... " >&6; }
5162if test "${ac_cv_host+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5164else
5165 if test "x$host_alias" = x; then
5166 ac_cv_host=$ac_cv_build
5167else
5168 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5169 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5170fi
b7026657 5171
81ecdfbb
RW
5172fi
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5174$as_echo "$ac_cv_host" >&6; }
5175case $ac_cv_host in
5176*-*-*) ;;
5177*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5178esac
5179host=$ac_cv_host
5180ac_save_IFS=$IFS; IFS='-'
5181set x $ac_cv_host
5182shift
5183host_cpu=$1
5184host_vendor=$2
5185shift; shift
5186# Remember, the first character of IFS is used to create $*,
5187# except with old shells:
5188host_os=$*
5189IFS=$ac_save_IFS
5190case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
b7026657
AC
5191
5192
81ecdfbb
RW
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5194$as_echo_n "checking target system type... " >&6; }
5195if test "${ac_cv_target+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5197else
5198 if test "x$target_alias" = x; then
5199 ac_cv_target=$ac_cv_host
5200else
5201 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5202 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5203fi
b7026657 5204
81ecdfbb
RW
5205fi
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5207$as_echo "$ac_cv_target" >&6; }
5208case $ac_cv_target in
5209*-*-*) ;;
5210*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5211esac
5212target=$ac_cv_target
5213ac_save_IFS=$IFS; IFS='-'
5214set x $ac_cv_target
5215shift
5216target_cpu=$1
5217target_vendor=$2
5218shift; shift
5219# Remember, the first character of IFS is used to create $*,
5220# except with old shells:
5221target_os=$*
5222IFS=$ac_save_IFS
5223case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b7026657
AC
5224
5225
81ecdfbb
RW
5226# The aliases save the names the user supplied, while $host etc.
5227# will get canonicalized.
5228test -n "$target_alias" &&
5229 test "$program_prefix$program_suffix$program_transform_name" = \
5230 NONENONEs,x,x, &&
5231 program_prefix=${target_alias}-
b7026657 5232
81ecdfbb
RW
5233test "$program_prefix" != NONE &&
5234 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5235# Use a double $ so make ignores it.
5236test "$program_suffix" != NONE &&
5237 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5238# Double any \ or $.
5239# By default was `s,x,x', remove it if useless.
5240ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5241program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b7026657
AC
5242
5243
81ecdfbb
RW
5244# BFD conditionally uses zlib, so we must link it in if libbfd does, by
5245# using the same condition.
5912fadd
JB
5246
5247 # See if the user specified whether he wants zlib support or not.
5248
5249# Check whether --with-zlib was given.
5250if test "${with_zlib+set}" = set; then :
5251 withval=$with_zlib;
5252else
5253 with_zlib=auto
5254fi
5255
5256
5257 if test "$with_zlib" != "no"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
5259$as_echo_n "checking for library containing zlibVersion... " >&6; }
5260if test "${ac_cv_search_zlibVersion+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262else
5263 ac_func_search_save_LIBS=$LIBS
5264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265/* end confdefs.h. */
b7026657 5266
81ecdfbb
RW
5267/* Override any GCC internal prototype to avoid an error.
5268 Use char because int might match the return type of a GCC
5269 builtin and then its argument prototype would still apply. */
5270#ifdef __cplusplus
5271extern "C"
5272#endif
5273char zlibVersion ();
5274int
5275main ()
5276{
5277return zlibVersion ();
5278 ;
5279 return 0;
5280}
5281_ACEOF
5282for ac_lib in '' z; do
5283 if test -z "$ac_lib"; then
5284 ac_res="none required"
5285 else
5286 ac_res=-l$ac_lib
5287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5288 fi
5289 if ac_fn_c_try_link "$LINENO"; then :
5290 ac_cv_search_zlibVersion=$ac_res
5291fi
5292rm -f core conftest.err conftest.$ac_objext \
5293 conftest$ac_exeext
5294 if test "${ac_cv_search_zlibVersion+set}" = set; then :
5295 break
5296fi
5297done
5298if test "${ac_cv_search_zlibVersion+set}" = set; then :
b7026657 5299
81ecdfbb
RW
5300else
5301 ac_cv_search_zlibVersion=no
5302fi
5303rm conftest.$ac_ext
5304LIBS=$ac_func_search_save_LIBS
5305fi
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
5307$as_echo "$ac_cv_search_zlibVersion" >&6; }
5308ac_res=$ac_cv_search_zlibVersion
5309if test "$ac_res" != no; then :
5310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5311 for ac_header in zlib.h
5312do :
5313 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5314if test "x$ac_cv_header_zlib_h" = x""yes; then :
5315 cat >>confdefs.h <<_ACEOF
5316#define HAVE_ZLIB_H 1
5317_ACEOF
b7026657 5318
81ecdfbb 5319fi
b7026657 5320
81ecdfbb 5321done
b7026657 5322
81ecdfbb 5323fi
b7026657 5324
5912fadd
JB
5325 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
5326 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
5327 fi
5328 fi
5329
b7026657 5330
81ecdfbb 5331. ${srcdir}/../../bfd/configure.host
b7026657 5332
81ecdfbb
RW
5333case ${host} in
5334 *mingw32*)
b7026657 5335
81ecdfbb 5336$as_echo "#define USE_WIN32API 1" >>confdefs.h
b7026657 5337
81ecdfbb
RW
5338 ;;
5339esac
b7026657 5340
81ecdfbb 5341ac_config_headers="$ac_config_headers config.h:config.in"
b7026657
AC
5342
5343
81ecdfbb
RW
5344ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
5345if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
b7026657 5346
81ecdfbb
RW
5347cat >>confdefs.h <<_ACEOF
5348#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5349_ACEOF
b7026657
AC
5350
5351
81ecdfbb 5352$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
b7026657 5353
81ecdfbb 5354fi
b7026657
AC
5355
5356
81ecdfbb
RW
5357ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
5358if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
b7026657 5359
81ecdfbb
RW
5360cat >>confdefs.h <<_ACEOF
5361#define HAVE_STRUCT_STAT_ST_BLOCKS 1
5362_ACEOF
b7026657
AC
5363
5364
81ecdfbb 5365$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
b7026657 5366
81ecdfbb
RW
5367else
5368 case " $LIBOBJS " in
5369 *" fileblocks.$ac_objext "* ) ;;
5370 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5371 ;;
5372esac
b7026657 5373
81ecdfbb 5374fi
b7026657
AC
5375
5376
81ecdfbb
RW
5377ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5378if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5379
5380cat >>confdefs.h <<_ACEOF
5381#define HAVE_STRUCT_STAT_ST_RDEV 1
b7026657 5382_ACEOF
b7026657 5383
b7026657 5384
81ecdfbb 5385$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
c906108c 5386
81ecdfbb 5387fi
c906108c 5388
81ecdfbb
RW
5389
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5391$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5392if test "${ac_cv_struct_tm+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5394else
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396/* end confdefs.h. */
5397#include <sys/types.h>
5398#include <time.h>
c906108c 5399
b7026657
AC
5400int
5401main ()
5402{
81ecdfbb
RW
5403struct tm tm;
5404 int *p = &tm.tm_sec;
5405 return !p;
b7026657
AC
5406 ;
5407 return 0;
5408}
5409_ACEOF
81ecdfbb
RW
5410if ac_fn_c_try_compile "$LINENO"; then :
5411 ac_cv_struct_tm=time.h
b7026657 5412else
81ecdfbb 5413 ac_cv_struct_tm=sys/time.h
b7026657 5414fi
81ecdfbb 5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 5416fi
81ecdfbb
RW
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5418$as_echo "$ac_cv_struct_tm" >&6; }
5419if test $ac_cv_struct_tm = sys/time.h; then
5420
5421$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
c906108c 5422
c906108c 5423fi
c906108c 5424
81ecdfbb
RW
5425ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
5426#include <$ac_cv_struct_tm>
5427
5428"
5429if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
c906108c 5430
81ecdfbb
RW
5431cat >>confdefs.h <<_ACEOF
5432#define HAVE_STRUCT_TM_TM_ZONE 1
5433_ACEOF
b7026657
AC
5434
5435
81ecdfbb 5436fi
b7026657 5437
81ecdfbb 5438if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
b7026657 5439
81ecdfbb 5440$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
b7026657 5441
81ecdfbb
RW
5442else
5443 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
5444"
5445if test "x$ac_cv_have_decl_tzname" = x""yes; then :
5446 ac_have_decl=1
5447else
5448 ac_have_decl=0
5449fi
b7026657 5450
81ecdfbb
RW
5451cat >>confdefs.h <<_ACEOF
5452#define HAVE_DECL_TZNAME $ac_have_decl
5453_ACEOF
b7026657 5454
81ecdfbb
RW
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
5456$as_echo_n "checking for tzname... " >&6; }
5457if test "${ac_cv_var_tzname+set}" = set; then :
5458 $as_echo_n "(cached) " >&6
5459else
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h. */
5462#include <time.h>
5463#if !HAVE_DECL_TZNAME
5464extern char *tzname[];
5465#endif
b7026657 5466
81ecdfbb
RW
5467int
5468main ()
5469{
5470return tzname[0][0];
5471 ;
5472 return 0;
5473}
5474_ACEOF
5475if ac_fn_c_try_link "$LINENO"; then :
5476 ac_cv_var_tzname=yes
5477else
5478 ac_cv_var_tzname=no
5479fi
5480rm -f core conftest.err conftest.$ac_objext \
5481 conftest$ac_exeext conftest.$ac_ext
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
5484$as_echo "$ac_cv_var_tzname" >&6; }
5485 if test $ac_cv_var_tzname = yes; then
b7026657 5486
81ecdfbb 5487$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
b7026657 5488
81ecdfbb
RW
5489 fi
5490fi
b7026657
AC
5491
5492
81ecdfbb
RW
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5494$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5495if test "${ac_cv_type_uid_t+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5497else
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h. */
5500#include <sys/types.h>
b7026657 5501
81ecdfbb
RW
5502_ACEOF
5503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5504 $EGREP "uid_t" >/dev/null 2>&1; then :
5505 ac_cv_type_uid_t=yes
5506else
5507 ac_cv_type_uid_t=no
5508fi
5509rm -f conftest*
b7026657 5510
81ecdfbb
RW
5511fi
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5513$as_echo "$ac_cv_type_uid_t" >&6; }
5514if test $ac_cv_type_uid_t = no; then
b7026657 5515
81ecdfbb 5516$as_echo "#define uid_t int" >>confdefs.h
b7026657
AC
5517
5518
81ecdfbb 5519$as_echo "#define gid_t int" >>confdefs.h
b7026657 5520
b7026657 5521fi
81ecdfbb
RW
5522
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
5524$as_echo_n "checking type of array argument to getgroups... " >&6; }
5525if test "${ac_cv_type_getgroups+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
b7026657 5527else
81ecdfbb
RW
5528 if test "$cross_compiling" = yes; then :
5529 ac_cv_type_getgroups=cross
5530else
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5532/* end confdefs.h. */
81ecdfbb 5533/* Thanks to Mike Rendell for this test. */
b7026657 5534$ac_includes_default
81ecdfbb
RW
5535#define NGID 256
5536#undef MAX
5537#define MAX(x, y) ((x) > (y) ? (x) : (y))
5538
5539int
5540main ()
5541{
5542 gid_t gidset[NGID];
5543 int i, n;
5544 union { gid_t gval; long int lval; } val;
5545
5546 val.lval = -1;
5547 for (i = 0; i < NGID; i++)
5548 gidset[i] = val.gval;
5549 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5550 gidset);
5551 /* Exit non-zero if getgroups seems to require an array of ints. This
5552 happens when gid_t is short int but getgroups modifies an array
5553 of ints. */
5554 return n > 0 && gidset[n] != val.gval;
5555}
b7026657 5556_ACEOF
81ecdfbb
RW
5557if ac_fn_c_try_run "$LINENO"; then :
5558 ac_cv_type_getgroups=gid_t
b7026657 5559else
81ecdfbb
RW
5560 ac_cv_type_getgroups=int
5561fi
5562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5563 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 5564fi
b7026657 5565
81ecdfbb
RW
5566if test $ac_cv_type_getgroups = cross; then
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5568/* end confdefs.h. */
81ecdfbb
RW
5569#include <unistd.h>
5570
b7026657 5571_ACEOF
81ecdfbb
RW
5572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
5574 ac_cv_type_getgroups=gid_t
b7026657 5575else
81ecdfbb 5576 ac_cv_type_getgroups=int
c906108c 5577fi
81ecdfbb 5578rm -f conftest*
b7026657 5579
c906108c 5580fi
81ecdfbb
RW
5581fi
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
5583$as_echo "$ac_cv_type_getgroups" >&6; }
5584
5585cat >>confdefs.h <<_ACEOF
5586#define GETGROUPS_T $ac_cv_type_getgroups
5587_ACEOF
5588
5589
5590ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5591if test "x$ac_cv_type_mode_t" = x""yes; then :
b7026657 5592
c906108c 5593else
b7026657 5594
81ecdfbb
RW
5595cat >>confdefs.h <<_ACEOF
5596#define mode_t int
b7026657
AC
5597_ACEOF
5598
c906108c 5599fi
b7026657 5600
81ecdfbb
RW
5601ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5602if test "x$ac_cv_type_off_t" = x""yes; then :
c906108c 5603
81ecdfbb 5604else
b7026657 5605
81ecdfbb
RW
5606cat >>confdefs.h <<_ACEOF
5607#define off_t long int
5608_ACEOF
b7026657 5609
81ecdfbb 5610fi
b7026657 5611
81ecdfbb
RW
5612ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5613if test "x$ac_cv_type_pid_t" = x""yes; then :
b7026657 5614
81ecdfbb 5615else
b7026657 5616
81ecdfbb
RW
5617cat >>confdefs.h <<_ACEOF
5618#define pid_t int
b7026657 5619_ACEOF
81ecdfbb
RW
5620
5621fi
5622
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5624$as_echo_n "checking return type of signal handlers... " >&6; }
5625if test "${ac_cv_type_signal+set}" = set; then :
5626 $as_echo_n "(cached) " >&6
5627else
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5629/* end confdefs.h. */
c906108c 5630#include <sys/types.h>
81ecdfbb 5631#include <signal.h>
b7026657
AC
5632
5633int
5634main ()
5635{
81ecdfbb 5636return *(signal (0, 0)) (0) == 1;
b7026657
AC
5637 ;
5638 return 0;
5639}
5640_ACEOF
81ecdfbb
RW
5641if ac_fn_c_try_compile "$LINENO"; then :
5642 ac_cv_type_signal=int
b7026657 5643else
81ecdfbb 5644 ac_cv_type_signal=void
b7026657 5645fi
81ecdfbb 5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 5647fi
81ecdfbb
RW
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5649$as_echo "$ac_cv_type_signal" >&6; }
5650
5651cat >>confdefs.h <<_ACEOF
5652#define RETSIGTYPE $ac_cv_type_signal
b7026657
AC
5653_ACEOF
5654
b7026657 5655
81ecdfbb
RW
5656ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5657if test "x$ac_cv_type_size_t" = x""yes; then :
5658
b7026657 5659else
81ecdfbb
RW
5660
5661cat >>confdefs.h <<_ACEOF
5662#define size_t unsigned int
b7026657 5663_ACEOF
81ecdfbb
RW
5664
5665fi
5666
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5668$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5669if test "${ac_cv_type_uid_t+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5671else
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5673/* end confdefs.h. */
81ecdfbb 5674#include <sys/types.h>
b7026657 5675
b7026657 5676_ACEOF
81ecdfbb
RW
5677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5678 $EGREP "uid_t" >/dev/null 2>&1; then :
5679 ac_cv_type_uid_t=yes
b7026657 5680else
81ecdfbb
RW
5681 ac_cv_type_uid_t=no
5682fi
5683rm -f conftest*
b7026657
AC
5684
5685fi
81ecdfbb
RW
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5687$as_echo "$ac_cv_type_uid_t" >&6; }
5688if test $ac_cv_type_uid_t = no; then
5689
5690$as_echo "#define uid_t int" >>confdefs.h
5691
5692
5693$as_echo "#define gid_t int" >>confdefs.h
5694
5695fi
5696
5697
5698for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
5699do :
5700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5701ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5702eval as_val=\$$as_ac_var
5703 if test "x$as_val" = x""yes; then :
5704 cat >>confdefs.h <<_ACEOF
5705#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b7026657 5706_ACEOF
c906108c 5707
81ecdfbb
RW
5708fi
5709done
5710
5711
5712for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h
5713do :
5714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5715ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5716eval as_val=\$$as_ac_Header
5717 if test "x$as_val" = x""yes; then :
5718 cat >>confdefs.h <<_ACEOF
5719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5720_ACEOF
5721
5722fi
5723
5724done
5725
5726ac_header_dirent=no
5727for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5728 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5730$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5732 $as_echo_n "(cached) " >&6
5733else
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h. */
5736#include <sys/types.h>
5737#include <$ac_hdr>
5738
b7026657
AC
5739int
5740main ()
5741{
81ecdfbb
RW
5742if ((DIR *) 0)
5743return 0;
b7026657
AC
5744 ;
5745 return 0;
5746}
5747_ACEOF
81ecdfbb
RW
5748if ac_fn_c_try_compile "$LINENO"; then :
5749 eval "$as_ac_Header=yes"
b7026657 5750else
81ecdfbb 5751 eval "$as_ac_Header=no"
c906108c 5752fi
81ecdfbb 5753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 5754fi
81ecdfbb
RW
5755eval ac_res=\$$as_ac_Header
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5757$as_echo "$ac_res" >&6; }
5758eval as_val=\$$as_ac_Header
5759 if test "x$as_val" = x""yes; then :
5760 cat >>confdefs.h <<_ACEOF
5761#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5762_ACEOF
b7026657 5763
81ecdfbb 5764ac_header_dirent=$ac_hdr; break
c906108c
SS
5765fi
5766
81ecdfbb
RW
5767done
5768# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5769if test $ac_header_dirent = dirent.h; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5771$as_echo_n "checking for library containing opendir... " >&6; }
5772if test "${ac_cv_search_opendir+set}" = set; then :
5773 $as_echo_n "(cached) " >&6
c906108c 5774else
b7026657 5775 ac_func_search_save_LIBS=$LIBS
81ecdfbb 5776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5777/* end confdefs.h. */
5778
81ecdfbb
RW
5779/* Override any GCC internal prototype to avoid an error.
5780 Use char because int might match the return type of a GCC
5781 builtin and then its argument prototype would still apply. */
b7026657
AC
5782#ifdef __cplusplus
5783extern "C"
5784#endif
b7026657
AC
5785char opendir ();
5786int
5787main ()
5788{
81ecdfbb 5789return opendir ();
b7026657
AC
5790 ;
5791 return 0;
5792}
5793_ACEOF
81ecdfbb
RW
5794for ac_lib in '' dir; do
5795 if test -z "$ac_lib"; then
5796 ac_res="none required"
5797 else
5798 ac_res=-l$ac_lib
5799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5800 fi
5801 if ac_fn_c_try_link "$LINENO"; then :
5802 ac_cv_search_opendir=$ac_res
5803fi
5804rm -f core conftest.err conftest.$ac_objext \
5805 conftest$ac_exeext
5806 if test "${ac_cv_search_opendir+set}" = set; then :
5807 break
5808fi
5809done
5810if test "${ac_cv_search_opendir+set}" = set; then :
5811
b7026657 5812else
81ecdfbb
RW
5813 ac_cv_search_opendir=no
5814fi
5815rm conftest.$ac_ext
5816LIBS=$ac_func_search_save_LIBS
5817fi
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5819$as_echo "$ac_cv_search_opendir" >&6; }
5820ac_res=$ac_cv_search_opendir
5821if test "$ac_res" != no; then :
5822 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b7026657
AC
5823
5824fi
81ecdfbb
RW
5825
5826else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5828$as_echo_n "checking for library containing opendir... " >&6; }
5829if test "${ac_cv_search_opendir+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5831else
5832 ac_func_search_save_LIBS=$LIBS
5833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5834/* end confdefs.h. */
c906108c 5835
81ecdfbb
RW
5836/* Override any GCC internal prototype to avoid an error.
5837 Use char because int might match the return type of a GCC
5838 builtin and then its argument prototype would still apply. */
b7026657
AC
5839#ifdef __cplusplus
5840extern "C"
5841#endif
b7026657
AC
5842char opendir ();
5843int
5844main ()
5845{
81ecdfbb 5846return opendir ();
b7026657
AC
5847 ;
5848 return 0;
5849}
5850_ACEOF
81ecdfbb
RW
5851for ac_lib in '' x; do
5852 if test -z "$ac_lib"; then
5853 ac_res="none required"
5854 else
5855 ac_res=-l$ac_lib
5856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5857 fi
5858 if ac_fn_c_try_link "$LINENO"; then :
5859 ac_cv_search_opendir=$ac_res
b7026657 5860fi
81ecdfbb
RW
5861rm -f core conftest.err conftest.$ac_objext \
5862 conftest$ac_exeext
5863 if test "${ac_cv_search_opendir+set}" = set; then :
5864 break
5865fi
5866done
5867if test "${ac_cv_search_opendir+set}" = set; then :
5868
5869else
5870 ac_cv_search_opendir=no
c906108c 5871fi
81ecdfbb 5872rm conftest.$ac_ext
b7026657
AC
5873LIBS=$ac_func_search_save_LIBS
5874fi
81ecdfbb
RW
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5876$as_echo "$ac_cv_search_opendir" >&6; }
5877ac_res=$ac_cv_search_opendir
5878if test "$ac_res" != no; then :
5879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b7026657 5880
c906108c
SS
5881fi
5882
5883fi
5884
5885
5886sim_termio=""
81ecdfbb
RW
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
5888$as_echo_n "checking for struct termios... " >&6; }
5889if test "${ac_cv_termios_struct+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
b7026657 5891else
81ecdfbb 5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5893/* end confdefs.h. */
c906108c
SS
5894#include <sys/types.h>
5895#include <sys/termios.h>
b7026657
AC
5896int
5897main ()
5898{
c906108c
SS
5899static struct termios x;
5900 x.c_iflag = 0;
5901 x.c_oflag = 0;
5902 x.c_cflag = 0;
5903 x.c_lflag = 0;
5904 x.c_cc[NCCS] = 0;
b7026657
AC
5905 ;
5906 return 0;
5907}
5908_ACEOF
81ecdfbb 5909if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
5910 ac_cv_termios_struct=yes
5911else
81ecdfbb 5912 ac_cv_termios_struct=no
c906108c 5913fi
81ecdfbb 5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
5915fi
5916
81ecdfbb
RW
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
5918$as_echo "$ac_cv_termios_struct" >&6; }
c906108c
SS
5919if test $ac_cv_termios_struct = yes; then
5920 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5921fi
5922
5923if test "$ac_cv_termios_struct" = "yes"; then
81ecdfbb
RW
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
5925$as_echo_n "checking for c_line field in struct termios... " >&6; }
5926 if test "${ac_cv_termios_cline+set}" = set; then :
5927 $as_echo_n "(cached) " >&6
b7026657 5928else
81ecdfbb 5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5930/* end confdefs.h. */
c906108c
SS
5931#include <sys/types.h>
5932#include <sys/termios.h>
b7026657
AC
5933int
5934main ()
5935{
c906108c 5936static struct termios x; x.c_line = 0;
b7026657
AC
5937 ;
5938 return 0;
5939}
5940_ACEOF
81ecdfbb 5941if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
5942 ac_cv_termios_cline=yes
5943else
81ecdfbb 5944 ac_cv_termios_cline=no
c906108c 5945fi
81ecdfbb 5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
5947fi
5948
5949
81ecdfbb
RW
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
5951$as_echo "$ac_cv_termios_cline" >&6; }
c906108c
SS
5952 if test $ac_cv_termios_cline = yes; then
5953 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
5954 fi
5955else
5956 ac_cv_termios_cline=no
5957fi
5958
5959if test "$ac_cv_termios_struct" != "yes"; then
81ecdfbb
RW
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
5961$as_echo_n "checking for struct termio... " >&6; }
5962 if test "${ac_cv_termio_struct+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
b7026657 5964else
81ecdfbb 5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5966/* end confdefs.h. */
c906108c
SS
5967#include <sys/types.h>
5968#include <sys/termio.h>
b7026657
AC
5969int
5970main ()
5971{
c906108c
SS
5972static struct termio x;
5973 x.c_iflag = 0;
5974 x.c_oflag = 0;
5975 x.c_cflag = 0;
5976 x.c_lflag = 0;
5977 x.c_cc[NCC] = 0;
b7026657
AC
5978 ;
5979 return 0;
5980}
5981_ACEOF
81ecdfbb 5982if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
5983 ac_cv_termio_struct=yes
5984else
81ecdfbb 5985 ac_cv_termio_struct=no
c906108c 5986fi
81ecdfbb 5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
5988fi
5989
81ecdfbb
RW
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
5991$as_echo "$ac_cv_termio_struct" >&6; }
c906108c
SS
5992 if test $ac_cv_termio_struct = yes; then
5993 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
5994 fi
5995else
5996 ac_cv_termio_struct=no
5997fi
5998
5999if test "$ac_cv_termio_struct" = "yes"; then
81ecdfbb
RW
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
6001$as_echo_n "checking for c_line field in struct termio... " >&6; }
6002 if test "${ac_cv_termio_cline+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
b7026657 6004else
81ecdfbb 6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6006/* end confdefs.h. */
c906108c
SS
6007#include <sys/types.h>
6008#include <sys/termio.h>
b7026657
AC
6009int
6010main ()
6011{
c906108c 6012static struct termio x; x.c_line = 0;
b7026657
AC
6013 ;
6014 return 0;
6015}
6016_ACEOF
81ecdfbb 6017if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
6018 ac_cv_termio_cline=yes
6019else
81ecdfbb 6020 ac_cv_termio_cline=no
c906108c 6021fi
81ecdfbb 6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
6023fi
6024
6025
81ecdfbb
RW
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
6027$as_echo "$ac_cv_termio_cline" >&6; }
c906108c
SS
6028 if test $ac_cv_termio_cline = yes; then
6029 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
6030 fi
6031else
6032 ac_cv_termio_cline=no
6033fi
6034
81ecdfbb
RW
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
6036$as_echo_n "checking for struct statfs... " >&6; }
6037if test "${ac_cv_struct_statfs+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
1f362c96 6039else
81ecdfbb 6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6041/* end confdefs.h. */
1f362c96
AC
6042#include <sys/types.h>
6043#ifdef HAVE_SYS_PARAM_H
6044#include <sys/param.h>
6045#endif
6046#ifdef HAVE_SYS_MOUNT_H
6047#include <sys/mount.h>
6048#endif
6049#ifdef HAVE_SYS_VFS_H
6050#include <sys/vfs.h>
6051#endif
6052#ifdef HAVE_SYS_STATFS_H
6053#include <sys/statfs.h>
6054#endif
b7026657
AC
6055int
6056main ()
6057{
1f362c96 6058static struct statfs s;
b7026657
AC
6059 ;
6060 return 0;
6061}
6062_ACEOF
81ecdfbb 6063if ac_fn_c_try_compile "$LINENO"; then :
1f362c96
AC
6064 ac_cv_struct_statfs=yes
6065else
81ecdfbb 6066 ac_cv_struct_statfs=no
1f362c96 6067fi
81ecdfbb 6068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1f362c96
AC
6069fi
6070
81ecdfbb
RW
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
6072$as_echo "$ac_cv_struct_statfs" >&6; }
1f362c96 6073if test $ac_cv_struct_statfs = yes; then
b7026657 6074
81ecdfbb 6075$as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
1f362c96
AC
6076
6077fi
6078
81ecdfbb
RW
6079ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6080if test "x$ac_cv_type_long_long" = x""yes; then :
30e66173
MI
6081
6082cat >>confdefs.h <<_ACEOF
6083#define HAVE_LONG_LONG 1
6084_ACEOF
6085
6086
6087fi
6088
6089
c906108c 6090sim_devzero=""
81ecdfbb
RW
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
6092$as_echo_n "checking for /dev/zero... " >&6; }
6093if test "${ac_cv_devzero+set}" = set; then :
6094 $as_echo_n "(cached) " >&6
c906108c 6095else
81ecdfbb 6096 if test "$cross_compiling" = yes; then :
c906108c
SS
6097 ac_cv_devzero=no
6098else
81ecdfbb 6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6100/* end confdefs.h. */
c906108c
SS
6101#include <fcntl.h>
6102main () {
6103 char buf[2048];
6104 int i;
6105 int fd = open ("/dev/zero", O_RDONLY);
6106 if (fd < 0)
6107 return 1;
6108 for (i = 0; i < sizeof (buf); i++)
6109 buf[i] = 1;
6110 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
6111 return 1;
6112 for (i = 0; i < sizeof (buf); i++)
6113 if (buf[i])
6114 return 1;
6115 return 0;
6116}
b7026657 6117_ACEOF
81ecdfbb 6118if ac_fn_c_try_run "$LINENO"; then :
c906108c
SS
6119 ac_cv_devzero=yes
6120else
81ecdfbb 6121 ac_cv_devzero=no
c906108c 6122fi
81ecdfbb
RW
6123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6124 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 6125fi
81ecdfbb 6126
c906108c
SS
6127fi
6128
81ecdfbb
RW
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
6130$as_echo "$ac_cv_devzero" >&6; }
c906108c
SS
6131if test $ac_cv_devzero = yes; then
6132 sim_devzero="-DHAVE_DEVZERO"
6133else
6134 sim_devzero=""
6135fi
6136
81ecdfbb
RW
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
6138$as_echo_n "checking for common simulator directory... " >&6; }
c906108c 6139if test -f "${srcdir}/../common/callback.c"; then
81ecdfbb
RW
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6141$as_echo "yes" >&6; }
c906108c
SS
6142 sim_callback="callback.o targ-map.o"
6143 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
6144else
81ecdfbb
RW
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146$as_echo "no" >&6; }
c906108c
SS
6147 sim_callback=""
6148 sim_targ_vals=""
6149fi
6150
81ecdfbb
RW
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
6152$as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
d29d5195 6153if test -f "${srcdir}/../common/sim-fpu.c"; then
81ecdfbb
RW
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6155$as_echo "yes" >&6; }
3e5e53f9 6156 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
3a11ea24 6157 sim_fpu="sim-fpu.o"
d29d5195 6158else
81ecdfbb
RW
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160$as_echo "no" >&6; }
d29d5195 6161 sim_fpu_cflags=
b7026657 6162 sim_fpu=
c906108c 6163fi
cd0fc7c3 6164
68a3e151
NF
6165# Since we run commands on the build system, we have to create a
6166# separate config header for the build system if build != host.
6167if test x$host = x$build; then
6168 ac_config_commands="$ac_config_commands build-config.h"
6169
6170else
6171 tempdir=build.$$
6172 rm -rf $tempdir
6173 mkdir $tempdir
6174 cd $tempdir
6175 case ${srcdir} in
6176 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
6177 *) realsrcdir=../${srcdir};;
6178 esac
6179 saved_CFLAGS="${CFLAGS}"
6180 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
6181 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
6182 ${realsrcdir}/configure \
6183 --enable-languages=${enable_languages-all} \
6184 --target=$target_alias --host=$build_alias --build=$build_alias
6185 CFLAGS="${saved_CFLAGS}"
6186 mv config.h ../build-config.h
6187 cd ..
6188 rm -rf $tempdir
6189fi
6190
c906108c
SS
6191
6192
6193
6194
6195
4b164edf 6196
c906108c
SS
6197AR=${AR-ar}
6198
b7026657
AC
6199if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6201set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203$as_echo_n "checking for $ac_word... " >&6; }
6204if test "${ac_cv_prog_RANLIB+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
c906108c
SS
6206else
6207 if test -n "$RANLIB"; then
6208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6209else
b7026657
AC
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 6217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
6219 break 2
6220 fi
6221done
81ecdfbb
RW
6222 done
6223IFS=$as_save_IFS
b7026657 6224
c906108c
SS
6225fi
6226fi
b7026657 6227RANLIB=$ac_cv_prog_RANLIB
c906108c 6228if test -n "$RANLIB"; then
81ecdfbb
RW
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6230$as_echo "$RANLIB" >&6; }
b7026657 6231else
81ecdfbb
RW
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233$as_echo "no" >&6; }
b7026657
AC
6234fi
6235
81ecdfbb 6236
b7026657
AC
6237fi
6238if test -z "$ac_cv_prog_RANLIB"; then
6239 ac_ct_RANLIB=$RANLIB
6240 # Extract the first word of "ranlib", so it can be a program name with args.
6241set dummy ranlib; ac_word=$2
81ecdfbb
RW
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243$as_echo_n "checking for $ac_word... " >&6; }
6244if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
b7026657
AC
6246else
6247 if test -n "$ac_ct_RANLIB"; then
6248 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6249else
6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251for as_dir in $PATH
6252do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 6257 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
6259 break 2
6260 fi
6261done
81ecdfbb
RW
6262 done
6263IFS=$as_save_IFS
b7026657 6264
b7026657
AC
6265fi
6266fi
6267ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6268if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6270$as_echo "$ac_ct_RANLIB" >&6; }
b7026657 6271else
81ecdfbb
RW
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273$as_echo "no" >&6; }
b7026657
AC
6274fi
6275
81ecdfbb
RW
6276 if test "x$ac_ct_RANLIB" = x; then
6277 RANLIB=":"
6278 else
6279 case $cross_compiling:$ac_tool_warned in
6280yes:)
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6283ac_tool_warned=yes ;;
6284esac
6285 RANLIB=$ac_ct_RANLIB
6286 fi
c906108c 6287else
b7026657 6288 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
6289fi
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
d29d5195
MG
6331
6332
c906108c
SS
6333
6334
6335
81ecdfbb
RW
6336ac_config_files="$ac_config_files Makefile"
6337
6338ac_config_commands="$ac_config_commands default"
6339
b7026657 6340cat >confcache <<\_ACEOF
c906108c
SS
6341# This file is a shell script that caches the results of configure
6342# tests run on this system so they can be shared between configure
b7026657
AC
6343# scripts and configure runs, see configure's option --config-cache.
6344# It is not useful on other systems. If it contains results you don't
6345# want to keep, you may remove or edit it.
c906108c 6346#
b7026657
AC
6347# config.status only pays attention to the cache file if you give it
6348# the --recheck option to rerun configure.
c906108c 6349#
b7026657
AC
6350# `ac_cv_env_foo' variables (set or unset) will be overridden when
6351# loading this file, other *unset* `ac_cv_foo' will be assigned the
6352# following values.
6353
6354_ACEOF
6355
c906108c
SS
6356# The following way of writing the cache mishandles newlines in values,
6357# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 6358# So, we kill variables containing newlines.
c906108c
SS
6359# Ultrix sh set writes to stderr and can't be redirected directly,
6360# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
6361(
6362 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6363 eval ac_val=\$$ac_var
6364 case $ac_val in #(
6365 *${as_nl}*)
6366 case $ac_var in #(
6367 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6368$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6369 esac
6370 case $ac_var in #(
6371 _ | IFS | as_nl) ;; #(
6372 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6373 *) { eval $ac_var=; unset $ac_var;} ;;
6374 esac ;;
6375 esac
6376 done
6377
b7026657 6378 (set) 2>&1 |
81ecdfbb
RW
6379 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6380 *${as_nl}ac_space=\ *)
6381 # `set' does not quote correctly, so add quotes: double-quote
6382 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
6383 sed -n \
6384 "s/'/'\\\\''/g;
6385 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 6386 ;; #(
b7026657
AC
6387 *)
6388 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 6389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 6390 ;;
81ecdfbb
RW
6391 esac |
6392 sort
6393) |
b7026657 6394 sed '
81ecdfbb 6395 /^ac_cv_env_/b end
b7026657 6396 t clear
81ecdfbb 6397 :clear
b7026657
AC
6398 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6399 t end
81ecdfbb
RW
6400 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6401 :end' >>confcache
6402if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6403 if test -w "$cache_file"; then
6404 test "x$cache_file" != "x/dev/null" &&
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6406$as_echo "$as_me: updating cache $cache_file" >&6;}
b7026657 6407 cat confcache >$cache_file
c906108c 6408 else
81ecdfbb
RW
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6410$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
6411 fi
6412fi
6413rm -f confcache
6414
c906108c
SS
6415test "x$prefix" = xNONE && prefix=$ac_default_prefix
6416# Let make expand exec_prefix.
6417test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6418
c906108c
SS
6419DEFS=-DHAVE_CONFIG_H
6420
b7026657
AC
6421ac_libobjs=
6422ac_ltlibobjs=
6423for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6424 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
6425 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6426 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6427 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6428 # will be set to the directory where LIBOBJS objects are built.
6429 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6430 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
6431done
6432LIBOBJS=$ac_libobjs
c906108c 6433
b7026657
AC
6434LTLIBOBJS=$ac_ltlibobjs
6435
6436
6437
81ecdfbb 6438
b7026657 6439: ${CONFIG_STATUS=./config.status}
81ecdfbb 6440ac_write_fail=0
b7026657
AC
6441ac_clean_files_save=$ac_clean_files
6442ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6444$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6445as_write_fail=0
6446cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
6447#! $SHELL
6448# Generated by $as_me.
c906108c 6449# Run this file to recreate the current configuration.
c906108c 6450# Compiler output produced by configure, useful for debugging
b7026657 6451# configure, is in config.log if it exists.
c906108c 6452
b7026657
AC
6453debug=false
6454ac_cs_recheck=false
6455ac_cs_silent=false
b7026657 6456
81ecdfbb
RW
6457SHELL=\${CONFIG_SHELL-$SHELL}
6458export SHELL
6459_ASEOF
6460cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6461## -------------------- ##
6462## M4sh Initialization. ##
6463## -------------------- ##
6464
6465# Be more Bourne compatible
6466DUALCASE=1; export DUALCASE # for MKS sh
6467if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
6468 emulate sh
6469 NULLCMD=:
81ecdfbb 6470 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
6471 # is contrary to our usage. Disable this feature.
6472 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
6473 setopt NO_GLOB_SUBST
6474else
6475 case `(set -o) 2>/dev/null` in #(
6476 *posix*) :
6477 set -o posix ;; #(
6478 *) :
6479 ;;
6480esac
b7026657 6481fi
b7026657 6482
81ecdfbb
RW
6483
6484as_nl='
6485'
6486export as_nl
6487# Printing a long string crashes Solaris 7 /usr/bin/printf.
6488as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6489as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6490as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6491# Prefer a ksh shell builtin over an external printf program on Solaris,
6492# but without wasting forks for bash or zsh.
6493if test -z "$BASH_VERSION$ZSH_VERSION" \
6494 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6495 as_echo='print -r --'
6496 as_echo_n='print -rn --'
6497elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6498 as_echo='printf %s\n'
6499 as_echo_n='printf %s'
6500else
6501 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6502 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6503 as_echo_n='/usr/ucb/echo -n'
6504 else
6505 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6506 as_echo_n_body='eval
6507 arg=$1;
6508 case $arg in #(
6509 *"$as_nl"*)
6510 expr "X$arg" : "X\\(.*\\)$as_nl";
6511 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6512 esac;
6513 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6514 '
6515 export as_echo_n_body
6516 as_echo_n='sh -c $as_echo_n_body as_echo'
6517 fi
6518 export as_echo_body
6519 as_echo='sh -c $as_echo_body as_echo'
b7026657
AC
6520fi
6521
81ecdfbb
RW
6522# The user is always right.
6523if test "${PATH_SEPARATOR+set}" != set; then
6524 PATH_SEPARATOR=:
6525 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6526 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6527 PATH_SEPARATOR=';'
6528 }
6529fi
6530
6531
6532# IFS
6533# We need space, tab and new line, in precisely that order. Quoting is
6534# there to prevent editors from complaining about space-tab.
6535# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6536# splitting by setting IFS to empty value.)
6537IFS=" "" $as_nl"
6538
6539# Find who we are. Look in the path if we contain no directory separator.
6540case $0 in #((
6541 *[\\/]* ) as_myself=$0 ;;
6542 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6548 done
6549IFS=$as_save_IFS
b7026657 6550
81ecdfbb
RW
6551 ;;
6552esac
6553# We did not find ourselves, most probably we were run as `sh COMMAND'
6554# in which case we are not to be found in the path.
6555if test "x$as_myself" = x; then
6556 as_myself=$0
6557fi
6558if test ! -f "$as_myself"; then
6559 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6560 exit 1
6561fi
6562
6563# Unset variables that we do not need and which cause bugs (e.g. in
6564# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6565# suppresses any "Segmentation fault" message there. '((' could
6566# trigger a bug in pdksh 5.2.14.
6567for as_var in BASH_ENV ENV MAIL MAILPATH
6568do eval test x\${$as_var+set} = xset \
6569 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6570done
b7026657
AC
6571PS1='$ '
6572PS2='> '
6573PS4='+ '
6574
6575# NLS nuisances.
81ecdfbb
RW
6576LC_ALL=C
6577export LC_ALL
6578LANGUAGE=C
6579export LANGUAGE
6580
6581# CDPATH.
6582(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6583
6584
6585# as_fn_error ERROR [LINENO LOG_FD]
6586# ---------------------------------
6587# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6588# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6589# script with status $?, using 1 if that was 0.
6590as_fn_error ()
6591{
6592 as_status=$?; test $as_status -eq 0 && as_status=1
6593 if test "$3"; then
6594 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6595 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b7026657 6596 fi
81ecdfbb
RW
6597 $as_echo "$as_me: error: $1" >&2
6598 as_fn_exit $as_status
6599} # as_fn_error
6600
c906108c 6601
81ecdfbb
RW
6602# as_fn_set_status STATUS
6603# -----------------------
6604# Set $? to STATUS, without forking.
6605as_fn_set_status ()
6606{
6607 return $1
6608} # as_fn_set_status
6609
6610# as_fn_exit STATUS
6611# -----------------
6612# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6613as_fn_exit ()
6614{
6615 set +e
6616 as_fn_set_status $1
6617 exit $1
6618} # as_fn_exit
6619
6620# as_fn_unset VAR
6621# ---------------
6622# Portably unset VAR.
6623as_fn_unset ()
6624{
6625 { eval $1=; unset $1;}
6626}
6627as_unset=as_fn_unset
6628# as_fn_append VAR VALUE
6629# ----------------------
6630# Append the text in VALUE to the end of the definition contained in VAR. Take
6631# advantage of any shell optimizations that allow amortized linear growth over
6632# repeated appends, instead of the typical quadratic growth present in naive
6633# implementations.
6634if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6635 eval 'as_fn_append ()
6636 {
6637 eval $1+=\$2
6638 }'
6639else
6640 as_fn_append ()
6641 {
6642 eval $1=\$$1\$2
6643 }
6644fi # as_fn_append
6645
6646# as_fn_arith ARG...
6647# ------------------
6648# Perform arithmetic evaluation on the ARGs, and store the result in the
6649# global $as_val. Take advantage of shells that can avoid forks. The arguments
6650# must be portable across $(()) and expr.
6651if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6652 eval 'as_fn_arith ()
6653 {
6654 as_val=$(( $* ))
6655 }'
6656else
6657 as_fn_arith ()
6658 {
6659 as_val=`expr "$@" || test $? -eq 1`
6660 }
6661fi # as_fn_arith
6662
6663
6664if expr a : '\(a\)' >/dev/null 2>&1 &&
6665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
6666 as_expr=expr
6667else
6668 as_expr=false
6669fi
c906108c 6670
81ecdfbb 6671if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
6672 as_basename=basename
6673else
6674 as_basename=false
6675fi
c906108c 6676
81ecdfbb
RW
6677if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6678 as_dirname=dirname
6679else
6680 as_dirname=false
6681fi
c906108c 6682
81ecdfbb 6683as_me=`$as_basename -- "$0" ||
b7026657
AC
6684$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6685 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
6686 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6687$as_echo X/"$0" |
6688 sed '/^.*\/\([^/][^/]*\)\/*$/{
6689 s//\1/
6690 q
6691 }
6692 /^X\/\(\/\/\)$/{
6693 s//\1/
6694 q
6695 }
6696 /^X\/\(\/\).*/{
6697 s//\1/
6698 q
6699 }
6700 s/.*/./; q'`
b7026657 6701
b7026657
AC
6702# Avoid depending upon Character Ranges.
6703as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6704as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6705as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6706as_cr_digits='0123456789'
6707as_cr_alnum=$as_cr_Letters$as_cr_digits
6708
81ecdfbb
RW
6709ECHO_C= ECHO_N= ECHO_T=
6710case `echo -n x` in #(((((
6711-n*)
6712 case `echo 'xy\c'` in
6713 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6714 xy) ECHO_C='\c';;
6715 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6716 ECHO_T=' ';;
6717 esac;;
6718*)
6719 ECHO_N='-n';;
b7026657
AC
6720esac
6721
b7026657 6722rm -f conf$$ conf$$.exe conf$$.file
81ecdfbb
RW
6723if test -d conf$$.dir; then
6724 rm -f conf$$.dir/conf$$.file
6725else
6726 rm -f conf$$.dir
6727 mkdir conf$$.dir 2>/dev/null
6728fi
6729if (echo >conf$$.file) 2>/dev/null; then
6730 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 6731 as_ln_s='ln -s'
81ecdfbb
RW
6732 # ... but there are two gotchas:
6733 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6734 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6735 # In both cases, we have to default to `cp -p'.
6736 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6737 as_ln_s='cp -p'
6738 elif ln conf$$.file conf$$ 2>/dev/null; then
6739 as_ln_s=ln
6740 else
6741 as_ln_s='cp -p'
c906108c 6742 fi
b7026657
AC
6743else
6744 as_ln_s='cp -p'
6745fi
81ecdfbb
RW
6746rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6747rmdir conf$$.dir 2>/dev/null
6748
6749
6750# as_fn_mkdir_p
6751# -------------
6752# Create "$as_dir" as a directory, including parents if necessary.
6753as_fn_mkdir_p ()
6754{
6755
6756 case $as_dir in #(
6757 -*) as_dir=./$as_dir;;
6758 esac
6759 test -d "$as_dir" || eval $as_mkdir_p || {
6760 as_dirs=
6761 while :; do
6762 case $as_dir in #(
6763 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6764 *) as_qdir=$as_dir;;
6765 esac
6766 as_dirs="'$as_qdir' $as_dirs"
6767 as_dir=`$as_dirname -- "$as_dir" ||
6768$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6769 X"$as_dir" : 'X\(//\)[^/]' \| \
6770 X"$as_dir" : 'X\(//\)$' \| \
6771 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6772$as_echo X"$as_dir" |
6773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6774 s//\1/
6775 q
6776 }
6777 /^X\(\/\/\)[^/].*/{
6778 s//\1/
6779 q
6780 }
6781 /^X\(\/\/\)$/{
6782 s//\1/
6783 q
6784 }
6785 /^X\(\/\).*/{
6786 s//\1/
6787 q
6788 }
6789 s/.*/./; q'`
6790 test -d "$as_dir" && break
6791 done
6792 test -z "$as_dirs" || eval "mkdir $as_dirs"
6793 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
b7026657 6794
81ecdfbb
RW
6795
6796} # as_fn_mkdir_p
b7026657 6797if mkdir -p . 2>/dev/null; then
81ecdfbb 6798 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
6799else
6800 test -d ./-p && rmdir ./-p
6801 as_mkdir_p=false
6802fi
6803
81ecdfbb
RW
6804if test -x / >/dev/null 2>&1; then
6805 as_test_x='test -x'
6806else
6807 if ls -dL / >/dev/null 2>&1; then
6808 as_ls_L_option=L
6809 else
6810 as_ls_L_option=
6811 fi
6812 as_test_x='
6813 eval sh -c '\''
6814 if test -d "$1"; then
6815 test -d "$1/.";
6816 else
6817 case $1 in #(
6818 -*)set "./$1";;
6819 esac;
6820 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6821 ???[sx]*):;;*)false;;esac;fi
6822 '\'' sh
6823 '
6824fi
6825as_executable_p=$as_test_x
b7026657
AC
6826
6827# Sed expression to map a string onto a valid CPP name.
6828as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6829
6830# Sed expression to map a string onto a valid variable name.
6831as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6832
6833
b7026657 6834exec 6>&1
81ecdfbb
RW
6835## ----------------------------------- ##
6836## Main body of $CONFIG_STATUS script. ##
6837## ----------------------------------- ##
6838_ASEOF
6839test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6840
6841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6842# Save the log message, to keep $0 and so on meaningful, and to
b7026657 6843# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
6844# values after options handling.
6845ac_log="
b7026657 6846This file was extended by $as_me, which was
81ecdfbb 6847generated by GNU Autoconf 2.64. Invocation command line was
b7026657
AC
6848
6849 CONFIG_FILES = $CONFIG_FILES
6850 CONFIG_HEADERS = $CONFIG_HEADERS
6851 CONFIG_LINKS = $CONFIG_LINKS
6852 CONFIG_COMMANDS = $CONFIG_COMMANDS
6853 $ $0 $@
6854
81ecdfbb
RW
6855on `(hostname || uname -n) 2>/dev/null | sed 1q`
6856"
6857
b7026657
AC
6858_ACEOF
6859
81ecdfbb
RW
6860case $ac_config_files in *"
6861"*) set x $ac_config_files; shift; ac_config_files=$*;;
6862esac
b7026657 6863
81ecdfbb
RW
6864case $ac_config_headers in *"
6865"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6866esac
b7026657 6867
b7026657 6868
81ecdfbb
RW
6869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6870# Files that config.status was made for.
6871config_files="$ac_config_files"
6872config_headers="$ac_config_headers"
6873config_commands="$ac_config_commands"
b7026657 6874
81ecdfbb 6875_ACEOF
b7026657 6876
81ecdfbb 6877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 6878ac_cs_usage="\
81ecdfbb
RW
6879\`$as_me' instantiates files and other configuration actions
6880from templates according to the current configuration. Unless the files
6881and actions are specified as TAGs, all are instantiated by default.
b7026657 6882
81ecdfbb 6883Usage: $0 [OPTION]... [TAG]...
b7026657
AC
6884
6885 -h, --help print this help, then exit
81ecdfbb
RW
6886 -V, --version print version number and configuration settings, then exit
6887 -q, --quiet, --silent
6888 do not print progress messages
b7026657
AC
6889 -d, --debug don't remove temporary files
6890 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
6891 --file=FILE[:TEMPLATE]
6892 instantiate the configuration file FILE
6893 --header=FILE[:TEMPLATE]
6894 instantiate the configuration header FILE
b7026657
AC
6895
6896Configuration files:
6897$config_files
6898
6899Configuration headers:
6900$config_headers
6901
6902Configuration commands:
6903$config_commands
6904
81ecdfbb 6905Report bugs to the package provider."
b7026657 6906
81ecdfbb
RW
6907_ACEOF
6908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657
AC
6909ac_cs_version="\\
6910config.status
81ecdfbb
RW
6911configured by $0, generated by GNU Autoconf 2.64,
6912 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b7026657 6913
81ecdfbb 6914Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
6915This config.status script is free software; the Free Software Foundation
6916gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
6917
6918ac_pwd='$ac_pwd'
6919srcdir='$srcdir'
6920INSTALL='$INSTALL'
6921test -n "\$AWK" || AWK=awk
b7026657
AC
6922_ACEOF
6923
81ecdfbb
RW
6924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6925# The default lists apply if the user does not specify any file.
b7026657
AC
6926ac_need_defaults=:
6927while test $# != 0
6928do
6929 case $1 in
6930 --*=*)
81ecdfbb
RW
6931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
6933 ac_shift=:
6934 ;;
81ecdfbb 6935 *)
b7026657
AC
6936 ac_option=$1
6937 ac_optarg=$2
6938 ac_shift=shift
6939 ;;
b7026657
AC
6940 esac
6941
6942 case $ac_option in
6943 # Handling of the options.
b7026657
AC
6944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6945 ac_cs_recheck=: ;;
81ecdfbb
RW
6946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6947 $as_echo "$ac_cs_version"; exit ;;
6948 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
6949 debug=: ;;
6950 --file | --fil | --fi | --f )
6951 $ac_shift
81ecdfbb
RW
6952 case $ac_optarg in
6953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6954 esac
6955 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
6956 ac_need_defaults=false;;
6957 --header | --heade | --head | --hea )
6958 $ac_shift
81ecdfbb
RW
6959 case $ac_optarg in
6960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6961 esac
6962 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 6963 ac_need_defaults=false;;
81ecdfbb
RW
6964 --he | --h)
6965 # Conflict between --help and --header
6966 as_fn_error "ambiguous option: \`$1'
6967Try \`$0 --help' for more information.";;
6968 --help | --hel | -h )
6969 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
6970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6971 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6972 ac_cs_silent=: ;;
6973
6974 # This is an error.
81ecdfbb
RW
6975 -*) as_fn_error "unrecognized option: \`$1'
6976Try \`$0 --help' for more information." ;;
b7026657 6977
81ecdfbb
RW
6978 *) as_fn_append ac_config_targets " $1"
6979 ac_need_defaults=false ;;
b7026657
AC
6980
6981 esac
6982 shift
c906108c 6983done
b7026657
AC
6984
6985ac_configure_extra_args=
6986
6987if $ac_cs_silent; then
6988 exec 6>/dev/null
6989 ac_configure_extra_args="$ac_configure_extra_args --silent"
6990fi
6991
6992_ACEOF
81ecdfbb 6993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 6994if \$ac_cs_recheck; then
81ecdfbb
RW
6995 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6996 shift
6997 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6998 CONFIG_SHELL='$SHELL'
6999 export CONFIG_SHELL
7000 exec "\$@"
c906108c 7001fi
c906108c 7002
b7026657 7003_ACEOF
81ecdfbb
RW
7004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7005exec 5>>config.log
7006{
7007 echo
7008 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7009## Running $as_me. ##
7010_ASBOX
7011 $as_echo "$ac_log"
7012} >&5
c906108c 7013
81ecdfbb
RW
7014_ACEOF
7015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7016_ACEOF
b7026657 7017
81ecdfbb 7018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 7019
81ecdfbb 7020# Handling of arguments.
b7026657
AC
7021for ac_config_target in $ac_config_targets
7022do
81ecdfbb
RW
7023 case $ac_config_target in
7024 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
68a3e151 7025 "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;;
81ecdfbb
RW
7026 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7027 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7028
7029 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 7030 esac
b7026657 7031done
c906108c 7032
81ecdfbb 7033
b7026657
AC
7034# If the user did not use the arguments to specify the items to instantiate,
7035# then the envvar interface is used. Set only those that are not.
7036# We use the long form for the default assignment because of an extremely
7037# bizarre bug on SunOS 4.1.3.
7038if $ac_need_defaults; then
7039 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7040 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7041 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7042fi
7043
7044# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 7045# simply because there is no reason against having it here, and in addition,
b7026657 7046# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
7047# Hook for its removal unless debugging.
7048# Note that there is a small window in which the directory will not be cleaned:
7049# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
7050$debug ||
7051{
81ecdfbb
RW
7052 tmp=
7053 trap 'exit_status=$?
7054 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7055' 0
7056 trap 'as_fn_exit 1' 1 2 13 15
b7026657 7057}
b7026657
AC
7058# Create a (secure) tmp directory for tmp files.
7059
7060{
81ecdfbb 7061 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b7026657
AC
7062 test -n "$tmp" && test -d "$tmp"
7063} ||
7064{
81ecdfbb
RW
7065 tmp=./conf$$-$RANDOM
7066 (umask 077 && mkdir "$tmp")
7067} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7068
7069# Set up the scripts for CONFIG_FILES section.
7070# No need to generate them if there are no CONFIG_FILES.
7071# This happens for instance with `./config.status config.h'.
7072if test -n "$CONFIG_FILES"; then
7073
7074
7075ac_cr=`echo X | tr X '\015'`
7076# On cygwin, bash can eat \r inside `` if the user requested igncr.
7077# But we know of no other shell where ac_cr would be empty at this
7078# point, so we can use a bashism as a fallback.
7079if test "x$ac_cr" = x; then
7080 eval ac_cr=\$\'\\r\'
7081fi
7082ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7083if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7084 ac_cs_awk_cr='\r'
7085else
7086 ac_cs_awk_cr=$ac_cr
7087fi
7088
7089echo 'BEGIN {' >"$tmp/subs1.awk" &&
7090_ACEOF
7091
7092
b7026657 7093{
81ecdfbb
RW
7094 echo "cat >conf$$subs.awk <<_ACEOF" &&
7095 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7096 echo "_ACEOF"
7097} >conf$$subs.sh ||
7098 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7099ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7100ac_delim='%!_!# '
7101for ac_last_try in false false false false false :; do
7102 . ./conf$$subs.sh ||
7103 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7104
7105 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7106 if test $ac_delim_n = $ac_delim_num; then
7107 break
7108 elif $ac_last_try; then
7109 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7110 else
7111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7112 fi
7113done
7114rm -f conf$$subs.sh
7115
7116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7117cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7118_ACEOF
7119sed -n '
7120h
7121s/^/S["/; s/!.*/"]=/
7122p
7123g
7124s/^[^!]*!//
7125:repl
7126t repl
7127s/'"$ac_delim"'$//
7128t delim
7129:nl
7130h
7131s/\(.\{148\}\).*/\1/
7132t more1
7133s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7134p
7135n
7136b repl
7137:more1
7138s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7139p
7140g
7141s/.\{148\}//
7142t nl
7143:delim
7144h
7145s/\(.\{148\}\).*/\1/
7146t more2
7147s/["\\]/\\&/g; s/^/"/; s/$/"/
7148p
7149b
7150:more2
7151s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7152p
7153g
7154s/.\{148\}//
7155t delim
7156' <conf$$subs.awk | sed '
7157/^[^""]/{
7158 N
7159 s/\n//
b7026657 7160}
81ecdfbb
RW
7161' >>$CONFIG_STATUS || ac_write_fail=1
7162rm -f conf$$subs.awk
7163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7164_ACAWK
7165cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7166 for (key in S) S_is_set[key] = 1
7167 FS = "\a"
b7026657 7168
81ecdfbb
RW
7169}
7170{
7171 line = $ 0
7172 nfields = split(line, field, "@")
7173 substed = 0
7174 len = length(field[1])
7175 for (i = 2; i < nfields; i++) {
7176 key = field[i]
7177 keylen = length(key)
7178 if (S_is_set[key]) {
7179 value = S[key]
7180 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7181 len += length(value) + length(field[++i])
7182 substed = 1
7183 } else
7184 len += 1 + keylen
7185 }
b7026657 7186
81ecdfbb
RW
7187 print line
7188}
b7026657 7189
81ecdfbb
RW
7190_ACAWK
7191_ACEOF
7192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7193if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7194 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7195else
7196 cat
7197fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7198 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7199_ACEOF
7200
7201# VPATH may cause trouble with some makes, so we remove $(srcdir),
7202# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7203# trailing colons and then remove the whole line if VPATH becomes empty
7204# (actually we leave an empty line to preserve line numbers).
7205if test "x$srcdir" = x.; then
7206 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7207s/:*\$(srcdir):*/:/
7208s/:*\${srcdir}:*/:/
7209s/:*@srcdir@:*/:/
7210s/^\([^=]*=[ ]*\):*/\1/
7211s/:*$//
7212s/^[^=]*=[ ]*$//
7213}'
7214fi
b7026657 7215
81ecdfbb
RW
7216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7217fi # test -n "$CONFIG_FILES"
b7026657 7218
81ecdfbb
RW
7219# Set up the scripts for CONFIG_HEADERS section.
7220# No need to generate them if there are no CONFIG_HEADERS.
7221# This happens for instance with `./config.status Makefile'.
7222if test -n "$CONFIG_HEADERS"; then
7223cat >"$tmp/defines.awk" <<\_ACAWK ||
7224BEGIN {
b7026657
AC
7225_ACEOF
7226
81ecdfbb
RW
7227# Transform confdefs.h into an awk script `defines.awk', embedded as
7228# here-document in config.status, that substitutes the proper values into
7229# config.h.in to produce config.h.
7230
7231# Create a delimiter string that does not exist in confdefs.h, to ease
7232# handling of long lines.
7233ac_delim='%!_!# '
7234for ac_last_try in false false :; do
7235 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7236 if test -z "$ac_t"; then
7237 break
7238 elif $ac_last_try; then
7239 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7240 else
7241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 7242 fi
81ecdfbb 7243done
c906108c 7244
81ecdfbb
RW
7245# For the awk script, D is an array of macro values keyed by name,
7246# likewise P contains macro parameters if any. Preserve backslash
7247# newline sequences.
7248
7249ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7250sed -n '
7251s/.\{148\}/&'"$ac_delim"'/g
7252t rset
7253:rset
7254s/^[ ]*#[ ]*define[ ][ ]*/ /
7255t def
7256d
7257:def
7258s/\\$//
7259t bsnl
7260s/["\\]/\\&/g
7261s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7262D["\1"]=" \3"/p
7263s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7264d
7265:bsnl
7266s/["\\]/\\&/g
7267s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7268D["\1"]=" \3\\\\\\n"\\/p
7269t cont
7270s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7271t cont
7272d
7273:cont
7274n
7275s/.\{148\}/&'"$ac_delim"'/g
7276t clear
7277:clear
7278s/\\$//
7279t bsnlc
7280s/["\\]/\\&/g; s/^/"/; s/$/"/p
7281d
7282:bsnlc
7283s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7284b cont
7285' <confdefs.h | sed '
7286s/'"$ac_delim"'/"\\\
7287"/g' >>$CONFIG_STATUS || ac_write_fail=1
7288
7289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7290 for (key in D) D_is_set[key] = 1
7291 FS = "\a"
7292}
7293/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7294 line = \$ 0
7295 split(line, arg, " ")
7296 if (arg[1] == "#") {
7297 defundef = arg[2]
7298 mac1 = arg[3]
7299 } else {
7300 defundef = substr(arg[1], 2)
7301 mac1 = arg[2]
7302 }
7303 split(mac1, mac2, "(") #)
7304 macro = mac2[1]
7305 prefix = substr(line, 1, index(line, defundef) - 1)
7306 if (D_is_set[macro]) {
7307 # Preserve the white space surrounding the "#".
7308 print prefix "define", macro P[macro] D[macro]
7309 next
7310 } else {
7311 # Replace #undef with comments. This is necessary, for example,
7312 # in the case of _POSIX_SOURCE, which is predefined and required
7313 # on some systems where configure will not decide to define it.
7314 if (defundef == "undef") {
7315 print "/*", prefix defundef, macro, "*/"
7316 next
7317 }
7318 }
7319}
7320{ print }
7321_ACAWK
b7026657 7322_ACEOF
81ecdfbb
RW
7323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7324 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7325fi # test -n "$CONFIG_HEADERS"
7326
7327
7328eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7329shift
7330for ac_tag
7331do
7332 case $ac_tag in
7333 :[FHLC]) ac_mode=$ac_tag; continue;;
7334 esac
7335 case $ac_mode$ac_tag in
7336 :[FHL]*:*);;
7337 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7338 :[FH]-) ac_tag=-:-;;
7339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7340 esac
7341 ac_save_IFS=$IFS
7342 IFS=:
7343 set x $ac_tag
7344 IFS=$ac_save_IFS
7345 shift
7346 ac_file=$1
7347 shift
7348
7349 case $ac_mode in
7350 :L) ac_source=$1;;
7351 :[FH])
7352 ac_file_inputs=
7353 for ac_f
7354 do
7355 case $ac_f in
7356 -) ac_f="$tmp/stdin";;
7357 *) # Look for the file first in the build tree, then in the source tree
7358 # (if the path is not absolute). The absolute path cannot be DOS-style,
7359 # because $ac_f cannot contain `:'.
7360 test -f "$ac_f" ||
7361 case $ac_f in
7362 [\\/$]*) false;;
7363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7364 esac ||
7365 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7366 esac
7367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7368 as_fn_append ac_file_inputs " '$ac_f'"
7369 done
7370
7371 # Let's still pretend it is `configure' which instantiates (i.e., don't
7372 # use $as_me), people would be surprised to read:
7373 # /* config.h. Generated by config.status. */
7374 configure_input='Generated from '`
7375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7376 `' by configure.'
7377 if test x"$ac_file" != x-; then
7378 configure_input="$ac_file. $configure_input"
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7380$as_echo "$as_me: creating $ac_file" >&6;}
7381 fi
7382 # Neutralize special characters interpreted by sed in replacement strings.
7383 case $configure_input in #(
7384 *\&* | *\|* | *\\* )
7385 ac_sed_conf_input=`$as_echo "$configure_input" |
7386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7387 *) ac_sed_conf_input=$configure_input;;
7388 esac
7389
7390 case $ac_tag in
7391 *:-:* | *:-) cat >"$tmp/stdin" \
7392 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7393 esac
7394 ;;
c906108c
SS
7395 esac
7396
81ecdfbb 7397 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
7398$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7399 X"$ac_file" : 'X\(//\)[^/]' \| \
7400 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
7401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7402$as_echo X"$ac_file" |
7403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7404 s//\1/
7405 q
7406 }
7407 /^X\(\/\/\)[^/].*/{
7408 s//\1/
7409 q
7410 }
7411 /^X\(\/\/\)$/{
7412 s//\1/
7413 q
7414 }
7415 /^X\(\/\).*/{
7416 s//\1/
7417 q
7418 }
7419 s/.*/./; q'`
7420 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
7421 ac_builddir=.
7422
81ecdfbb
RW
7423case "$ac_dir" in
7424.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7425*)
7426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7427 # A ".." for each directory in $ac_dir_suffix.
7428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7429 case $ac_top_builddir_sub in
7430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7432 esac ;;
7433esac
7434ac_abs_top_builddir=$ac_pwd
7435ac_abs_builddir=$ac_pwd$ac_dir_suffix
7436# for backward compatibility:
7437ac_top_builddir=$ac_top_build_prefix
c906108c 7438
b7026657 7439case $srcdir in
81ecdfbb 7440 .) # We are building in place.
b7026657 7441 ac_srcdir=.
81ecdfbb
RW
7442 ac_top_srcdir=$ac_top_builddir_sub
7443 ac_abs_top_srcdir=$ac_pwd ;;
7444 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 7445 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
7446 ac_top_srcdir=$srcdir
7447 ac_abs_top_srcdir=$srcdir ;;
7448 *) # Relative name.
7449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7450 ac_top_srcdir=$ac_top_build_prefix$srcdir
7451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 7452esac
81ecdfbb 7453ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 7454
b7026657 7455
81ecdfbb
RW
7456 case $ac_mode in
7457 :F)
7458 #
7459 # CONFIG_FILE
7460 #
b7026657
AC
7461
7462 case $INSTALL in
7463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 7464 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 7465 esac
81ecdfbb 7466_ACEOF
c906108c 7467
81ecdfbb
RW
7468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7469# If the template does not know about datarootdir, expand it.
7470# FIXME: This hack should be removed a few years after 2.60.
7471ac_datarootdir_hack=; ac_datarootdir_seen=
7472ac_sed_dataroot='
7473/datarootdir/ {
7474 p
7475 q
7476}
7477/@datadir@/p
7478/@docdir@/p
7479/@infodir@/p
7480/@localedir@/p
7481/@mandir@/p'
7482case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7483*datarootdir*) ac_datarootdir_seen=yes;;
7484*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7486$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7487_ACEOF
7488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7489 ac_datarootdir_hack='
7490 s&@datadir@&$datadir&g
7491 s&@docdir@&$docdir&g
7492 s&@infodir@&$infodir&g
7493 s&@localedir@&$localedir&g
7494 s&@mandir@&$mandir&g
7495 s&\\\${datarootdir}&$datarootdir&g' ;;
7496esac
b7026657 7497_ACEOF
81ecdfbb
RW
7498
7499# Neutralize VPATH when `$srcdir' = `.'.
7500# Shell code in configure.ac might set extrasub.
7501# FIXME: do we really want to maintain this feature?
7502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7503ac_sed_extra="$ac_vpsub
b7026657
AC
7504$extrasub
7505_ACEOF
81ecdfbb 7506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
7507:t
7508/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
7509s|@configure_input@|$ac_sed_conf_input|;t t
7510s&@top_builddir@&$ac_top_builddir_sub&;t t
7511s&@top_build_prefix@&$ac_top_build_prefix&;t t
7512s&@srcdir@&$ac_srcdir&;t t
7513s&@abs_srcdir@&$ac_abs_srcdir&;t t
7514s&@top_srcdir@&$ac_top_srcdir&;t t
7515s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7516s&@builddir@&$ac_builddir&;t t
7517s&@abs_builddir@&$ac_abs_builddir&;t t
7518s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7519s&@INSTALL@&$ac_INSTALL&;t t
7520$ac_datarootdir_hack
7521"
7522eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7523 || as_fn_error "could not create $ac_file" "$LINENO" 5
7524
7525test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7526 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7527 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7529which seems to be undefined. Please make sure it is defined." >&5
7530$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7531which seems to be undefined. Please make sure it is defined." >&2;}
7532
7533 rm -f "$tmp/stdin"
b7026657 7534 case $ac_file in
81ecdfbb
RW
7535 -) cat "$tmp/out" && rm -f "$tmp/out";;
7536 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7537 esac \
7538 || as_fn_error "could not create $ac_file" "$LINENO" 5
7539 ;;
7540 :H)
7541 #
7542 # CONFIG_HEADER
7543 #
b7026657 7544 if test x"$ac_file" != x-; then
81ecdfbb
RW
7545 {
7546 $as_echo "/* $configure_input */" \
7547 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7548 } >"$tmp/config.h" \
7549 || as_fn_error "could not create $ac_file" "$LINENO" 5
7550 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7552$as_echo "$as_me: $ac_file is unchanged" >&6;}
b7026657 7553 else
81ecdfbb
RW
7554 rm -f "$ac_file"
7555 mv "$tmp/config.h" "$ac_file" \
7556 || as_fn_error "could not create $ac_file" "$LINENO" 5
c906108c 7557 fi
b7026657 7558 else
81ecdfbb
RW
7559 $as_echo "/* $configure_input */" \
7560 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7561 || as_fn_error "could not create -" "$LINENO" 5
c906108c 7562 fi
81ecdfbb 7563 ;;
b7026657 7564
81ecdfbb
RW
7565 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7566$as_echo "$as_me: executing $ac_file commands" >&6;}
7567 ;;
7568 esac
b7026657 7569
b7026657 7570
81ecdfbb 7571 case $ac_file$ac_mode in
68a3e151 7572 "build-config.h":C) cp config.h build-config.h ;;
81ecdfbb 7573 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
c906108c 7574
b7026657 7575 esac
81ecdfbb 7576done # for ac_tag
c906108c 7577
b7026657 7578
81ecdfbb 7579as_fn_exit 0
b7026657 7580_ACEOF
b7026657
AC
7581ac_clean_files=$ac_clean_files_save
7582
81ecdfbb
RW
7583test $ac_write_fail = 0 ||
7584 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7585
b7026657
AC
7586
7587# configure is writing to config.log, and then calls config.status.
7588# config.status does its own redirection, appending to config.log.
7589# Unfortunately, on DOS this fails, as config.log is still kept open
7590# by configure, so config.status won't be able to write to it; its
7591# output is simply discarded. So we exec the FD to /dev/null,
7592# effectively closing config.log, so it can be properly (re)opened and
7593# appended to by config.status. When coming back to configure, we
7594# need to make the FD available again.
7595if test "$no_create" != yes; then
7596 ac_cs_success=:
7597 ac_config_status_args=
7598 test "$silent" = yes &&
7599 ac_config_status_args="$ac_config_status_args --quiet"
7600 exec 5>/dev/null
7601 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7602 exec 5>>config.log
7603 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7604 # would make configure fail if this is the last instruction.
81ecdfbb
RW
7605 $ac_cs_success || as_fn_exit $?
7606fi
7607if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7609$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 7610fi
c906108c 7611
This page took 1.010761 seconds and 4 git commands to generate.