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