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