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