sim: drop --enable-sim-{regparm,stdcall} options
[deliverable/binutils-gdb.git] / sim / ppc / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
b7026657 8#
b7026657
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c906108c 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b7026657 31fi
c906108c 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
b7026657 79fi
c906108c
SS
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
b7026657
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
c906108c 124
b7026657 125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
b7026657 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
c906108c 356
81ecdfbb
RW
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
c906108c 379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
c906108c 385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c906108c 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
b7026657
AC
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c906108c 410
b7026657
AC
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
c906108c 417
c906108c 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
b7026657 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
b7026657 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 436 t loop
81ecdfbb 437 s/-\n.*//
b7026657 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657
AC
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
b7026657
AC
446 # Exit status is that of the last command.
447 exit
448}
c906108c 449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
b7026657 461esac
c906108c 462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
b7026657 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
b7026657 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
b7026657 483 fi
b7026657
AC
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c906108c 489
b7026657 490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
c906108c 496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c906108c 519
b7026657
AC
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 522
b7026657
AC
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
c906108c 528
b7026657
AC
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 533
c906108c 534#
b7026657 535# Initializations.
c906108c 536#
b7026657 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
b7026657 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
b7026657
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
b7026657
AC
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
b7026657
AC
553
554ac_unique_file="Makefile.in"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
81ecdfbb 558#ifdef HAVE_SYS_TYPES_H
b7026657
AC
559# include <sys/types.h>
560#endif
81ecdfbb 561#ifdef HAVE_SYS_STAT_H
b7026657
AC
562# include <sys/stat.h>
563#endif
81ecdfbb 564#ifdef STDC_HEADERS
b7026657
AC
565# include <stdlib.h>
566# include <stddef.h>
567#else
81ecdfbb 568# ifdef HAVE_STDLIB_H
b7026657
AC
569# include <stdlib.h>
570# endif
571#endif
81ecdfbb
RW
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
81ecdfbb 578#ifdef HAVE_STRINGS_H
b7026657
AC
579# include <strings.h>
580#endif
81ecdfbb 581#ifdef HAVE_INTTYPES_H
b7026657 582# include <inttypes.h>
b7026657 583#endif
81ecdfbb
RW
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
b7026657
AC
588# include <unistd.h>
589#endif"
c906108c 590
81ecdfbb
RW
591ac_subst_vars='LTLIBOBJS
592sim_fpu
593sim_fpu_cflags
594sim_targ_vals
595sim_callback
596sim_devzero
597sim_termio
598sim_stdio
599sim_model_issue
600sim_model
601sim_monitor
602sim_reserved
603sim_trace
604sim_timebase
605sim_env
606sim_hostbitsize
607sim_igen_smp
9bbf6f91 608sim_hostendian
81ecdfbb
RW
609sim_pk_obj
610sim_pk_src
611sim_hw_obj
612sim_hw_src
613sim_icache
614sim_filter
615sim_jump
616sim_decode_mechanism
617sim_dup
618sim_switch
619sim_opcode
620sim_config
621sim_line_nr
622sim_warnings
81ecdfbb
RW
623RANLIB
624AR
625HDEFINES
626CFLAGS_FOR_BUILD
627CC_FOR_BUILD
628LIBOBJS
aadc9410
MF
629zlibinc
630zlibdir
81ecdfbb
RW
631target_os
632target_vendor
633target_cpu
634target
635host_os
636host_vendor
637host_cpu
638host
639build_os
640build_vendor
641build_cpu
642build
643REPORT_BUGS_TEXI
644REPORT_BUGS_TO
645PKGVERSION
646EGREP
647GREP
648CPP
649CATOBJEXT
650GENCAT
651INSTOBJEXT
652DATADIRNAME
653CATALOGS
654POSUB
655GMSGFMT
656XGETTEXT
657INCINTL
658LIBINTL_DEP
659LIBINTL
660USE_NLS
661OBJEXT
662EXEEXT
663ac_ct_CC
664CPPFLAGS
665LDFLAGS
666CFLAGS
667CC
668INSTALL_DATA
669INSTALL_SCRIPT
670INSTALL_PROGRAM
6ffe910a
MF
671WERROR_CFLAGS
672WARN_CFLAGS
673sim_xor_endian
6ffe910a
MF
674sim_smp
675sim_reserved_bits
6ffe910a
MF
676sim_packages
677sim_inline
678sim_hw
679sim_hw_objs
680sim_hw_cflags
681sim_default_model
682sim_scache
683sim_float
6ffe910a
MF
684sim_endian
685sim_bitsize
686sim_assert
687sim_alignment
688sim_environment
81ecdfbb
RW
689target_alias
690host_alias
691build_alias
692LIBS
693ECHO_T
694ECHO_N
695ECHO_C
696DEFS
697mandir
698localedir
699libdir
700psdir
701pdfdir
702dvidir
703htmldir
704infodir
705docdir
706oldincludedir
707includedir
708localstatedir
709sharedstatedir
710sysconfdir
711datadir
712datarootdir
713libexecdir
714sbindir
715bindir
716program_transform_name
717prefix
718exec_prefix
719PACKAGE_URL
720PACKAGE_BUGREPORT
721PACKAGE_STRING
722PACKAGE_VERSION
723PACKAGE_TARNAME
724PACKAGE_NAME
725PATH_SEPARATOR
6ffe910a 726SHELL'
b7026657 727ac_subst_files=''
81ecdfbb
RW
728ac_user_opts='
729enable_option_checking
730enable_sim_alignment
731enable_sim_assert
732enable_sim_bitsize
81ecdfbb
RW
733enable_sim_config
734enable_sim_decode_mechanism
735enable_sim_default_model
736enable_sim_duplicate
737enable_sim_endian
738enable_sim_env
739enable_sim_filter
740enable_sim_float
741enable_sim_hardware
742enable_sim_hostbitsize
743enable_sim_hostendian
744enable_sim_icache
745enable_sim_inline
746enable_sim_jump
747enable_sim_line_nr
748enable_sim_model
749enable_sim_model_issue
750enable_sim_monitor
751enable_sim_opcode
752enable_sim_packages
81ecdfbb
RW
753enable_sim_reserved_bits
754enable_sim_smp
81ecdfbb
RW
755enable_sim_stdio
756enable_sim_switch
757enable_sim_timebase
758enable_sim_trace
759enable_sim_warnings
760enable_sim_xor_endian
761with_pkgversion
762with_bugurl
aadc9410 763with_system_zlib
2974be62 764enable_plugins
81ecdfbb
RW
765'
766 ac_precious_vars='build_alias
767host_alias
768target_alias
769CC
770CFLAGS
771LDFLAGS
772LIBS
773CPPFLAGS
774CPP'
775
c906108c
SS
776
777# Initialize some variables set by options.
b7026657
AC
778ac_init_help=
779ac_init_version=false
81ecdfbb
RW
780ac_unrecognized_opts=
781ac_unrecognized_sep=
c906108c
SS
782# The variables have the same names as the options, with
783# dashes changed to underlines.
b7026657 784cache_file=/dev/null
c906108c 785exec_prefix=NONE
c906108c 786no_create=
c906108c
SS
787no_recursion=
788prefix=NONE
789program_prefix=NONE
790program_suffix=NONE
791program_transform_name=s,x,x,
792silent=
793site=
794srcdir=
c906108c
SS
795verbose=
796x_includes=NONE
797x_libraries=NONE
b7026657
AC
798
799# Installation directory options.
800# These are left unexpanded so users can "make install exec_prefix=/foo"
801# and all the variables that are supposed to be based on exec_prefix
802# by default will actually change.
803# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 804# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
805bindir='${exec_prefix}/bin'
806sbindir='${exec_prefix}/sbin'
807libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
808datarootdir='${prefix}/share'
809datadir='${datarootdir}'
c906108c
SS
810sysconfdir='${prefix}/etc'
811sharedstatedir='${prefix}/com'
812localstatedir='${prefix}/var'
c906108c
SS
813includedir='${prefix}/include'
814oldincludedir='/usr/include'
81ecdfbb
RW
815docdir='${datarootdir}/doc/${PACKAGE}'
816infodir='${datarootdir}/info'
817htmldir='${docdir}'
818dvidir='${docdir}'
819pdfdir='${docdir}'
820psdir='${docdir}'
821libdir='${exec_prefix}/lib'
822localedir='${datarootdir}/locale'
823mandir='${datarootdir}/man'
c906108c 824
c906108c 825ac_prev=
81ecdfbb 826ac_dashdash=
c906108c
SS
827for ac_option
828do
c906108c
SS
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
81ecdfbb 831 eval $ac_prev=\$ac_option
c906108c
SS
832 ac_prev=
833 continue
834 fi
835
81ecdfbb
RW
836 case $ac_option in
837 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *) ac_optarg=yes ;;
839 esac
c906108c
SS
840
841 # Accept the important Cygnus configure options, so we can diagnose typos.
842
81ecdfbb
RW
843 case $ac_dashdash$ac_option in
844 --)
845 ac_dashdash=yes ;;
c906108c
SS
846
847 -bindir | --bindir | --bindi | --bind | --bin | --bi)
848 ac_prev=bindir ;;
849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 850 bindir=$ac_optarg ;;
c906108c
SS
851
852 -build | --build | --buil | --bui | --bu)
b7026657 853 ac_prev=build_alias ;;
c906108c 854 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 855 build_alias=$ac_optarg ;;
c906108c
SS
856
857 -cache-file | --cache-file | --cache-fil | --cache-fi \
858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859 ac_prev=cache_file ;;
860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
862 cache_file=$ac_optarg ;;
863
864 --config-cache | -C)
865 cache_file=config.cache ;;
c906108c 866
81ecdfbb 867 -datadir | --datadir | --datadi | --datad)
c906108c 868 ac_prev=datadir ;;
81ecdfbb 869 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 870 datadir=$ac_optarg ;;
c906108c 871
81ecdfbb
RW
872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873 | --dataroo | --dataro | --datar)
874 ac_prev=datarootdir ;;
875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877 datarootdir=$ac_optarg ;;
878
c906108c 879 -disable-* | --disable-*)
81ecdfbb 880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 881 # Reject names that are not valid shell variable names.
81ecdfbb
RW
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888"enable_$ac_useropt"
889"*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=no ;;
894
895 -docdir | --docdir | --docdi | --doc | --do)
896 ac_prev=docdir ;;
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898 docdir=$ac_optarg ;;
899
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 ac_prev=dvidir ;;
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903 dvidir=$ac_optarg ;;
c906108c
SS
904
905 -enable-* | --enable-*)
81ecdfbb 906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 907 # Reject names that are not valid shell variable names.
81ecdfbb
RW
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914"enable_$ac_useropt"
915"*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
c906108c 918 esac
81ecdfbb 919 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
920
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
b7026657 928 exec_prefix=$ac_optarg ;;
c906108c
SS
929
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
932 with_gas=yes ;;
933
b7026657
AC
934 -help | --help | --hel | --he | -h)
935 ac_init_help=long ;;
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
c906108c
SS
940
941 -host | --host | --hos | --ho)
b7026657 942 ac_prev=host_alias ;;
c906108c 943 -host=* | --host=* | --hos=* | --ho=*)
b7026657 944 host_alias=$ac_optarg ;;
c906108c 945
81ecdfbb
RW
946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947 ac_prev=htmldir ;;
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949 | --ht=*)
950 htmldir=$ac_optarg ;;
951
c906108c
SS
952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 957 includedir=$ac_optarg ;;
c906108c
SS
958
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
960 ac_prev=infodir ;;
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 962 infodir=$ac_optarg ;;
c906108c
SS
963
964 -libdir | --libdir | --libdi | --libd)
965 ac_prev=libdir ;;
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 967 libdir=$ac_optarg ;;
c906108c
SS
968
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
b7026657 974 libexecdir=$ac_optarg ;;
c906108c 975
81ecdfbb
RW
976 -localedir | --localedir | --localedi | --localed | --locale)
977 ac_prev=localedir ;;
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
980
c906108c 981 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 982 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 986 localstatedir=$ac_optarg ;;
c906108c
SS
987
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989 ac_prev=mandir ;;
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 991 mandir=$ac_optarg ;;
c906108c
SS
992
993 -nfp | --nfp | --nf)
994 # Obsolete; use --without-fp.
995 with_fp=no ;;
996
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 998 | --no-cr | --no-c | -n)
c906108c
SS
999 no_create=yes ;;
1000
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 no_recursion=yes ;;
1004
1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1012 oldincludedir=$ac_optarg ;;
c906108c
SS
1013
1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015 ac_prev=prefix ;;
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1017 prefix=$ac_optarg ;;
c906108c
SS
1018
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1024 program_prefix=$ac_optarg ;;
c906108c
SS
1025
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1031 program_suffix=$ac_optarg ;;
c906108c
SS
1032
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
1041 -program-transform-name=* | --program-transform-name=* \
1042 | --program-transform-nam=* | --program-transform-na=* \
1043 | --program-transform-n=* | --program-transform-=* \
1044 | --program-transform=* | --program-transfor=* \
1045 | --program-transfo=* | --program-transf=* \
1046 | --program-trans=* | --program-tran=* \
1047 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1048 program_transform_name=$ac_optarg ;;
c906108c 1049
81ecdfbb
RW
1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051 ac_prev=pdfdir ;;
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1054
1055 -psdir | --psdir | --psdi | --psd | --ps)
1056 ac_prev=psdir ;;
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 psdir=$ac_optarg ;;
1059
c906108c
SS
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 silent=yes ;;
1063
1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065 ac_prev=sbindir ;;
1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067 | --sbi=* | --sb=*)
b7026657 1068 sbindir=$ac_optarg ;;
c906108c
SS
1069
1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072 | --sharedst | --shareds | --shared | --share | --shar \
1073 | --sha | --sh)
1074 ac_prev=sharedstatedir ;;
1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078 | --sha=* | --sh=*)
b7026657 1079 sharedstatedir=$ac_optarg ;;
c906108c
SS
1080
1081 -site | --site | --sit)
1082 ac_prev=site ;;
1083 -site=* | --site=* | --sit=*)
b7026657 1084 site=$ac_optarg ;;
eb2d80b4 1085
c906108c
SS
1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087 ac_prev=srcdir ;;
1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1089 srcdir=$ac_optarg ;;
c906108c
SS
1090
1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092 | --syscon | --sysco | --sysc | --sys | --sy)
1093 ac_prev=sysconfdir ;;
1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1096 sysconfdir=$ac_optarg ;;
c906108c
SS
1097
1098 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1099 ac_prev=target_alias ;;
c906108c 1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1101 target_alias=$ac_optarg ;;
c906108c
SS
1102
1103 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 verbose=yes ;;
1105
b7026657
AC
1106 -version | --version | --versio | --versi | --vers | -V)
1107 ac_init_version=: ;;
c906108c
SS
1108
1109 -with-* | --with-*)
81ecdfbb 1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1111 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1117 *"
1118"with_$ac_useropt"
1119"*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
c906108c 1122 esac
81ecdfbb 1123 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1124
1125 -without-* | --without-*)
81ecdfbb 1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1127 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134"with_$ac_useropt"
1135"*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=no ;;
c906108c
SS
1140
1141 --x)
1142 # Obsolete; use --with-x.
1143 with_x=yes ;;
1144
1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146 | --x-incl | --x-inc | --x-in | --x-i)
1147 ac_prev=x_includes ;;
1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1150 x_includes=$ac_optarg ;;
c906108c
SS
1151
1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154 ac_prev=x_libraries ;;
1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1157 x_libraries=$ac_optarg ;;
c906108c 1158
81ecdfbb
RW
1159 -*) as_fn_error "unrecognized option: \`$ac_option'
1160Try \`$0 --help' for more information."
c906108c
SS
1161 ;;
1162
b7026657
AC
1163 *=*)
1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1166 case $ac_envvar in #(
1167 '' | [0-9]* | *[!_$as_cr_alnum]* )
1168 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1169 esac
1170 eval $ac_envvar=\$ac_optarg
b7026657
AC
1171 export $ac_envvar ;;
1172
c906108c 1173 *)
b7026657 1174 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b7026657 1178 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1179 ;;
1180
1181 esac
1182done
1183
1184if test -n "$ac_prev"; then
b7026657 1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1186 as_fn_error "missing argument to $ac_option"
c906108c 1187fi
c906108c 1188
81ecdfbb
RW
1189if test -n "$ac_unrecognized_opts"; then
1190 case $enable_option_checking in
1191 no) ;;
1192 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1194 esac
81ecdfbb 1195fi
c906108c 1196
81ecdfbb
RW
1197# Check all directory arguments for consistency.
1198for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
c906108c 1202do
81ecdfbb
RW
1203 eval ac_val=\$$ac_var
1204 # Remove trailing slashes.
1205 case $ac_val in
1206 */ )
1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208 eval $ac_var=\$ac_val;;
1209 esac
1210 # Be sure to have absolute directory names.
b7026657 1211 case $ac_val in
81ecdfbb
RW
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1214 esac
81ecdfbb 1215 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1216done
1217
b7026657
AC
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
81ecdfbb 1229 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b7026657
AC
1230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234fi
c906108c 1235
b7026657
AC
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
c906108c 1240
c906108c 1241
81ecdfbb
RW
1242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error "working directory cannot be determined"
1246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error "pwd does not report name of working directory"
1248
1249
c906108c
SS
1250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
81ecdfbb
RW
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259$as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
c906108c 1277 srcdir=$ac_confdir
81ecdfbb 1278 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1279 srcdir=..
1280 fi
1281else
1282 ac_srcdir_defaulted=no
1283fi
81ecdfbb
RW
1284if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1287fi
1288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289ac_abs_confdir=`(
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1291 pwd)`
1292# When building in place, set srcdir=.
1293if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 srcdir=.
1295fi
1296# Remove unnecessary trailing slashes from srcdir.
1297# Double slashes in file names in object file debugging info
1298# mess up M-x gdb in Emacs.
1299case $srcdir in
1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301esac
1302for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307done
c906108c 1308
b7026657
AC
1309#
1310# Report the --help message.
1311#
1312if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1315 cat <<_ACEOF
1316\`configure' configures this package to adapt to many kinds of systems.
c906108c 1317
b7026657 1318Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1319
b7026657
AC
1320To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1322
b7026657 1323Defaults for the options are specified in brackets.
c906108c 1324
b7026657
AC
1325Configuration:
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335
b7026657
AC
1336Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1338 [$ac_default_prefix]
b7026657 1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1340 [PREFIX]
c906108c 1341
b7026657
AC
1342By default, \`make install' will install all the files in
1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345for instance \`--prefix=\$HOME'.
c906108c 1346
b7026657 1347For better control, use the options below.
c906108c 1348
b7026657 1349Fine tuning of the installation directories:
81ecdfbb
RW
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1369_ACEOF
1370
1371 cat <<\_ACEOF
1372
1373Program names:
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1377
1378System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382_ACEOF
c906108c 1383fi
c906108c 1384
b7026657 1385if test -n "$ac_init_help"; then
c906108c 1386
b7026657 1387 cat <<\_ACEOF
cd0fc7c3 1388
b7026657 1389Optional Features:
81ecdfbb 1390 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b7026657
AC
1393 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1394 --enable-sim-assert Specify whether to perform random assertions.
1395 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
b7026657
AC
1396 --enable-sim-config=file Override default config file
1397 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1398 --enable-sim-default-model=which Specify default PowerPC to model.
1399 --enable-sim-duplicate Expand (duplicate) semantic functions.
1400 --enable-sim-endian=endian Specify target byte endian orientation.
1401 --enable-sim-env=env Specify target environment (operating, virtual, user).
1402 --enable-sim-filter=rule Specify filter rules.
1403 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
1404 --enable-sim-hardware=list Specify the hardware to be included in the build.
1405 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
1406 --enable-sim-hostendian=end Specify host byte endian orientation.
1407 --enable-sim-icache=size Specify instruction-decode cache size and type.
1408 --enable-sim-inline=inlines Specify which functions should be inlined.
1409 --enable-sim-jump Jump between semantic code (instead of call/return).
1410 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
1411 --enable-sim-model=which Specify PowerPC to model.
1412 --enable-sim-model-issue Specify whether to simulate model specific actions
1413 --enable-sim-monitor=mon Specify whether to enable monitoring events.
1414 --enable-sim-opcode=which Override default opcode lookup.
1415 --enable-sim-packages=list Specify the packages to be included in the build.
b7026657
AC
1416 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
1417 --enable-sim-smp=n Specify number of processors to configure for.
b7026657
AC
1418 --enable-sim-stdio Specify whether to use stdio for console input/output.
1419 --enable-sim-switch Use a switch instead of a table for instruction call.
1420 --enable-sim-timebase Specify whether the PPC timebase is supported.
1421 --enable-sim-trace Specify whether tracing is supported.
1422 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
1423 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
2974be62 1424 --enable-plugins Enable support for plugins
b7026657 1425
6efef468
JM
1426Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1430 --with-bugurl=URL Direct users to URL to report a bug
aadc9410 1431 --with-system-zlib use installed libz
6efef468 1432
b7026657
AC
1433Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
81ecdfbb
RW
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
b7026657
AC
1441 CPP C preprocessor
1442
1443Use these variables to override the choices made by `configure' or to help
1444it to find libraries and programs with nonstandard names/locations.
1445
81ecdfbb 1446Report bugs to the package provider.
b7026657 1447_ACEOF
81ecdfbb 1448ac_status=$?
b7026657
AC
1449fi
1450
1451if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
b7026657 1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 continue
b7026657
AC
1457 ac_builddir=.
1458
81ecdfbb
RW
1459case "$ac_dir" in
1460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461*)
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 esac ;;
1469esac
1470ac_abs_top_builddir=$ac_pwd
1471ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472# for backward compatibility:
1473ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1474
1475case $srcdir in
81ecdfbb 1476 .) # We are building in place.
b7026657 1477 ac_srcdir=.
81ecdfbb
RW
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1481 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1484 *) # Relative name.
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1488esac
81ecdfbb
RW
1489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1499 else
81ecdfbb
RW
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 fi || ac_status=$?
1502 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1503 done
1504fi
1505
81ecdfbb 1506test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1507if $ac_init_version; then
1508 cat <<\_ACEOF
81ecdfbb
RW
1509configure
1510generated by GNU Autoconf 2.64
b7026657 1511
81ecdfbb 1512Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
1513This configure script is free software; the Free Software Foundation
1514gives unlimited permission to copy, distribute and modify it.
1515_ACEOF
81ecdfbb 1516 exit
b7026657 1517fi
b7026657 1518
81ecdfbb
RW
1519## ------------------------ ##
1520## Autoconf initialization. ##
1521## ------------------------ ##
b7026657 1522
81ecdfbb
RW
1523# ac_fn_c_try_compile LINENO
1524# --------------------------
1525# Try to compile conftest.$ac_ext, and return whether this succeeded.
1526ac_fn_c_try_compile ()
b7026657 1527{
81ecdfbb
RW
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534esac
1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536$as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550else
1551 $as_echo "$as_me: failed program was:" >&5
1552sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1553
81ecdfbb
RW
1554 ac_retval=1
1555fi
1556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1557 return $ac_retval
b7026657 1558
81ecdfbb 1559} # ac_fn_c_try_compile
b7026657 1560
81ecdfbb
RW
1561# ac_fn_c_try_run LINENO
1562# ----------------------
1563# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1564# that executables *can* be run.
1565ac_fn_c_try_run ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 if { { ac_try="$ac_link"
1569case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>&5
1576 ac_status=$?
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1579 { { case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_try") 2>&5
1586 ac_status=$?
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; }; }; then :
1589 ac_retval=0
1590else
1591 $as_echo "$as_me: program exited with status $ac_status" >&5
1592 $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1594
81ecdfbb
RW
1595 ac_retval=$ac_status
1596fi
1597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1598 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599 return $ac_retval
b7026657 1600
81ecdfbb 1601} # ac_fn_c_try_run
b7026657 1602
81ecdfbb
RW
1603# ac_fn_c_try_cpp LINENO
1604# ----------------------
1605# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_c_try_cpp ()
1607{
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 if { { ac_try="$ac_cpp conftest.$ac_ext"
1610case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613esac
1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615$as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1622 fi
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } >/dev/null && {
1625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 }; then :
1628 ac_retval=0
1629else
1630 $as_echo "$as_me: failed program was:" >&5
1631sed 's/^/| /' conftest.$ac_ext >&5
1632
1633 ac_retval=1
1634fi
1635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1636 return $ac_retval
1637
1638} # ac_fn_c_try_cpp
1639
1640# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641# -------------------------------------------------------
1642# Tests whether HEADER exists and can be compiled using the include files in
1643# INCLUDES, setting the cache variable VAR accordingly.
1644ac_fn_c_check_header_compile ()
1645{
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648$as_echo_n "checking for $2... " >&6; }
1649if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 $as_echo_n "(cached) " >&6
1651else
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h. */
1654$4
1655#include <$2>
1656_ACEOF
1657if ac_fn_c_try_compile "$LINENO"; then :
1658 eval "$3=yes"
1659else
1660 eval "$3=no"
1661fi
1662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663fi
1664eval ac_res=\$$3
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666$as_echo "$ac_res" >&6; }
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668
1669} # ac_fn_c_check_header_compile
1670
1671# ac_fn_c_try_link LINENO
1672# -----------------------
1673# Try to link conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_link ()
1675{
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1679case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 $as_test_x conftest$ac_exeext
1699 }; then :
1700 ac_retval=0
1701else
1702 $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706fi
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713 return $ac_retval
1714
1715} # ac_fn_c_try_link
1716
81ecdfbb
RW
1717# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1718# ----------------------------------------------------
1719# Tries to find if the field MEMBER exists in type AGGR, after including
1720# INCLUDES, setting cache variable VAR accordingly.
1721ac_fn_c_check_member ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1725$as_echo_n "checking for $2.$3... " >&6; }
1726if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1727 $as_echo_n "(cached) " >&6
1728else
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h. */
1731$5
1732int
1733main ()
1734{
1735static $2 ac_aggr;
1736if (ac_aggr.$3)
1737return 0;
1738 ;
1739 return 0;
1740}
1741_ACEOF
1742if ac_fn_c_try_compile "$LINENO"; then :
1743 eval "$4=yes"
1744else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h. */
1747$5
1748int
1749main ()
1750{
1751static $2 ac_aggr;
1752if (sizeof ac_aggr.$3)
1753return 0;
1754 ;
1755 return 0;
1756}
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759 eval "$4=yes"
1760else
1761 eval "$4=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766fi
1767eval ac_res=\$$4
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771
1772} # ac_fn_c_check_member
1773
1774# ac_fn_c_check_decl LINENO SYMBOL VAR
1775# ------------------------------------
1776# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1777ac_fn_c_check_decl ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6ffe910a
MF
1780 as_decl_name=`echo $2|sed 's/ *(.*//'`
1781 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1783$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1784if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1785 $as_echo_n "(cached) " >&6
1786else
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h. */
1789$4
1790int
1791main ()
1792{
6ffe910a
MF
1793#ifndef $as_decl_name
1794#ifdef __cplusplus
1795 (void) $as_decl_use;
1796#else
1797 (void) $as_decl_name;
1798#endif
81ecdfbb
RW
1799#endif
1800
1801 ;
1802 return 0;
1803}
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806 eval "$3=yes"
1807else
1808 eval "$3=no"
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811fi
1812eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814$as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816
1817} # ac_fn_c_check_decl
1818
1819# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1820# -------------------------------------------
1821# Tests whether TYPE exists after having included INCLUDES, setting cache
1822# variable VAR accordingly.
1823ac_fn_c_check_type ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827$as_echo_n "checking for $2... " >&6; }
1828if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829 $as_echo_n "(cached) " >&6
1830else
1831 eval "$3=no"
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h. */
1834$4
1835int
1836main ()
1837{
1838if (sizeof ($2))
1839 return 0;
1840 ;
1841 return 0;
1842}
1843_ACEOF
1844if ac_fn_c_try_compile "$LINENO"; then :
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h. */
1847$4
1848int
1849main ()
1850{
1851if (sizeof (($2)))
1852 return 0;
1853 ;
1854 return 0;
1855}
1856_ACEOF
1857if ac_fn_c_try_compile "$LINENO"; then :
1858
1859else
1860 eval "$3=yes"
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863fi
1864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865fi
1866eval ac_res=\$$3
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868$as_echo "$ac_res" >&6; }
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870
1871} # ac_fn_c_check_type
1872
1873# ac_fn_c_check_func LINENO FUNC VAR
1874# ----------------------------------
1875# Tests whether FUNC exists, setting the cache variable VAR accordingly
1876ac_fn_c_check_func ()
1877{
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
1881if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 $as_echo_n "(cached) " >&6
1883else
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885/* end confdefs.h. */
1886/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1888#define $2 innocuous_$2
1889
1890/* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char $2 (); below.
1892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893 <limits.h> exists even on freestanding compilers. */
1894
1895#ifdef __STDC__
1896# include <limits.h>
1897#else
1898# include <assert.h>
1899#endif
1900
1901#undef $2
1902
1903/* Override any GCC internal prototype to avoid an error.
1904 Use char because int might match the return type of a GCC
1905 builtin and then its argument prototype would still apply. */
1906#ifdef __cplusplus
1907extern "C"
1908#endif
1909char $2 ();
1910/* The GNU C library defines this for functions which it implements
1911 to always fail with ENOSYS. Some functions are actually named
1912 something starting with __ and the normal name is an alias. */
1913#if defined __stub_$2 || defined __stub___$2
1914choke me
1915#endif
1916
1917int
1918main ()
1919{
1920return $2 ();
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_link "$LINENO"; then :
1926 eval "$3=yes"
1927else
1928 eval "$3=no"
1929fi
1930rm -f core conftest.err conftest.$ac_objext \
1931 conftest$ac_exeext conftest.$ac_ext
1932fi
1933eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937
1938} # ac_fn_c_check_func
aadc9410
MF
1939
1940# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1941# -------------------------------------------------------
1942# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943# the include files in INCLUDES and setting the cache variable VAR
1944# accordingly.
1945ac_fn_c_check_header_mongrel ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950$as_echo_n "checking for $2... " >&6; }
1951if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1952 $as_echo_n "(cached) " >&6
1953fi
1954eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956$as_echo "$ac_res" >&6; }
1957else
1958 # Is the header compilable?
1959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960$as_echo_n "checking $2 usability... " >&6; }
1961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963$4
1964#include <$2>
1965_ACEOF
1966if ac_fn_c_try_compile "$LINENO"; then :
1967 ac_header_compiler=yes
1968else
1969 ac_header_compiler=no
1970fi
1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973$as_echo "$ac_header_compiler" >&6; }
1974
1975# Is the header present?
1976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977$as_echo_n "checking $2 presence... " >&6; }
1978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h. */
1980#include <$2>
1981_ACEOF
1982if ac_fn_c_try_cpp "$LINENO"; then :
1983 ac_header_preproc=yes
1984else
1985 ac_header_preproc=no
1986fi
1987rm -f conftest.err conftest.$ac_ext
1988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989$as_echo "$ac_header_preproc" >&6; }
1990
1991# So? What about this header?
1992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1993 yes:no: )
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 ;;
1999 no:yes:* )
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 ;;
2011esac
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013$as_echo_n "checking for $2... " >&6; }
2014if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 $as_echo_n "(cached) " >&6
2016else
2017 eval "$3=\$ac_header_compiler"
2018fi
2019eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021$as_echo "$ac_res" >&6; }
2022fi
2023 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024
2025} # ac_fn_c_check_header_mongrel
81ecdfbb
RW
2026cat >config.log <<_ACEOF
2027This file contains any messages produced by compilers while
2028running configure, to aid debugging if configure makes a mistake.
2029
2030It was created by $as_me, which was
2031generated by GNU Autoconf 2.64. Invocation command line was
2032
2033 $ $0 $@
2034
2035_ACEOF
2036exec 5>>config.log
2037{
2038cat <<_ASUNAME
2039## --------- ##
2040## Platform. ##
2041## --------- ##
2042
2043hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048
2049/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2051
2052/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2053/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2054/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2056/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2057/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2058/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2059
2060_ASUNAME
2061
2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 $as_echo "PATH: $as_dir"
2068 done
2069IFS=$as_save_IFS
2070
2071} >&5
2072
2073cat >&5 <<_ACEOF
b7026657
AC
2074
2075
2076## ----------- ##
2077## Core tests. ##
2078## ----------- ##
2079
2080_ACEOF
2081
2082
2083# Keep a trace of the command line.
2084# Strip out --no-create and --no-recursion so they do not pile up.
2085# Strip out --silent because we don't want to record it for future runs.
2086# Also quote any args containing shell meta-characters.
2087# Make two passes to allow for proper duplicate-argument suppression.
2088ac_configure_args=
2089ac_configure_args0=
2090ac_configure_args1=
b7026657
AC
2091ac_must_keep_next=false
2092for ac_pass in 1 2
2093do
2094 for ac_arg
2095 do
2096 case $ac_arg in
2097 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099 | -silent | --silent | --silen | --sile | --sil)
2100 continue ;;
81ecdfbb
RW
2101 *\'*)
2102 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2103 esac
2104 case $ac_pass in
81ecdfbb 2105 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2106 2)
81ecdfbb 2107 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2108 if test $ac_must_keep_next = true; then
2109 ac_must_keep_next=false # Got value, back to normal.
2110 else
2111 case $ac_arg in
2112 *=* | --config-cache | -C | -disable-* | --disable-* \
2113 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2114 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2115 | -with-* | --with-* | -without-* | --without-* | --x)
2116 case "$ac_configure_args0 " in
2117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2118 esac
2119 ;;
2120 -* ) ac_must_keep_next=true ;;
2121 esac
2122 fi
81ecdfbb 2123 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2124 ;;
2125 esac
2126 done
2127done
81ecdfbb
RW
2128{ ac_configure_args0=; unset ac_configure_args0;}
2129{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2130
2131# When interrupted or exit'd, cleanup temporary files, and complete
2132# config.log. We remove comments because anyway the quotes in there
2133# would cause problems or look ugly.
81ecdfbb
RW
2134# WARNING: Use '\'' to represent an apostrophe within the trap.
2135# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2136trap 'exit_status=$?
2137 # Save into config.log some information that might help in debugging.
2138 {
2139 echo
2140
2141 cat <<\_ASBOX
2142## ---------------- ##
2143## Cache variables. ##
2144## ---------------- ##
2145_ASBOX
2146 echo
2147 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2148(
2149 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2150 eval ac_val=\$$ac_var
2151 case $ac_val in #(
2152 *${as_nl}*)
2153 case $ac_var in #(
2154 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2155$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156 esac
2157 case $ac_var in #(
2158 _ | IFS | as_nl) ;; #(
2159 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2160 *) { eval $ac_var=; unset $ac_var;} ;;
2161 esac ;;
2162 esac
2163 done
b7026657 2164 (set) 2>&1 |
81ecdfbb
RW
2165 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2166 *${as_nl}ac_space=\ *)
b7026657 2167 sed -n \
81ecdfbb
RW
2168 "s/'\''/'\''\\\\'\'''\''/g;
2169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170 ;; #(
b7026657 2171 *)
81ecdfbb 2172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2173 ;;
81ecdfbb
RW
2174 esac |
2175 sort
2176)
b7026657
AC
2177 echo
2178
2179 cat <<\_ASBOX
2180## ----------------- ##
2181## Output variables. ##
2182## ----------------- ##
2183_ASBOX
2184 echo
2185 for ac_var in $ac_subst_vars
2186 do
81ecdfbb
RW
2187 eval ac_val=\$$ac_var
2188 case $ac_val in
2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190 esac
2191 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2192 done | sort
2193 echo
2194
2195 if test -n "$ac_subst_files"; then
2196 cat <<\_ASBOX
81ecdfbb
RW
2197## ------------------- ##
2198## File substitutions. ##
2199## ------------------- ##
b7026657
AC
2200_ASBOX
2201 echo
2202 for ac_var in $ac_subst_files
2203 do
81ecdfbb
RW
2204 eval ac_val=\$$ac_var
2205 case $ac_val in
2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207 esac
2208 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2209 done | sort
2210 echo
2211 fi
2212
2213 if test -s confdefs.h; then
2214 cat <<\_ASBOX
2215## ----------- ##
2216## confdefs.h. ##
2217## ----------- ##
2218_ASBOX
2219 echo
81ecdfbb 2220 cat confdefs.h
b7026657
AC
2221 echo
2222 fi
2223 test "$ac_signal" != 0 &&
81ecdfbb
RW
2224 $as_echo "$as_me: caught signal $ac_signal"
2225 $as_echo "$as_me: exit $exit_status"
b7026657 2226 } >&5
81ecdfbb
RW
2227 rm -f core *.core core.conftest.* &&
2228 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2229 exit $exit_status
81ecdfbb 2230' 0
b7026657 2231for ac_signal in 1 2 13 15; do
81ecdfbb 2232 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2233done
2234ac_signal=0
2235
2236# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2237rm -f -r conftest* confdefs.h
2238
2239$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2240
2241# Predefined preprocessor variables.
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_NAME "$PACKAGE_NAME"
2245_ACEOF
2246
b7026657
AC
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2249_ACEOF
2250
b7026657
AC
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_VERSION "$PACKAGE_VERSION"
2253_ACEOF
2254
b7026657
AC
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_STRING "$PACKAGE_STRING"
2257_ACEOF
2258
b7026657
AC
2259cat >>confdefs.h <<_ACEOF
2260#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2261_ACEOF
2262
81ecdfbb
RW
2263cat >>confdefs.h <<_ACEOF
2264#define PACKAGE_URL "$PACKAGE_URL"
2265_ACEOF
2266
b7026657
AC
2267
2268# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2269# Prefer an explicitly selected file to automatically selected ones.
2270ac_site_file1=NONE
2271ac_site_file2=NONE
2272if test -n "$CONFIG_SITE"; then
2273 ac_site_file1=$CONFIG_SITE
2274elif test "x$prefix" != xNONE; then
2275 ac_site_file1=$prefix/share/config.site
2276 ac_site_file2=$prefix/etc/config.site
2277else
2278 ac_site_file1=$ac_default_prefix/share/config.site
2279 ac_site_file2=$ac_default_prefix/etc/config.site
2280fi
2281for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2282do
2283 test "x$ac_site_file" = xNONE && continue
b7026657 2284 if test -r "$ac_site_file"; then
81ecdfbb
RW
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2286$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657
AC
2287 sed 's/^/| /' "$ac_site_file" >&5
2288 . "$ac_site_file"
2289 fi
2290done
2291
2292if test -r "$cache_file"; then
2293 # Some versions of bash will fail to source /dev/null (special
2294 # files actually), so we avoid doing that.
2295 if test -f "$cache_file"; then
81ecdfbb
RW
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2297$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2298 case $cache_file in
81ecdfbb
RW
2299 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2300 *) . "./$cache_file";;
b7026657
AC
2301 esac
2302 fi
2303else
81ecdfbb
RW
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2305$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2306 >$cache_file
2307fi
2308
2309# Check that the precious variables saved in the cache have kept the same
2310# value.
2311ac_cache_corrupted=false
81ecdfbb 2312for ac_var in $ac_precious_vars; do
b7026657
AC
2313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2314 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2315 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2316 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2317 case $ac_old_set,$ac_new_set in
2318 set,)
81ecdfbb
RW
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2320$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2321 ac_cache_corrupted=: ;;
2322 ,set)
81ecdfbb
RW
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2324$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2325 ac_cache_corrupted=: ;;
2326 ,);;
2327 *)
2328 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2329 # differences in whitespace do not lead to failure.
2330 ac_old_val_w=`echo x $ac_old_val`
2331 ac_new_val_w=`echo x $ac_new_val`
2332 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2334$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2335 ac_cache_corrupted=:
2336 else
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2338$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2339 eval $ac_var=\$ac_old_val
2340 fi
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2342$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2344$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2345 fi;;
2346 esac
2347 # Pass precious variables to config.status.
2348 if test "$ac_new_set" = set; then
2349 case $ac_new_val in
81ecdfbb 2350 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2351 *) ac_arg=$ac_var=$ac_new_val ;;
2352 esac
2353 case " $ac_configure_args " in
2354 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2355 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2356 esac
2357 fi
2358done
2359if $ac_cache_corrupted; then
81ecdfbb
RW
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2363$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2364 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2365fi
81ecdfbb
RW
2366## -------------------- ##
2367## Main body of script. ##
2368## -------------------- ##
b7026657
AC
2369
2370ac_ext=c
2371ac_cpp='$CPP $CPPFLAGS'
2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375
6ffe910a
MF
2376
2377# This file contains common code used by all simulators.
2378#
2379# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2380# directory. It is intended to be invoked before any target specific stuff.
2381# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2382# It is intended to be invoked last.
2383#
306f4178 2384# The simulator's configure.ac should look like:
6ffe910a
MF
2385#
2386# dnl Process this file with autoconf to produce a configure script.
2387# AC_PREREQ(2.64)dnl
2388# AC_INIT(Makefile.in)
2389# sinclude(../common/aclocal.m4)
2390#
2391# SIM_AC_COMMON
2392#
2393# ... target specific stuff ...
2394#
2395# SIM_AC_OUTPUT
2396
2397# Include global overrides and fixes for Autoconf.
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424# _AC_CHECK_DECL_BODY
2425# -------------------
2426# Shell function body for AC_CHECK_DECL.
2427# _AC_CHECK_DECL_BODY
2428
2429# _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2430# INCLUDES)
2431# -------------------------------------------------------------
2432# Helper to AC_CHECK_DECLS, which generates the check for a single
2433# SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2434# ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
6bb11ab3
L
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
6bb11ab3
L
2446# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2447#
2448# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2449# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2450# Written by Gordon Matzigkeit, 1996
2451#
2452# This file is free software; the Free Software Foundation gives
2453# unlimited permission to copy and/or distribute it, with or without
2454# modifications, as long as this notice is preserved.
2455
2456
2457
2458# serial 56 LT_INIT
2459
2460
2461# LT_PREREQ(VERSION)
2462# ------------------
2463# Complain and exit if this libtool version is less that VERSION.
2464
2465
2466
2467# _LT_CHECK_BUILDDIR
2468# ------------------
2469# Complain if the absolute build directory name contains unusual characters
2470
2471
2472
2473# LT_INIT([OPTIONS])
2474# ------------------
2475# LT_INIT
2476
2477# Old names:
2478# This is what autoupdate's m4 run will expand. It fires
2479# the warning (with _au_warn_XXX), outputs it into the
2480# updated configure.ac (with AC_DIAGNOSE), and then outputs
2481# the replacement expansion.
2482
2483
2484# This is an auxiliary macro that is also run when
2485# autoupdate runs m4. It simply calls m4_warning, but
2486# we need a wrapper so that each warning is emitted only
2487# once. We break the quoting in m4_warning's argument in
2488# order to expand this macro's arguments, not AU_DEFUN's.
2489
2490
2491# Finally, this is the expansion that is picked up by
2492# autoconf. It tells the user to run autoupdate, and
2493# then outputs the replacement expansion. We do not care
2494# about autoupdate's warning because that contains
2495# information on what to do *after* running autoupdate.
2496
2497# This is what autoupdate's m4 run will expand. It fires
2498# the warning (with _au_warn_XXX), outputs it into the
2499# updated configure.ac (with AC_DIAGNOSE), and then outputs
2500# the replacement expansion.
2501
2502
2503# This is an auxiliary macro that is also run when
2504# autoupdate runs m4. It simply calls m4_warning, but
2505# we need a wrapper so that each warning is emitted only
2506# once. We break the quoting in m4_warning's argument in
2507# order to expand this macro's arguments, not AU_DEFUN's.
2508
2509
2510# Finally, this is the expansion that is picked up by
2511# autoconf. It tells the user to run autoupdate, and
2512# then outputs the replacement expansion. We do not care
2513# about autoupdate's warning because that contains
2514# information on what to do *after* running autoupdate.
2515
2516
2517
2518# _LT_CC_BASENAME(CC)
2519# -------------------
2520# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2521
2522
2523
2524# _LT_FILEUTILS_DEFAULTS
2525# ----------------------
2526# It is okay to use these file commands and assume they have been set
2527# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2528# _LT_FILEUTILS_DEFAULTS
2529
2530
2531# _LT_SETUP
2532# ---------
2533# _LT_SETUP
2534
2535
2536# _LT_PREPARE_SED_QUOTE_VARS
2537# --------------------------
2538# Define a few sed substitution that help us do robust quoting.
2539
2540
2541# _LT_PROG_LTMAIN
2542# ---------------
2543# Note that this code is called both from `configure', and `config.status'
2544# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2545# `config.status' has no value for ac_aux_dir unless we are using Automake,
2546# so we pass a copy along to make sure it has a sensible value anyway.
2547# _LT_PROG_LTMAIN
2548
2549
2550## ------------------------------------- ##
2551## Accumulate code for creating libtool. ##
2552## ------------------------------------- ##
2553
2554# So that we can recreate a full libtool script including additional
2555# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2556# in macros and then make a single call at the end using the `libtool'
2557# label.
2558
2559
2560# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2561# ----------------------------------------
2562# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2563
2564
2565# Initialize.
2566
2567
2568
2569# _LT_CONFIG_LIBTOOL([COMMANDS])
2570# ------------------------------
2571# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2572
2573
2574# Initialize.
2575
2576
2577
2578# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2579# -----------------------------------------------------
2580
2581
2582
2583# _LT_FORMAT_COMMENT([COMMENT])
2584# -----------------------------
2585# Add leading comment marks to the start of each line, and a trailing
2586# full-stop to the whole comment if one is not present already.
2587
2588
2589
2590
2591## ------------------------ ##
2592## FIXME: Eliminate VARNAME ##
2593## ------------------------ ##
2594
2595
2596# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2597# -------------------------------------------------------------------
2598# CONFIGNAME is the name given to the value in the libtool script.
2599# VARNAME is the (base) name used in the configure script.
2600# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2601# VARNAME. Any other value will be used directly.
2602
2603
2604
2605# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2606# --------------------------------------------------------
2607
2608
2609
2610# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2611# ------------------------------------------------
2612
2613
2614
2615# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2616# ---------------------------------------------------------
2617
2618
2619
2620# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2621# --------------------------------------------------
2622
2623
2624
2625# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2626# ---------------------------------------------------
2627
2628
2629
2630# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2631# ---------------------------------------------------
2632
2633
2634
2635
2636# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2637# ------------------------------------------------
2638
2639
2640
2641
2642# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2643# ------------------------------------
2644# Quote a variable value, and forward it to `config.status' so that its
2645# declaration there will have the same value as in `configure'. VARNAME
2646# must have a single quote delimited value for this to work.
2647
2648
2649
2650# _LT_CONFIG_STATUS_DECLARATIONS
2651# ------------------------------
2652# We delimit libtool config variables with single quotes, so when
2653# we write them to config.status, we have to be sure to quote all
2654# embedded single quotes properly. In configure, this macro expands
2655# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2656#
2657# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2658
2659
2660
2661# _LT_LIBTOOL_TAGS
2662# ----------------
2663# Output comment and list of tags supported by the script
2664
2665
2666
2667# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2668# -----------------------------------
2669# Extract the dictionary values for VARNAME (optionally with TAG) and
2670# expand to a commented shell variable setting:
2671#
2672# # Some comment about what VAR is for.
2673# visible_name=$lt_internal_name
2674
2675
2676
2677# _LT_LIBTOOL_CONFIG_VARS
2678# -----------------------
2679# Produce commented declarations of non-tagged libtool config variables
2680# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2681# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2682# section) are produced by _LT_LIBTOOL_TAG_VARS.
2683
2684
2685
2686# _LT_LIBTOOL_TAG_VARS(TAG)
2687# -------------------------
2688
2689
2690
2691# _LT_TAGVAR(VARNAME, [TAGNAME])
2692# ------------------------------
2693
2694
2695
2696# _LT_CONFIG_COMMANDS
2697# -------------------
2698# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2699# variables for single and double quote escaping we saved from calls
2700# to _LT_DECL, we can put quote escaped variables declarations
2701# into `config.status', and then the shell code to quote escape them in
2702# for loops in `config.status'. Finally, any additional code accumulated
2703# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2704#_LT_CONFIG_COMMANDS
2705
2706
2707# Initialize.
2708
2709
2710# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2711# ------------------------------------
2712# Generate a child script FILE with all initialization necessary to
2713# reuse the environment learned by the parent script, and make the
2714# file executable. If COMMENT is supplied, it is inserted after the
2715# `#!' sequence but before initialization text begins. After this
2716# macro, additional text can be appended to FILE to form the body of
2717# the child script. The macro ends with non-zero status if the
2718# file could not be fully written (such as if the disk is full).
2719# _LT_GENERATED_FILE_INIT
2720
2721# LT_OUTPUT
2722# ---------
2723# This macro allows early generation of the libtool script (before
2724# AC_OUTPUT is called), incase it is used in configure for compilation
2725# tests.
2726# LT_OUTPUT
2727
2728
2729# _LT_CONFIG(TAG)
2730# ---------------
2731# If TAG is the built-in tag, create an initial libtool script with a
2732# default configuration from the untagged config vars. Otherwise add code
2733# to config.status for appending the configuration named by TAG from the
2734# matching tagged config vars.
2735# _LT_CONFIG
2736
2737
2738# LT_SUPPORTED_TAG(TAG)
2739# ---------------------
2740# Trace this macro to discover what tags are supported by the libtool
2741# --tag option, using:
2742# autoconf --trace 'LT_SUPPORTED_TAG:$1'
2743
2744
2745
2746# C support is built-in for now
2747
2748
2749
2750
2751# LT_LANG(LANG)
2752# -------------
2753# Enable libtool support for the given language if not already enabled.
2754# LT_LANG
2755
2756
2757# _LT_LANG(LANGNAME)
2758# ------------------
2759# _LT_LANG
2760
2761
2762# _LT_LANG_DEFAULT_CONFIG
2763# -----------------------
2764# _LT_LANG_DEFAULT_CONFIG
2765
2766# Obsolete macros:
2767# This is what autoupdate's m4 run will expand. It fires
2768# the warning (with _au_warn_XXX), outputs it into the
2769# updated configure.ac (with AC_DIAGNOSE), and then outputs
2770# the replacement expansion.
2771
2772
2773# This is an auxiliary macro that is also run when
2774# autoupdate runs m4. It simply calls m4_warning, but
2775# we need a wrapper so that each warning is emitted only
2776# once. We break the quoting in m4_warning's argument in
2777# order to expand this macro's arguments, not AU_DEFUN's.
2778
2779
2780# Finally, this is the expansion that is picked up by
2781# autoconf. It tells the user to run autoupdate, and
2782# then outputs the replacement expansion. We do not care
2783# about autoupdate's warning because that contains
2784# information on what to do *after* running autoupdate.
2785
2786# This is what autoupdate's m4 run will expand. It fires
2787# the warning (with _au_warn_XXX), outputs it into the
2788# updated configure.ac (with AC_DIAGNOSE), and then outputs
2789# the replacement expansion.
2790
2791
2792# This is an auxiliary macro that is also run when
2793# autoupdate runs m4. It simply calls m4_warning, but
2794# we need a wrapper so that each warning is emitted only
2795# once. We break the quoting in m4_warning's argument in
2796# order to expand this macro's arguments, not AU_DEFUN's.
2797
2798
2799# Finally, this is the expansion that is picked up by
2800# autoconf. It tells the user to run autoupdate, and
2801# then outputs the replacement expansion. We do not care
2802# about autoupdate's warning because that contains
2803# information on what to do *after* running autoupdate.
2804
2805# This is what autoupdate's m4 run will expand. It fires
2806# the warning (with _au_warn_XXX), outputs it into the
2807# updated configure.ac (with AC_DIAGNOSE), and then outputs
2808# the replacement expansion.
2809
2810
2811# This is an auxiliary macro that is also run when
2812# autoupdate runs m4. It simply calls m4_warning, but
2813# we need a wrapper so that each warning is emitted only
2814# once. We break the quoting in m4_warning's argument in
2815# order to expand this macro's arguments, not AU_DEFUN's.
2816
2817
2818# Finally, this is the expansion that is picked up by
2819# autoconf. It tells the user to run autoupdate, and
2820# then outputs the replacement expansion. We do not care
2821# about autoupdate's warning because that contains
2822# information on what to do *after* running autoupdate.
2823
2824# This is what autoupdate's m4 run will expand. It fires
2825# the warning (with _au_warn_XXX), outputs it into the
2826# updated configure.ac (with AC_DIAGNOSE), and then outputs
2827# the replacement expansion.
2828
2829
2830# This is an auxiliary macro that is also run when
2831# autoupdate runs m4. It simply calls m4_warning, but
2832# we need a wrapper so that each warning is emitted only
2833# once. We break the quoting in m4_warning's argument in
2834# order to expand this macro's arguments, not AU_DEFUN's.
2835
2836
2837# Finally, this is the expansion that is picked up by
2838# autoconf. It tells the user to run autoupdate, and
2839# then outputs the replacement expansion. We do not care
2840# about autoupdate's warning because that contains
2841# information on what to do *after* running autoupdate.
2842
2843# This is what autoupdate's m4 run will expand. It fires
2844# the warning (with _au_warn_XXX), outputs it into the
2845# updated configure.ac (with AC_DIAGNOSE), and then outputs
2846# the replacement expansion.
2847
2848
2849# This is an auxiliary macro that is also run when
2850# autoupdate runs m4. It simply calls m4_warning, but
2851# we need a wrapper so that each warning is emitted only
2852# once. We break the quoting in m4_warning's argument in
2853# order to expand this macro's arguments, not AU_DEFUN's.
2854
2855
2856# Finally, this is the expansion that is picked up by
2857# autoconf. It tells the user to run autoupdate, and
2858# then outputs the replacement expansion. We do not care
2859# about autoupdate's warning because that contains
2860# information on what to do *after* running autoupdate.
2861
2862
2863
2864# _LT_TAG_COMPILER
2865# ----------------
2866# _LT_TAG_COMPILER
2867
2868
2869# _LT_COMPILER_BOILERPLATE
2870# ------------------------
2871# Check for compiler boilerplate output or warnings with
2872# the simple compiler test code.
2873# _LT_COMPILER_BOILERPLATE
2874
2875
2876# _LT_LINKER_BOILERPLATE
2877# ----------------------
2878# Check for linker boilerplate output or warnings with
2879# the simple link test code.
2880# _LT_LINKER_BOILERPLATE
2881
2882# _LT_REQUIRED_DARWIN_CHECKS
2883# -------------------------
2884
2885
2886
2887# _LT_DARWIN_LINKER_FEATURES
2888# --------------------------
2889# Checks for linker and compiler features on darwin
2890
2891
2892# _LT_SYS_MODULE_PATH_AIX
2893# -----------------------
2894# Links a minimal program and checks the executable
2895# for the system default hardcoded library path. In most cases,
2896# this is /usr/lib:/lib, but when the MPI compilers are used
2897# the location of the communication and MPI libs are included too.
2898# If we don't find anything, use the default library path according
2899# to the aix ld manual.
2900# _LT_SYS_MODULE_PATH_AIX
2901
2902
2903# _LT_SHELL_INIT(ARG)
2904# -------------------
2905# _LT_SHELL_INIT
2906
2907
2908
2909# _LT_PROG_ECHO_BACKSLASH
2910# -----------------------
2911# Find how we can fake an echo command that does not interpret backslash.
2912# In particular, with Autoconf 2.60 or later we add some code to the start
2913# of the generated configure script which will find a shell with a builtin
2914# printf (which we can use as an echo command).
2915# _LT_PROG_ECHO_BACKSLASH
2916
2917
2918# _LT_ENABLE_LOCK
2919# ---------------
2920# _LT_ENABLE_LOCK
2921
2922
2923# _LT_CMD_OLD_ARCHIVE
2924# -------------------
2925# _LT_CMD_OLD_ARCHIVE
2926
2927
2928# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2929# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2930# ----------------------------------------------------------------
2931# Check whether the given compiler option works
2932# _LT_COMPILER_OPTION
2933
2934# Old name:
2935# This is what autoupdate's m4 run will expand. It fires
2936# the warning (with _au_warn_XXX), outputs it into the
2937# updated configure.ac (with AC_DIAGNOSE), and then outputs
2938# the replacement expansion.
2939
2940
2941# This is an auxiliary macro that is also run when
2942# autoupdate runs m4. It simply calls m4_warning, but
2943# we need a wrapper so that each warning is emitted only
2944# once. We break the quoting in m4_warning's argument in
2945# order to expand this macro's arguments, not AU_DEFUN's.
2946
2947
2948# Finally, this is the expansion that is picked up by
2949# autoconf. It tells the user to run autoupdate, and
2950# then outputs the replacement expansion. We do not care
2951# about autoupdate's warning because that contains
2952# information on what to do *after* running autoupdate.
2953
2954
2955
2956# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2957# [ACTION-SUCCESS], [ACTION-FAILURE])
2958# ----------------------------------------------------
2959# Check whether the given linker option works
2960# _LT_LINKER_OPTION
2961
2962# Old name:
2963# This is what autoupdate's m4 run will expand. It fires
2964# the warning (with _au_warn_XXX), outputs it into the
2965# updated configure.ac (with AC_DIAGNOSE), and then outputs
2966# the replacement expansion.
2967
2968
2969# This is an auxiliary macro that is also run when
2970# autoupdate runs m4. It simply calls m4_warning, but
2971# we need a wrapper so that each warning is emitted only
2972# once. We break the quoting in m4_warning's argument in
2973# order to expand this macro's arguments, not AU_DEFUN's.
2974
2975
2976# Finally, this is the expansion that is picked up by
2977# autoconf. It tells the user to run autoupdate, and
2978# then outputs the replacement expansion. We do not care
2979# about autoupdate's warning because that contains
2980# information on what to do *after* running autoupdate.
2981
2982
2983
2984# LT_CMD_MAX_LEN
2985#---------------
2986# LT_CMD_MAX_LEN
2987
2988# Old name:
2989# This is what autoupdate's m4 run will expand. It fires
2990# the warning (with _au_warn_XXX), outputs it into the
2991# updated configure.ac (with AC_DIAGNOSE), and then outputs
2992# the replacement expansion.
2993
2994
2995# This is an auxiliary macro that is also run when
2996# autoupdate runs m4. It simply calls m4_warning, but
2997# we need a wrapper so that each warning is emitted only
2998# once. We break the quoting in m4_warning's argument in
2999# order to expand this macro's arguments, not AU_DEFUN's.
3000
3001
3002# Finally, this is the expansion that is picked up by
3003# autoconf. It tells the user to run autoupdate, and
3004# then outputs the replacement expansion. We do not care
3005# about autoupdate's warning because that contains
3006# information on what to do *after* running autoupdate.
3007
3008
3009
3010# _LT_HEADER_DLFCN
3011# ----------------
3012# _LT_HEADER_DLFCN
3013
3014
3015# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3016# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3017# ----------------------------------------------------------------
3018# _LT_TRY_DLOPEN_SELF
3019
3020
3021# LT_SYS_DLOPEN_SELF
3022# ------------------
3023# LT_SYS_DLOPEN_SELF
3024
3025# Old name:
3026# This is what autoupdate's m4 run will expand. It fires
3027# the warning (with _au_warn_XXX), outputs it into the
3028# updated configure.ac (with AC_DIAGNOSE), and then outputs
3029# the replacement expansion.
3030
3031
3032# This is an auxiliary macro that is also run when
3033# autoupdate runs m4. It simply calls m4_warning, but
3034# we need a wrapper so that each warning is emitted only
3035# once. We break the quoting in m4_warning's argument in
3036# order to expand this macro's arguments, not AU_DEFUN's.
3037
3038
3039# Finally, this is the expansion that is picked up by
3040# autoconf. It tells the user to run autoupdate, and
3041# then outputs the replacement expansion. We do not care
3042# about autoupdate's warning because that contains
3043# information on what to do *after* running autoupdate.
3044
3045
3046
3047# _LT_COMPILER_C_O([TAGNAME])
3048# ---------------------------
3049# Check to see if options -c and -o are simultaneously supported by compiler.
3050# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3051# _LT_COMPILER_C_O
3052
3053
3054# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3055# ----------------------------------
3056# Check to see if we can do hard links to lock some files if needed
3057# _LT_COMPILER_FILE_LOCKS
3058
3059
3060# _LT_CHECK_OBJDIR
3061# ----------------
3062# _LT_CHECK_OBJDIR
3063
3064
3065# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3066# --------------------------------------
3067# Check hardcoding attributes.
3068# _LT_LINKER_HARDCODE_LIBPATH
3069
3070
3071# _LT_CMD_STRIPLIB
3072# ----------------
3073# _LT_CMD_STRIPLIB
3074
3075
3076# _LT_SYS_DYNAMIC_LINKER([TAG])
3077# -----------------------------
3078# PORTME Fill in your ld.so characteristics
3079# _LT_SYS_DYNAMIC_LINKER
3080
3081
3082# _LT_PATH_TOOL_PREFIX(TOOL)
3083# --------------------------
3084# find a file program which can recognize shared library
3085# _LT_PATH_TOOL_PREFIX
3086
3087# Old name:
3088# This is what autoupdate's m4 run will expand. It fires
3089# the warning (with _au_warn_XXX), outputs it into the
3090# updated configure.ac (with AC_DIAGNOSE), and then outputs
3091# the replacement expansion.
3092
3093
3094# This is an auxiliary macro that is also run when
3095# autoupdate runs m4. It simply calls m4_warning, but
3096# we need a wrapper so that each warning is emitted only
3097# once. We break the quoting in m4_warning's argument in
3098# order to expand this macro's arguments, not AU_DEFUN's.
3099
3100
3101# Finally, this is the expansion that is picked up by
3102# autoconf. It tells the user to run autoupdate, and
3103# then outputs the replacement expansion. We do not care
3104# about autoupdate's warning because that contains
3105# information on what to do *after* running autoupdate.
3106
3107
3108
3109# _LT_PATH_MAGIC
3110# --------------
3111# find a file program which can recognize a shared library
3112# _LT_PATH_MAGIC
3113
3114
3115# LT_PATH_LD
3116# ----------
3117# find the pathname to the GNU or non-GNU linker
3118# LT_PATH_LD
3119
3120# Old names:
3121# This is what autoupdate's m4 run will expand. It fires
3122# the warning (with _au_warn_XXX), outputs it into the
3123# updated configure.ac (with AC_DIAGNOSE), and then outputs
3124# the replacement expansion.
3125
3126
3127# This is an auxiliary macro that is also run when
3128# autoupdate runs m4. It simply calls m4_warning, but
3129# we need a wrapper so that each warning is emitted only
3130# once. We break the quoting in m4_warning's argument in
3131# order to expand this macro's arguments, not AU_DEFUN's.
3132
3133
3134# Finally, this is the expansion that is picked up by
3135# autoconf. It tells the user to run autoupdate, and
3136# then outputs the replacement expansion. We do not care
3137# about autoupdate's warning because that contains
3138# information on what to do *after* running autoupdate.
3139
3140# This is what autoupdate's m4 run will expand. It fires
3141# the warning (with _au_warn_XXX), outputs it into the
3142# updated configure.ac (with AC_DIAGNOSE), and then outputs
3143# the replacement expansion.
3144
3145
3146# This is an auxiliary macro that is also run when
3147# autoupdate runs m4. It simply calls m4_warning, but
3148# we need a wrapper so that each warning is emitted only
3149# once. We break the quoting in m4_warning's argument in
3150# order to expand this macro's arguments, not AU_DEFUN's.
3151
3152
3153# Finally, this is the expansion that is picked up by
3154# autoconf. It tells the user to run autoupdate, and
3155# then outputs the replacement expansion. We do not care
3156# about autoupdate's warning because that contains
3157# information on what to do *after* running autoupdate.
3158
3159
3160
3161# _LT_PATH_LD_GNU
3162#- --------------
3163# _LT_PATH_LD_GNU
3164
3165
3166# _LT_CMD_RELOAD
3167# --------------
3168# find reload flag for linker
3169# -- PORTME Some linkers may need a different reload flag.
3170# _LT_CMD_RELOAD
3171
3172
3173# _LT_CHECK_MAGIC_METHOD
3174# ----------------------
3175# how to check for library dependencies
3176# -- PORTME fill in with the dynamic library characteristics
3177# _LT_CHECK_MAGIC_METHOD
3178
3179
3180# LT_PATH_NM
3181# ----------
3182# find the pathname to a BSD- or MS-compatible name lister
3183# LT_PATH_NM
3184
3185# Old names:
3186# This is what autoupdate's m4 run will expand. It fires
3187# the warning (with _au_warn_XXX), outputs it into the
3188# updated configure.ac (with AC_DIAGNOSE), and then outputs
3189# the replacement expansion.
3190
3191
3192# This is an auxiliary macro that is also run when
3193# autoupdate runs m4. It simply calls m4_warning, but
3194# we need a wrapper so that each warning is emitted only
3195# once. We break the quoting in m4_warning's argument in
3196# order to expand this macro's arguments, not AU_DEFUN's.
3197
3198
3199# Finally, this is the expansion that is picked up by
3200# autoconf. It tells the user to run autoupdate, and
3201# then outputs the replacement expansion. We do not care
3202# about autoupdate's warning because that contains
3203# information on what to do *after* running autoupdate.
3204
3205# This is what autoupdate's m4 run will expand. It fires
3206# the warning (with _au_warn_XXX), outputs it into the
3207# updated configure.ac (with AC_DIAGNOSE), and then outputs
3208# the replacement expansion.
3209
3210
3211# This is an auxiliary macro that is also run when
3212# autoupdate runs m4. It simply calls m4_warning, but
3213# we need a wrapper so that each warning is emitted only
3214# once. We break the quoting in m4_warning's argument in
3215# order to expand this macro's arguments, not AU_DEFUN's.
3216
3217
3218# Finally, this is the expansion that is picked up by
3219# autoconf. It tells the user to run autoupdate, and
3220# then outputs the replacement expansion. We do not care
3221# about autoupdate's warning because that contains
3222# information on what to do *after* running autoupdate.
3223
3224
3225
3226# LT_LIB_M
3227# --------
3228# check for math library
3229# LT_LIB_M
3230
3231# Old name:
3232# This is what autoupdate's m4 run will expand. It fires
3233# the warning (with _au_warn_XXX), outputs it into the
3234# updated configure.ac (with AC_DIAGNOSE), and then outputs
3235# the replacement expansion.
3236
3237
3238# This is an auxiliary macro that is also run when
3239# autoupdate runs m4. It simply calls m4_warning, but
3240# we need a wrapper so that each warning is emitted only
3241# once. We break the quoting in m4_warning's argument in
3242# order to expand this macro's arguments, not AU_DEFUN's.
3243
3244
3245# Finally, this is the expansion that is picked up by
3246# autoconf. It tells the user to run autoupdate, and
3247# then outputs the replacement expansion. We do not care
3248# about autoupdate's warning because that contains
3249# information on what to do *after* running autoupdate.
3250
3251
3252
3253# _LT_COMPILER_NO_RTTI([TAGNAME])
3254# -------------------------------
3255# _LT_COMPILER_NO_RTTI
3256
3257
3258# _LT_CMD_GLOBAL_SYMBOLS
3259# ----------------------
3260 # _LT_CMD_GLOBAL_SYMBOLS
3261
3262
3263# _LT_COMPILER_PIC([TAGNAME])
3264# ---------------------------
3265# _LT_COMPILER_PIC
3266
3267
3268# _LT_LINKER_SHLIBS([TAGNAME])
3269# ----------------------------
3270# See if the linker supports building shared libraries.
3271# _LT_LINKER_SHLIBS
3272
3273
3274# _LT_LANG_C_CONFIG([TAG])
3275# ------------------------
3276# Ensure that the configuration variables for a C compiler are suitably
3277# defined. These variables are subsequently used by _LT_CONFIG to write
3278# the compiler configuration to `libtool'.
3279# _LT_LANG_C_CONFIG
3280
3281
3282# _LT_LANG_CXX_CONFIG([TAG])
3283# --------------------------
3284# Ensure that the configuration variables for a C++ compiler are suitably
3285# defined. These variables are subsequently used by _LT_CONFIG to write
3286# the compiler configuration to `libtool'.
3287# _LT_LANG_CXX_CONFIG
3288
3289
3290# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3291# ---------------------------------
3292# Figure out "hidden" library dependencies from verbose
3293# compiler output when linking a shared library.
3294# Parse the compiler output and extract the necessary
3295# objects, libraries and library flags.
3296# _LT_SYS_HIDDEN_LIBDEPS
3297
3298
3299# _LT_LANG_F77_CONFIG([TAG])
3300# --------------------------
3301# Ensure that the configuration variables for a Fortran 77 compiler are
3302# suitably defined. These variables are subsequently used by _LT_CONFIG
3303# to write the compiler configuration to `libtool'.
3304# _LT_LANG_F77_CONFIG
3305
3306
3307# _LT_LANG_FC_CONFIG([TAG])
3308# -------------------------
3309# Ensure that the configuration variables for a Fortran compiler are
3310# suitably defined. These variables are subsequently used by _LT_CONFIG
3311# to write the compiler configuration to `libtool'.
3312# _LT_LANG_FC_CONFIG
3313
3314
3315# _LT_LANG_GCJ_CONFIG([TAG])
3316# --------------------------
3317# Ensure that the configuration variables for the GNU Java Compiler compiler
3318# are suitably defined. These variables are subsequently used by _LT_CONFIG
3319# to write the compiler configuration to `libtool'.
3320# _LT_LANG_GCJ_CONFIG
3321
3322
3323# _LT_LANG_RC_CONFIG([TAG])
3324# -------------------------
3325# Ensure that the configuration variables for the Windows resource compiler
3326# are suitably defined. These variables are subsequently used by _LT_CONFIG
3327# to write the compiler configuration to `libtool'.
3328# _LT_LANG_RC_CONFIG
3329
3330
3331# LT_PROG_GCJ
3332# -----------
3333
3334
3335# Old name:
3336# This is what autoupdate's m4 run will expand. It fires
3337# the warning (with _au_warn_XXX), outputs it into the
3338# updated configure.ac (with AC_DIAGNOSE), and then outputs
3339# the replacement expansion.
3340
3341
3342# This is an auxiliary macro that is also run when
3343# autoupdate runs m4. It simply calls m4_warning, but
3344# we need a wrapper so that each warning is emitted only
3345# once. We break the quoting in m4_warning's argument in
3346# order to expand this macro's arguments, not AU_DEFUN's.
3347
3348
3349# Finally, this is the expansion that is picked up by
3350# autoconf. It tells the user to run autoupdate, and
3351# then outputs the replacement expansion. We do not care
3352# about autoupdate's warning because that contains
3353# information on what to do *after* running autoupdate.
3354
3355
3356
3357# LT_PROG_RC
3358# ----------
3359
3360
3361# Old name:
3362# This is what autoupdate's m4 run will expand. It fires
3363# the warning (with _au_warn_XXX), outputs it into the
3364# updated configure.ac (with AC_DIAGNOSE), and then outputs
3365# the replacement expansion.
3366
3367
3368# This is an auxiliary macro that is also run when
3369# autoupdate runs m4. It simply calls m4_warning, but
3370# we need a wrapper so that each warning is emitted only
3371# once. We break the quoting in m4_warning's argument in
3372# order to expand this macro's arguments, not AU_DEFUN's.
3373
3374
3375# Finally, this is the expansion that is picked up by
3376# autoconf. It tells the user to run autoupdate, and
3377# then outputs the replacement expansion. We do not care
3378# about autoupdate's warning because that contains
3379# information on what to do *after* running autoupdate.
3380
3381
3382
3383# _LT_DECL_EGREP
3384# --------------
3385# If we don't have a new enough Autoconf to choose the best grep
3386# available, choose the one first in the user's PATH.
3387
3388
3389
3390# _LT_DECL_OBJDUMP
3391# --------------
3392# If we don't have a new enough Autoconf to choose the best objdump
3393# available, choose the one first in the user's PATH.
3394
3395
3396
3397# _LT_DECL_SED
3398# ------------
3399# Check for a fully-functional sed program, that truncates
3400# as few characters as possible. Prefer GNU sed if found.
3401# _LT_DECL_SED
3402
3403#m4_ifndef
3404
3405# Old name:
3406# This is what autoupdate's m4 run will expand. It fires
3407# the warning (with _au_warn_XXX), outputs it into the
3408# updated configure.ac (with AC_DIAGNOSE), and then outputs
3409# the replacement expansion.
3410
3411
3412# This is an auxiliary macro that is also run when
3413# autoupdate runs m4. It simply calls m4_warning, but
3414# we need a wrapper so that each warning is emitted only
3415# once. We break the quoting in m4_warning's argument in
3416# order to expand this macro's arguments, not AU_DEFUN's.
3417
3418
3419# Finally, this is the expansion that is picked up by
3420# autoconf. It tells the user to run autoupdate, and
3421# then outputs the replacement expansion. We do not care
3422# about autoupdate's warning because that contains
3423# information on what to do *after* running autoupdate.
3424
3425
3426
3427# _LT_CHECK_SHELL_FEATURES
3428# ------------------------
3429# Find out whether the shell is Bourne or XSI compatible,
3430# or has some other useful features.
3431# _LT_CHECK_SHELL_FEATURES
3432
3433
3434# _LT_PROG_XSI_SHELLFNS
3435# ---------------------
3436# Bourne and XSI compatible variants of some useful shell functions.
3437
3438
3439# Helper functions for option handling. -*- Autoconf -*-
3440#
3441# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3442# Inc.
3443# Written by Gary V. Vaughan, 2004
3444#
3445# This file is free software; the Free Software Foundation gives
3446# unlimited permission to copy and/or distribute it, with or without
3447# modifications, as long as this notice is preserved.
3448
3449# serial 6 ltoptions.m4
3450
3451# This is to help aclocal find these macros, as it can't see m4_define.
3452
3453
3454
3455# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3456# ------------------------------------------
3457
3458
3459
3460# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3461# ---------------------------------------
3462# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3463# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3464# saved as a flag.
3465
3466
3467
3468# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3469# ------------------------------------------------------------
3470# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3471
3472
3473
3474# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3475# -------------------------------------------------------
3476# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3477# are set.
3478
3479
3480
3481# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3482# ----------------------------------------
3483# OPTION-LIST is a space-separated list of Libtool options associated
3484# with MACRO-NAME. If any OPTION has a matching handler declared with
3485# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3486# the unknown option and exit.
3487# _LT_SET_OPTIONS
3488
3489
3490## --------------------------------- ##
3491## Macros to handle LT_INIT options. ##
3492## --------------------------------- ##
3493
3494# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3495# -----------------------------------------
3496
3497
3498
3499# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3500# -----------------------------------------------
3501# LT_OPTION_DEFINE
3502
3503
3504# dlopen
3505# ------
3506
3507
3508# This is what autoupdate's m4 run will expand. It fires
3509# the warning (with _au_warn_XXX), outputs it into the
3510# updated configure.ac (with AC_DIAGNOSE), and then outputs
3511# the replacement expansion.
3512
3513
3514# This is an auxiliary macro that is also run when
3515# autoupdate runs m4. It simply calls m4_warning, but
3516# we need a wrapper so that each warning is emitted only
3517# once. We break the quoting in m4_warning's argument in
3518# order to expand this macro's arguments, not AU_DEFUN's.
3519
3520
3521# Finally, this is the expansion that is picked up by
3522# autoconf. It tells the user to run autoupdate, and
3523# then outputs the replacement expansion. We do not care
3524# about autoupdate's warning because that contains
3525# information on what to do *after* running autoupdate.
3526
3527
3528
3529
3530# win32-dll
3531# ---------
3532# Declare package support for building win32 dll's.
3533# win32-dll
3534
3535# This is what autoupdate's m4 run will expand. It fires
3536# the warning (with _au_warn_XXX), outputs it into the
3537# updated configure.ac (with AC_DIAGNOSE), and then outputs
3538# the replacement expansion.
3539
3540
3541# This is an auxiliary macro that is also run when
3542# autoupdate runs m4. It simply calls m4_warning, but
3543# we need a wrapper so that each warning is emitted only
3544# once. We break the quoting in m4_warning's argument in
3545# order to expand this macro's arguments, not AU_DEFUN's.
3546
3547
3548# Finally, this is the expansion that is picked up by
3549# autoconf. It tells the user to run autoupdate, and
3550# then outputs the replacement expansion. We do not care
3551# about autoupdate's warning because that contains
3552# information on what to do *after* running autoupdate.
3553
3554
3555
3556
3557# _LT_ENABLE_SHARED([DEFAULT])
3558# ----------------------------
3559# implement the --enable-shared flag, and supports the `shared' and
3560# `disable-shared' LT_INIT options.
3561# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3562# _LT_ENABLE_SHARED
3563
3564
3565
3566
3567# Old names:
3568
3569
3570
3571
3572# This is what autoupdate's m4 run will expand. It fires
3573# the warning (with _au_warn_XXX), outputs it into the
3574# updated configure.ac (with AC_DIAGNOSE), and then outputs
3575# the replacement expansion.
3576
3577
3578# This is an auxiliary macro that is also run when
3579# autoupdate runs m4. It simply calls m4_warning, but
3580# we need a wrapper so that each warning is emitted only
3581# once. We break the quoting in m4_warning's argument in
3582# order to expand this macro's arguments, not AU_DEFUN's.
3583
3584
3585# Finally, this is the expansion that is picked up by
3586# autoconf. It tells the user to run autoupdate, and
3587# then outputs the replacement expansion. We do not care
3588# about autoupdate's warning because that contains
3589# information on what to do *after* running autoupdate.
3590
3591# This is what autoupdate's m4 run will expand. It fires
3592# the warning (with _au_warn_XXX), outputs it into the
3593# updated configure.ac (with AC_DIAGNOSE), and then outputs
3594# the replacement expansion.
3595
3596
3597# This is an auxiliary macro that is also run when
3598# autoupdate runs m4. It simply calls m4_warning, but
3599# we need a wrapper so that each warning is emitted only
3600# once. We break the quoting in m4_warning's argument in
3601# order to expand this macro's arguments, not AU_DEFUN's.
3602
3603
3604# Finally, this is the expansion that is picked up by
3605# autoconf. It tells the user to run autoupdate, and
3606# then outputs the replacement expansion. We do not care
3607# about autoupdate's warning because that contains
3608# information on what to do *after* running autoupdate.
3609
3610
3611
3612
3613
3614# _LT_ENABLE_STATIC([DEFAULT])
3615# ----------------------------
3616# implement the --enable-static flag, and support the `static' and
3617# `disable-static' LT_INIT options.
3618# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3619# _LT_ENABLE_STATIC
3620
3621
3622
3623
3624# Old names:
3625
3626
3627
3628
3629# This is what autoupdate's m4 run will expand. It fires
3630# the warning (with _au_warn_XXX), outputs it into the
3631# updated configure.ac (with AC_DIAGNOSE), and then outputs
3632# the replacement expansion.
3633
3634
3635# This is an auxiliary macro that is also run when
3636# autoupdate runs m4. It simply calls m4_warning, but
3637# we need a wrapper so that each warning is emitted only
3638# once. We break the quoting in m4_warning's argument in
3639# order to expand this macro's arguments, not AU_DEFUN's.
3640
3641
3642# Finally, this is the expansion that is picked up by
3643# autoconf. It tells the user to run autoupdate, and
3644# then outputs the replacement expansion. We do not care
3645# about autoupdate's warning because that contains
3646# information on what to do *after* running autoupdate.
3647
3648# This is what autoupdate's m4 run will expand. It fires
3649# the warning (with _au_warn_XXX), outputs it into the
3650# updated configure.ac (with AC_DIAGNOSE), and then outputs
3651# the replacement expansion.
3652
3653
3654# This is an auxiliary macro that is also run when
3655# autoupdate runs m4. It simply calls m4_warning, but
3656# we need a wrapper so that each warning is emitted only
3657# once. We break the quoting in m4_warning's argument in
3658# order to expand this macro's arguments, not AU_DEFUN's.
3659
3660
3661# Finally, this is the expansion that is picked up by
3662# autoconf. It tells the user to run autoupdate, and
3663# then outputs the replacement expansion. We do not care
3664# about autoupdate's warning because that contains
3665# information on what to do *after* running autoupdate.
3666
3667
3668
3669
3670
3671# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3672# ----------------------------------
3673# implement the --enable-fast-install flag, and support the `fast-install'
3674# and `disable-fast-install' LT_INIT options.
3675# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3676# _LT_ENABLE_FAST_INSTALL
3677
3678
3679
3680
3681# Old names:
3682# This is what autoupdate's m4 run will expand. It fires
3683# the warning (with _au_warn_XXX), outputs it into the
3684# updated configure.ac (with AC_DIAGNOSE), and then outputs
3685# the replacement expansion.
3686
3687
3688# This is an auxiliary macro that is also run when
3689# autoupdate runs m4. It simply calls m4_warning, but
3690# we need a wrapper so that each warning is emitted only
3691# once. We break the quoting in m4_warning's argument in
3692# order to expand this macro's arguments, not AU_DEFUN's.
3693
3694
3695# Finally, this is the expansion that is picked up by
3696# autoconf. It tells the user to run autoupdate, and
3697# then outputs the replacement expansion. We do not care
3698# about autoupdate's warning because that contains
3699# information on what to do *after* running autoupdate.
3700
3701
3702# This is what autoupdate's m4 run will expand. It fires
3703# the warning (with _au_warn_XXX), outputs it into the
3704# updated configure.ac (with AC_DIAGNOSE), and then outputs
3705# the replacement expansion.
3706
3707
3708# This is an auxiliary macro that is also run when
3709# autoupdate runs m4. It simply calls m4_warning, but
3710# we need a wrapper so that each warning is emitted only
3711# once. We break the quoting in m4_warning's argument in
3712# order to expand this macro's arguments, not AU_DEFUN's.
3713
3714
3715# Finally, this is the expansion that is picked up by
3716# autoconf. It tells the user to run autoupdate, and
3717# then outputs the replacement expansion. We do not care
3718# about autoupdate's warning because that contains
3719# information on what to do *after* running autoupdate.
3720
3721
3722
3723
3724# _LT_WITH_PIC([MODE])
3725# --------------------
3726# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3727# LT_INIT options.
3728# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3729# _LT_WITH_PIC
3730
3731
3732
3733
3734# Old name:
3735# This is what autoupdate's m4 run will expand. It fires
3736# the warning (with _au_warn_XXX), outputs it into the
3737# updated configure.ac (with AC_DIAGNOSE), and then outputs
3738# the replacement expansion.
3739
3740
3741# This is an auxiliary macro that is also run when
3742# autoupdate runs m4. It simply calls m4_warning, but
3743# we need a wrapper so that each warning is emitted only
3744# once. We break the quoting in m4_warning's argument in
3745# order to expand this macro's arguments, not AU_DEFUN's.
3746
3747
3748# Finally, this is the expansion that is picked up by
3749# autoconf. It tells the user to run autoupdate, and
3750# then outputs the replacement expansion. We do not care
3751# about autoupdate's warning because that contains
3752# information on what to do *after* running autoupdate.
3753
3754
3755
3756## ----------------- ##
3757## LTDL_INIT Options ##
3758## ----------------- ##
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3770#
3771# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3772# Written by Gary V. Vaughan, 2004
3773#
3774# This file is free software; the Free Software Foundation gives
3775# unlimited permission to copy and/or distribute it, with or without
3776# modifications, as long as this notice is preserved.
3777
3778# serial 6 ltsugar.m4
3779
3780# This is to help aclocal find these macros, as it can't see m4_define.
3781
3782
3783
3784# lt_join(SEP, ARG1, [ARG2...])
3785# -----------------------------
3786# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3787# associated separator.
3788# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3789# versions in m4sugar had bugs.
3790
3791
3792
3793
3794# lt_car(LIST)
3795# lt_cdr(LIST)
3796# ------------
3797# Manipulate m4 lists.
3798# These macros are necessary as long as will still need to support
3799# Autoconf-2.59 which quotes differently.
3800
3801
3802
3803
3804
3805# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3806# ------------------------------------------
3807# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3808# Note that neither SEPARATOR nor STRING are expanded; they are appended
3809# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3810# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3811# than defined and empty).
3812#
3813# This macro is needed until we can rely on Autoconf 2.62, since earlier
3814# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3815
3816
3817
3818
3819# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3820# ----------------------------------------------------------
3821# Produce a SEP delimited list of all paired combinations of elements of
3822# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3823# has the form PREFIXmINFIXSUFFIXn.
3824# Needed until we can rely on m4_combine added in Autoconf 2.62.
3825
3826
3827
3828# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3829# -----------------------------------------------------------------------
3830# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3831# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3832
3833
3834
3835# lt_dict_add(DICT, KEY, VALUE)
3836# -----------------------------
3837
3838
3839
3840# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3841# --------------------------------------------
3842
3843
3844
3845# lt_dict_fetch(DICT, KEY, [SUBKEY])
3846# ----------------------------------
3847
3848
3849
3850# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3851# -----------------------------------------------------------------
3852
3853
3854
3855# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3856# --------------------------------------------------------------
3857
3858
3859# ltversion.m4 -- version numbers -*- Autoconf -*-
3860#
3861# Copyright (C) 2004 Free Software Foundation, Inc.
3862# Written by Scott James Remnant, 2004
3863#
3864# This file is free software; the Free Software Foundation gives
3865# unlimited permission to copy and/or distribute it, with or without
3866# modifications, as long as this notice is preserved.
3867
3868# Generated from ltversion.in.
3869
3870# serial 3134 ltversion.m4
3871# This file is part of GNU Libtool
3872
3873
3874
3875
3876
3877
3878# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3879#
3880# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3881# Written by Scott James Remnant, 2004.
3882#
3883# This file is free software; the Free Software Foundation gives
3884# unlimited permission to copy and/or distribute it, with or without
3885# modifications, as long as this notice is preserved.
3886
3887# serial 4 lt~obsolete.m4
3888
3889# These exist entirely to fool aclocal when bootstrapping libtool.
3890#
3891# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3892# which have later been changed to m4_define as they aren't part of the
3893# exported API, or moved to Autoconf or Automake where they belong.
3894#
3895# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3896# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3897# using a macro with the same name in our local m4/libtool.m4 it'll
3898# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3899# and doesn't know about Autoconf macros at all.)
3900#
3901# So we provide this file, which has a silly filename so it's always
3902# included after everything else. This provides aclocal with the
3903# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3904# because those macros already exist, or will be overwritten later.
3905# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3906#
3907# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3908# Yes, that means every name once taken will need to remain here until
3909# we give up compatibility with versions before 1.7, at which point
3910# we need to keep only those names which we still refer to.
3911
3912# This is to help aclocal find these macros, as it can't see m4_define.
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
6ffe910a
MF
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
5f3ef9d0
JB
3977## -*- Autoconf -*-
3978
3979# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3980# Free Software Foundation, Inc.
3981#
3982# This file is free software; the Free Software Foundation
3983# gives unlimited permission to copy and/or distribute it,
3984# with or without modifications, as long as this notice is preserved.
3985
3986# serial 8
3987
3988# Based on depend.m4 from automake 1.9, modified for standalone use in
3989# an environment where GNU make is required.
3990
3991# ZW_PROG_COMPILER_DEPENDENCIES
3992# -----------------------------
3993# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3994# sets fooDEPMODE accordingly. Cache-variable compatible with
3995# original; not side-effect compatible. As the users of this macro
3996# may require accurate dependencies for correct builds, it does *not*
3997# honor --disable-dependency-checking, and failure to detect a usable
3998# method is an error. depcomp is assumed to be located in
3999# $ac_aux_dir.
4000#
4001# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
4002
4003
4004
4005# AM_SET_DEPDIR
4006# -------------
4007# Choose a directory name for dependency files.
4008
4009
4010# ZW_CREATE_DEPDIR
4011# ----------------
4012# As AM_SET_DEPDIR, but also create the directory at config.status time.
4013
4014
6ffe910a
MF
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
6ffe910a
MF
4054
4055
4056
4057
4058
4059sim_inline="-DDEFAULT_INLINE=0"
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
6ffe910a
MF
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088# intl sister-directory configuration rules.
4089#
4090
4091# The idea behind this macro is that there's no need to repeat all the
4092# autoconf probes done by the intl directory - it's already done them
4093# for us. In fact, there's no need even to look at the cache for the
4094# answers. All we need to do is nab a few pieces of information.
4095# The intl directory is set up to make this easy, by generating a
4096# small file which can be sourced as a shell script; then we produce
4097# the necessary substitutions and definitions for this directory.
4098
4099
4100
4101# Autoconf M4 include file defining utility macros for complex Canadian
4102# cross builds.
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112####
4113# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4114# or AC_INIT.
4115# These demand that AC_CANONICAL_SYSTEM be called beforehand.
4116
4117####
4118# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4119# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4120
4121
4122####
4123# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4124# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4125
4126
4127
4128# Backported from Autoconf 2.5x; can go away when and if
4129# we switch. Put the OS path separator in $PATH_SEPARATOR.
4130
4131
4132
4133
4134# ACX_HAVE_GCC_FOR_TARGET
4135# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4136
4137
4138# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4139# Searching for installed target binutils. We need to take extra care,
4140# else we may find the wrong assembler, linker, etc., and lose.
4141#
4142# First try --with-build-time-tools, if specified.
4143#
4144# For build != host, we ask the installed GCC for the name of the tool it
4145# uses, and accept it if it is an absolute path. This is because the
4146# only good choice for a compiler is the same GCC version that is being
4147# installed (or we couldn't make target libraries), and we assume that
4148# on the host system we'll have not only the same GCC version, but also
4149# the same binutils version.
4150#
4151# For build == host, search the same directories that the installed
4152# compiler will search. We used to do this for the assembler, linker,
4153# and nm only; for simplicity of configuration, however, we extend this
4154# criterion to tools (such as ar and ranlib) that are never invoked by
4155# the compiler, to avoid mismatches.
4156#
4157# Also note we have to check MD_EXEC_PREFIX before checking the user's path
4158# if build == target. This makes the most sense only when bootstrapping,
4159# but we also do so when build != host. In this case, we hope that the
4160# build and host systems will have similar contents of MD_EXEC_PREFIX.
4161#
4162# If we do not find a suitable binary, then try the user's path.
4163
4164
4165###
4166# AC_PROG_CPP_WERROR
4167# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4168# triggers warnings from the preprocessor. Will be in autoconf 2.58.
4169# For now, using this also overrides header checks to use only the
4170# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4171# bit harder from here).
4172# Eventually autoconf will default to checking headers with the compiler
4173# instead, and we'll have to do this differently.
4174
4175# AC_PROG_CPP_WERROR
4176
4177# Test for GNAT.
5f3ef9d0
JB
4178# We require the gnatbind & gnatmake programs, as well as a compiler driver
4179# that understands Ada. We use the user's CC setting, already found, and
4180# possibly add $1 to the command-line parameters.
6ffe910a
MF
4181#
4182# Sets the shell variable have_gnat to yes or no as appropriate, and
4183# substitutes GNATBIND and GNATMAKE.
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
b7026657
AC
4204
4205
b7026657
AC
4206
4207
4208
4209ac_aux_dir=
81ecdfbb
RW
4210for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4211 for ac_t in install-sh install.sh shtool; do
4212 if test -f "$ac_dir/$ac_t"; then
4213 ac_aux_dir=$ac_dir
4214 ac_install_sh="$ac_aux_dir/$ac_t -c"
4215 break 2
4216 fi
4217 done
b7026657
AC
4218done
4219if test -z "$ac_aux_dir"; then
81ecdfbb 4220 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b7026657 4221fi
81ecdfbb
RW
4222
4223# These three variables are undocumented and unsupported,
4224# and are intended to be withdrawn in a future Autoconf release.
4225# They can cause serious problems if a builder's source tree is in a directory
4226# whose full name contains unusual characters.
4227ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4228ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4229ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4230
b7026657
AC
4231
4232# Find a good install program. We prefer a C program (faster),
4233# so one script is as good as another. But avoid the broken or
4234# incompatible versions:
4235# SysV /etc/install, /usr/sbin/install
4236# SunOS /usr/etc/install
4237# IRIX /sbin/install
4238# AIX /bin/install
4239# AmigaOS /C/install, which installs bootblocks on floppy discs
4240# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4241# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4242# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4243# OS/2's system install, which has a completely different semantic
4244# ./install, which can be erroneously created by make from ./install.sh.
81ecdfbb
RW
4245# Reject install programs that cannot install multiple files.
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4247$as_echo_n "checking for a BSD-compatible install... " >&6; }
b7026657 4248if test -z "$INSTALL"; then
81ecdfbb
RW
4249if test "${ac_cv_path_install+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
b7026657
AC
4251else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4257 # Account for people who put trailing slashes in PATH elements.
4258case $as_dir/ in #((
4259 ./ | .// | /[cC]/* | \
b7026657 4260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 4261 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b7026657
AC
4262 /usr/ucb/* ) ;;
4263 *)
4264 # OSF1 and SCO ODT 3.0 have their own names for install.
4265 # Don't use installbsd from OSF since it installs stuff as root
4266 # by default.
4267 for ac_prog in ginstall scoinst install; do
4268 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 4269 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
b7026657
AC
4270 if test $ac_prog = install &&
4271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4272 # AIX install. It has an incompatible calling convention.
4273 :
4274 elif test $ac_prog = install &&
4275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4276 # program-specific install script used by HP pwplus--don't use.
4277 :
4278 else
81ecdfbb
RW
4279 rm -rf conftest.one conftest.two conftest.dir
4280 echo one > conftest.one
4281 echo two > conftest.two
4282 mkdir conftest.dir
4283 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4284 test -s conftest.one && test -s conftest.two &&
4285 test -s conftest.dir/conftest.one &&
4286 test -s conftest.dir/conftest.two
4287 then
4288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4289 break 3
4290 fi
b7026657
AC
4291 fi
4292 fi
4293 done
4294 done
4295 ;;
4296esac
b7026657 4297
81ecdfbb
RW
4298 done
4299IFS=$as_save_IFS
4300
4301rm -rf conftest.one conftest.two conftest.dir
b7026657
AC
4302
4303fi
4304 if test "${ac_cv_path_install+set}" = set; then
4305 INSTALL=$ac_cv_path_install
4306 else
81ecdfbb
RW
4307 # As a last resort, use the slow shell script. Don't cache a
4308 # value for INSTALL within a source directory, because that will
b7026657 4309 # break other packages using the cache if that directory is
81ecdfbb 4310 # removed, or if the value is a relative name.
b7026657
AC
4311 INSTALL=$ac_install_sh
4312 fi
4313fi
81ecdfbb
RW
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4315$as_echo "$INSTALL" >&6; }
b7026657
AC
4316
4317# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4318# It thinks the first close brace ends the variable substitution.
4319test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4320
4321test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4322
4323test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4324
4325ac_ext=c
4326ac_cpp='$CPP $CPPFLAGS'
4327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330if test -n "$ac_tool_prefix"; then
4331 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4332set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334$as_echo_n "checking for $ac_word... " >&6; }
4335if test "${ac_cv_prog_CC+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
c906108c
SS
4337else
4338 if test -n "$CC"; then
4339 ac_cv_prog_CC="$CC" # Let the user override the test.
4340else
b7026657
AC
4341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH
4343do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4348 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4350 break 2
4351 fi
4352done
81ecdfbb
RW
4353 done
4354IFS=$as_save_IFS
b7026657 4355
c906108c
SS
4356fi
4357fi
b7026657 4358CC=$ac_cv_prog_CC
c906108c 4359if test -n "$CC"; then
81ecdfbb
RW
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4361$as_echo "$CC" >&6; }
b7026657 4362else
81ecdfbb
RW
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364$as_echo "no" >&6; }
b7026657
AC
4365fi
4366
81ecdfbb 4367
b7026657
AC
4368fi
4369if test -z "$ac_cv_prog_CC"; then
4370 ac_ct_CC=$CC
4371 # Extract the first word of "gcc", so it can be a program name with args.
4372set dummy gcc; ac_word=$2
81ecdfbb
RW
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4374$as_echo_n "checking for $ac_word... " >&6; }
4375if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
b7026657
AC
4377else
4378 if test -n "$ac_ct_CC"; then
4379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4380else
4381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH
4383do
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4388 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4390 break 2
4391 fi
4392done
81ecdfbb
RW
4393 done
4394IFS=$as_save_IFS
b7026657
AC
4395
4396fi
4397fi
4398ac_ct_CC=$ac_cv_prog_ac_ct_CC
4399if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4401$as_echo "$ac_ct_CC" >&6; }
c906108c 4402else
81ecdfbb
RW
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404$as_echo "no" >&6; }
b7026657
AC
4405fi
4406
81ecdfbb
RW
4407 if test "x$ac_ct_CC" = x; then
4408 CC=""
4409 else
4410 case $cross_compiling:$ac_tool_warned in
4411yes:)
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4414ac_tool_warned=yes ;;
4415esac
4416 CC=$ac_ct_CC
4417 fi
b7026657
AC
4418else
4419 CC="$ac_cv_prog_CC"
c906108c
SS
4420fi
4421
4422if test -z "$CC"; then
81ecdfbb
RW
4423 if test -n "$ac_tool_prefix"; then
4424 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b7026657 4425set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427$as_echo_n "checking for $ac_word... " >&6; }
4428if test "${ac_cv_prog_CC+set}" = set; then :
4429 $as_echo_n "(cached) " >&6
b7026657
AC
4430else
4431 if test -n "$CC"; then
4432 ac_cv_prog_CC="$CC" # Let the user override the test.
4433else
4434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4441 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4443 break 2
4444 fi
4445done
81ecdfbb
RW
4446 done
4447IFS=$as_save_IFS
b7026657
AC
4448
4449fi
4450fi
4451CC=$ac_cv_prog_CC
4452if test -n "$CC"; then
81ecdfbb
RW
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4454$as_echo "$CC" >&6; }
b7026657 4455else
81ecdfbb
RW
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457$as_echo "no" >&6; }
b7026657
AC
4458fi
4459
b7026657 4460
81ecdfbb 4461 fi
b7026657
AC
4462fi
4463if test -z "$CC"; then
4464 # Extract the first word of "cc", so it can be a program name with args.
4465set dummy cc; ac_word=$2
81ecdfbb
RW
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467$as_echo_n "checking for $ac_word... " >&6; }
4468if test "${ac_cv_prog_CC+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
c906108c
SS
4470else
4471 if test -n "$CC"; then
4472 ac_cv_prog_CC="$CC" # Let the user override the test.
4473else
c906108c 4474 ac_prog_rejected=no
b7026657
AC
4475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657
AC
4482 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4483 ac_prog_rejected=yes
4484 continue
4485 fi
4486 ac_cv_prog_CC="cc"
81ecdfbb 4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4488 break 2
4489 fi
4490done
81ecdfbb
RW
4491 done
4492IFS=$as_save_IFS
b7026657 4493
c906108c
SS
4494if test $ac_prog_rejected = yes; then
4495 # We found a bogon in the path, so make sure we never use it.
4496 set dummy $ac_cv_prog_CC
4497 shift
b7026657 4498 if test $# != 0; then
c906108c
SS
4499 # We chose a different compiler from the bogus one.
4500 # However, it has the same basename, so the bogon will be chosen
4501 # first if we set CC to just the basename; use the full file name.
4502 shift
b7026657 4503 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
4504 fi
4505fi
4506fi
4507fi
b7026657 4508CC=$ac_cv_prog_CC
c906108c 4509if test -n "$CC"; then
81ecdfbb
RW
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4511$as_echo "$CC" >&6; }
c906108c 4512else
81ecdfbb
RW
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514$as_echo "no" >&6; }
c906108c
SS
4515fi
4516
81ecdfbb 4517
b7026657
AC
4518fi
4519if test -z "$CC"; then
4520 if test -n "$ac_tool_prefix"; then
81ecdfbb 4521 for ac_prog in cl.exe
b7026657
AC
4522 do
4523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4524set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526$as_echo_n "checking for $ac_word... " >&6; }
4527if test "${ac_cv_prog_CC+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
c906108c
SS
4529else
4530 if test -n "$CC"; then
4531 ac_cv_prog_CC="$CC" # Let the user override the test.
4532else
b7026657
AC
4533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4542 break 2
4543 fi
4544done
81ecdfbb
RW
4545 done
4546IFS=$as_save_IFS
b7026657
AC
4547
4548fi
4549fi
4550CC=$ac_cv_prog_CC
4551if test -n "$CC"; then
81ecdfbb
RW
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4553$as_echo "$CC" >&6; }
b7026657 4554else
81ecdfbb
RW
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556$as_echo "no" >&6; }
b7026657
AC
4557fi
4558
81ecdfbb 4559
b7026657
AC
4560 test -n "$CC" && break
4561 done
4562fi
4563if test -z "$CC"; then
4564 ac_ct_CC=$CC
81ecdfbb 4565 for ac_prog in cl.exe
b7026657
AC
4566do
4567 # Extract the first word of "$ac_prog", so it can be a program name with args.
4568set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570$as_echo_n "checking for $ac_word... " >&6; }
4571if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
b7026657
AC
4573else
4574 if test -n "$ac_ct_CC"; then
4575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4576else
4577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 4584 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4586 break 2
4587 fi
4588done
81ecdfbb
RW
4589 done
4590IFS=$as_save_IFS
b7026657
AC
4591
4592fi
4593fi
4594ac_ct_CC=$ac_cv_prog_ac_ct_CC
4595if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4597$as_echo "$ac_ct_CC" >&6; }
b7026657 4598else
81ecdfbb
RW
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600$as_echo "no" >&6; }
b7026657
AC
4601fi
4602
81ecdfbb 4603
b7026657
AC
4604 test -n "$ac_ct_CC" && break
4605done
4606
81ecdfbb
RW
4607 if test "x$ac_ct_CC" = x; then
4608 CC=""
4609 else
4610 case $cross_compiling:$ac_tool_warned in
4611yes:)
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4614ac_tool_warned=yes ;;
4615esac
4616 CC=$ac_ct_CC
4617 fi
b7026657
AC
4618fi
4619
4620fi
4621
4622
81ecdfbb
RW
4623test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4625as_fn_error "no acceptable C compiler found in \$PATH
4626See \`config.log' for more details." "$LINENO" 5; }
b7026657
AC
4627
4628# Provide some information about the compiler.
81ecdfbb
RW
4629$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4630set X $ac_compile
4631ac_compiler=$2
4632for ac_option in --version -v -V -qversion; do
4633 { { ac_try="$ac_compiler $ac_option >&5"
4634case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637esac
4638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639$as_echo "$ac_try_echo"; } >&5
4640 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b7026657 4641 ac_status=$?
81ecdfbb
RW
4642 if test -s conftest.err; then
4643 sed '10a\
4644... rest of stderr output deleted ...
4645 10q' conftest.err >conftest.er1
4646 cat conftest.er1 >&5
4647 rm -f conftest.er1 conftest.err
4648 fi
4649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4650 test $ac_status = 0; }
4651done
b7026657 4652
81ecdfbb 4653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4654/* end confdefs.h. */
4655
4656int
4657main ()
4658{
4659
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664ac_clean_files_save=$ac_clean_files
81ecdfbb 4665ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b7026657
AC
4666# Try to create an executable without -o first, disregard a.out.
4667# It will help us diagnose broken compilers, and finding out an intuition
4668# of exeext.
81ecdfbb
RW
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4670$as_echo_n "checking for C compiler default output file name... " >&6; }
4671ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4672
4673# The possible output files:
4674ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4675
4676ac_rmfiles=
4677for ac_file in $ac_files
4678do
4679 case $ac_file in
4680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4681 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4682 esac
4683done
4684rm -f $ac_rmfiles
4685
4686if { { ac_try="$ac_link_default"
4687case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690esac
4691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692$as_echo "$ac_try_echo"; } >&5
4693 (eval "$ac_link_default") 2>&5
4694 ac_status=$?
4695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696 test $ac_status = 0; }; then :
4697 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4698# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4699# in a Makefile. We should not override ac_cv_exeext if it was cached,
4700# so that the user can short-circuit this test for compilers unknown to
4701# Autoconf.
4702for ac_file in $ac_files ''
b7026657
AC
4703do
4704 test -f "$ac_file" || continue
4705 case $ac_file in
81ecdfbb 4706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
4707 ;;
4708 [ab].out )
4709 # We found the default executable, but exeext='' is most
4710 # certainly right.
4711 break;;
4712 *.* )
81ecdfbb
RW
4713 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4714 then :; else
4715 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4716 fi
4717 # We set ac_cv_exeext here because the later test for it is not
4718 # safe: cross compilers may not add the suffix if given an `-o'
4719 # argument, so we may need to know it at that point already.
4720 # Even if this section looks crufty: it has the advantage of
4721 # actually working.
b7026657
AC
4722 break;;
4723 * )
4724 break;;
4725 esac
4726done
81ecdfbb
RW
4727test "$ac_cv_exeext" = no && ac_cv_exeext=
4728
b7026657 4729else
81ecdfbb
RW
4730 ac_file=''
4731fi
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4733$as_echo "$ac_file" >&6; }
4734if test -z "$ac_file"; then :
4735 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
81ecdfbb
RW
4738{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4740{ as_fn_set_status 77
4741as_fn_error "C compiler cannot create executables
4742See \`config.log' for more details." "$LINENO" 5; }; }
b7026657 4743fi
b7026657 4744ac_exeext=$ac_cv_exeext
b7026657 4745
81ecdfbb 4746# Check that the compiler produces executables we can run. If not, either
b7026657 4747# the compiler is broken, or we cross compile.
81ecdfbb
RW
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4749$as_echo_n "checking whether the C compiler works... " >&6; }
b7026657
AC
4750# If not cross compiling, check that we can run a simple program.
4751if test "$cross_compiling" != yes; then
4752 if { ac_try='./$ac_file'
81ecdfbb
RW
4753 { { case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756esac
4757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758$as_echo "$ac_try_echo"; } >&5
4759 (eval "$ac_try") 2>&5
b7026657 4760 ac_status=$?
81ecdfbb
RW
4761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4762 test $ac_status = 0; }; }; then
b7026657
AC
4763 cross_compiling=no
4764 else
4765 if test "$cross_compiling" = maybe; then
4766 cross_compiling=yes
4767 else
81ecdfbb
RW
4768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4770as_fn_error "cannot run C compiled programs.
b7026657 4771If you meant to cross compile, use \`--host'.
81ecdfbb 4772See \`config.log' for more details." "$LINENO" 5; }
c906108c 4773 fi
b7026657 4774 fi
c906108c 4775fi
81ecdfbb
RW
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4777$as_echo "yes" >&6; }
b7026657 4778
81ecdfbb 4779rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b7026657 4780ac_clean_files=$ac_clean_files_save
81ecdfbb 4781# Check that the compiler produces executables we can run. If not, either
b7026657 4782# the compiler is broken, or we cross compile.
81ecdfbb
RW
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4784$as_echo_n "checking whether we are cross compiling... " >&6; }
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4786$as_echo "$cross_compiling" >&6; }
4787
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4789$as_echo_n "checking for suffix of executables... " >&6; }
4790if { { ac_try="$ac_link"
4791case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794esac
4795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796$as_echo "$ac_try_echo"; } >&5
4797 (eval "$ac_link") 2>&5
b7026657 4798 ac_status=$?
81ecdfbb
RW
4799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800 test $ac_status = 0; }; then :
b7026657
AC
4801 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4802# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4803# work properly (i.e., refer to `conftest.exe'), while it won't with
4804# `rm'.
4805for ac_file in conftest.exe conftest conftest.*; do
4806 test -f "$ac_file" || continue
4807 case $ac_file in
81ecdfbb 4808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 4809 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
4810 break;;
4811 * ) break;;
4812 esac
4813done
c906108c 4814else
81ecdfbb
RW
4815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4817as_fn_error "cannot compute suffix of executables: cannot compile and link
4818See \`config.log' for more details." "$LINENO" 5; }
c906108c 4819fi
b7026657 4820rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4822$as_echo "$ac_cv_exeext" >&6; }
c906108c 4823
b7026657
AC
4824rm -f conftest.$ac_ext
4825EXEEXT=$ac_cv_exeext
4826ac_exeext=$EXEEXT
81ecdfbb
RW
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4828$as_echo_n "checking for suffix of object files... " >&6; }
4829if test "${ac_cv_objext+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
b7026657 4831else
81ecdfbb 4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4833/* end confdefs.h. */
4834
4835int
4836main ()
4837{
4838
4839 ;
4840 return 0;
4841}
4842_ACEOF
4843rm -f conftest.o conftest.obj
81ecdfbb
RW
4844if { { ac_try="$ac_compile"
4845case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848esac
4849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4850$as_echo "$ac_try_echo"; } >&5
4851 (eval "$ac_compile") 2>&5
4852 ac_status=$?
4853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4854 test $ac_status = 0; }; then :
4855 for ac_file in conftest.o conftest.obj conftest.*; do
4856 test -f "$ac_file" || continue;
b7026657 4857 case $ac_file in
81ecdfbb 4858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
4859 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4860 break;;
4861 esac
4862done
c906108c 4863else
81ecdfbb 4864 $as_echo "$as_me: failed program was:" >&5
b7026657 4865sed 's/^/| /' conftest.$ac_ext >&5
c906108c 4866
81ecdfbb
RW
4867{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4869as_fn_error "cannot compute suffix of object files: cannot compile
4870See \`config.log' for more details." "$LINENO" 5; }
c906108c 4871fi
b7026657
AC
4872rm -f conftest.$ac_cv_objext conftest.$ac_ext
4873fi
81ecdfbb
RW
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4875$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
4876OBJEXT=$ac_cv_objext
4877ac_objext=$OBJEXT
81ecdfbb
RW
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4879$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4880if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
c906108c 4882else
81ecdfbb 4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4884/* end confdefs.h. */
4885
4886int
4887main ()
4888{
4889#ifndef __GNUC__
4890 choke me
c906108c 4891#endif
c906108c 4892
b7026657
AC
4893 ;
4894 return 0;
4895}
4896_ACEOF
81ecdfbb 4897if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
4898 ac_compiler_gnu=yes
4899else
81ecdfbb 4900 ac_compiler_gnu=no
b7026657 4901fi
81ecdfbb 4902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
4903ac_cv_c_compiler_gnu=$ac_compiler_gnu
4904
4905fi
81ecdfbb
RW
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4907$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4908if test $ac_compiler_gnu = yes; then
4909 GCC=yes
4910else
4911 GCC=
4912fi
b7026657
AC
4913ac_test_CFLAGS=${CFLAGS+set}
4914ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4916$as_echo_n "checking whether $CC accepts -g... " >&6; }
4917if test "${ac_cv_prog_cc_g+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4919else
4920 ac_save_c_werror_flag=$ac_c_werror_flag
4921 ac_c_werror_flag=yes
4922 ac_cv_prog_cc_g=no
4923 CFLAGS="-g"
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4925/* end confdefs.h. */
c906108c 4926
b7026657
AC
4927int
4928main ()
4929{
c906108c 4930
b7026657
AC
4931 ;
4932 return 0;
4933}
4934_ACEOF
81ecdfbb 4935if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4936 ac_cv_prog_cc_g=yes
4937else
81ecdfbb
RW
4938 CFLAGS=""
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940/* end confdefs.h. */
4941
4942int
4943main ()
4944{
4945
4946 ;
4947 return 0;
4948}
4949_ACEOF
4950if ac_fn_c_try_compile "$LINENO"; then :
4951
4952else
4953 ac_c_werror_flag=$ac_save_c_werror_flag
4954 CFLAGS="-g"
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956/* end confdefs.h. */
4957
4958int
4959main ()
4960{
c906108c 4961
81ecdfbb
RW
4962 ;
4963 return 0;
4964}
4965_ACEOF
4966if ac_fn_c_try_compile "$LINENO"; then :
4967 ac_cv_prog_cc_g=yes
4968fi
4969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970fi
4971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4972fi
81ecdfbb
RW
4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 ac_c_werror_flag=$ac_save_c_werror_flag
b7026657 4975fi
81ecdfbb
RW
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4977$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 4978if test "$ac_test_CFLAGS" = set; then
b7026657 4979 CFLAGS=$ac_save_CFLAGS
c906108c
SS
4980elif test $ac_cv_prog_cc_g = yes; then
4981 if test "$GCC" = yes; then
4982 CFLAGS="-g -O2"
4983 else
4984 CFLAGS="-g"
4985 fi
4986else
4987 if test "$GCC" = yes; then
4988 CFLAGS="-O2"
4989 else
4990 CFLAGS=
4991 fi
4992fi
81ecdfbb
RW
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4994$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4995if test "${ac_cv_prog_cc_c89+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
b7026657 4997else
81ecdfbb 4998 ac_cv_prog_cc_c89=no
b7026657 4999ac_save_CC=$CC
81ecdfbb 5000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5001/* end confdefs.h. */
5002#include <stdarg.h>
5003#include <stdio.h>
5004#include <sys/types.h>
5005#include <sys/stat.h>
5006/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5007struct buf { int x; };
5008FILE * (*rcsopen) (struct buf *, struct stat *, int);
5009static char *e (p, i)
5010 char **p;
5011 int i;
5012{
5013 return p[i];
5014}
5015static char *f (char * (*g) (char **, int), char **p, ...)
5016{
5017 char *s;
5018 va_list v;
5019 va_start (v,p);
5020 s = g (p, va_arg (v,int));
5021 va_end (v);
5022 return s;
5023}
c906108c 5024
b7026657
AC
5025/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5026 function prototypes and stuff, but not '\xHH' hex character constants.
5027 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 5028 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
5029 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5030 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 5031 that's true only with -std. */
b7026657
AC
5032int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5033
81ecdfbb
RW
5034/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5035 inside strings and character constants. */
5036#define FOO(x) 'x'
5037int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5038
b7026657
AC
5039int test (int i, double x);
5040struct s1 {int (*f) (int a);};
5041struct s2 {int (*f) (double a);};
5042int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5043int argc;
5044char **argv;
5045int
5046main ()
5047{
5048return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5049 ;
5050 return 0;
5051}
5052_ACEOF
81ecdfbb
RW
5053for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5054 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
5055do
5056 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
5057 if ac_fn_c_try_compile "$LINENO"; then :
5058 ac_cv_prog_cc_c89=$ac_arg
b7026657 5059fi
81ecdfbb
RW
5060rm -f core conftest.err conftest.$ac_objext
5061 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 5062done
81ecdfbb 5063rm -f conftest.$ac_ext
b7026657 5064CC=$ac_save_CC
c906108c 5065
c906108c 5066fi
81ecdfbb
RW
5067# AC_CACHE_VAL
5068case "x$ac_cv_prog_cc_c89" in
5069 x)
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5071$as_echo "none needed" >&6; } ;;
5072 xno)
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5074$as_echo "unsupported" >&6; } ;;
b7026657 5075 *)
81ecdfbb
RW
5076 CC="$CC $ac_cv_prog_cc_c89"
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5078$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 5079esac
81ecdfbb 5080if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 5081
c906108c 5082fi
b7026657 5083
b7026657
AC
5084ac_ext=c
5085ac_cpp='$CPP $CPPFLAGS'
5086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089
5090
5091# Put a plausible default for CC_FOR_BUILD in Makefile.
5092if test "x$cross_compiling" = "xno"; then
5093 CC_FOR_BUILD='$(CC)'
c906108c 5094else
b7026657 5095 CC_FOR_BUILD=gcc
c906108c 5096fi
4b164edf 5097CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
c906108c 5098
b7026657 5099ALL_LINGUAS=
20e95c23
DJ
5100# If we haven't got the data from the intl directory,
5101# assume NLS is disabled.
5102USE_NLS=no
5103LIBINTL=
5104LIBINTL_DEP=
5105INCINTL=
5106XGETTEXT=
5107GMSGFMT=
5108POSUB=
e85e3205 5109
29035cbe
NH
5110if test -f ../../intl/config.intl; then
5111 . ../../intl/config.intl
20e95c23 5112fi
81ecdfbb
RW
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5114$as_echo_n "checking whether NLS is requested... " >&6; }
20e95c23 5115if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117$as_echo "no" >&6; }
c906108c 5118else
81ecdfbb
RW
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5120$as_echo "yes" >&6; }
c906108c 5121
81ecdfbb 5122$as_echo "#define ENABLE_NLS 1" >>confdefs.h
20e95c23
DJ
5123
5124
81ecdfbb
RW
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5126$as_echo_n "checking for catalogs to be installed... " >&6; }
20e95c23
DJ
5127 # Look for .po and .gmo files in the source directory.
5128 CATALOGS=
5129 XLINGUAS=
5130 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5131 # If there aren't any .gmo files the shell will give us the
5132 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5133 # weeded out.
5134 case "$cat" in *\**)
5135 continue;;
5136 esac
5137 # The quadruple backslash is collapsed to a double backslash
5138 # by the backticks, then collapsed again by the double quotes,
5139 # leaving us with one backslash in the sed expression (right
5140 # before the dot that mustn't act as a wildcard).
5141 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5142 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5143 # The user is allowed to set LINGUAS to a list of languages to
5144 # install catalogs for. If it's empty that means "all of them."
5145 if test "x$LINGUAS" = x; then
5146 CATALOGS="$CATALOGS $cat"
5147 XLINGUAS="$XLINGUAS $lang"
5148 else
5149 case "$LINGUAS" in *$lang*)
5150 CATALOGS="$CATALOGS $cat"
5151 XLINGUAS="$XLINGUAS $lang"
5152 ;;
5153 esac
5154 fi
5155 done
5156 LINGUAS="$XLINGUAS"
81ecdfbb
RW
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5158$as_echo "$LINGUAS" >&6; }
20e95c23
DJ
5159
5160
5161 DATADIRNAME=share
5162
5163 INSTOBJEXT=.mo
5164
5165 GENCAT=gencat
5166
5167 CATOBJEXT=.gmo
b7026657 5168
c906108c 5169fi
20e95c23
DJ
5170
5171
81ecdfbb
RW
5172# Check whether --enable-sim-alignment was given.
5173if test "${enable_sim_alignment+set}" = set; then :
5174 enableval=$enable_sim_alignment; case "${enableval}" in
20e95c23
DJ
5175 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
5176 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
5177 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
81ecdfbb 5178 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
20e95c23
DJ
5179esac
5180if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
5181 echo "Setting alignment flags = $sim_alignment" 6>&1
c906108c 5182fi
c906108c 5183else
20e95c23 5184 sim_alignment=""
81ecdfbb 5185fi
20e95c23 5186
81ecdfbb
RW
5187
5188# Check whether --enable-sim-assert was given.
5189if test "${enable_sim_assert+set}" = set; then :
5190 enableval=$enable_sim_assert; case "${enableval}" in
20e95c23
DJ
5191 yes) sim_assert="-DWITH_ASSERT=1";;
5192 no) sim_assert="-DWITH_ASSERT=0";;
81ecdfbb 5193 *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
20e95c23
DJ
5194esac
5195if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
5196 echo "Setting assert flags = $sim_assert" 6>&1
b7026657 5197fi
20e95c23
DJ
5198else
5199 sim_assert=""
81ecdfbb 5200fi
b7026657 5201
81ecdfbb
RW
5202
5203# Check whether --enable-sim-bitsize was given.
5204if test "${enable_sim_bitsize+set}" = set; then :
5205 enableval=$enable_sim_bitsize; case "${enableval}" in
20e95c23 5206 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
81ecdfbb 5207 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
20e95c23
DJ
5208esac
5209if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5210 echo "Setting bitsize flags = $sim_bitsize" 6>&1
c906108c 5211fi
b7026657 5212else
20e95c23 5213 sim_bitsize=""
81ecdfbb 5214fi
20e95c23 5215
81ecdfbb 5216
81ecdfbb
RW
5217# Check whether --enable-sim-config was given.
5218if test "${enable_sim_config+set}" = set; then :
5219 enableval=$enable_sim_config; case "${enableval}" in
5220 yes|no) as_fn_error "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
20e95c23
DJ
5221 *) if test -f "${srcdir}/${enableval}"; then
5222 sim_config="${enableval}";
5223 elif test -f "${srcdir}/${enableval}-config.h"; then
5224 sim_config="${enableval}-config.h"
5225 else
81ecdfbb 5226 as_fn_error "\"Config file $enableval was not found\"" "$LINENO" 5;
20e95c23
DJ
5227 sim_config=std-config.h
5228 fi;;
5229esac
5230if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
5231 echo "Setting config flags = $sim_config" 6>&1
b7026657 5232fi
b7026657 5233else
20e95c23
DJ
5234 sim_config="std-config.h"
5235if test x"$silent" != x"yes"; then
5236 echo "Setting config flags = $sim_config" 6>&1
b7026657 5237fi
81ecdfbb
RW
5238fi
5239
c906108c 5240
81ecdfbb
RW
5241# Check whether --enable-sim-decode-mechanism was given.
5242if test "${enable_sim_decode_mechanism+set}" = set; then :
5243 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
5244 yes|no) as_fn_error "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
20e95c23 5245 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
81ecdfbb 5246 *) as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
20e95c23
DJ
5247 sim_decode_mechanism="switch";;
5248esac
5249if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
5250 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
5251fi
b7026657 5252else
20e95c23
DJ
5253 sim_decode_mechanism=""
5254if test x"$silent" != x"yes"; then
5255 echo "Setting decode mechanism flags = $sim_decode_mechanism"
b7026657 5256fi
81ecdfbb
RW
5257fi
5258
b7026657 5259
81ecdfbb
RW
5260# Check whether --enable-sim-default-model was given.
5261if test "${enable_sim_default_model+set}" = set; then :
5262 enableval=$enable_sim_default_model; case "${enableval}" in
5263 yes|no) as_fn_error "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
20e95c23
DJ
5264 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
5265esac
5266if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5267 echo "Setting default-model flags = $sim_default_model" 6>&1
5268fi
5269else
5270 sim_default_model=""
81ecdfbb
RW
5271fi
5272
b7026657 5273
81ecdfbb
RW
5274# Check whether --enable-sim-duplicate was given.
5275if test "${enable_sim_duplicate+set}" = set; then :
5276 enableval=$enable_sim_duplicate; case "${enableval}" in
20e95c23
DJ
5277 yes) sim_dup="-E";;
5278 no) sim_dup="";;
81ecdfbb 5279 *) as_fn_error "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
20e95c23
DJ
5280esac
5281if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
5282 echo "Setting duplicate flags = $sim_dup" 6>&1
5283fi
b7026657 5284else
20e95c23
DJ
5285 sim_dup="-E"
5286if test x"$silent" != x"yes"; then
5287 echo "Setting duplicate flags = $sim_dup" 6>&1
5288fi
81ecdfbb
RW
5289fi
5290
20e95c23 5291
81ecdfbb
RW
5292# Check whether --enable-sim-endian was given.
5293if test "${enable_sim_endian+set}" = set; then :
5294 enableval=$enable_sim_endian; case "${enableval}" in
20e95c23
DJ
5295 yes) case "$target" in
5296 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5297 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5298 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5299 esac;;
5300 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5301 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5302 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
81ecdfbb 5303 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
20e95c23
DJ
5304esac
5305if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5306 echo "Setting endian flags = $sim_endian" 6>&1
5307fi
5308else
5309 sim_endian=""
81ecdfbb
RW
5310fi
5311
20e95c23 5312
81ecdfbb
RW
5313# Check whether --enable-sim-env was given.
5314if test "${enable_sim_env+set}" = set; then :
5315 enableval=$enable_sim_env; case "${enableval}" in
20e95c23
DJ
5316 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5317 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5318 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5319 no) sim_env="-DWITH_ENVIRONMENT=0";;
81ecdfbb 5320 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-env\"" "$LINENO" 5; sim_env="";;
20e95c23
DJ
5321esac
5322if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
5323 echo "Setting env flags = $sim_env" 6>&1
5324fi
5325else
5326 sim_env=""
81ecdfbb
RW
5327fi
5328
5329
5330# Check whether --enable-sim-filter was given.
5331if test "${enable_sim_filter+set}" = set; then :
5332 enableval=$enable_sim_filter; case "${enableval}" in
5333 yes) as_fn_error "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
20e95c23
DJ
5334 no) sim_filter="";;
5335 *) sim_filter="-F $enableval";;
5336esac
5337if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
5338 echo "Setting filter flags = $sim_filter" 6>&1
5339fi
5340else
5341 sim_filter="-F 32,f,o"
5342if test x"$silent" != x"yes"; then
5343 echo "Setting filter flags = $sim_filter" 6>&1
5344fi
81ecdfbb 5345fi
20e95c23 5346
81ecdfbb
RW
5347
5348# Check whether --enable-sim-float was given.
5349if test "${enable_sim_float+set}" = set; then :
5350 enableval=$enable_sim_float; case "${enableval}" in
20e95c23
DJ
5351 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5352 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5353 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5354 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
81ecdfbb 5355 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
20e95c23
DJ
5356esac
5357if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5358 echo "Setting float flags = $sim_float" 6>&1
5359fi
5360else
5361
5362case "${target}" in
5363 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5364 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5365 *) sim_float=""
5366esac
5367
81ecdfbb
RW
5368fi
5369
20e95c23 5370
81ecdfbb
RW
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
5372$as_echo_n "checking if union semun defined... " >&6; }
5373if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then :
5374 $as_echo_n "(cached) " >&6
00a0b122 5375else
81ecdfbb 5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
5377/* end confdefs.h. */
5378
5379#include <sys/types.h>
5380#include <sys/ipc.h>
5381#include <sys/sem.h>
5382int
5383main ()
5384{
5385union semun arg ;
5386 ;
5387 return 0;
5388}
5389_ACEOF
81ecdfbb 5390if ac_fn_c_try_compile "$LINENO"; then :
00a0b122
JS
5391 ac_cv_has_union_semun="yes"
5392else
81ecdfbb 5393 ac_cv_has_union_semun="no"
00a0b122 5394fi
81ecdfbb
RW
5395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
5397$as_echo "$ac_cv_has_union_semun" >&6; }
00a0b122
JS
5398
5399fi
81ecdfbb
RW
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
5401$as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
00a0b122
JS
5402
5403
5404if test "$ac_cv_has_union_semun" = "yes"; then
81ecdfbb
RW
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5406$as_echo_n "checking whether System V semaphores are supported... " >&6; }
5407if test "${ac_cv_sysv_sem+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
00a0b122
JS
5409else
5410
81ecdfbb 5411 if test "$cross_compiling" = yes; then :
00a0b122
JS
5412 :
5413else
81ecdfbb 5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
5415/* end confdefs.h. */
5416
5417 #include <sys/types.h>
5418 #include <sys/ipc.h>
5419 #include <sys/sem.h>
5420 int main () {
5421 union semun arg ;
5422
5423 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5424 if (id == -1)
5425 exit(1);
5426 arg.val = 0; /* avoid implicit type cast to union */
5427 if (semctl(id, 0, IPC_RMID, arg) == -1)
5428 exit(1);
5429 exit(0);
5430 }
5431
5432_ACEOF
81ecdfbb 5433if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
5434 ac_cv_sysv_sem="yes"
5435else
81ecdfbb 5436 ac_cv_sysv_sem="no"
00a0b122 5437fi
81ecdfbb
RW
5438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5439 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
5440fi
5441
81ecdfbb 5442
00a0b122 5443fi
81ecdfbb
RW
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5445$as_echo "$ac_cv_sysv_sem" >&6; }
00a0b122 5446else # semun is not defined
81ecdfbb
RW
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5448$as_echo_n "checking whether System V semaphores are supported... " >&6; }
5449if test "${ac_cv_sysv_sem+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
00a0b122
JS
5451else
5452
81ecdfbb 5453 if test "$cross_compiling" = yes; then :
00a0b122
JS
5454 :
5455else
81ecdfbb 5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
5457/* end confdefs.h. */
5458
5459 #include <sys/types.h>
5460 #include <sys/ipc.h>
5461 #include <sys/sem.h>
5462 union semun {
5463 int val;
5464 struct semid_ds *buf;
5465 ushort *array;
5466 };
5467 int main () {
5468 union semun arg ;
5469
5470 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5471 if (id == -1)
5472 exit(1);
5473 arg.val = 0; /* avoid implicit type cast to union */
5474 if (semctl(id, 0, IPC_RMID, arg) == -1)
5475 exit(1);
5476 exit(0);
5477 }
5478
5479_ACEOF
81ecdfbb 5480if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
5481 ac_cv_sysv_sem="yes"
5482else
81ecdfbb 5483 ac_cv_sysv_sem="no"
00a0b122 5484fi
81ecdfbb
RW
5485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5486 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
5487fi
5488
81ecdfbb 5489
00a0b122 5490fi
81ecdfbb
RW
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5492$as_echo "$ac_cv_sysv_sem" >&6; }
00a0b122
JS
5493fi
5494
81ecdfbb
RW
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
5496$as_echo_n "checking whether System V shared memory is supported... " >&6; }
5497if test "${ac_cv_sysv_shm+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
00a0b122
JS
5499else
5500
81ecdfbb 5501if test "$cross_compiling" = yes; then :
00a0b122
JS
5502 :
5503else
81ecdfbb 5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
00a0b122
JS
5505/* end confdefs.h. */
5506
5507#include <sys/types.h>
5508#include <sys/ipc.h>
5509#include <sys/shm.h>
5510int main () {
5511 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
5512 if (id == -1)
5513 exit(1);
5514 if (shmctl(id, IPC_RMID, 0) == -1)
5515 exit(1);
5516 exit(0);
5517}
5518
5519_ACEOF
81ecdfbb 5520if ac_fn_c_try_run "$LINENO"; then :
00a0b122
JS
5521 ac_cv_sysv_shm="yes"
5522else
81ecdfbb 5523 ac_cv_sysv_shm="no"
00a0b122 5524fi
81ecdfbb
RW
5525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5526 conftest.$ac_objext conftest.beam conftest.$ac_ext
00a0b122
JS
5527fi
5528
81ecdfbb 5529
00a0b122 5530fi
81ecdfbb
RW
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
5532$as_echo "$ac_cv_sysv_shm" >&6; }
00a0b122
JS
5533
5534if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5535 sim_sysv_ipc_hw=",sem,shm";
5536else
5537 sim_sysv_ipc_hw="";
5538fi
5539
5540if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
bf0275b1
DE
5541
5542$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
5543
00a0b122
JS
5544fi
5545
5546
81ecdfbb
RW
5547# Check whether --enable-sim-hardware was given.
5548if test "${enable_sim_hardware+set}" = set; then :
5549 enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
20e95c23
DJ
5550case "${enableval}" in
5551 yes) ;;
81ecdfbb 5552 no) as_fn_error "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
20e95c23
DJ
5553 ,*) hardware="${hardware}${enableval}";;
5554 *,) hardware="${enableval}${hardware}";;
5555 *) hardware="${enableval}"'';;
5556esac
5557sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5558sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5559if test x"$silent" != x"yes" && test x"$hardware" != x""; then
5560 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5561fi
5562else
00a0b122 5563 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
20e95c23
DJ
5564sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5565sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5566if test x"$silent" != x"yes"; then
5567 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5568fi
81ecdfbb
RW
5569fi
5570
5571# Check whether --enable-sim-hostbitsize was given.
5572if test "${enable_sim_hostbitsize+set}" = set; then :
5573 enableval=$enable_sim_hostbitsize; case "${enableval}" in
20e95c23 5574 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
81ecdfbb 5575 *) as_fn_error "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
20e95c23
DJ
5576esac
5577if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
5578 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
5579fi
5580else
5581 sim_hostbitsize=""
20e95c23 5582fi
b7026657 5583
20e95c23 5584
20e95c23
DJ
5585ac_ext=c
5586ac_cpp='$CPP $CPPFLAGS'
5587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5591$as_echo_n "checking how to run the C preprocessor... " >&6; }
20e95c23
DJ
5592# On Suns, sometimes $CPP names a directory.
5593if test -n "$CPP" && test -d "$CPP"; then
5594 CPP=
5595fi
5596if test -z "$CPP"; then
81ecdfbb
RW
5597 if test "${ac_cv_prog_CPP+set}" = set; then :
5598 $as_echo_n "(cached) " >&6
c906108c 5599else
20e95c23
DJ
5600 # Double quotes because CPP needs to be expanded
5601 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5602 do
81ecdfbb
RW
5603 ac_preproc_ok=false
5604for ac_c_preproc_warn_flag in '' yes
5605do
5606 # Use a header file that comes with gcc, so configuring glibc
5607 # with a fresh cross-compiler works.
5608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5609 # <limits.h> exists even on freestanding compilers.
5610 # On the NeXT, cc -E runs the code through the compiler's parser,
5611 # not just through cpp. "Syntax error" is here to catch this case.
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20e95c23 5613/* end confdefs.h. */
81ecdfbb
RW
5614#ifdef __STDC__
5615# include <limits.h>
20e95c23 5616#else
81ecdfbb 5617# include <assert.h>
20e95c23 5618#endif
81ecdfbb 5619 Syntax error
20e95c23 5620_ACEOF
81ecdfbb 5621if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 5622
81ecdfbb
RW
5623else
5624 # Broken: fails on valid input.
5625continue
b7026657 5626fi
81ecdfbb 5627rm -f conftest.err conftest.$ac_ext
b7026657 5628
81ecdfbb
RW
5629 # OK, works on sane cases. Now check whether nonexistent headers
5630 # can be detected and how.
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20e95c23 5632/* end confdefs.h. */
81ecdfbb 5633#include <ac_nonexistent.h>
20e95c23 5634_ACEOF
81ecdfbb
RW
5635if ac_fn_c_try_cpp "$LINENO"; then :
5636 # Broken: success on invalid input.
5637continue
20e95c23 5638else
81ecdfbb
RW
5639 # Passes both tests.
5640ac_preproc_ok=:
5641break
20e95c23 5642fi
81ecdfbb 5643rm -f conftest.err conftest.$ac_ext
058ad269 5644
20e95c23 5645done
81ecdfbb
RW
5646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5647rm -f conftest.err conftest.$ac_ext
5648if $ac_preproc_ok; then :
5649 break
35689115 5650fi
35689115 5651
81ecdfbb
RW
5652 done
5653 ac_cv_prog_CPP=$CPP
35689115
HPN
5654
5655fi
81ecdfbb
RW
5656 CPP=$ac_cv_prog_CPP
5657else
5658 ac_cv_prog_CPP=$CPP
35689115 5659fi
81ecdfbb
RW
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5661$as_echo "$CPP" >&6; }
5662ac_preproc_ok=false
5663for ac_c_preproc_warn_flag in '' yes
35689115 5664do
81ecdfbb
RW
5665 # Use a header file that comes with gcc, so configuring glibc
5666 # with a fresh cross-compiler works.
5667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5668 # <limits.h> exists even on freestanding compilers.
5669 # On the NeXT, cc -E runs the code through the compiler's parser,
5670 # not just through cpp. "Syntax error" is here to catch this case.
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35689115 5672/* end confdefs.h. */
81ecdfbb
RW
5673#ifdef __STDC__
5674# include <limits.h>
5675#else
5676# include <assert.h>
5677#endif
5678 Syntax error
35689115 5679_ACEOF
81ecdfbb 5680if ac_fn_c_try_cpp "$LINENO"; then :
35689115 5681
81ecdfbb
RW
5682else
5683 # Broken: fails on valid input.
5684continue
35689115 5685fi
81ecdfbb 5686rm -f conftest.err conftest.$ac_ext
35689115 5687
81ecdfbb
RW
5688 # OK, works on sane cases. Now check whether nonexistent headers
5689 # can be detected and how.
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35689115 5691/* end confdefs.h. */
81ecdfbb 5692#include <ac_nonexistent.h>
35689115 5693_ACEOF
81ecdfbb
RW
5694if ac_fn_c_try_cpp "$LINENO"; then :
5695 # Broken: success on invalid input.
5696continue
35689115 5697else
81ecdfbb
RW
5698 # Passes both tests.
5699ac_preproc_ok=:
5700break
35689115 5701fi
81ecdfbb 5702rm -f conftest.err conftest.$ac_ext
35689115 5703
81ecdfbb
RW
5704done
5705# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35689115 5706rm -f conftest.err conftest.$ac_ext
81ecdfbb 5707if $ac_preproc_ok; then :
35689115 5708
35689115 5709else
81ecdfbb
RW
5710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5712as_fn_error "C preprocessor \"$CPP\" fails sanity check
5713See \`config.log' for more details." "$LINENO" 5; }
35689115 5714fi
35689115 5715
81ecdfbb
RW
5716ac_ext=c
5717ac_cpp='$CPP $CPPFLAGS'
5718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720ac_compiler_gnu=$ac_cv_c_compiler_gnu
35689115 5721
35689115 5722
81ecdfbb
RW
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5724$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5725if test "${ac_cv_path_GREP+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5727else
5728 if test -z "$GREP"; then
5729 ac_path_GREP_found=false
5730 # Loop through the user's path and test for each of PROGNAME-LIST
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_prog in grep ggrep; do
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5739 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5740# Check for GNU ac_path_GREP and select it if it is found.
5741 # Check for GNU $ac_path_GREP
5742case `"$ac_path_GREP" --version 2>&1` in
5743*GNU*)
5744 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5745*)
5746 ac_count=0
5747 $as_echo_n 0123456789 >"conftest.in"
5748 while :
5749 do
5750 cat "conftest.in" "conftest.in" >"conftest.tmp"
5751 mv "conftest.tmp" "conftest.in"
5752 cp "conftest.in" "conftest.nl"
5753 $as_echo 'GREP' >> "conftest.nl"
5754 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5756 as_fn_arith $ac_count + 1 && ac_count=$as_val
5757 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5758 # Best one so far, save it but keep looking for a better one
5759 ac_cv_path_GREP="$ac_path_GREP"
5760 ac_path_GREP_max=$ac_count
5761 fi
5762 # 10*(2^10) chars as input seems more than enough
5763 test $ac_count -gt 10 && break
5764 done
5765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5766esac
35689115 5767
81ecdfbb
RW
5768 $ac_path_GREP_found && break 3
5769 done
5770 done
5771 done
5772IFS=$as_save_IFS
5773 if test -z "$ac_cv_path_GREP"; then
5774 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5775 fi
5776else
5777 ac_cv_path_GREP=$GREP
35689115
HPN
5778fi
5779
81ecdfbb
RW
5780fi
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5782$as_echo "$ac_cv_path_GREP" >&6; }
5783 GREP="$ac_cv_path_GREP"
35689115 5784
35689115 5785
81ecdfbb
RW
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5787$as_echo_n "checking for egrep... " >&6; }
5788if test "${ac_cv_path_EGREP+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5790else
5791 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5792 then ac_cv_path_EGREP="$GREP -E"
5793 else
5794 if test -z "$EGREP"; then
5795 ac_path_EGREP_found=false
5796 # Loop through the user's path and test for each of PROGNAME-LIST
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5799do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_prog in egrep; do
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5805 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5806# Check for GNU ac_path_EGREP and select it if it is found.
5807 # Check for GNU $ac_path_EGREP
5808case `"$ac_path_EGREP" --version 2>&1` in
5809*GNU*)
5810 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5811*)
5812 ac_count=0
5813 $as_echo_n 0123456789 >"conftest.in"
5814 while :
5815 do
5816 cat "conftest.in" "conftest.in" >"conftest.tmp"
5817 mv "conftest.tmp" "conftest.in"
5818 cp "conftest.in" "conftest.nl"
5819 $as_echo 'EGREP' >> "conftest.nl"
5820 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5822 as_fn_arith $ac_count + 1 && ac_count=$as_val
5823 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5824 # Best one so far, save it but keep looking for a better one
5825 ac_cv_path_EGREP="$ac_path_EGREP"
5826 ac_path_EGREP_max=$ac_count
5827 fi
5828 # 10*(2^10) chars as input seems more than enough
5829 test $ac_count -gt 10 && break
5830 done
5831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
35689115
HPN
5832esac
5833
81ecdfbb
RW
5834 $ac_path_EGREP_found && break 3
5835 done
5836 done
5837 done
5838IFS=$as_save_IFS
5839 if test -z "$ac_cv_path_EGREP"; then
5840 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5841 fi
5842else
5843 ac_cv_path_EGREP=$EGREP
5844fi
5845
5846 fi
5847fi
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5849$as_echo "$ac_cv_path_EGREP" >&6; }
5850 EGREP="$ac_cv_path_EGREP"
35689115
HPN
5851
5852
81ecdfbb
RW
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5854$as_echo_n "checking for ANSI C header files... " >&6; }
5855if test "${ac_cv_header_stdc+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857else
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h. */
5860#include <stdlib.h>
5861#include <stdarg.h>
5862#include <string.h>
5863#include <float.h>
c906108c 5864
b7026657
AC
5865int
5866main ()
5867{
81ecdfbb 5868
b7026657
AC
5869 ;
5870 return 0;
5871}
5872_ACEOF
81ecdfbb
RW
5873if ac_fn_c_try_compile "$LINENO"; then :
5874 ac_cv_header_stdc=yes
b7026657 5875else
81ecdfbb
RW
5876 ac_cv_header_stdc=no
5877fi
5878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 5879
81ecdfbb
RW
5880if test $ac_cv_header_stdc = yes; then
5881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5883/* end confdefs.h. */
81ecdfbb
RW
5884#include <string.h>
5885
b7026657 5886_ACEOF
81ecdfbb
RW
5887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5888 $EGREP "memchr" >/dev/null 2>&1; then :
b7026657 5889
81ecdfbb
RW
5890else
5891 ac_cv_header_stdc=no
b7026657 5892fi
81ecdfbb 5893rm -f conftest*
b7026657 5894
81ecdfbb 5895fi
b7026657 5896
81ecdfbb
RW
5897if test $ac_cv_header_stdc = yes; then
5898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900/* end confdefs.h. */
5901#include <stdlib.h>
b7026657 5902
b7026657 5903_ACEOF
81ecdfbb
RW
5904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5905 $EGREP "free" >/dev/null 2>&1; then :
c906108c 5906
81ecdfbb
RW
5907else
5908 ac_cv_header_stdc=no
c906108c 5909fi
81ecdfbb 5910rm -f conftest*
c906108c 5911
81ecdfbb 5912fi
c906108c 5913
81ecdfbb
RW
5914if test $ac_cv_header_stdc = yes; then
5915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5916 if test "$cross_compiling" = yes; then :
5917 :
b7026657 5918else
81ecdfbb 5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5920/* end confdefs.h. */
81ecdfbb
RW
5921#include <ctype.h>
5922#include <stdlib.h>
5923#if ((' ' & 0x0FF) == 0x020)
5924# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5925# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5926#else
5927# define ISLOWER(c) \
5928 (('a' <= (c) && (c) <= 'i') \
5929 || ('j' <= (c) && (c) <= 'r') \
5930 || ('s' <= (c) && (c) <= 'z'))
5931# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5932#endif
b7026657 5933
81ecdfbb 5934#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
5935int
5936main ()
5937{
81ecdfbb
RW
5938 int i;
5939 for (i = 0; i < 256; i++)
5940 if (XOR (islower (i), ISLOWER (i))
5941 || toupper (i) != TOUPPER (i))
5942 return 2;
b7026657
AC
5943 return 0;
5944}
5945_ACEOF
81ecdfbb 5946if ac_fn_c_try_run "$LINENO"; then :
b7026657 5947
81ecdfbb
RW
5948else
5949 ac_cv_header_stdc=no
5950fi
5951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5952 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 5953fi
81ecdfbb 5954
b7026657 5955fi
b7026657 5956fi
81ecdfbb
RW
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5958$as_echo "$ac_cv_header_stdc" >&6; }
5959if test $ac_cv_header_stdc = yes; then
b7026657 5960
81ecdfbb 5961$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b7026657 5962
81ecdfbb 5963fi
b7026657 5964
81ecdfbb
RW
5965# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5966for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5967 inttypes.h stdint.h unistd.h
5968do :
5969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5970ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5971"
5972eval as_val=\$$as_ac_Header
5973 if test "x$as_val" = x""yes; then :
5974 cat >>confdefs.h <<_ACEOF
5975#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b7026657 5976_ACEOF
c906108c 5977
c906108c
SS
5978fi
5979
81ecdfbb
RW
5980done
5981
b7026657 5982
81ecdfbb
RW
5983# Check whether --enable-sim-hostendian was given.
5984if test "${enable_sim_hostendian+set}" = set; then :
5985 enableval=$enable_sim_hostendian; case "${enableval}" in
5986 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
5987 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
5988 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
5989 *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
5990esac
5991if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
5992 echo "Setting hostendian flags = $sim_hostendian" 6>&1
5993fi
5994else
b7026657 5995
81ecdfbb
RW
5996if test "x$cross_compiling" = "xno"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5998$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5999if test "${ac_cv_c_bigendian+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
b7026657 6001else
81ecdfbb
RW
6002 ac_cv_c_bigendian=unknown
6003 # See if we're dealing with a universal compiler.
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6005/* end confdefs.h. */
81ecdfbb
RW
6006#ifndef __APPLE_CC__
6007 not a universal capable compiler
6008 #endif
6009 typedef int dummy;
6010
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"; then :
6013
6014 # Check for potential -arch flags. It is not universal unless
6015 # there are at least two -arch flags with different values.
6016 ac_arch=
6017 ac_prev=
6018 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6019 if test -n "$ac_prev"; then
6020 case $ac_word in
6021 i?86 | x86_64 | ppc | ppc64)
6022 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6023 ac_arch=$ac_word
6024 else
6025 ac_cv_c_bigendian=universal
6026 break
6027 fi
6028 ;;
6029 esac
6030 ac_prev=
6031 elif test "x$ac_word" = "x-arch"; then
6032 ac_prev=arch
6033 fi
6034 done
6035fi
6036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 if test $ac_cv_c_bigendian = unknown; then
6038 # See if sys/param.h defines the BYTE_ORDER macro.
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h. */
6041#include <sys/types.h>
6042 #include <sys/param.h>
6043
b7026657
AC
6044int
6045main ()
6046{
81ecdfbb
RW
6047#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6048 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6049 && LITTLE_ENDIAN)
6050 bogus endian macros
6051 #endif
6052
b7026657
AC
6053 ;
6054 return 0;
6055}
6056_ACEOF
81ecdfbb
RW
6057if ac_fn_c_try_compile "$LINENO"; then :
6058 # It does; now see whether it defined to BIG_ENDIAN or not.
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6060/* end confdefs.h. */
81ecdfbb
RW
6061#include <sys/types.h>
6062 #include <sys/param.h>
6063
b7026657
AC
6064int
6065main ()
6066{
81ecdfbb
RW
6067#if BYTE_ORDER != BIG_ENDIAN
6068 not big endian
6069 #endif
6070
b7026657
AC
6071 ;
6072 return 0;
6073}
6074_ACEOF
81ecdfbb
RW
6075if ac_fn_c_try_compile "$LINENO"; then :
6076 ac_cv_c_bigendian=yes
b7026657 6077else
81ecdfbb 6078 ac_cv_c_bigendian=no
b7026657 6079fi
81ecdfbb 6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6081fi
81ecdfbb
RW
6082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083 fi
6084 if test $ac_cv_c_bigendian = unknown; then
6085 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087/* end confdefs.h. */
6088#include <limits.h>
c906108c 6089
81ecdfbb
RW
6090int
6091main ()
6092{
6093#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6094 bogus endian macros
6095 #endif
b7026657 6096
81ecdfbb
RW
6097 ;
6098 return 0;
6099}
b7026657 6100_ACEOF
81ecdfbb
RW
6101if ac_fn_c_try_compile "$LINENO"; then :
6102 # It does; now see whether it defined to _BIG_ENDIAN or not.
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6104/* end confdefs.h. */
81ecdfbb 6105#include <limits.h>
b7026657
AC
6106
6107int
6108main ()
6109{
81ecdfbb
RW
6110#ifndef _BIG_ENDIAN
6111 not big endian
6112 #endif
6113
b7026657
AC
6114 ;
6115 return 0;
6116}
6117_ACEOF
81ecdfbb
RW
6118if ac_fn_c_try_compile "$LINENO"; then :
6119 ac_cv_c_bigendian=yes
c906108c 6120else
81ecdfbb 6121 ac_cv_c_bigendian=no
c906108c 6122fi
81ecdfbb 6123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6124fi
81ecdfbb
RW
6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 fi
6127 if test $ac_cv_c_bigendian = unknown; then
6128 # Compile a test program.
6129 if test "$cross_compiling" = yes; then :
6130 # Try to guess by grepping values from an object file.
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6132/* end confdefs.h. */
81ecdfbb
RW
6133short int ascii_mm[] =
6134 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6135 short int ascii_ii[] =
6136 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6137 int use_ascii (int i) {
6138 return ascii_mm[i] + ascii_ii[i];
6139 }
6140 short int ebcdic_ii[] =
6141 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6142 short int ebcdic_mm[] =
6143 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6144 int use_ebcdic (int i) {
6145 return ebcdic_mm[i] + ebcdic_ii[i];
6146 }
6147 extern int foo;
b7026657
AC
6148
6149int
6150main ()
6151{
81ecdfbb 6152return use_ascii (foo) == use_ebcdic (foo);
b7026657
AC
6153 ;
6154 return 0;
6155}
6156_ACEOF
81ecdfbb
RW
6157if ac_fn_c_try_compile "$LINENO"; then :
6158 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6159 ac_cv_c_bigendian=yes
6160 fi
6161 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6162 if test "$ac_cv_c_bigendian" = unknown; then
6163 ac_cv_c_bigendian=no
6164 else
6165 # finding both strings is unlikely to happen, but who knows?
6166 ac_cv_c_bigendian=unknown
6167 fi
6168 fi
6169fi
6170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171else
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6173/* end confdefs.h. */
81ecdfbb 6174$ac_includes_default
b7026657
AC
6175int
6176main ()
6177{
81ecdfbb
RW
6178
6179 /* Are we little or big endian? From Harbison&Steele. */
6180 union
6181 {
6182 long int l;
6183 char c[sizeof (long int)];
6184 } u;
6185 u.l = 1;
6186 return u.c[sizeof (long int) - 1] == 1;
6187
b7026657
AC
6188 ;
6189 return 0;
6190}
6191_ACEOF
81ecdfbb
RW
6192if ac_fn_c_try_run "$LINENO"; then :
6193 ac_cv_c_bigendian=no
b7026657 6194else
81ecdfbb
RW
6195 ac_cv_c_bigendian=yes
6196fi
6197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6198 conftest.$ac_objext conftest.beam conftest.$ac_ext
6199fi
6200
6201 fi
6202fi
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6204$as_echo "$ac_cv_c_bigendian" >&6; }
6205 case $ac_cv_c_bigendian in #(
6206 yes)
6207 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6208;; #(
6209 no)
6210 ;; #(
6211 universal)
6212
6213$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
b7026657 6214
81ecdfbb
RW
6215 ;; #(
6216 *)
6217 as_fn_error "unknown endianness
6218 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6219 esac
6220
6221 if test $ac_cv_c_bigendian = yes; then
6222 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
6223 else
6224 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
6225 fi
6226else
6227 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
6228fi
6229fi
6230
6231
6232# Check whether --enable-sim-icache was given.
6233if test "${enable_sim_icache+set}" = set; then :
6234 enableval=$enable_sim_icache; icache="-R"
6235 case "${enableval}" in
6236 yes) icache="1024"; sim_icache="-I $icache";;
6237 no) sim_icache="-R";;
6238 *) icache=1024
6239 sim_icache="-"
6240 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
6241 case "$x" in
6242 define) sim_icache="${sim_icache}R";;
6243 semantic) sim_icache="${sim_icache}C";;
6244 insn) sim_icache="${sim_icache}S";;
6245 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
6246 *) as_fn_error "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
6247 esac
6248 done
6249 sim_icache="${sim_icache}I $icache";;
6250esac
6251if test x"$silent" != x"yes" && test x"$icache" != x""; then
6252 echo "Setting instruction cache size to $icache ($sim_icache)"
b7026657 6253fi
81ecdfbb
RW
6254else
6255 sim_icache="-CSRI 1024"
6256if test x"$silent" != x"yes"; then
6257 echo "Setting instruction cache size to 1024 ($sim_icache)"
b7026657 6258fi
b7026657 6259fi
b7026657
AC
6260
6261
81ecdfbb
RW
6262# Check whether --enable-sim-inline was given.
6263if test "${enable_sim_inline+set}" = set; then :
6264 enableval=$enable_sim_inline; sim_inline=""
6265case "$enableval" in
6266 no) sim_inline="-DDEFAULT_INLINE=0";;
6267 0) sim_inline="-DDEFAULT_INLINE=0";;
6268 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
6269 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
6270 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6271 new_flag=""
6272 case "$x" in
6273 *_INLINE=*) new_flag="-D$x";;
6274 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6275 *_INLINE) new_flag="-D$x=ALL_INLINE";;
6276 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
6277 esac
6278 if test x"$sim_inline" = x""; then
6279 sim_inline="$new_flag"
6280 else
6281 sim_inline="$sim_inline $new_flag"
6282 fi
6283 done;;
6284esac
6285if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6286 echo "Setting inline flags = $sim_inline" 6>&1
b7026657 6287fi
c906108c 6288else
81ecdfbb
RW
6289 if test x"$GCC" != ""; then
6290 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
6291 if test x"$silent" != x"yes"; then
6292 echo "Setting inline flags = $sim_inline" 6>&1
6293 fi
c906108c 6294else
81ecdfbb 6295 sim_inline=""
c906108c 6296fi
c906108c 6297fi
b7026657 6298
c906108c 6299
81ecdfbb
RW
6300# Check whether --enable-sim-jump was given.
6301if test "${enable_sim_jump+set}" = set; then :
6302 enableval=$enable_sim_jump; case "${enableval}" in
6303 yes) sim_jump="-J";;
6304 no) sim_jump="";;
6305 *) as_fn_error "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
6306esac
6307if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
6308 echo "Setting jump flag = $sim_jump" 6>&1
c906108c 6309fi
c906108c 6310else
81ecdfbb
RW
6311 sim_jump=""
6312if test x"$silent" != x"yes"; then
6313 echo "Setting jump flag = $sim_jump" 6>&1
c906108c 6314fi
c906108c 6315fi
c906108c 6316
b7026657 6317
81ecdfbb
RW
6318# Check whether --enable-sim-line-nr was given.
6319if test "${enable_sim_line_nr+set}" = set; then :
6320 enableval=$enable_sim_line_nr; case "${enableval}" in
6321 yes) sim_line_nr="";;
6322 no) sim_line_nr="-L";;
6323 *) as_fn_error "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
6324esac
6325if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
6326 echo "Setting warning flags = $sim_line_nr" 6>&1
c906108c 6327fi
c906108c 6328else
81ecdfbb
RW
6329 sim_line_nr=""
6330fi
b7026657 6331
c906108c 6332
81ecdfbb
RW
6333# Check whether --enable-sim-model was given.
6334if test "${enable_sim_model+set}" = set; then :
6335 enableval=$enable_sim_model; case "${enableval}" in
6336 yes|no) as_fn_error "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
6337 *) sim_model="-DWITH_MODEL=${enableval}";;
6338esac
6339if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
6340 echo "Setting model flags = $sim_model" 6>&1
6341fi
c906108c 6342else
81ecdfbb
RW
6343 sim_model=""
6344fi
6345
b7026657 6346
81ecdfbb
RW
6347# Check whether --enable-sim-model-issue was given.
6348if test "${enable_sim_model_issue+set}" = set; then :
6349 enableval=$enable_sim_model_issue; case "${enableval}" in
6350 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
6351 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
6352 *) as_fn_error "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
6353esac
6354if test x"$silent" != x"yes"; then
6355 echo "Setting model-issue flags = $sim_model_issue" 6>&1
c906108c 6356fi
81ecdfbb
RW
6357else
6358 sim_model_issue=""
c906108c 6359fi
b7026657 6360
81ecdfbb
RW
6361
6362# Check whether --enable-sim-monitor was given.
6363if test "${enable_sim_monitor+set}" = set; then :
6364 enableval=$enable_sim_monitor; case "${enableval}" in
6365 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
6366 no) sim_monitor="-DWITH_MON=0";;
6367 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
6368 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
6369 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env="";;
6370esac
6371if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
6372 echo "Setting monitor flags = $sim_monitor" 6>&1
6373fi
c906108c 6374else
81ecdfbb 6375 sim_monitor=""
c906108c 6376fi
c906108c 6377
81ecdfbb
RW
6378
6379# Check whether --enable-sim-opcode was given.
6380if test "${enable_sim_opcode+set}" = set; then :
6381 enableval=$enable_sim_opcode; case "${enableval}" in
6382 yes|no) as_fn_error "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
6383 *) if test -f "${srcdir}/${enableval}"; then
6384 sim_opcode="${enableval}"
6385 elif test -f "${srcdir}/dc-${enableval}"; then
6386 sim_opcode="dc-${enableval}"
6387 else
6388 as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
6389 sim_opcode="dc-complex"
6390 fi;;
6391esac
6392if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
6393 echo "Setting opcode flags = $sim_opcode" 6>&1
6394fi
6395else
6396 sim_opcode="dc-complex"
6397if test x"$silent" != x"yes"; then
6398 echo "Setting opcode flags = $sim_opcode"
c906108c
SS
6399fi
6400fi
c906108c
SS
6401
6402
81ecdfbb
RW
6403# Check whether --enable-sim-packages was given.
6404if test "${enable_sim_packages+set}" = set; then :
6405 enableval=$enable_sim_packages; packages=disklabel
6406case "${enableval}" in
6407 yes) ;;
6408 no) as_fn_error "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";;
6409 ,*) packages="${packages}${enableval}";;
6410 *,) packages="${enableval}${packages}";;
6411 *) packages="${enableval}"'';;
6412esac
6413sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6414sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6415if test x"$silent" != x"yes" && test x"$packages" != x""; then
6416 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6417fi
c906108c 6418else
81ecdfbb
RW
6419 packages=disklabel
6420sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6421sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6422if test x"$silent" != x"yes"; then
6423 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
b7026657 6424fi
c906108c 6425fi
b7026657 6426
c906108c 6427
81ecdfbb
RW
6428# Check whether --enable-sim-reserved-bits was given.
6429if test "${enable_sim_reserved_bits+set}" = set; then :
6430 enableval=$enable_sim_reserved_bits; case "${enableval}" in
6431 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
6432 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
6433 *) as_fn_error "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";;
6434esac
6435if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
6436 echo "Setting reserved flags = $sim_reserved" 6>&1
6437fi
6438else
6439 sim_reserved=""
b7026657 6440fi
81ecdfbb
RW
6441
6442
6443# Check whether --enable-sim-smp was given.
6444if test "${enable_sim_smp+set}" = set; then :
6445 enableval=$enable_sim_smp; case "${enableval}" in
6446 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
6447 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
6448 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
6449esac
6450if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
6451 echo "Setting smp flags = $sim_smp" 6>&1
c906108c 6452fi
b7026657 6453else
81ecdfbb
RW
6454 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
6455if test x"$silent" != x"yes"; then
6456 echo "Setting smp flags = $sim_smp" 6>&1
6457fi
c906108c
SS
6458fi
6459
c906108c 6460
81ecdfbb
RW
6461# Check whether --enable-sim-stdio was given.
6462if test "${enable_sim_stdio+set}" = set; then :
6463 enableval=$enable_sim_stdio; case "${enableval}" in
6464 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6465 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6466 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
6467esac
6468if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6469 echo "Setting stdio flags = $sim_stdio" 6>&1
c906108c 6470fi
c906108c 6471else
81ecdfbb
RW
6472 sim_stdio=""
6473fi
c906108c 6474
b7026657 6475
81ecdfbb
RW
6476# Check whether --enable-sim-switch was given.
6477if test "${enable_sim_switch+set}" = set; then :
6478 enableval=$enable_sim_switch; case "${enableval}" in
6479 yes) sim_switch="-s";;
6480 no) sim_switch="";;
6481 *) as_fn_error "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
6482esac
6483if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
6484 echo "Setting switch flags = $sim_switch" 6>&1
6485fi
6486else
6487 sim_switch="";
6488if test x"$silent" != x"yes"; then
6489 echo "Setting switch flags = $sim_switch" 6>&1
c906108c 6490fi
c906108c 6491fi
c906108c
SS
6492
6493
81ecdfbb
RW
6494# Check whether --enable-sim-timebase was given.
6495if test "${enable_sim_timebase+set}" = set; then :
6496 enableval=$enable_sim_timebase; case "${enableval}" in
6497 yes) sim_timebase="-DWITH_TIME_BASE=1";;
6498 no) sim_timebase="-DWITH_TIME_BASE=0";;
6499 *) as_fn_error "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
6500esac
6501if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
6502 echo "Setting timebase flags = $sim_timebase" 6>&1
6503fi
c906108c 6504else
81ecdfbb 6505 sim_timebase=""
c906108c 6506fi
81ecdfbb
RW
6507
6508
6509# Check whether --enable-sim-trace was given.
6510if test "${enable_sim_trace+set}" = set; then :
6511 enableval=$enable_sim_trace; case "${enableval}" in
6512 yes) sim_trace="-DWITH_TRACE=1";;
6513 no) sim_trace="-DWITH_TRACE=0";;
6514 *) as_fn_error "\"--enable-sim-trace does not take a value\"" "$LINENO" 5; sim_trace="";;
6515esac
6516if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6517 echo "Setting trace flags = $sim_trace" 6>&1
b7026657 6518fi
b7026657 6519else
81ecdfbb
RW
6520 sim_trace=""
6521fi
b7026657 6522
c906108c 6523
81ecdfbb
RW
6524# Check whether --enable-sim-warnings was given.
6525if test "${enable_sim_warnings+set}" = set; then :
6526 enableval=$enable_sim_warnings; case "${enableval}" in
6527 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
6528 no) sim_warnings="-w";;
6529 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6530esac
6531if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
6532 echo "Setting warning flags = $sim_warnings" 6>&1
c906108c 6533fi
c906108c 6534else
81ecdfbb
RW
6535 sim_warnings=""
6536fi
b7026657 6537
81ecdfbb
RW
6538
6539# Check whether --enable-sim-xor-endian was given.
6540if test "${enable_sim_xor_endian+set}" = set; then :
6541 enableval=$enable_sim_xor_endian; case "${enableval}" in
6542 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
6543 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
6544 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
6545esac
6546if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
6547 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
6548fi
c906108c 6549else
81ecdfbb 6550 sim_xor_endian=""
c906108c 6551fi
c906108c 6552
b7026657 6553
b7026657 6554
c906108c 6555
81ecdfbb
RW
6556# Check whether --with-pkgversion was given.
6557if test "${with_pkgversion+set}" = set; then :
6558 withval=$with_pkgversion; case "$withval" in
6559 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6560 no) PKGVERSION= ;;
6561 *) PKGVERSION="($withval) " ;;
6562 esac
6563else
6564 PKGVERSION="(GDB) "
c906108c
SS
6565
6566fi
6567
6568
b7026657
AC
6569
6570
6571
81ecdfbb
RW
6572# Check whether --with-bugurl was given.
6573if test "${with_bugurl+set}" = set; then :
6574 withval=$with_bugurl; case "$withval" in
6575 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6576 no) BUGURL=
6577 ;;
6578 *) BUGURL="$withval"
6579 ;;
6580 esac
6581else
6582 BUGURL="http://www.gnu.org/software/gdb/bugs/"
b7026657 6583
81ecdfbb 6584fi
b7026657 6585
81ecdfbb
RW
6586 case ${BUGURL} in
6587 "")
6588 REPORT_BUGS_TO=
6589 REPORT_BUGS_TEXI=
6590 ;;
6591 *)
6592 REPORT_BUGS_TO="<$BUGURL>"
6593 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6594 ;;
6595 esac;
b7026657
AC
6596
6597
6598
6599
81ecdfbb
RW
6600cat >>confdefs.h <<_ACEOF
6601#define PKGVERSION "$PKGVERSION"
6602_ACEOF
b7026657
AC
6603
6604
81ecdfbb
RW
6605cat >>confdefs.h <<_ACEOF
6606#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6607_ACEOF
b7026657
AC
6608
6609
81ecdfbb
RW
6610# Make sure we can run config.sub.
6611$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6612 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6613
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6615$as_echo_n "checking build system type... " >&6; }
6616if test "${ac_cv_build+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6618else
6619 ac_build_alias=$build_alias
6620test "x$ac_build_alias" = x &&
6621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6622test "x$ac_build_alias" = x &&
6623 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6624ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6625 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6626
6627fi
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6629$as_echo "$ac_cv_build" >&6; }
6630case $ac_cv_build in
6631*-*-*) ;;
6632*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6633esac
6634build=$ac_cv_build
6635ac_save_IFS=$IFS; IFS='-'
6636set x $ac_cv_build
6637shift
6638build_cpu=$1
6639build_vendor=$2
6640shift; shift
6641# Remember, the first character of IFS is used to create $*,
6642# except with old shells:
6643build_os=$*
6644IFS=$ac_save_IFS
6645case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657
AC
6646
6647
81ecdfbb
RW
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6649$as_echo_n "checking host system type... " >&6; }
6650if test "${ac_cv_host+set}" = set; then :
6651 $as_echo_n "(cached) " >&6
6652else
6653 if test "x$host_alias" = x; then
6654 ac_cv_host=$ac_cv_build
6655else
6656 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6657 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6658fi
b7026657 6659
81ecdfbb
RW
6660fi
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6662$as_echo "$ac_cv_host" >&6; }
6663case $ac_cv_host in
6664*-*-*) ;;
6665*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6666esac
6667host=$ac_cv_host
6668ac_save_IFS=$IFS; IFS='-'
6669set x $ac_cv_host
6670shift
6671host_cpu=$1
6672host_vendor=$2
6673shift; shift
6674# Remember, the first character of IFS is used to create $*,
6675# except with old shells:
6676host_os=$*
6677IFS=$ac_save_IFS
6678case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
b7026657
AC
6679
6680
81ecdfbb
RW
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6682$as_echo_n "checking target system type... " >&6; }
6683if test "${ac_cv_target+set}" = set; then :
6684 $as_echo_n "(cached) " >&6
6685else
6686 if test "x$target_alias" = x; then
6687 ac_cv_target=$ac_cv_host
6688else
6689 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6690 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6691fi
b7026657 6692
81ecdfbb
RW
6693fi
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6695$as_echo "$ac_cv_target" >&6; }
6696case $ac_cv_target in
6697*-*-*) ;;
6698*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
6699esac
6700target=$ac_cv_target
6701ac_save_IFS=$IFS; IFS='-'
6702set x $ac_cv_target
6703shift
6704target_cpu=$1
6705target_vendor=$2
6706shift; shift
6707# Remember, the first character of IFS is used to create $*,
6708# except with old shells:
6709target_os=$*
6710IFS=$ac_save_IFS
6711case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b7026657
AC
6712
6713
81ecdfbb
RW
6714# The aliases save the names the user supplied, while $host etc.
6715# will get canonicalized.
6716test -n "$target_alias" &&
6717 test "$program_prefix$program_suffix$program_transform_name" = \
6718 NONENONEs,x,x, &&
6719 program_prefix=${target_alias}-
b7026657 6720
81ecdfbb
RW
6721test "$program_prefix" != NONE &&
6722 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6723# Use a double $ so make ignores it.
6724test "$program_suffix" != NONE &&
6725 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6726# Double any \ or $.
6727# By default was `s,x,x', remove it if useless.
6728ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6729program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b7026657
AC
6730
6731
81ecdfbb
RW
6732# BFD conditionally uses zlib, so we must link it in if libbfd does, by
6733# using the same condition.
5912fadd 6734
aadc9410 6735 # Use the system's zlib library.
7fed4b0b
L
6736 zlibdir="-L\$(top_builddir)/../zlib"
6737 zlibinc="-I\$(top_srcdir)/../zlib"
5912fadd 6738
aadc9410
MF
6739# Check whether --with-system-zlib was given.
6740if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
6741 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
6742 zlibdir=
6743 zlibinc=
6744 fi
b7026657 6745
81ecdfbb 6746fi
b7026657 6747
b7026657
AC
6748
6749
5912fadd 6750
b7026657 6751
2974be62
AM
6752# BFD uses libdl when when plugins enabled.
6753
6754 maybe_plugins=no
6755 for ac_header in dlfcn.h
6756do :
6757 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6758"
6759if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6760 cat >>confdefs.h <<_ACEOF
6761#define HAVE_DLFCN_H 1
6762_ACEOF
6763 maybe_plugins=yes
6764fi
6765
6766done
6767
6768 for ac_header in windows.h
6769do :
6770 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6771"
6772if test "x$ac_cv_header_windows_h" = x""yes; then :
6773 cat >>confdefs.h <<_ACEOF
6774#define HAVE_WINDOWS_H 1
6775_ACEOF
6776 maybe_plugins=yes
6777fi
6778
6779done
6780
6781
6782 # Check whether --enable-plugins was given.
6783if test "${enable_plugins+set}" = set; then :
6784 enableval=$enable_plugins; case "${enableval}" in
6785 no) plugins=no ;;
6786 *) plugins=yes
6787 if test "$maybe_plugins" != "yes" ; then
6788 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6789 fi ;;
6790 esac
6791else
6792 plugins=$maybe_plugins
6793
6794fi
6795
6796 if test "$plugins" = "yes"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
6798$as_echo_n "checking for library containing dlopen... " >&6; }
6799if test "${ac_cv_search_dlopen+set}" = set; then :
6800 $as_echo_n "(cached) " >&6
6801else
6802 ac_func_search_save_LIBS=$LIBS
6803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804/* end confdefs.h. */
6805
6806/* Override any GCC internal prototype to avoid an error.
6807 Use char because int might match the return type of a GCC
6808 builtin and then its argument prototype would still apply. */
6809#ifdef __cplusplus
6810extern "C"
6811#endif
6812char dlopen ();
6813int
6814main ()
6815{
6816return dlopen ();
6817 ;
6818 return 0;
6819}
6820_ACEOF
6821for ac_lib in '' dl; do
6822 if test -z "$ac_lib"; then
6823 ac_res="none required"
6824 else
6825 ac_res=-l$ac_lib
6826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6827 fi
6828 if ac_fn_c_try_link "$LINENO"; then :
6829 ac_cv_search_dlopen=$ac_res
6830fi
6831rm -f core conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext
6833 if test "${ac_cv_search_dlopen+set}" = set; then :
6834 break
6835fi
6836done
6837if test "${ac_cv_search_dlopen+set}" = set; then :
6838
6839else
6840 ac_cv_search_dlopen=no
6841fi
6842rm conftest.$ac_ext
6843LIBS=$ac_func_search_save_LIBS
6844fi
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
6846$as_echo "$ac_cv_search_dlopen" >&6; }
6847ac_res=$ac_cv_search_dlopen
6848if test "$ac_res" != no; then :
6849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6850
6851fi
6852
6853 fi
6854
6855
81ecdfbb 6856. ${srcdir}/../../bfd/configure.host
b7026657 6857
81ecdfbb
RW
6858case ${host} in
6859 *mingw32*)
b7026657 6860
81ecdfbb 6861$as_echo "#define USE_WIN32API 1" >>confdefs.h
b7026657 6862
81ecdfbb
RW
6863 ;;
6864esac
b7026657 6865
81ecdfbb 6866ac_config_headers="$ac_config_headers config.h:config.in"
b7026657
AC
6867
6868
81ecdfbb
RW
6869ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6870if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
b7026657 6871
81ecdfbb
RW
6872cat >>confdefs.h <<_ACEOF
6873#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6874_ACEOF
b7026657
AC
6875
6876
81ecdfbb 6877$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
b7026657 6878
81ecdfbb 6879fi
b7026657
AC
6880
6881
81ecdfbb
RW
6882ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6883if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
b7026657 6884
81ecdfbb
RW
6885cat >>confdefs.h <<_ACEOF
6886#define HAVE_STRUCT_STAT_ST_BLOCKS 1
6887_ACEOF
b7026657
AC
6888
6889
81ecdfbb 6890$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
b7026657 6891
81ecdfbb
RW
6892else
6893 case " $LIBOBJS " in
6894 *" fileblocks.$ac_objext "* ) ;;
6895 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6896 ;;
6897esac
b7026657 6898
81ecdfbb 6899fi
b7026657
AC
6900
6901
81ecdfbb
RW
6902ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6903if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6904
6905cat >>confdefs.h <<_ACEOF
6906#define HAVE_STRUCT_STAT_ST_RDEV 1
b7026657 6907_ACEOF
b7026657 6908
b7026657 6909
81ecdfbb 6910$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
c906108c 6911
81ecdfbb 6912fi
c906108c 6913
81ecdfbb
RW
6914
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6916$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6917if test "${ac_cv_struct_tm+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6919else
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h. */
6922#include <sys/types.h>
6923#include <time.h>
c906108c 6924
b7026657
AC
6925int
6926main ()
6927{
81ecdfbb
RW
6928struct tm tm;
6929 int *p = &tm.tm_sec;
6930 return !p;
b7026657
AC
6931 ;
6932 return 0;
6933}
6934_ACEOF
81ecdfbb
RW
6935if ac_fn_c_try_compile "$LINENO"; then :
6936 ac_cv_struct_tm=time.h
b7026657 6937else
81ecdfbb 6938 ac_cv_struct_tm=sys/time.h
b7026657 6939fi
81ecdfbb 6940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 6941fi
81ecdfbb
RW
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6943$as_echo "$ac_cv_struct_tm" >&6; }
6944if test $ac_cv_struct_tm = sys/time.h; then
6945
6946$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
c906108c 6947
c906108c 6948fi
c906108c 6949
81ecdfbb
RW
6950ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6951#include <$ac_cv_struct_tm>
6952
6953"
6954if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
c906108c 6955
81ecdfbb
RW
6956cat >>confdefs.h <<_ACEOF
6957#define HAVE_STRUCT_TM_TM_ZONE 1
6958_ACEOF
b7026657
AC
6959
6960
81ecdfbb 6961fi
b7026657 6962
81ecdfbb 6963if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
b7026657 6964
81ecdfbb 6965$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
b7026657 6966
81ecdfbb
RW
6967else
6968 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6969"
6970if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6971 ac_have_decl=1
6972else
6973 ac_have_decl=0
6974fi
b7026657 6975
81ecdfbb
RW
6976cat >>confdefs.h <<_ACEOF
6977#define HAVE_DECL_TZNAME $ac_have_decl
6978_ACEOF
b7026657 6979
81ecdfbb
RW
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6981$as_echo_n "checking for tzname... " >&6; }
6982if test "${ac_cv_var_tzname+set}" = set; then :
6983 $as_echo_n "(cached) " >&6
6984else
6985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986/* end confdefs.h. */
6987#include <time.h>
6988#if !HAVE_DECL_TZNAME
6989extern char *tzname[];
6990#endif
b7026657 6991
81ecdfbb
RW
6992int
6993main ()
6994{
6995return tzname[0][0];
6996 ;
6997 return 0;
6998}
6999_ACEOF
7000if ac_fn_c_try_link "$LINENO"; then :
7001 ac_cv_var_tzname=yes
7002else
7003 ac_cv_var_tzname=no
7004fi
7005rm -f core conftest.err conftest.$ac_objext \
7006 conftest$ac_exeext conftest.$ac_ext
7007fi
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7009$as_echo "$ac_cv_var_tzname" >&6; }
7010 if test $ac_cv_var_tzname = yes; then
b7026657 7011
81ecdfbb 7012$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
b7026657 7013
81ecdfbb
RW
7014 fi
7015fi
b7026657
AC
7016
7017
81ecdfbb
RW
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7019$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7020if test "${ac_cv_type_uid_t+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7022else
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024/* end confdefs.h. */
7025#include <sys/types.h>
b7026657 7026
81ecdfbb
RW
7027_ACEOF
7028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029 $EGREP "uid_t" >/dev/null 2>&1; then :
7030 ac_cv_type_uid_t=yes
7031else
7032 ac_cv_type_uid_t=no
7033fi
7034rm -f conftest*
b7026657 7035
81ecdfbb
RW
7036fi
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7038$as_echo "$ac_cv_type_uid_t" >&6; }
7039if test $ac_cv_type_uid_t = no; then
b7026657 7040
81ecdfbb 7041$as_echo "#define uid_t int" >>confdefs.h
b7026657
AC
7042
7043
81ecdfbb 7044$as_echo "#define gid_t int" >>confdefs.h
b7026657 7045
b7026657 7046fi
81ecdfbb
RW
7047
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
7049$as_echo_n "checking type of array argument to getgroups... " >&6; }
7050if test "${ac_cv_type_getgroups+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
b7026657 7052else
81ecdfbb
RW
7053 if test "$cross_compiling" = yes; then :
7054 ac_cv_type_getgroups=cross
7055else
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7057/* end confdefs.h. */
81ecdfbb 7058/* Thanks to Mike Rendell for this test. */
b7026657 7059$ac_includes_default
81ecdfbb
RW
7060#define NGID 256
7061#undef MAX
7062#define MAX(x, y) ((x) > (y) ? (x) : (y))
7063
7064int
7065main ()
7066{
7067 gid_t gidset[NGID];
7068 int i, n;
7069 union { gid_t gval; long int lval; } val;
7070
7071 val.lval = -1;
7072 for (i = 0; i < NGID; i++)
7073 gidset[i] = val.gval;
7074 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7075 gidset);
7076 /* Exit non-zero if getgroups seems to require an array of ints. This
7077 happens when gid_t is short int but getgroups modifies an array
7078 of ints. */
7079 return n > 0 && gidset[n] != val.gval;
7080}
b7026657 7081_ACEOF
81ecdfbb
RW
7082if ac_fn_c_try_run "$LINENO"; then :
7083 ac_cv_type_getgroups=gid_t
b7026657 7084else
81ecdfbb
RW
7085 ac_cv_type_getgroups=int
7086fi
7087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7088 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 7089fi
b7026657 7090
81ecdfbb
RW
7091if test $ac_cv_type_getgroups = cross; then
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7093/* end confdefs.h. */
81ecdfbb
RW
7094#include <unistd.h>
7095
b7026657 7096_ACEOF
81ecdfbb
RW
7097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
7099 ac_cv_type_getgroups=gid_t
b7026657 7100else
81ecdfbb 7101 ac_cv_type_getgroups=int
c906108c 7102fi
81ecdfbb 7103rm -f conftest*
b7026657 7104
c906108c 7105fi
81ecdfbb
RW
7106fi
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
7108$as_echo "$ac_cv_type_getgroups" >&6; }
7109
7110cat >>confdefs.h <<_ACEOF
7111#define GETGROUPS_T $ac_cv_type_getgroups
7112_ACEOF
7113
7114
7115ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7116if test "x$ac_cv_type_mode_t" = x""yes; then :
b7026657 7117
c906108c 7118else
b7026657 7119
81ecdfbb
RW
7120cat >>confdefs.h <<_ACEOF
7121#define mode_t int
b7026657
AC
7122_ACEOF
7123
c906108c 7124fi
b7026657 7125
81ecdfbb
RW
7126ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7127if test "x$ac_cv_type_off_t" = x""yes; then :
c906108c 7128
81ecdfbb 7129else
b7026657 7130
81ecdfbb
RW
7131cat >>confdefs.h <<_ACEOF
7132#define off_t long int
7133_ACEOF
b7026657 7134
81ecdfbb 7135fi
b7026657 7136
81ecdfbb
RW
7137ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7138if test "x$ac_cv_type_pid_t" = x""yes; then :
b7026657 7139
81ecdfbb 7140else
b7026657 7141
81ecdfbb
RW
7142cat >>confdefs.h <<_ACEOF
7143#define pid_t int
b7026657 7144_ACEOF
81ecdfbb
RW
7145
7146fi
7147
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7149$as_echo_n "checking return type of signal handlers... " >&6; }
7150if test "${ac_cv_type_signal+set}" = set; then :
7151 $as_echo_n "(cached) " >&6
7152else
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7154/* end confdefs.h. */
c906108c 7155#include <sys/types.h>
81ecdfbb 7156#include <signal.h>
b7026657
AC
7157
7158int
7159main ()
7160{
81ecdfbb 7161return *(signal (0, 0)) (0) == 1;
b7026657
AC
7162 ;
7163 return 0;
7164}
7165_ACEOF
81ecdfbb
RW
7166if ac_fn_c_try_compile "$LINENO"; then :
7167 ac_cv_type_signal=int
b7026657 7168else
81ecdfbb 7169 ac_cv_type_signal=void
b7026657 7170fi
81ecdfbb 7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 7172fi
81ecdfbb
RW
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7174$as_echo "$ac_cv_type_signal" >&6; }
7175
7176cat >>confdefs.h <<_ACEOF
7177#define RETSIGTYPE $ac_cv_type_signal
b7026657
AC
7178_ACEOF
7179
b7026657 7180
81ecdfbb
RW
7181ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7182if test "x$ac_cv_type_size_t" = x""yes; then :
7183
b7026657 7184else
81ecdfbb
RW
7185
7186cat >>confdefs.h <<_ACEOF
7187#define size_t unsigned int
b7026657 7188_ACEOF
81ecdfbb
RW
7189
7190fi
7191
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7193$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7194if test "${ac_cv_type_uid_t+set}" = set; then :
7195 $as_echo_n "(cached) " >&6
7196else
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7198/* end confdefs.h. */
81ecdfbb 7199#include <sys/types.h>
b7026657 7200
b7026657 7201_ACEOF
81ecdfbb
RW
7202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "uid_t" >/dev/null 2>&1; then :
7204 ac_cv_type_uid_t=yes
b7026657 7205else
81ecdfbb
RW
7206 ac_cv_type_uid_t=no
7207fi
7208rm -f conftest*
b7026657
AC
7209
7210fi
81ecdfbb
RW
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7212$as_echo "$ac_cv_type_uid_t" >&6; }
7213if test $ac_cv_type_uid_t = no; then
7214
7215$as_echo "#define uid_t int" >>confdefs.h
7216
7217
7218$as_echo "#define gid_t int" >>confdefs.h
7219
7220fi
7221
7222
7223for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
7224do :
7225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7226ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7227eval as_val=\$$as_ac_var
7228 if test "x$as_val" = x""yes; then :
7229 cat >>confdefs.h <<_ACEOF
7230#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b7026657 7231_ACEOF
c906108c 7232
81ecdfbb
RW
7233fi
7234done
7235
7236
7237for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h
7238do :
7239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7240ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7241eval as_val=\$$as_ac_Header
7242 if test "x$as_val" = x""yes; then :
7243 cat >>confdefs.h <<_ACEOF
7244#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7245_ACEOF
7246
7247fi
7248
7249done
7250
7251ac_header_dirent=no
7252for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7253 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7255$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
7257 $as_echo_n "(cached) " >&6
7258else
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h. */
7261#include <sys/types.h>
7262#include <$ac_hdr>
7263
b7026657
AC
7264int
7265main ()
7266{
81ecdfbb
RW
7267if ((DIR *) 0)
7268return 0;
b7026657
AC
7269 ;
7270 return 0;
7271}
7272_ACEOF
81ecdfbb
RW
7273if ac_fn_c_try_compile "$LINENO"; then :
7274 eval "$as_ac_Header=yes"
b7026657 7275else
81ecdfbb 7276 eval "$as_ac_Header=no"
c906108c 7277fi
81ecdfbb 7278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 7279fi
81ecdfbb
RW
7280eval ac_res=\$$as_ac_Header
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7282$as_echo "$ac_res" >&6; }
7283eval as_val=\$$as_ac_Header
7284 if test "x$as_val" = x""yes; then :
7285 cat >>confdefs.h <<_ACEOF
7286#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7287_ACEOF
b7026657 7288
81ecdfbb 7289ac_header_dirent=$ac_hdr; break
c906108c
SS
7290fi
7291
81ecdfbb
RW
7292done
7293# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7294if test $ac_header_dirent = dirent.h; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7296$as_echo_n "checking for library containing opendir... " >&6; }
7297if test "${ac_cv_search_opendir+set}" = set; then :
7298 $as_echo_n "(cached) " >&6
c906108c 7299else
b7026657 7300 ac_func_search_save_LIBS=$LIBS
81ecdfbb 7301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
7302/* end confdefs.h. */
7303
81ecdfbb
RW
7304/* Override any GCC internal prototype to avoid an error.
7305 Use char because int might match the return type of a GCC
7306 builtin and then its argument prototype would still apply. */
b7026657
AC
7307#ifdef __cplusplus
7308extern "C"
7309#endif
b7026657
AC
7310char opendir ();
7311int
7312main ()
7313{
81ecdfbb 7314return opendir ();
b7026657
AC
7315 ;
7316 return 0;
7317}
7318_ACEOF
81ecdfbb
RW
7319for ac_lib in '' dir; do
7320 if test -z "$ac_lib"; then
7321 ac_res="none required"
7322 else
7323 ac_res=-l$ac_lib
7324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7325 fi
7326 if ac_fn_c_try_link "$LINENO"; then :
7327 ac_cv_search_opendir=$ac_res
7328fi
7329rm -f core conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext
7331 if test "${ac_cv_search_opendir+set}" = set; then :
7332 break
7333fi
7334done
7335if test "${ac_cv_search_opendir+set}" = set; then :
7336
b7026657 7337else
81ecdfbb
RW
7338 ac_cv_search_opendir=no
7339fi
7340rm conftest.$ac_ext
7341LIBS=$ac_func_search_save_LIBS
7342fi
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7344$as_echo "$ac_cv_search_opendir" >&6; }
7345ac_res=$ac_cv_search_opendir
7346if test "$ac_res" != no; then :
7347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b7026657
AC
7348
7349fi
81ecdfbb
RW
7350
7351else
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7353$as_echo_n "checking for library containing opendir... " >&6; }
7354if test "${ac_cv_search_opendir+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7356else
7357 ac_func_search_save_LIBS=$LIBS
7358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7359/* end confdefs.h. */
c906108c 7360
81ecdfbb
RW
7361/* Override any GCC internal prototype to avoid an error.
7362 Use char because int might match the return type of a GCC
7363 builtin and then its argument prototype would still apply. */
b7026657
AC
7364#ifdef __cplusplus
7365extern "C"
7366#endif
b7026657
AC
7367char opendir ();
7368int
7369main ()
7370{
81ecdfbb 7371return opendir ();
b7026657
AC
7372 ;
7373 return 0;
7374}
7375_ACEOF
81ecdfbb
RW
7376for ac_lib in '' x; do
7377 if test -z "$ac_lib"; then
7378 ac_res="none required"
7379 else
7380 ac_res=-l$ac_lib
7381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7382 fi
7383 if ac_fn_c_try_link "$LINENO"; then :
7384 ac_cv_search_opendir=$ac_res
b7026657 7385fi
81ecdfbb
RW
7386rm -f core conftest.err conftest.$ac_objext \
7387 conftest$ac_exeext
7388 if test "${ac_cv_search_opendir+set}" = set; then :
7389 break
7390fi
7391done
7392if test "${ac_cv_search_opendir+set}" = set; then :
7393
7394else
7395 ac_cv_search_opendir=no
c906108c 7396fi
81ecdfbb 7397rm conftest.$ac_ext
b7026657
AC
7398LIBS=$ac_func_search_save_LIBS
7399fi
81ecdfbb
RW
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7401$as_echo "$ac_cv_search_opendir" >&6; }
7402ac_res=$ac_cv_search_opendir
7403if test "$ac_res" != no; then :
7404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b7026657 7405
c906108c
SS
7406fi
7407
7408fi
7409
7410
7411sim_termio=""
81ecdfbb
RW
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
7413$as_echo_n "checking for struct termios... " >&6; }
7414if test "${ac_cv_termios_struct+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
b7026657 7416else
81ecdfbb 7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7418/* end confdefs.h. */
c906108c
SS
7419#include <sys/types.h>
7420#include <sys/termios.h>
b7026657
AC
7421int
7422main ()
7423{
c906108c
SS
7424static struct termios x;
7425 x.c_iflag = 0;
7426 x.c_oflag = 0;
7427 x.c_cflag = 0;
7428 x.c_lflag = 0;
7429 x.c_cc[NCCS] = 0;
b7026657
AC
7430 ;
7431 return 0;
7432}
7433_ACEOF
81ecdfbb 7434if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
7435 ac_cv_termios_struct=yes
7436else
81ecdfbb 7437 ac_cv_termios_struct=no
c906108c 7438fi
81ecdfbb 7439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
7440fi
7441
81ecdfbb
RW
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
7443$as_echo "$ac_cv_termios_struct" >&6; }
c906108c
SS
7444if test $ac_cv_termios_struct = yes; then
7445 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
7446fi
7447
7448if test "$ac_cv_termios_struct" = "yes"; then
81ecdfbb
RW
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
7450$as_echo_n "checking for c_line field in struct termios... " >&6; }
7451 if test "${ac_cv_termios_cline+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
b7026657 7453else
81ecdfbb 7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7455/* end confdefs.h. */
c906108c
SS
7456#include <sys/types.h>
7457#include <sys/termios.h>
b7026657
AC
7458int
7459main ()
7460{
c906108c 7461static struct termios x; x.c_line = 0;
b7026657
AC
7462 ;
7463 return 0;
7464}
7465_ACEOF
81ecdfbb 7466if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
7467 ac_cv_termios_cline=yes
7468else
81ecdfbb 7469 ac_cv_termios_cline=no
c906108c 7470fi
81ecdfbb 7471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
7472fi
7473
7474
81ecdfbb
RW
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
7476$as_echo "$ac_cv_termios_cline" >&6; }
c906108c
SS
7477 if test $ac_cv_termios_cline = yes; then
7478 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
7479 fi
7480else
7481 ac_cv_termios_cline=no
7482fi
7483
7484if test "$ac_cv_termios_struct" != "yes"; then
81ecdfbb
RW
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
7486$as_echo_n "checking for struct termio... " >&6; }
7487 if test "${ac_cv_termio_struct+set}" = set; then :
7488 $as_echo_n "(cached) " >&6
b7026657 7489else
81ecdfbb 7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7491/* end confdefs.h. */
c906108c
SS
7492#include <sys/types.h>
7493#include <sys/termio.h>
b7026657
AC
7494int
7495main ()
7496{
c906108c
SS
7497static struct termio x;
7498 x.c_iflag = 0;
7499 x.c_oflag = 0;
7500 x.c_cflag = 0;
7501 x.c_lflag = 0;
7502 x.c_cc[NCC] = 0;
b7026657
AC
7503 ;
7504 return 0;
7505}
7506_ACEOF
81ecdfbb 7507if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
7508 ac_cv_termio_struct=yes
7509else
81ecdfbb 7510 ac_cv_termio_struct=no
c906108c 7511fi
81ecdfbb 7512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
7513fi
7514
81ecdfbb
RW
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
7516$as_echo "$ac_cv_termio_struct" >&6; }
c906108c
SS
7517 if test $ac_cv_termio_struct = yes; then
7518 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
7519 fi
7520else
7521 ac_cv_termio_struct=no
7522fi
7523
7524if test "$ac_cv_termio_struct" = "yes"; then
81ecdfbb
RW
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
7526$as_echo_n "checking for c_line field in struct termio... " >&6; }
7527 if test "${ac_cv_termio_cline+set}" = set; then :
7528 $as_echo_n "(cached) " >&6
b7026657 7529else
81ecdfbb 7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7531/* end confdefs.h. */
c906108c
SS
7532#include <sys/types.h>
7533#include <sys/termio.h>
b7026657
AC
7534int
7535main ()
7536{
c906108c 7537static struct termio x; x.c_line = 0;
b7026657
AC
7538 ;
7539 return 0;
7540}
7541_ACEOF
81ecdfbb 7542if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
7543 ac_cv_termio_cline=yes
7544else
81ecdfbb 7545 ac_cv_termio_cline=no
c906108c 7546fi
81ecdfbb 7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
7548fi
7549
7550
81ecdfbb
RW
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
7552$as_echo "$ac_cv_termio_cline" >&6; }
c906108c
SS
7553 if test $ac_cv_termio_cline = yes; then
7554 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
7555 fi
7556else
7557 ac_cv_termio_cline=no
7558fi
7559
81ecdfbb
RW
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
7561$as_echo_n "checking for struct statfs... " >&6; }
7562if test "${ac_cv_struct_statfs+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
1f362c96 7564else
81ecdfbb 7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7566/* end confdefs.h. */
1f362c96
AC
7567#include <sys/types.h>
7568#ifdef HAVE_SYS_PARAM_H
7569#include <sys/param.h>
7570#endif
7571#ifdef HAVE_SYS_MOUNT_H
7572#include <sys/mount.h>
7573#endif
7574#ifdef HAVE_SYS_VFS_H
7575#include <sys/vfs.h>
7576#endif
7577#ifdef HAVE_SYS_STATFS_H
7578#include <sys/statfs.h>
7579#endif
b7026657
AC
7580int
7581main ()
7582{
1f362c96 7583static struct statfs s;
b7026657
AC
7584 ;
7585 return 0;
7586}
7587_ACEOF
81ecdfbb 7588if ac_fn_c_try_compile "$LINENO"; then :
1f362c96
AC
7589 ac_cv_struct_statfs=yes
7590else
81ecdfbb 7591 ac_cv_struct_statfs=no
1f362c96 7592fi
81ecdfbb 7593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1f362c96
AC
7594fi
7595
81ecdfbb
RW
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
7597$as_echo "$ac_cv_struct_statfs" >&6; }
1f362c96 7598if test $ac_cv_struct_statfs = yes; then
b7026657 7599
81ecdfbb 7600$as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
1f362c96
AC
7601
7602fi
7603
81ecdfbb
RW
7604ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7605if test "x$ac_cv_type_long_long" = x""yes; then :
30e66173
MI
7606
7607cat >>confdefs.h <<_ACEOF
7608#define HAVE_LONG_LONG 1
7609_ACEOF
7610
7611
7612fi
7613
7614
c906108c 7615sim_devzero=""
81ecdfbb
RW
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
7617$as_echo_n "checking for /dev/zero... " >&6; }
7618if test "${ac_cv_devzero+set}" = set; then :
7619 $as_echo_n "(cached) " >&6
c906108c 7620else
81ecdfbb 7621 if test "$cross_compiling" = yes; then :
c906108c
SS
7622 ac_cv_devzero=no
7623else
81ecdfbb 7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 7625/* end confdefs.h. */
c906108c
SS
7626#include <fcntl.h>
7627main () {
7628 char buf[2048];
7629 int i;
7630 int fd = open ("/dev/zero", O_RDONLY);
7631 if (fd < 0)
7632 return 1;
7633 for (i = 0; i < sizeof (buf); i++)
7634 buf[i] = 1;
7635 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
7636 return 1;
7637 for (i = 0; i < sizeof (buf); i++)
7638 if (buf[i])
7639 return 1;
7640 return 0;
7641}
b7026657 7642_ACEOF
81ecdfbb 7643if ac_fn_c_try_run "$LINENO"; then :
c906108c
SS
7644 ac_cv_devzero=yes
7645else
81ecdfbb 7646 ac_cv_devzero=no
c906108c 7647fi
81ecdfbb
RW
7648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7649 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 7650fi
81ecdfbb 7651
c906108c
SS
7652fi
7653
81ecdfbb
RW
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
7655$as_echo "$ac_cv_devzero" >&6; }
c906108c
SS
7656if test $ac_cv_devzero = yes; then
7657 sim_devzero="-DHAVE_DEVZERO"
7658else
7659 sim_devzero=""
7660fi
7661
81ecdfbb
RW
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
7663$as_echo_n "checking for common simulator directory... " >&6; }
c906108c 7664if test -f "${srcdir}/../common/callback.c"; then
81ecdfbb
RW
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7666$as_echo "yes" >&6; }
c906108c
SS
7667 sim_callback="callback.o targ-map.o"
7668 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
7669else
81ecdfbb
RW
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671$as_echo "no" >&6; }
c906108c
SS
7672 sim_callback=""
7673 sim_targ_vals=""
7674fi
7675
81ecdfbb
RW
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
7677$as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
d29d5195 7678if test -f "${srcdir}/../common/sim-fpu.c"; then
81ecdfbb
RW
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7680$as_echo "yes" >&6; }
3e5e53f9 7681 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
3a11ea24 7682 sim_fpu="sim-fpu.o"
d29d5195 7683else
81ecdfbb
RW
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685$as_echo "no" >&6; }
d29d5195 7686 sim_fpu_cflags=
b7026657 7687 sim_fpu=
c906108c 7688fi
cd0fc7c3 7689
68a3e151
NF
7690# Since we run commands on the build system, we have to create a
7691# separate config header for the build system if build != host.
7692if test x$host = x$build; then
7693 ac_config_commands="$ac_config_commands build-config.h"
7694
7695else
7696 tempdir=build.$$
7697 rm -rf $tempdir
7698 mkdir $tempdir
7699 cd $tempdir
7700 case ${srcdir} in
7701 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
7702 *) realsrcdir=../${srcdir};;
7703 esac
7704 saved_CFLAGS="${CFLAGS}"
7705 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
7706 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
7707 ${realsrcdir}/configure \
7708 --enable-languages=${enable_languages-all} \
7709 --target=$target_alias --host=$build_alias --build=$build_alias
7710 CFLAGS="${saved_CFLAGS}"
7711 mv config.h ../build-config.h
7712 cd ..
7713 rm -rf $tempdir
7714fi
7715
c906108c
SS
7716
7717
7718
7719
7720
4b164edf 7721
c906108c
SS
7722AR=${AR-ar}
7723
b7026657
AC
7724if test -n "$ac_tool_prefix"; then
7725 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7726set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728$as_echo_n "checking for $ac_word... " >&6; }
7729if test "${ac_cv_prog_RANLIB+set}" = set; then :
7730 $as_echo_n "(cached) " >&6
c906108c
SS
7731else
7732 if test -n "$RANLIB"; then
7733 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7734else
b7026657
AC
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 7742 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
7744 break 2
7745 fi
7746done
81ecdfbb
RW
7747 done
7748IFS=$as_save_IFS
b7026657 7749
c906108c
SS
7750fi
7751fi
b7026657 7752RANLIB=$ac_cv_prog_RANLIB
c906108c 7753if test -n "$RANLIB"; then
81ecdfbb
RW
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7755$as_echo "$RANLIB" >&6; }
b7026657 7756else
81ecdfbb
RW
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758$as_echo "no" >&6; }
b7026657
AC
7759fi
7760
81ecdfbb 7761
b7026657
AC
7762fi
7763if test -z "$ac_cv_prog_RANLIB"; then
7764 ac_ct_RANLIB=$RANLIB
7765 # Extract the first word of "ranlib", so it can be a program name with args.
7766set dummy ranlib; ac_word=$2
81ecdfbb
RW
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768$as_echo_n "checking for $ac_word... " >&6; }
7769if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
b7026657
AC
7771else
7772 if test -n "$ac_ct_RANLIB"; then
7773 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7774else
7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776for as_dir in $PATH
7777do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b7026657 7782 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
7784 break 2
7785 fi
7786done
81ecdfbb
RW
7787 done
7788IFS=$as_save_IFS
b7026657 7789
b7026657
AC
7790fi
7791fi
7792ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7793if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7795$as_echo "$ac_ct_RANLIB" >&6; }
b7026657 7796else
81ecdfbb
RW
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798$as_echo "no" >&6; }
b7026657
AC
7799fi
7800
81ecdfbb
RW
7801 if test "x$ac_ct_RANLIB" = x; then
7802 RANLIB=":"
7803 else
7804 case $cross_compiling:$ac_tool_warned in
7805yes:)
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7808ac_tool_warned=yes ;;
7809esac
7810 RANLIB=$ac_ct_RANLIB
7811 fi
c906108c 7812else
b7026657 7813 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
7814fi
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
d29d5195 7854
c906108c
SS
7855
7856
81ecdfbb
RW
7857ac_config_files="$ac_config_files Makefile"
7858
7859ac_config_commands="$ac_config_commands default"
7860
b7026657 7861cat >confcache <<\_ACEOF
c906108c
SS
7862# This file is a shell script that caches the results of configure
7863# tests run on this system so they can be shared between configure
b7026657
AC
7864# scripts and configure runs, see configure's option --config-cache.
7865# It is not useful on other systems. If it contains results you don't
7866# want to keep, you may remove or edit it.
c906108c 7867#
b7026657
AC
7868# config.status only pays attention to the cache file if you give it
7869# the --recheck option to rerun configure.
c906108c 7870#
b7026657
AC
7871# `ac_cv_env_foo' variables (set or unset) will be overridden when
7872# loading this file, other *unset* `ac_cv_foo' will be assigned the
7873# following values.
7874
7875_ACEOF
7876
c906108c
SS
7877# The following way of writing the cache mishandles newlines in values,
7878# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 7879# So, we kill variables containing newlines.
c906108c
SS
7880# Ultrix sh set writes to stderr and can't be redirected directly,
7881# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
7882(
7883 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7884 eval ac_val=\$$ac_var
7885 case $ac_val in #(
7886 *${as_nl}*)
7887 case $ac_var in #(
7888 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7889$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7890 esac
7891 case $ac_var in #(
7892 _ | IFS | as_nl) ;; #(
7893 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7894 *) { eval $ac_var=; unset $ac_var;} ;;
7895 esac ;;
7896 esac
7897 done
7898
b7026657 7899 (set) 2>&1 |
81ecdfbb
RW
7900 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7901 *${as_nl}ac_space=\ *)
7902 # `set' does not quote correctly, so add quotes: double-quote
7903 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
7904 sed -n \
7905 "s/'/'\\\\''/g;
7906 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 7907 ;; #(
b7026657
AC
7908 *)
7909 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 7910 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 7911 ;;
81ecdfbb
RW
7912 esac |
7913 sort
7914) |
b7026657 7915 sed '
81ecdfbb 7916 /^ac_cv_env_/b end
b7026657 7917 t clear
81ecdfbb 7918 :clear
b7026657
AC
7919 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7920 t end
81ecdfbb
RW
7921 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7922 :end' >>confcache
7923if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7924 if test -w "$cache_file"; then
7925 test "x$cache_file" != "x/dev/null" &&
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7927$as_echo "$as_me: updating cache $cache_file" >&6;}
b7026657 7928 cat confcache >$cache_file
c906108c 7929 else
81ecdfbb
RW
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7931$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
7932 fi
7933fi
7934rm -f confcache
7935
c906108c
SS
7936test "x$prefix" = xNONE && prefix=$ac_default_prefix
7937# Let make expand exec_prefix.
7938test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7939
c906108c
SS
7940DEFS=-DHAVE_CONFIG_H
7941
b7026657
AC
7942ac_libobjs=
7943ac_ltlibobjs=
7944for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7945 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
7946 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7947 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7948 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7949 # will be set to the directory where LIBOBJS objects are built.
7950 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7951 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
7952done
7953LIBOBJS=$ac_libobjs
c906108c 7954
b7026657
AC
7955LTLIBOBJS=$ac_ltlibobjs
7956
7957
7958
81ecdfbb 7959
b7026657 7960: ${CONFIG_STATUS=./config.status}
81ecdfbb 7961ac_write_fail=0
b7026657
AC
7962ac_clean_files_save=$ac_clean_files
7963ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7965$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7966as_write_fail=0
7967cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
7968#! $SHELL
7969# Generated by $as_me.
c906108c 7970# Run this file to recreate the current configuration.
c906108c 7971# Compiler output produced by configure, useful for debugging
b7026657 7972# configure, is in config.log if it exists.
c906108c 7973
b7026657
AC
7974debug=false
7975ac_cs_recheck=false
7976ac_cs_silent=false
b7026657 7977
81ecdfbb
RW
7978SHELL=\${CONFIG_SHELL-$SHELL}
7979export SHELL
7980_ASEOF
7981cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7982## -------------------- ##
7983## M4sh Initialization. ##
7984## -------------------- ##
7985
7986# Be more Bourne compatible
7987DUALCASE=1; export DUALCASE # for MKS sh
7988if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
7989 emulate sh
7990 NULLCMD=:
81ecdfbb 7991 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
7992 # is contrary to our usage. Disable this feature.
7993 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
7994 setopt NO_GLOB_SUBST
7995else
7996 case `(set -o) 2>/dev/null` in #(
7997 *posix*) :
7998 set -o posix ;; #(
7999 *) :
8000 ;;
8001esac
b7026657 8002fi
b7026657 8003
81ecdfbb
RW
8004
8005as_nl='
8006'
8007export as_nl
8008# Printing a long string crashes Solaris 7 /usr/bin/printf.
8009as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8010as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8011as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8012# Prefer a ksh shell builtin over an external printf program on Solaris,
8013# but without wasting forks for bash or zsh.
8014if test -z "$BASH_VERSION$ZSH_VERSION" \
8015 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8016 as_echo='print -r --'
8017 as_echo_n='print -rn --'
8018elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8019 as_echo='printf %s\n'
8020 as_echo_n='printf %s'
8021else
8022 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8023 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8024 as_echo_n='/usr/ucb/echo -n'
8025 else
8026 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8027 as_echo_n_body='eval
8028 arg=$1;
8029 case $arg in #(
8030 *"$as_nl"*)
8031 expr "X$arg" : "X\\(.*\\)$as_nl";
8032 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8033 esac;
8034 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8035 '
8036 export as_echo_n_body
8037 as_echo_n='sh -c $as_echo_n_body as_echo'
8038 fi
8039 export as_echo_body
8040 as_echo='sh -c $as_echo_body as_echo'
b7026657
AC
8041fi
8042
81ecdfbb
RW
8043# The user is always right.
8044if test "${PATH_SEPARATOR+set}" != set; then
8045 PATH_SEPARATOR=:
8046 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8047 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8048 PATH_SEPARATOR=';'
8049 }
8050fi
8051
8052
8053# IFS
8054# We need space, tab and new line, in precisely that order. Quoting is
8055# there to prevent editors from complaining about space-tab.
8056# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8057# splitting by setting IFS to empty value.)
8058IFS=" "" $as_nl"
8059
8060# Find who we are. Look in the path if we contain no directory separator.
8061case $0 in #((
8062 *[\\/]* ) as_myself=$0 ;;
8063 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064for as_dir in $PATH
8065do
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8069 done
8070IFS=$as_save_IFS
b7026657 8071
81ecdfbb
RW
8072 ;;
8073esac
8074# We did not find ourselves, most probably we were run as `sh COMMAND'
8075# in which case we are not to be found in the path.
8076if test "x$as_myself" = x; then
8077 as_myself=$0
8078fi
8079if test ! -f "$as_myself"; then
8080 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8081 exit 1
8082fi
8083
8084# Unset variables that we do not need and which cause bugs (e.g. in
8085# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8086# suppresses any "Segmentation fault" message there. '((' could
8087# trigger a bug in pdksh 5.2.14.
8088for as_var in BASH_ENV ENV MAIL MAILPATH
8089do eval test x\${$as_var+set} = xset \
8090 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8091done
b7026657
AC
8092PS1='$ '
8093PS2='> '
8094PS4='+ '
8095
8096# NLS nuisances.
81ecdfbb
RW
8097LC_ALL=C
8098export LC_ALL
8099LANGUAGE=C
8100export LANGUAGE
8101
8102# CDPATH.
8103(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8104
8105
8106# as_fn_error ERROR [LINENO LOG_FD]
8107# ---------------------------------
8108# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8109# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8110# script with status $?, using 1 if that was 0.
8111as_fn_error ()
8112{
8113 as_status=$?; test $as_status -eq 0 && as_status=1
8114 if test "$3"; then
8115 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8116 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b7026657 8117 fi
81ecdfbb
RW
8118 $as_echo "$as_me: error: $1" >&2
8119 as_fn_exit $as_status
8120} # as_fn_error
8121
c906108c 8122
81ecdfbb
RW
8123# as_fn_set_status STATUS
8124# -----------------------
8125# Set $? to STATUS, without forking.
8126as_fn_set_status ()
8127{
8128 return $1
8129} # as_fn_set_status
8130
8131# as_fn_exit STATUS
8132# -----------------
8133# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8134as_fn_exit ()
8135{
8136 set +e
8137 as_fn_set_status $1
8138 exit $1
8139} # as_fn_exit
8140
8141# as_fn_unset VAR
8142# ---------------
8143# Portably unset VAR.
8144as_fn_unset ()
8145{
8146 { eval $1=; unset $1;}
8147}
8148as_unset=as_fn_unset
8149# as_fn_append VAR VALUE
8150# ----------------------
8151# Append the text in VALUE to the end of the definition contained in VAR. Take
8152# advantage of any shell optimizations that allow amortized linear growth over
8153# repeated appends, instead of the typical quadratic growth present in naive
8154# implementations.
8155if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8156 eval 'as_fn_append ()
8157 {
8158 eval $1+=\$2
8159 }'
8160else
8161 as_fn_append ()
8162 {
8163 eval $1=\$$1\$2
8164 }
8165fi # as_fn_append
8166
8167# as_fn_arith ARG...
8168# ------------------
8169# Perform arithmetic evaluation on the ARGs, and store the result in the
8170# global $as_val. Take advantage of shells that can avoid forks. The arguments
8171# must be portable across $(()) and expr.
8172if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8173 eval 'as_fn_arith ()
8174 {
8175 as_val=$(( $* ))
8176 }'
8177else
8178 as_fn_arith ()
8179 {
8180 as_val=`expr "$@" || test $? -eq 1`
8181 }
8182fi # as_fn_arith
8183
8184
8185if expr a : '\(a\)' >/dev/null 2>&1 &&
8186 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
8187 as_expr=expr
8188else
8189 as_expr=false
8190fi
c906108c 8191
81ecdfbb 8192if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
8193 as_basename=basename
8194else
8195 as_basename=false
8196fi
c906108c 8197
81ecdfbb
RW
8198if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8199 as_dirname=dirname
8200else
8201 as_dirname=false
8202fi
c906108c 8203
81ecdfbb 8204as_me=`$as_basename -- "$0" ||
b7026657
AC
8205$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8206 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
8207 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8208$as_echo X/"$0" |
8209 sed '/^.*\/\([^/][^/]*\)\/*$/{
8210 s//\1/
8211 q
8212 }
8213 /^X\/\(\/\/\)$/{
8214 s//\1/
8215 q
8216 }
8217 /^X\/\(\/\).*/{
8218 s//\1/
8219 q
8220 }
8221 s/.*/./; q'`
b7026657 8222
b7026657
AC
8223# Avoid depending upon Character Ranges.
8224as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8225as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8226as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8227as_cr_digits='0123456789'
8228as_cr_alnum=$as_cr_Letters$as_cr_digits
8229
81ecdfbb
RW
8230ECHO_C= ECHO_N= ECHO_T=
8231case `echo -n x` in #(((((
8232-n*)
8233 case `echo 'xy\c'` in
8234 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8235 xy) ECHO_C='\c';;
8236 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8237 ECHO_T=' ';;
8238 esac;;
8239*)
8240 ECHO_N='-n';;
b7026657
AC
8241esac
8242
b7026657 8243rm -f conf$$ conf$$.exe conf$$.file
81ecdfbb
RW
8244if test -d conf$$.dir; then
8245 rm -f conf$$.dir/conf$$.file
8246else
8247 rm -f conf$$.dir
8248 mkdir conf$$.dir 2>/dev/null
8249fi
8250if (echo >conf$$.file) 2>/dev/null; then
8251 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 8252 as_ln_s='ln -s'
81ecdfbb
RW
8253 # ... but there are two gotchas:
8254 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8255 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8256 # In both cases, we have to default to `cp -p'.
8257 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8258 as_ln_s='cp -p'
8259 elif ln conf$$.file conf$$ 2>/dev/null; then
8260 as_ln_s=ln
8261 else
8262 as_ln_s='cp -p'
c906108c 8263 fi
b7026657
AC
8264else
8265 as_ln_s='cp -p'
8266fi
81ecdfbb
RW
8267rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8268rmdir conf$$.dir 2>/dev/null
8269
8270
8271# as_fn_mkdir_p
8272# -------------
8273# Create "$as_dir" as a directory, including parents if necessary.
8274as_fn_mkdir_p ()
8275{
8276
8277 case $as_dir in #(
8278 -*) as_dir=./$as_dir;;
8279 esac
8280 test -d "$as_dir" || eval $as_mkdir_p || {
8281 as_dirs=
8282 while :; do
8283 case $as_dir in #(
8284 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8285 *) as_qdir=$as_dir;;
8286 esac
8287 as_dirs="'$as_qdir' $as_dirs"
8288 as_dir=`$as_dirname -- "$as_dir" ||
8289$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8290 X"$as_dir" : 'X\(//\)[^/]' \| \
8291 X"$as_dir" : 'X\(//\)$' \| \
8292 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8293$as_echo X"$as_dir" |
8294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8295 s//\1/
8296 q
8297 }
8298 /^X\(\/\/\)[^/].*/{
8299 s//\1/
8300 q
8301 }
8302 /^X\(\/\/\)$/{
8303 s//\1/
8304 q
8305 }
8306 /^X\(\/\).*/{
8307 s//\1/
8308 q
8309 }
8310 s/.*/./; q'`
8311 test -d "$as_dir" && break
8312 done
8313 test -z "$as_dirs" || eval "mkdir $as_dirs"
8314 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
b7026657 8315
81ecdfbb
RW
8316
8317} # as_fn_mkdir_p
b7026657 8318if mkdir -p . 2>/dev/null; then
81ecdfbb 8319 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
8320else
8321 test -d ./-p && rmdir ./-p
8322 as_mkdir_p=false
8323fi
8324
81ecdfbb
RW
8325if test -x / >/dev/null 2>&1; then
8326 as_test_x='test -x'
8327else
8328 if ls -dL / >/dev/null 2>&1; then
8329 as_ls_L_option=L
8330 else
8331 as_ls_L_option=
8332 fi
8333 as_test_x='
8334 eval sh -c '\''
8335 if test -d "$1"; then
8336 test -d "$1/.";
8337 else
8338 case $1 in #(
8339 -*)set "./$1";;
8340 esac;
8341 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8342 ???[sx]*):;;*)false;;esac;fi
8343 '\'' sh
8344 '
8345fi
8346as_executable_p=$as_test_x
b7026657
AC
8347
8348# Sed expression to map a string onto a valid CPP name.
8349as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8350
8351# Sed expression to map a string onto a valid variable name.
8352as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8353
8354
b7026657 8355exec 6>&1
81ecdfbb
RW
8356## ----------------------------------- ##
8357## Main body of $CONFIG_STATUS script. ##
8358## ----------------------------------- ##
8359_ASEOF
8360test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8361
8362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8363# Save the log message, to keep $0 and so on meaningful, and to
b7026657 8364# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
8365# values after options handling.
8366ac_log="
b7026657 8367This file was extended by $as_me, which was
81ecdfbb 8368generated by GNU Autoconf 2.64. Invocation command line was
b7026657
AC
8369
8370 CONFIG_FILES = $CONFIG_FILES
8371 CONFIG_HEADERS = $CONFIG_HEADERS
8372 CONFIG_LINKS = $CONFIG_LINKS
8373 CONFIG_COMMANDS = $CONFIG_COMMANDS
8374 $ $0 $@
8375
81ecdfbb
RW
8376on `(hostname || uname -n) 2>/dev/null | sed 1q`
8377"
8378
b7026657
AC
8379_ACEOF
8380
81ecdfbb
RW
8381case $ac_config_files in *"
8382"*) set x $ac_config_files; shift; ac_config_files=$*;;
8383esac
b7026657 8384
81ecdfbb
RW
8385case $ac_config_headers in *"
8386"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8387esac
b7026657 8388
b7026657 8389
81ecdfbb
RW
8390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8391# Files that config.status was made for.
8392config_files="$ac_config_files"
8393config_headers="$ac_config_headers"
8394config_commands="$ac_config_commands"
b7026657 8395
81ecdfbb 8396_ACEOF
b7026657 8397
81ecdfbb 8398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 8399ac_cs_usage="\
81ecdfbb
RW
8400\`$as_me' instantiates files and other configuration actions
8401from templates according to the current configuration. Unless the files
8402and actions are specified as TAGs, all are instantiated by default.
b7026657 8403
81ecdfbb 8404Usage: $0 [OPTION]... [TAG]...
b7026657
AC
8405
8406 -h, --help print this help, then exit
81ecdfbb
RW
8407 -V, --version print version number and configuration settings, then exit
8408 -q, --quiet, --silent
8409 do not print progress messages
b7026657
AC
8410 -d, --debug don't remove temporary files
8411 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
8412 --file=FILE[:TEMPLATE]
8413 instantiate the configuration file FILE
8414 --header=FILE[:TEMPLATE]
8415 instantiate the configuration header FILE
b7026657
AC
8416
8417Configuration files:
8418$config_files
8419
8420Configuration headers:
8421$config_headers
8422
8423Configuration commands:
8424$config_commands
8425
81ecdfbb 8426Report bugs to the package provider."
b7026657 8427
81ecdfbb
RW
8428_ACEOF
8429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657
AC
8430ac_cs_version="\\
8431config.status
81ecdfbb
RW
8432configured by $0, generated by GNU Autoconf 2.64,
8433 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b7026657 8434
81ecdfbb 8435Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
8436This config.status script is free software; the Free Software Foundation
8437gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
8438
8439ac_pwd='$ac_pwd'
8440srcdir='$srcdir'
8441INSTALL='$INSTALL'
8442test -n "\$AWK" || AWK=awk
b7026657
AC
8443_ACEOF
8444
81ecdfbb
RW
8445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8446# The default lists apply if the user does not specify any file.
b7026657
AC
8447ac_need_defaults=:
8448while test $# != 0
8449do
8450 case $1 in
8451 --*=*)
81ecdfbb
RW
8452 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8453 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
8454 ac_shift=:
8455 ;;
81ecdfbb 8456 *)
b7026657
AC
8457 ac_option=$1
8458 ac_optarg=$2
8459 ac_shift=shift
8460 ;;
b7026657
AC
8461 esac
8462
8463 case $ac_option in
8464 # Handling of the options.
b7026657
AC
8465 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8466 ac_cs_recheck=: ;;
81ecdfbb
RW
8467 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8468 $as_echo "$ac_cs_version"; exit ;;
8469 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
8470 debug=: ;;
8471 --file | --fil | --fi | --f )
8472 $ac_shift
81ecdfbb
RW
8473 case $ac_optarg in
8474 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8475 esac
8476 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
8477 ac_need_defaults=false;;
8478 --header | --heade | --head | --hea )
8479 $ac_shift
81ecdfbb
RW
8480 case $ac_optarg in
8481 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8482 esac
8483 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 8484 ac_need_defaults=false;;
81ecdfbb
RW
8485 --he | --h)
8486 # Conflict between --help and --header
8487 as_fn_error "ambiguous option: \`$1'
8488Try \`$0 --help' for more information.";;
8489 --help | --hel | -h )
8490 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
8491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8492 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8493 ac_cs_silent=: ;;
8494
8495 # This is an error.
81ecdfbb
RW
8496 -*) as_fn_error "unrecognized option: \`$1'
8497Try \`$0 --help' for more information." ;;
b7026657 8498
81ecdfbb
RW
8499 *) as_fn_append ac_config_targets " $1"
8500 ac_need_defaults=false ;;
b7026657
AC
8501
8502 esac
8503 shift
c906108c 8504done
b7026657
AC
8505
8506ac_configure_extra_args=
8507
8508if $ac_cs_silent; then
8509 exec 6>/dev/null
8510 ac_configure_extra_args="$ac_configure_extra_args --silent"
8511fi
8512
8513_ACEOF
81ecdfbb 8514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 8515if \$ac_cs_recheck; then
81ecdfbb
RW
8516 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8517 shift
8518 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8519 CONFIG_SHELL='$SHELL'
8520 export CONFIG_SHELL
8521 exec "\$@"
c906108c 8522fi
c906108c 8523
b7026657 8524_ACEOF
81ecdfbb
RW
8525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8526exec 5>>config.log
8527{
8528 echo
8529 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8530## Running $as_me. ##
8531_ASBOX
8532 $as_echo "$ac_log"
8533} >&5
c906108c 8534
81ecdfbb
RW
8535_ACEOF
8536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8537_ACEOF
b7026657 8538
81ecdfbb 8539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 8540
81ecdfbb 8541# Handling of arguments.
b7026657
AC
8542for ac_config_target in $ac_config_targets
8543do
81ecdfbb
RW
8544 case $ac_config_target in
8545 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
68a3e151 8546 "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;;
81ecdfbb
RW
8547 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8548 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8549
8550 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 8551 esac
b7026657 8552done
c906108c 8553
81ecdfbb 8554
b7026657
AC
8555# If the user did not use the arguments to specify the items to instantiate,
8556# then the envvar interface is used. Set only those that are not.
8557# We use the long form for the default assignment because of an extremely
8558# bizarre bug on SunOS 4.1.3.
8559if $ac_need_defaults; then
8560 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8561 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8562 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8563fi
8564
8565# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 8566# simply because there is no reason against having it here, and in addition,
b7026657 8567# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
8568# Hook for its removal unless debugging.
8569# Note that there is a small window in which the directory will not be cleaned:
8570# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
8571$debug ||
8572{
81ecdfbb
RW
8573 tmp=
8574 trap 'exit_status=$?
8575 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8576' 0
8577 trap 'as_fn_exit 1' 1 2 13 15
b7026657 8578}
b7026657
AC
8579# Create a (secure) tmp directory for tmp files.
8580
8581{
81ecdfbb 8582 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b7026657
AC
8583 test -n "$tmp" && test -d "$tmp"
8584} ||
8585{
81ecdfbb
RW
8586 tmp=./conf$$-$RANDOM
8587 (umask 077 && mkdir "$tmp")
8588} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8589
8590# Set up the scripts for CONFIG_FILES section.
8591# No need to generate them if there are no CONFIG_FILES.
8592# This happens for instance with `./config.status config.h'.
8593if test -n "$CONFIG_FILES"; then
8594
8595
8596ac_cr=`echo X | tr X '\015'`
8597# On cygwin, bash can eat \r inside `` if the user requested igncr.
8598# But we know of no other shell where ac_cr would be empty at this
8599# point, so we can use a bashism as a fallback.
8600if test "x$ac_cr" = x; then
8601 eval ac_cr=\$\'\\r\'
8602fi
8603ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8604if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8605 ac_cs_awk_cr='\r'
8606else
8607 ac_cs_awk_cr=$ac_cr
8608fi
8609
8610echo 'BEGIN {' >"$tmp/subs1.awk" &&
8611_ACEOF
8612
8613
b7026657 8614{
81ecdfbb
RW
8615 echo "cat >conf$$subs.awk <<_ACEOF" &&
8616 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8617 echo "_ACEOF"
8618} >conf$$subs.sh ||
8619 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8620ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8621ac_delim='%!_!# '
8622for ac_last_try in false false false false false :; do
8623 . ./conf$$subs.sh ||
8624 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8625
8626 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8627 if test $ac_delim_n = $ac_delim_num; then
8628 break
8629 elif $ac_last_try; then
8630 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8631 else
8632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8633 fi
8634done
8635rm -f conf$$subs.sh
8636
8637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8638cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8639_ACEOF
8640sed -n '
8641h
8642s/^/S["/; s/!.*/"]=/
8643p
8644g
8645s/^[^!]*!//
8646:repl
8647t repl
8648s/'"$ac_delim"'$//
8649t delim
8650:nl
8651h
8652s/\(.\{148\}\).*/\1/
8653t more1
8654s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8655p
8656n
8657b repl
8658:more1
8659s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8660p
8661g
8662s/.\{148\}//
8663t nl
8664:delim
8665h
8666s/\(.\{148\}\).*/\1/
8667t more2
8668s/["\\]/\\&/g; s/^/"/; s/$/"/
8669p
8670b
8671:more2
8672s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8673p
8674g
8675s/.\{148\}//
8676t delim
8677' <conf$$subs.awk | sed '
8678/^[^""]/{
8679 N
8680 s/\n//
b7026657 8681}
81ecdfbb
RW
8682' >>$CONFIG_STATUS || ac_write_fail=1
8683rm -f conf$$subs.awk
8684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8685_ACAWK
8686cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8687 for (key in S) S_is_set[key] = 1
8688 FS = "\a"
b7026657 8689
81ecdfbb
RW
8690}
8691{
8692 line = $ 0
8693 nfields = split(line, field, "@")
8694 substed = 0
8695 len = length(field[1])
8696 for (i = 2; i < nfields; i++) {
8697 key = field[i]
8698 keylen = length(key)
8699 if (S_is_set[key]) {
8700 value = S[key]
8701 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8702 len += length(value) + length(field[++i])
8703 substed = 1
8704 } else
8705 len += 1 + keylen
8706 }
b7026657 8707
81ecdfbb
RW
8708 print line
8709}
b7026657 8710
81ecdfbb
RW
8711_ACAWK
8712_ACEOF
8713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8714if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8715 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8716else
8717 cat
8718fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8719 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8720_ACEOF
8721
8722# VPATH may cause trouble with some makes, so we remove $(srcdir),
8723# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8724# trailing colons and then remove the whole line if VPATH becomes empty
8725# (actually we leave an empty line to preserve line numbers).
8726if test "x$srcdir" = x.; then
8727 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8728s/:*\$(srcdir):*/:/
8729s/:*\${srcdir}:*/:/
8730s/:*@srcdir@:*/:/
8731s/^\([^=]*=[ ]*\):*/\1/
8732s/:*$//
8733s/^[^=]*=[ ]*$//
8734}'
8735fi
b7026657 8736
81ecdfbb
RW
8737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8738fi # test -n "$CONFIG_FILES"
b7026657 8739
81ecdfbb
RW
8740# Set up the scripts for CONFIG_HEADERS section.
8741# No need to generate them if there are no CONFIG_HEADERS.
8742# This happens for instance with `./config.status Makefile'.
8743if test -n "$CONFIG_HEADERS"; then
8744cat >"$tmp/defines.awk" <<\_ACAWK ||
8745BEGIN {
b7026657
AC
8746_ACEOF
8747
81ecdfbb
RW
8748# Transform confdefs.h into an awk script `defines.awk', embedded as
8749# here-document in config.status, that substitutes the proper values into
8750# config.h.in to produce config.h.
8751
8752# Create a delimiter string that does not exist in confdefs.h, to ease
8753# handling of long lines.
8754ac_delim='%!_!# '
8755for ac_last_try in false false :; do
8756 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8757 if test -z "$ac_t"; then
8758 break
8759 elif $ac_last_try; then
8760 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8761 else
8762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 8763 fi
81ecdfbb 8764done
c906108c 8765
81ecdfbb
RW
8766# For the awk script, D is an array of macro values keyed by name,
8767# likewise P contains macro parameters if any. Preserve backslash
8768# newline sequences.
8769
8770ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8771sed -n '
8772s/.\{148\}/&'"$ac_delim"'/g
8773t rset
8774:rset
8775s/^[ ]*#[ ]*define[ ][ ]*/ /
8776t def
8777d
8778:def
8779s/\\$//
8780t bsnl
8781s/["\\]/\\&/g
8782s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8783D["\1"]=" \3"/p
8784s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8785d
8786:bsnl
8787s/["\\]/\\&/g
8788s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8789D["\1"]=" \3\\\\\\n"\\/p
8790t cont
8791s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8792t cont
8793d
8794:cont
8795n
8796s/.\{148\}/&'"$ac_delim"'/g
8797t clear
8798:clear
8799s/\\$//
8800t bsnlc
8801s/["\\]/\\&/g; s/^/"/; s/$/"/p
8802d
8803:bsnlc
8804s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8805b cont
8806' <confdefs.h | sed '
8807s/'"$ac_delim"'/"\\\
8808"/g' >>$CONFIG_STATUS || ac_write_fail=1
8809
8810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8811 for (key in D) D_is_set[key] = 1
8812 FS = "\a"
8813}
8814/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8815 line = \$ 0
8816 split(line, arg, " ")
8817 if (arg[1] == "#") {
8818 defundef = arg[2]
8819 mac1 = arg[3]
8820 } else {
8821 defundef = substr(arg[1], 2)
8822 mac1 = arg[2]
8823 }
8824 split(mac1, mac2, "(") #)
8825 macro = mac2[1]
8826 prefix = substr(line, 1, index(line, defundef) - 1)
8827 if (D_is_set[macro]) {
8828 # Preserve the white space surrounding the "#".
8829 print prefix "define", macro P[macro] D[macro]
8830 next
8831 } else {
8832 # Replace #undef with comments. This is necessary, for example,
8833 # in the case of _POSIX_SOURCE, which is predefined and required
8834 # on some systems where configure will not decide to define it.
8835 if (defundef == "undef") {
8836 print "/*", prefix defundef, macro, "*/"
8837 next
8838 }
8839 }
8840}
8841{ print }
8842_ACAWK
b7026657 8843_ACEOF
81ecdfbb
RW
8844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8845 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8846fi # test -n "$CONFIG_HEADERS"
8847
8848
8849eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8850shift
8851for ac_tag
8852do
8853 case $ac_tag in
8854 :[FHLC]) ac_mode=$ac_tag; continue;;
8855 esac
8856 case $ac_mode$ac_tag in
8857 :[FHL]*:*);;
8858 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8859 :[FH]-) ac_tag=-:-;;
8860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8861 esac
8862 ac_save_IFS=$IFS
8863 IFS=:
8864 set x $ac_tag
8865 IFS=$ac_save_IFS
8866 shift
8867 ac_file=$1
8868 shift
8869
8870 case $ac_mode in
8871 :L) ac_source=$1;;
8872 :[FH])
8873 ac_file_inputs=
8874 for ac_f
8875 do
8876 case $ac_f in
8877 -) ac_f="$tmp/stdin";;
8878 *) # Look for the file first in the build tree, then in the source tree
8879 # (if the path is not absolute). The absolute path cannot be DOS-style,
8880 # because $ac_f cannot contain `:'.
8881 test -f "$ac_f" ||
8882 case $ac_f in
8883 [\\/$]*) false;;
8884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8885 esac ||
8886 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8887 esac
8888 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8889 as_fn_append ac_file_inputs " '$ac_f'"
8890 done
8891
8892 # Let's still pretend it is `configure' which instantiates (i.e., don't
8893 # use $as_me), people would be surprised to read:
8894 # /* config.h. Generated by config.status. */
8895 configure_input='Generated from '`
8896 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8897 `' by configure.'
8898 if test x"$ac_file" != x-; then
8899 configure_input="$ac_file. $configure_input"
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8901$as_echo "$as_me: creating $ac_file" >&6;}
8902 fi
8903 # Neutralize special characters interpreted by sed in replacement strings.
8904 case $configure_input in #(
8905 *\&* | *\|* | *\\* )
8906 ac_sed_conf_input=`$as_echo "$configure_input" |
8907 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8908 *) ac_sed_conf_input=$configure_input;;
8909 esac
8910
8911 case $ac_tag in
8912 *:-:* | *:-) cat >"$tmp/stdin" \
8913 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8914 esac
8915 ;;
c906108c
SS
8916 esac
8917
81ecdfbb 8918 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
8919$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8920 X"$ac_file" : 'X\(//\)[^/]' \| \
8921 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
8922 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8923$as_echo X"$ac_file" |
8924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8925 s//\1/
8926 q
8927 }
8928 /^X\(\/\/\)[^/].*/{
8929 s//\1/
8930 q
8931 }
8932 /^X\(\/\/\)$/{
8933 s//\1/
8934 q
8935 }
8936 /^X\(\/\).*/{
8937 s//\1/
8938 q
8939 }
8940 s/.*/./; q'`
8941 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
8942 ac_builddir=.
8943
81ecdfbb
RW
8944case "$ac_dir" in
8945.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8946*)
8947 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8948 # A ".." for each directory in $ac_dir_suffix.
8949 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8950 case $ac_top_builddir_sub in
8951 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8952 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8953 esac ;;
8954esac
8955ac_abs_top_builddir=$ac_pwd
8956ac_abs_builddir=$ac_pwd$ac_dir_suffix
8957# for backward compatibility:
8958ac_top_builddir=$ac_top_build_prefix
c906108c 8959
b7026657 8960case $srcdir in
81ecdfbb 8961 .) # We are building in place.
b7026657 8962 ac_srcdir=.
81ecdfbb
RW
8963 ac_top_srcdir=$ac_top_builddir_sub
8964 ac_abs_top_srcdir=$ac_pwd ;;
8965 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 8966 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
8967 ac_top_srcdir=$srcdir
8968 ac_abs_top_srcdir=$srcdir ;;
8969 *) # Relative name.
8970 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8971 ac_top_srcdir=$ac_top_build_prefix$srcdir
8972 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 8973esac
81ecdfbb 8974ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 8975
b7026657 8976
81ecdfbb
RW
8977 case $ac_mode in
8978 :F)
8979 #
8980 # CONFIG_FILE
8981 #
b7026657
AC
8982
8983 case $INSTALL in
8984 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 8985 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 8986 esac
81ecdfbb 8987_ACEOF
c906108c 8988
81ecdfbb
RW
8989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8990# If the template does not know about datarootdir, expand it.
8991# FIXME: This hack should be removed a few years after 2.60.
8992ac_datarootdir_hack=; ac_datarootdir_seen=
8993ac_sed_dataroot='
8994/datarootdir/ {
8995 p
8996 q
8997}
8998/@datadir@/p
8999/@docdir@/p
9000/@infodir@/p
9001/@localedir@/p
9002/@mandir@/p'
9003case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9004*datarootdir*) ac_datarootdir_seen=yes;;
9005*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9007$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9008_ACEOF
9009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9010 ac_datarootdir_hack='
9011 s&@datadir@&$datadir&g
9012 s&@docdir@&$docdir&g
9013 s&@infodir@&$infodir&g
9014 s&@localedir@&$localedir&g
9015 s&@mandir@&$mandir&g
9016 s&\\\${datarootdir}&$datarootdir&g' ;;
9017esac
b7026657 9018_ACEOF
81ecdfbb
RW
9019
9020# Neutralize VPATH when `$srcdir' = `.'.
9021# Shell code in configure.ac might set extrasub.
9022# FIXME: do we really want to maintain this feature?
9023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9024ac_sed_extra="$ac_vpsub
b7026657
AC
9025$extrasub
9026_ACEOF
81ecdfbb 9027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
9028:t
9029/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
9030s|@configure_input@|$ac_sed_conf_input|;t t
9031s&@top_builddir@&$ac_top_builddir_sub&;t t
9032s&@top_build_prefix@&$ac_top_build_prefix&;t t
9033s&@srcdir@&$ac_srcdir&;t t
9034s&@abs_srcdir@&$ac_abs_srcdir&;t t
9035s&@top_srcdir@&$ac_top_srcdir&;t t
9036s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9037s&@builddir@&$ac_builddir&;t t
9038s&@abs_builddir@&$ac_abs_builddir&;t t
9039s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9040s&@INSTALL@&$ac_INSTALL&;t t
9041$ac_datarootdir_hack
9042"
9043eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9044 || as_fn_error "could not create $ac_file" "$LINENO" 5
9045
9046test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9047 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9048 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9050which seems to be undefined. Please make sure it is defined." >&5
9051$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9052which seems to be undefined. Please make sure it is defined." >&2;}
9053
9054 rm -f "$tmp/stdin"
b7026657 9055 case $ac_file in
81ecdfbb
RW
9056 -) cat "$tmp/out" && rm -f "$tmp/out";;
9057 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9058 esac \
9059 || as_fn_error "could not create $ac_file" "$LINENO" 5
9060 ;;
9061 :H)
9062 #
9063 # CONFIG_HEADER
9064 #
b7026657 9065 if test x"$ac_file" != x-; then
81ecdfbb
RW
9066 {
9067 $as_echo "/* $configure_input */" \
9068 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9069 } >"$tmp/config.h" \
9070 || as_fn_error "could not create $ac_file" "$LINENO" 5
9071 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9073$as_echo "$as_me: $ac_file is unchanged" >&6;}
b7026657 9074 else
81ecdfbb
RW
9075 rm -f "$ac_file"
9076 mv "$tmp/config.h" "$ac_file" \
9077 || as_fn_error "could not create $ac_file" "$LINENO" 5
c906108c 9078 fi
b7026657 9079 else
81ecdfbb
RW
9080 $as_echo "/* $configure_input */" \
9081 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9082 || as_fn_error "could not create -" "$LINENO" 5
c906108c 9083 fi
81ecdfbb 9084 ;;
b7026657 9085
81ecdfbb
RW
9086 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9087$as_echo "$as_me: executing $ac_file commands" >&6;}
9088 ;;
9089 esac
b7026657 9090
b7026657 9091
81ecdfbb 9092 case $ac_file$ac_mode in
68a3e151 9093 "build-config.h":C) cp config.h build-config.h ;;
81ecdfbb 9094 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
c906108c 9095
b7026657 9096 esac
81ecdfbb 9097done # for ac_tag
c906108c 9098
b7026657 9099
81ecdfbb 9100as_fn_exit 0
b7026657 9101_ACEOF
b7026657
AC
9102ac_clean_files=$ac_clean_files_save
9103
81ecdfbb
RW
9104test $ac_write_fail = 0 ||
9105 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9106
b7026657
AC
9107
9108# configure is writing to config.log, and then calls config.status.
9109# config.status does its own redirection, appending to config.log.
9110# Unfortunately, on DOS this fails, as config.log is still kept open
9111# by configure, so config.status won't be able to write to it; its
9112# output is simply discarded. So we exec the FD to /dev/null,
9113# effectively closing config.log, so it can be properly (re)opened and
9114# appended to by config.status. When coming back to configure, we
9115# need to make the FD available again.
9116if test "$no_create" != yes; then
9117 ac_cs_success=:
9118 ac_config_status_args=
9119 test "$silent" = yes &&
9120 ac_config_status_args="$ac_config_status_args --quiet"
9121 exec 5>/dev/null
9122 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9123 exec 5>>config.log
9124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9125 # would make configure fail if this is the last instruction.
81ecdfbb
RW
9126 $ac_cs_success || as_fn_exit $?
9127fi
9128if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9130$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 9131fi
c906108c 9132
This page took 1.163706 seconds and 4 git commands to generate.