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