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