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