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