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