]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/igen/configure
sim: enable -Werror by default for some arches
[thirdparty/binutils-gdb.git] / sim / igen / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
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.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
b7026657
AC
122PS1='$ '
123PS2='> '
124PS4='+ '
c906108c 125
b7026657 126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 211do
81ecdfbb
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
81ecdfbb
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 266 else
81ecdfbb
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
b7026657 271 fi
81ecdfbb
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
81ecdfbb
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
416 as_fn_exit $as_status
417} # as_fn_error
c906108c 418
81ecdfbb
RW
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
421 as_expr=expr
422else
423 as_expr=false
424fi
c906108c 425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
427 as_basename=basename
428else
429 as_basename=false
430fi
c906108c 431
81ecdfbb
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
c906108c 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
b7026657
AC
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
b7026657 456
b7026657
AC
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
c906108c 464
81ecdfbb
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
b7026657 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
b7026657 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 482 t loop
81ecdfbb 483 s/-\n.*//
b7026657 484 ' >$as_me.lineno &&
81ecdfbb
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657 487
d0ac1c44
SM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
b7026657
AC
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
b7026657
AC
496 # Exit status is that of the last command.
497 exit
498}
499
81ecdfbb
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
b7026657 511esac
c906108c 512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
b7026657 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
b7026657 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 522 as_ln_s='ln -s'
81ecdfbb
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
b7026657 533 fi
b7026657 534else
d0ac1c44 535 as_ln_s='cp -pR'
b7026657 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
c906108c 539
b7026657 540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
c906108c 546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
c906108c 549
b7026657
AC
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 552
b7026657
AC
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
555
556
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
c906108c 559
b7026657 560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 564
c906108c 565#
b7026657 566# Initializations.
c906108c 567#
b7026657 568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
b7026657 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
b7026657
AC
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
b7026657
AC
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
81ecdfbb 583PACKAGE_URL=
b7026657
AC
584
585ac_unique_file="table.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
81ecdfbb 589#ifdef HAVE_SYS_TYPES_H
b7026657
AC
590# include <sys/types.h>
591#endif
81ecdfbb 592#ifdef HAVE_SYS_STAT_H
b7026657
AC
593# include <sys/stat.h>
594#endif
81ecdfbb 595#ifdef STDC_HEADERS
b7026657
AC
596# include <stdlib.h>
597# include <stddef.h>
598#else
81ecdfbb 599# ifdef HAVE_STDLIB_H
b7026657
AC
600# include <stdlib.h>
601# endif
602#endif
81ecdfbb
RW
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
81ecdfbb 609#ifdef HAVE_STRINGS_H
b7026657
AC
610# include <strings.h>
611#endif
81ecdfbb 612#ifdef HAVE_INTTYPES_H
b7026657 613# include <inttypes.h>
b7026657 614#endif
81ecdfbb
RW
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
b7026657
AC
619# include <unistd.h>
620#endif"
c906108c 621
81ecdfbb
RW
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624RANLIB
625AR
626LIBIBERTY_LIB
627RANLIB_FOR_BUILD
628CFLAGS_FOR_BUILD
629CC_FOR_BUILD
630AR_FLAGS_FOR_BUILD
631AR_FOR_BUILD
632EGREP
633GREP
634CPP
635target_os
636target_vendor
637target_cpu
638target
639host_os
640host_vendor
641host_cpu
642host
643build_os
644build_vendor
645build_cpu
646build
647OBJEXT
648EXEEXT
649ac_ct_CC
650CPPFLAGS
651LDFLAGS
652CFLAGS
653CC
654INSTALL_DATA
655INSTALL_SCRIPT
656INSTALL_PROGRAM
6ffe910a
MF
657WERROR_CFLAGS
658WARN_CFLAGS
6ffe910a 659sim_reserved_bits
6ffe910a
MF
660sim_inline
661sim_hw
662sim_hw_objs
663sim_hw_cflags
664sim_default_model
665sim_scache
666sim_float
6ffe910a
MF
667sim_endian
668sim_bitsize
6ffe910a 669sim_alignment
81ecdfbb
RW
670target_alias
671host_alias
672build_alias
673LIBS
674ECHO_T
675ECHO_N
676ECHO_C
677DEFS
678mandir
679localedir
680libdir
681psdir
682pdfdir
683dvidir
684htmldir
685infodir
686docdir
687oldincludedir
688includedir
689localstatedir
690sharedstatedir
691sysconfdir
692datadir
693datarootdir
694libexecdir
695sbindir
696bindir
697program_transform_name
698prefix
699exec_prefix
700PACKAGE_URL
701PACKAGE_BUGREPORT
702PACKAGE_STRING
703PACKAGE_VERSION
704PACKAGE_TARNAME
705PACKAGE_NAME
706PATH_SEPARATOR
6ffe910a 707SHELL'
b7026657 708ac_subst_files=''
81ecdfbb
RW
709ac_user_opts='
710enable_option_checking
2232061b 711enable_werror
81ecdfbb
RW
712enable_build_warnings
713enable_sim_build_warnings
714'
715 ac_precious_vars='build_alias
716host_alias
717target_alias
718CC
719CFLAGS
720LDFLAGS
721LIBS
722CPPFLAGS
723CPP'
724
c906108c
SS
725
726# Initialize some variables set by options.
b7026657
AC
727ac_init_help=
728ac_init_version=false
81ecdfbb
RW
729ac_unrecognized_opts=
730ac_unrecognized_sep=
c906108c
SS
731# The variables have the same names as the options, with
732# dashes changed to underlines.
b7026657 733cache_file=/dev/null
c906108c 734exec_prefix=NONE
c906108c 735no_create=
c906108c
SS
736no_recursion=
737prefix=NONE
738program_prefix=NONE
739program_suffix=NONE
740program_transform_name=s,x,x,
741silent=
742site=
743srcdir=
c906108c
SS
744verbose=
745x_includes=NONE
746x_libraries=NONE
b7026657
AC
747
748# Installation directory options.
749# These are left unexpanded so users can "make install exec_prefix=/foo"
750# and all the variables that are supposed to be based on exec_prefix
751# by default will actually change.
752# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 753# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
754bindir='${exec_prefix}/bin'
755sbindir='${exec_prefix}/sbin'
756libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
757datarootdir='${prefix}/share'
758datadir='${datarootdir}'
c906108c
SS
759sysconfdir='${prefix}/etc'
760sharedstatedir='${prefix}/com'
761localstatedir='${prefix}/var'
c906108c
SS
762includedir='${prefix}/include'
763oldincludedir='/usr/include'
81ecdfbb
RW
764docdir='${datarootdir}/doc/${PACKAGE}'
765infodir='${datarootdir}/info'
766htmldir='${docdir}'
767dvidir='${docdir}'
768pdfdir='${docdir}'
769psdir='${docdir}'
770libdir='${exec_prefix}/lib'
771localedir='${datarootdir}/locale'
772mandir='${datarootdir}/man'
c906108c 773
c906108c 774ac_prev=
81ecdfbb 775ac_dashdash=
c906108c
SS
776for ac_option
777do
c906108c
SS
778 # If the previous option needs an argument, assign it.
779 if test -n "$ac_prev"; then
81ecdfbb 780 eval $ac_prev=\$ac_option
c906108c
SS
781 ac_prev=
782 continue
783 fi
784
81ecdfbb 785 case $ac_option in
d0ac1c44
SM
786 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787 *=) ac_optarg= ;;
788 *) ac_optarg=yes ;;
81ecdfbb 789 esac
c906108c
SS
790
791 # Accept the important Cygnus configure options, so we can diagnose typos.
792
81ecdfbb
RW
793 case $ac_dashdash$ac_option in
794 --)
795 ac_dashdash=yes ;;
c906108c
SS
796
797 -bindir | --bindir | --bindi | --bind | --bin | --bi)
798 ac_prev=bindir ;;
799 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 800 bindir=$ac_optarg ;;
c906108c
SS
801
802 -build | --build | --buil | --bui | --bu)
b7026657 803 ac_prev=build_alias ;;
c906108c 804 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 805 build_alias=$ac_optarg ;;
c906108c
SS
806
807 -cache-file | --cache-file | --cache-fil | --cache-fi \
808 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
809 ac_prev=cache_file ;;
810 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
811 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
812 cache_file=$ac_optarg ;;
813
814 --config-cache | -C)
815 cache_file=config.cache ;;
c906108c 816
81ecdfbb 817 -datadir | --datadir | --datadi | --datad)
c906108c 818 ac_prev=datadir ;;
81ecdfbb 819 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 820 datadir=$ac_optarg ;;
c906108c 821
81ecdfbb
RW
822 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
823 | --dataroo | --dataro | --datar)
824 ac_prev=datarootdir ;;
825 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
826 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
827 datarootdir=$ac_optarg ;;
828
c906108c 829 -disable-* | --disable-*)
81ecdfbb 830 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 831 # Reject names that are not valid shell variable names.
81ecdfbb 832 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 833 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
834 ac_useropt_orig=$ac_useropt
835 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
836 case $ac_user_opts in
837 *"
838"enable_$ac_useropt"
839"*) ;;
840 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
841 ac_unrecognized_sep=', ';;
842 esac
843 eval enable_$ac_useropt=no ;;
844
845 -docdir | --docdir | --docdi | --doc | --do)
846 ac_prev=docdir ;;
847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848 docdir=$ac_optarg ;;
849
850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851 ac_prev=dvidir ;;
852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853 dvidir=$ac_optarg ;;
c906108c
SS
854
855 -enable-* | --enable-*)
81ecdfbb 856 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 857 # Reject names that are not valid shell variable names.
81ecdfbb 858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 859 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
863 *"
864"enable_$ac_useropt"
865"*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
c906108c 868 esac
81ecdfbb 869 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
870
871 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873 | --exec | --exe | --ex)
874 ac_prev=exec_prefix ;;
875 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877 | --exec=* | --exe=* | --ex=*)
b7026657 878 exec_prefix=$ac_optarg ;;
c906108c
SS
879
880 -gas | --gas | --ga | --g)
881 # Obsolete; use --with-gas.
882 with_gas=yes ;;
883
b7026657
AC
884 -help | --help | --hel | --he | -h)
885 ac_init_help=long ;;
886 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887 ac_init_help=recursive ;;
888 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889 ac_init_help=short ;;
c906108c
SS
890
891 -host | --host | --hos | --ho)
b7026657 892 ac_prev=host_alias ;;
c906108c 893 -host=* | --host=* | --hos=* | --ho=*)
b7026657 894 host_alias=$ac_optarg ;;
c906108c 895
81ecdfbb
RW
896 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897 ac_prev=htmldir ;;
898 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899 | --ht=*)
900 htmldir=$ac_optarg ;;
901
c906108c
SS
902 -includedir | --includedir | --includedi | --included | --include \
903 | --includ | --inclu | --incl | --inc)
904 ac_prev=includedir ;;
905 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 907 includedir=$ac_optarg ;;
c906108c
SS
908
909 -infodir | --infodir | --infodi | --infod | --info | --inf)
910 ac_prev=infodir ;;
911 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 912 infodir=$ac_optarg ;;
c906108c
SS
913
914 -libdir | --libdir | --libdi | --libd)
915 ac_prev=libdir ;;
916 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 917 libdir=$ac_optarg ;;
c906108c
SS
918
919 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920 | --libexe | --libex | --libe)
921 ac_prev=libexecdir ;;
922 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923 | --libexe=* | --libex=* | --libe=*)
b7026657 924 libexecdir=$ac_optarg ;;
c906108c 925
81ecdfbb
RW
926 -localedir | --localedir | --localedi | --localed | --locale)
927 ac_prev=localedir ;;
928 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929 localedir=$ac_optarg ;;
930
c906108c 931 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 932 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
933 ac_prev=localstatedir ;;
934 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 935 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 936 localstatedir=$ac_optarg ;;
c906108c
SS
937
938 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939 ac_prev=mandir ;;
940 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 941 mandir=$ac_optarg ;;
c906108c
SS
942
943 -nfp | --nfp | --nf)
944 # Obsolete; use --without-fp.
945 with_fp=no ;;
946
947 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 948 | --no-cr | --no-c | -n)
c906108c
SS
949 no_create=yes ;;
950
951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953 no_recursion=yes ;;
954
955 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957 | --oldin | --oldi | --old | --ol | --o)
958 ac_prev=oldincludedir ;;
959 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 962 oldincludedir=$ac_optarg ;;
c906108c
SS
963
964 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965 ac_prev=prefix ;;
966 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 967 prefix=$ac_optarg ;;
c906108c
SS
968
969 -program-prefix | --program-prefix | --program-prefi | --program-pref \
970 | --program-pre | --program-pr | --program-p)
971 ac_prev=program_prefix ;;
972 -program-prefix=* | --program-prefix=* | --program-prefi=* \
973 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 974 program_prefix=$ac_optarg ;;
c906108c
SS
975
976 -program-suffix | --program-suffix | --program-suffi | --program-suff \
977 | --program-suf | --program-su | --program-s)
978 ac_prev=program_suffix ;;
979 -program-suffix=* | --program-suffix=* | --program-suffi=* \
980 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 981 program_suffix=$ac_optarg ;;
c906108c
SS
982
983 -program-transform-name | --program-transform-name \
984 | --program-transform-nam | --program-transform-na \
985 | --program-transform-n | --program-transform- \
986 | --program-transform | --program-transfor \
987 | --program-transfo | --program-transf \
988 | --program-trans | --program-tran \
989 | --progr-tra | --program-tr | --program-t)
990 ac_prev=program_transform_name ;;
991 -program-transform-name=* | --program-transform-name=* \
992 | --program-transform-nam=* | --program-transform-na=* \
993 | --program-transform-n=* | --program-transform-=* \
994 | --program-transform=* | --program-transfor=* \
995 | --program-transfo=* | --program-transf=* \
996 | --program-trans=* | --program-tran=* \
997 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 998 program_transform_name=$ac_optarg ;;
c906108c 999
81ecdfbb
RW
1000 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001 ac_prev=pdfdir ;;
1002 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003 pdfdir=$ac_optarg ;;
1004
1005 -psdir | --psdir | --psdi | --psd | --ps)
1006 ac_prev=psdir ;;
1007 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008 psdir=$ac_optarg ;;
1009
c906108c
SS
1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011 | -silent | --silent | --silen | --sile | --sil)
1012 silent=yes ;;
1013
1014 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015 ac_prev=sbindir ;;
1016 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017 | --sbi=* | --sb=*)
b7026657 1018 sbindir=$ac_optarg ;;
c906108c
SS
1019
1020 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022 | --sharedst | --shareds | --shared | --share | --shar \
1023 | --sha | --sh)
1024 ac_prev=sharedstatedir ;;
1025 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028 | --sha=* | --sh=*)
b7026657 1029 sharedstatedir=$ac_optarg ;;
c906108c
SS
1030
1031 -site | --site | --sit)
1032 ac_prev=site ;;
1033 -site=* | --site=* | --sit=*)
b7026657 1034 site=$ac_optarg ;;
eb2d80b4 1035
c906108c
SS
1036 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037 ac_prev=srcdir ;;
1038 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1039 srcdir=$ac_optarg ;;
c906108c
SS
1040
1041 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042 | --syscon | --sysco | --sysc | --sys | --sy)
1043 ac_prev=sysconfdir ;;
1044 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1046 sysconfdir=$ac_optarg ;;
c906108c
SS
1047
1048 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1049 ac_prev=target_alias ;;
c906108c 1050 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1051 target_alias=$ac_optarg ;;
c906108c
SS
1052
1053 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054 verbose=yes ;;
1055
b7026657
AC
1056 -version | --version | --versio | --versi | --vers | -V)
1057 ac_init_version=: ;;
c906108c
SS
1058
1059 -with-* | --with-*)
81ecdfbb 1060 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1061 # Reject names that are not valid shell variable names.
81ecdfbb 1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1063 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068"with_$ac_useropt"
1069"*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
c906108c 1072 esac
81ecdfbb 1073 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1074
1075 -without-* | --without-*)
81ecdfbb 1076 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1077 # Reject names that are not valid shell variable names.
81ecdfbb 1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1079 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084"with_$ac_useropt"
1085"*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval with_$ac_useropt=no ;;
c906108c
SS
1090
1091 --x)
1092 # Obsolete; use --with-x.
1093 with_x=yes ;;
1094
1095 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1096 | --x-incl | --x-inc | --x-in | --x-i)
1097 ac_prev=x_includes ;;
1098 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1099 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1100 x_includes=$ac_optarg ;;
c906108c
SS
1101
1102 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1103 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1104 ac_prev=x_libraries ;;
1105 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1106 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1107 x_libraries=$ac_optarg ;;
c906108c 1108
d0ac1c44
SM
1109 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1110Try \`$0 --help' for more information"
c906108c
SS
1111 ;;
1112
b7026657
AC
1113 *=*)
1114 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1115 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1116 case $ac_envvar in #(
1117 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1118 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1119 esac
1120 eval $ac_envvar=\$ac_optarg
b7026657
AC
1121 export $ac_envvar ;;
1122
c906108c 1123 *)
b7026657 1124 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1125 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1126 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1127 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1128 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1129 ;;
1130
1131 esac
1132done
1133
1134if test -n "$ac_prev"; then
b7026657 1135 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1136 as_fn_error $? "missing argument to $ac_option"
c906108c 1137fi
c906108c 1138
81ecdfbb
RW
1139if test -n "$ac_unrecognized_opts"; then
1140 case $enable_option_checking in
1141 no) ;;
d0ac1c44 1142 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1143 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1144 esac
81ecdfbb 1145fi
c906108c 1146
81ecdfbb
RW
1147# Check all directory arguments for consistency.
1148for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149 datadir sysconfdir sharedstatedir localstatedir includedir \
1150 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1151 libdir localedir mandir
c906108c 1152do
81ecdfbb
RW
1153 eval ac_val=\$$ac_var
1154 # Remove trailing slashes.
1155 case $ac_val in
1156 */ )
1157 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1158 eval $ac_var=\$ac_val;;
1159 esac
1160 # Be sure to have absolute directory names.
b7026657 1161 case $ac_val in
81ecdfbb
RW
1162 [\\/$]* | ?:[\\/]* ) continue;;
1163 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1164 esac
d0ac1c44 1165 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1166done
1167
b7026657
AC
1168# There might be people who depend on the old broken behavior: `$host'
1169# used to hold the argument of --host etc.
1170# FIXME: To remove some day.
1171build=$build_alias
1172host=$host_alias
1173target=$target_alias
1174
1175# FIXME: To remove some day.
1176if test "x$host_alias" != x; then
1177 if test "x$build_alias" = x; then
1178 cross_compiling=maybe
b7026657
AC
1179 elif test "x$build_alias" != "x$host_alias"; then
1180 cross_compiling=yes
1181 fi
1182fi
c906108c 1183
b7026657
AC
1184ac_tool_prefix=
1185test -n "$host_alias" && ac_tool_prefix=$host_alias-
1186
1187test "$silent" = yes && exec 6>/dev/null
c906108c 1188
c906108c 1189
81ecdfbb
RW
1190ac_pwd=`pwd` && test -n "$ac_pwd" &&
1191ac_ls_di=`ls -di .` &&
1192ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1193 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1194test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1195 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1196
1197
c906108c
SS
1198# Find the source files, if location was not specified.
1199if test -z "$srcdir"; then
1200 ac_srcdir_defaulted=yes
81ecdfbb
RW
1201 # Try the directory containing this script, then the parent directory.
1202 ac_confdir=`$as_dirname -- "$as_myself" ||
1203$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1204 X"$as_myself" : 'X\(//\)[^/]' \| \
1205 X"$as_myself" : 'X\(//\)$' \| \
1206 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1207$as_echo X"$as_myself" |
1208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209 s//\1/
1210 q
1211 }
1212 /^X\(\/\/\)[^/].*/{
1213 s//\1/
1214 q
1215 }
1216 /^X\(\/\/\)$/{
1217 s//\1/
1218 q
1219 }
1220 /^X\(\/\).*/{
1221 s//\1/
1222 q
1223 }
1224 s/.*/./; q'`
c906108c 1225 srcdir=$ac_confdir
81ecdfbb 1226 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1227 srcdir=..
1228 fi
1229else
1230 ac_srcdir_defaulted=no
1231fi
81ecdfbb
RW
1232if test ! -r "$srcdir/$ac_unique_file"; then
1233 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1234 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1235fi
1236ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237ac_abs_confdir=`(
d0ac1c44 1238 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1239 pwd)`
1240# When building in place, set srcdir=.
1241if test "$ac_abs_confdir" = "$ac_pwd"; then
1242 srcdir=.
1243fi
1244# Remove unnecessary trailing slashes from srcdir.
1245# Double slashes in file names in object file debugging info
1246# mess up M-x gdb in Emacs.
1247case $srcdir in
1248*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249esac
1250for ac_var in $ac_precious_vars; do
1251 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_env_${ac_var}_value=\$${ac_var}
1253 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1255done
c906108c 1256
b7026657
AC
1257#
1258# Report the --help message.
1259#
1260if test "$ac_init_help" = "long"; then
1261 # Omit some internal or obsolete options to make the list less imposing.
1262 # This message is too long to be a string in the A/UX 3.1 sh.
1263 cat <<_ACEOF
1264\`configure' configures this package to adapt to many kinds of systems.
1265
1266Usage: $0 [OPTION]... [VAR=VALUE]...
1267
1268To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269VAR=VALUE. See below for descriptions of some of the useful variables.
1270
1271Defaults for the options are specified in brackets.
1272
1273Configuration:
1274 -h, --help display this help and exit
1275 --help=short display options specific to this package
1276 --help=recursive display the short help of all the included packages
1277 -V, --version display version information and exit
d0ac1c44 1278 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1279 --cache-file=FILE cache test results in FILE [disabled]
1280 -C, --config-cache alias for \`--cache-file=config.cache'
1281 -n, --no-create do not create output files
1282 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1283
b7026657
AC
1284Installation directories:
1285 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1286 [$ac_default_prefix]
b7026657 1287 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1288 [PREFIX]
b7026657
AC
1289
1290By default, \`make install' will install all the files in
1291\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1292an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293for instance \`--prefix=\$HOME'.
1294
1295For better control, use the options below.
1296
1297Fine tuning of the installation directories:
81ecdfbb
RW
1298 --bindir=DIR user executables [EPREFIX/bin]
1299 --sbindir=DIR system admin executables [EPREFIX/sbin]
1300 --libexecdir=DIR program executables [EPREFIX/libexec]
1301 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1302 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1303 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1304 --libdir=DIR object code libraries [EPREFIX/lib]
1305 --includedir=DIR C header files [PREFIX/include]
1306 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1307 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309 --infodir=DIR info documentation [DATAROOTDIR/info]
1310 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311 --mandir=DIR man documentation [DATAROOTDIR/man]
1312 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1313 --htmldir=DIR html documentation [DOCDIR]
1314 --dvidir=DIR dvi documentation [DOCDIR]
1315 --pdfdir=DIR pdf documentation [DOCDIR]
1316 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1317_ACEOF
1318
1319 cat <<\_ACEOF
1320
1321Program names:
1322 --program-prefix=PREFIX prepend PREFIX to installed program names
1323 --program-suffix=SUFFIX append SUFFIX to installed program names
1324 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1325
1326System types:
1327 --build=BUILD configure for building on BUILD [guessed]
1328 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1329 --target=TARGET configure for building compilers for TARGET [HOST]
1330_ACEOF
c906108c 1331fi
c906108c 1332
b7026657
AC
1333if test -n "$ac_init_help"; then
1334
1335 cat <<\_ACEOF
1336
1337Optional Features:
81ecdfbb 1338 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1339 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1340 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2232061b
MF
1341 --enable-werror treat compile warnings as errors
1342 --enable-build-warnings enable build-time compiler warnings if gcc is used
1343 --enable-sim-build-warnings
1344 enable SIM specific build-time compiler warnings if
1345 gcc is used
b7026657
AC
1346
1347Some influential environment variables:
1348 CC C compiler command
1349 CFLAGS C compiler flags
1350 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1351 nonstandard directory <lib dir>
81ecdfbb 1352 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1353 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1354 you have headers in a nonstandard directory <include dir>
b7026657
AC
1355 CPP C preprocessor
1356
1357Use these variables to override the choices made by `configure' or to help
1358it to find libraries and programs with nonstandard names/locations.
1359
81ecdfbb 1360Report bugs to the package provider.
b7026657 1361_ACEOF
81ecdfbb 1362ac_status=$?
c906108c
SS
1363fi
1364
b7026657
AC
1365if test "$ac_init_help" = "recursive"; then
1366 # If there are subdirs, report their specific --help.
b7026657 1367 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1368 test -d "$ac_dir" ||
1369 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1370 continue
b7026657
AC
1371 ac_builddir=.
1372
81ecdfbb
RW
1373case "$ac_dir" in
1374.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1375*)
1376 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1377 # A ".." for each directory in $ac_dir_suffix.
1378 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1379 case $ac_top_builddir_sub in
1380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1382 esac ;;
1383esac
1384ac_abs_top_builddir=$ac_pwd
1385ac_abs_builddir=$ac_pwd$ac_dir_suffix
1386# for backward compatibility:
1387ac_top_builddir=$ac_top_build_prefix
c906108c 1388
b7026657 1389case $srcdir in
81ecdfbb 1390 .) # We are building in place.
b7026657 1391 ac_srcdir=.
81ecdfbb
RW
1392 ac_top_srcdir=$ac_top_builddir_sub
1393 ac_abs_top_srcdir=$ac_pwd ;;
1394 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1395 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1396 ac_top_srcdir=$srcdir
1397 ac_abs_top_srcdir=$srcdir ;;
1398 *) # Relative name.
1399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1400 ac_top_srcdir=$ac_top_build_prefix$srcdir
1401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1402esac
81ecdfbb
RW
1403ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1404
1405 cd "$ac_dir" || { ac_status=$?; continue; }
1406 # Check for guested configure.
1407 if test -f "$ac_srcdir/configure.gnu"; then
1408 echo &&
1409 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1410 elif test -f "$ac_srcdir/configure"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1413 else
81ecdfbb
RW
1414 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1415 fi || ac_status=$?
1416 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657 1417 done
c906108c 1418fi
c906108c 1419
81ecdfbb 1420test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1421if $ac_init_version; then
1422 cat <<\_ACEOF
81ecdfbb 1423configure
d0ac1c44 1424generated by GNU Autoconf 2.69
c906108c 1425
d0ac1c44 1426Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1427This configure script is free software; the Free Software Foundation
1428gives unlimited permission to copy, distribute and modify it.
1429_ACEOF
81ecdfbb 1430 exit
c906108c 1431fi
b7026657 1432
81ecdfbb
RW
1433## ------------------------ ##
1434## Autoconf initialization. ##
1435## ------------------------ ##
b7026657 1436
81ecdfbb
RW
1437# ac_fn_c_try_compile LINENO
1438# --------------------------
1439# Try to compile conftest.$ac_ext, and return whether this succeeded.
1440ac_fn_c_try_compile ()
b7026657 1441{
81ecdfbb
RW
1442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1443 rm -f conftest.$ac_objext
1444 if { { ac_try="$ac_compile"
1445case "(($ac_try" in
1446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1447 *) ac_try_echo=$ac_try;;
1448esac
1449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1450$as_echo "$ac_try_echo"; } >&5
1451 (eval "$ac_compile") 2>conftest.err
1452 ac_status=$?
1453 if test -s conftest.err; then
1454 grep -v '^ *+' conftest.err >conftest.er1
1455 cat conftest.er1 >&5
1456 mv -f conftest.er1 conftest.err
1457 fi
1458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1459 test $ac_status = 0; } && {
1460 test -z "$ac_c_werror_flag" ||
1461 test ! -s conftest.err
1462 } && test -s conftest.$ac_objext; then :
1463 ac_retval=0
1464else
1465 $as_echo "$as_me: failed program was:" >&5
1466sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1467
81ecdfbb
RW
1468 ac_retval=1
1469fi
d0ac1c44
SM
1470 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1471 as_fn_set_status $ac_retval
b7026657 1472
81ecdfbb 1473} # ac_fn_c_try_compile
b7026657 1474
81ecdfbb
RW
1475# ac_fn_c_try_cpp LINENO
1476# ----------------------
1477# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1478ac_fn_c_try_cpp ()
1479{
1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481 if { { ac_try="$ac_cpp conftest.$ac_ext"
1482case "(($ac_try" in
1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1484 *) ac_try_echo=$ac_try;;
1485esac
1486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1487$as_echo "$ac_try_echo"; } >&5
1488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1489 ac_status=$?
1490 if test -s conftest.err; then
1491 grep -v '^ *+' conftest.err >conftest.er1
1492 cat conftest.er1 >&5
1493 mv -f conftest.er1 conftest.err
1494 fi
1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1496 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1498 test ! -s conftest.err
1499 }; then :
1500 ac_retval=0
1501else
1502 $as_echo "$as_me: failed program was:" >&5
1503sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1504
81ecdfbb
RW
1505 ac_retval=1
1506fi
d0ac1c44
SM
1507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1508 as_fn_set_status $ac_retval
b7026657 1509
81ecdfbb
RW
1510} # ac_fn_c_try_cpp
1511
1512# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1513# -------------------------------------------------------
1514# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1515# the include files in INCLUDES and setting the cache variable VAR
1516# accordingly.
1517ac_fn_c_check_header_mongrel ()
1518{
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1520 if eval \${$3+:} false; then :
81ecdfbb
RW
1521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1522$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1523if eval \${$3+:} false; then :
81ecdfbb
RW
1524 $as_echo_n "(cached) " >&6
1525fi
1526eval ac_res=\$$3
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1528$as_echo "$ac_res" >&6; }
1529else
1530 # Is the header compilable?
1531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1532$as_echo_n "checking $2 usability... " >&6; }
1533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1534/* end confdefs.h. */
1535$4
1536#include <$2>
1537_ACEOF
1538if ac_fn_c_try_compile "$LINENO"; then :
1539 ac_header_compiler=yes
1540else
1541 ac_header_compiler=no
1542fi
1543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1545$as_echo "$ac_header_compiler" >&6; }
1546
1547# Is the header present?
1548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1549$as_echo_n "checking $2 presence... " >&6; }
1550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1551/* end confdefs.h. */
1552#include <$2>
1553_ACEOF
1554if ac_fn_c_try_cpp "$LINENO"; then :
1555 ac_header_preproc=yes
1556else
1557 ac_header_preproc=no
1558fi
d0ac1c44 1559rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1561$as_echo "$ac_header_preproc" >&6; }
1562
1563# So? What about this header?
1564case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1565 yes:no: )
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1567$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1569$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1570 ;;
1571 no:yes:* )
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1573$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1575$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1577$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1579$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1581$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1582 ;;
1583esac
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1586if eval \${$3+:} false; then :
81ecdfbb
RW
1587 $as_echo_n "(cached) " >&6
1588else
1589 eval "$3=\$ac_header_compiler"
1590fi
1591eval ac_res=\$$3
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593$as_echo "$ac_res" >&6; }
1594fi
d0ac1c44 1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1596
1597} # ac_fn_c_check_header_mongrel
1598
1599# ac_fn_c_try_run LINENO
1600# ----------------------
1601# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1602# that executables *can* be run.
1603ac_fn_c_try_run ()
1604{
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_link"
1607case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_link") 2>&5
1614 ac_status=$?
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1617 { { case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_try") 2>&5
1624 ac_status=$?
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; }; }; then :
1627 ac_retval=0
1628else
1629 $as_echo "$as_me: program exited with status $ac_status" >&5
1630 $as_echo "$as_me: failed program was:" >&5
1631sed 's/^/| /' conftest.$ac_ext >&5
1632
1633 ac_retval=$ac_status
1634fi
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
81ecdfbb
RW
1638
1639} # ac_fn_c_try_run
1640
1641# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642# -------------------------------------------------------
1643# Tests whether HEADER exists and can be compiled using the include files in
1644# INCLUDES, setting the cache variable VAR accordingly.
1645ac_fn_c_check_header_compile ()
1646{
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1650if eval \${$3+:} false; then :
81ecdfbb
RW
1651 $as_echo_n "(cached) " >&6
1652else
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h. */
1655$4
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_compile "$LINENO"; then :
1659 eval "$3=yes"
1660else
1661 eval "$3=no"
1662fi
1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664fi
1665eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
d0ac1c44 1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1669
1670} # ac_fn_c_check_header_compile
1671
1672# ac_fn_c_try_link LINENO
1673# -----------------------
1674# Try to link conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_link ()
1676{
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext conftest$ac_exeext
1679 if { { ac_try="$ac_link"
1680case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest$ac_exeext && {
1698 test "$cross_compiling" = yes ||
d0ac1c44 1699 test -x conftest$ac_exeext
81ecdfbb
RW
1700 }; then :
1701 ac_retval=0
1702else
1703 $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707fi
1708 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710 # interfere with the next link command; also delete a directory that is
1711 # left behind by Apple's compiler. We do this before executing the actions.
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
81ecdfbb
RW
1715
1716} # ac_fn_c_try_link
1717cat >config.log <<_ACEOF
1718This file contains any messages produced by compilers while
1719running configure, to aid debugging if configure makes a mistake.
1720
1721It was created by $as_me, which was
d0ac1c44 1722generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1723
1724 $ $0 $@
1725
1726_ACEOF
1727exec 5>>config.log
1728{
1729cat <<_ASUNAME
1730## --------- ##
1731## Platform. ##
1732## --------- ##
1733
1734hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1735uname -m = `(uname -m) 2>/dev/null || echo unknown`
1736uname -r = `(uname -r) 2>/dev/null || echo unknown`
1737uname -s = `(uname -s) 2>/dev/null || echo unknown`
1738uname -v = `(uname -v) 2>/dev/null || echo unknown`
1739
1740/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1741/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1742
1743/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1744/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1745/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1746/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1747/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1748/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1749/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1750
1751_ASUNAME
1752
1753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754for as_dir in $PATH
1755do
1756 IFS=$as_save_IFS
1757 test -z "$as_dir" && as_dir=.
1758 $as_echo "PATH: $as_dir"
1759 done
1760IFS=$as_save_IFS
1761
1762} >&5
1763
1764cat >&5 <<_ACEOF
1765
1766
1767## ----------- ##
1768## Core tests. ##
1769## ----------- ##
b7026657
AC
1770
1771_ACEOF
1772
1773
1774# Keep a trace of the command line.
1775# Strip out --no-create and --no-recursion so they do not pile up.
1776# Strip out --silent because we don't want to record it for future runs.
1777# Also quote any args containing shell meta-characters.
1778# Make two passes to allow for proper duplicate-argument suppression.
1779ac_configure_args=
1780ac_configure_args0=
1781ac_configure_args1=
b7026657
AC
1782ac_must_keep_next=false
1783for ac_pass in 1 2
1784do
1785 for ac_arg
1786 do
1787 case $ac_arg in
1788 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1790 | -silent | --silent | --silen | --sile | --sil)
1791 continue ;;
81ecdfbb
RW
1792 *\'*)
1793 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1794 esac
1795 case $ac_pass in
81ecdfbb 1796 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 1797 2)
81ecdfbb 1798 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
1799 if test $ac_must_keep_next = true; then
1800 ac_must_keep_next=false # Got value, back to normal.
1801 else
1802 case $ac_arg in
1803 *=* | --config-cache | -C | -disable-* | --disable-* \
1804 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1805 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1806 | -with-* | --with-* | -without-* | --without-* | --x)
1807 case "$ac_configure_args0 " in
1808 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1809 esac
1810 ;;
1811 -* ) ac_must_keep_next=true ;;
1812 esac
1813 fi
81ecdfbb 1814 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
1815 ;;
1816 esac
1817 done
1818done
81ecdfbb
RW
1819{ ac_configure_args0=; unset ac_configure_args0;}
1820{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
1821
1822# When interrupted or exit'd, cleanup temporary files, and complete
1823# config.log. We remove comments because anyway the quotes in there
1824# would cause problems or look ugly.
81ecdfbb
RW
1825# WARNING: Use '\'' to represent an apostrophe within the trap.
1826# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
1827trap 'exit_status=$?
1828 # Save into config.log some information that might help in debugging.
1829 {
1830 echo
1831
d0ac1c44 1832 $as_echo "## ---------------- ##
b7026657 1833## Cache variables. ##
d0ac1c44 1834## ---------------- ##"
b7026657
AC
1835 echo
1836 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1837(
1838 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1839 eval ac_val=\$$ac_var
1840 case $ac_val in #(
1841 *${as_nl}*)
1842 case $ac_var in #(
1843 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1844$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1845 esac
1846 case $ac_var in #(
1847 _ | IFS | as_nl) ;; #(
1848 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1849 *) { eval $ac_var=; unset $ac_var;} ;;
1850 esac ;;
1851 esac
1852 done
b7026657 1853 (set) 2>&1 |
81ecdfbb
RW
1854 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1855 *${as_nl}ac_space=\ *)
b7026657 1856 sed -n \
81ecdfbb
RW
1857 "s/'\''/'\''\\\\'\'''\''/g;
1858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1859 ;; #(
b7026657 1860 *)
81ecdfbb 1861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 1862 ;;
81ecdfbb
RW
1863 esac |
1864 sort
1865)
b7026657
AC
1866 echo
1867
d0ac1c44 1868 $as_echo "## ----------------- ##
b7026657 1869## Output variables. ##
d0ac1c44 1870## ----------------- ##"
b7026657
AC
1871 echo
1872 for ac_var in $ac_subst_vars
1873 do
81ecdfbb
RW
1874 eval ac_val=\$$ac_var
1875 case $ac_val in
1876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 esac
1878 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1879 done | sort
1880 echo
1881
1882 if test -n "$ac_subst_files"; then
d0ac1c44 1883 $as_echo "## ------------------- ##
81ecdfbb 1884## File substitutions. ##
d0ac1c44 1885## ------------------- ##"
b7026657
AC
1886 echo
1887 for ac_var in $ac_subst_files
1888 do
81ecdfbb
RW
1889 eval ac_val=\$$ac_var
1890 case $ac_val in
1891 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1892 esac
1893 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
1894 done | sort
1895 echo
1896 fi
1897
1898 if test -s confdefs.h; then
d0ac1c44 1899 $as_echo "## ----------- ##
b7026657 1900## confdefs.h. ##
d0ac1c44 1901## ----------- ##"
b7026657 1902 echo
81ecdfbb 1903 cat confdefs.h
b7026657
AC
1904 echo
1905 fi
1906 test "$ac_signal" != 0 &&
81ecdfbb
RW
1907 $as_echo "$as_me: caught signal $ac_signal"
1908 $as_echo "$as_me: exit $exit_status"
b7026657 1909 } >&5
81ecdfbb
RW
1910 rm -f core *.core core.conftest.* &&
1911 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 1912 exit $exit_status
81ecdfbb 1913' 0
b7026657 1914for ac_signal in 1 2 13 15; do
81ecdfbb 1915 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
1916done
1917ac_signal=0
1918
1919# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1920rm -f -r conftest* confdefs.h
1921
1922$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
1923
1924# Predefined preprocessor variables.
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_NAME "$PACKAGE_NAME"
1928_ACEOF
1929
b7026657
AC
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1932_ACEOF
1933
b7026657
AC
1934cat >>confdefs.h <<_ACEOF
1935#define PACKAGE_VERSION "$PACKAGE_VERSION"
1936_ACEOF
1937
b7026657
AC
1938cat >>confdefs.h <<_ACEOF
1939#define PACKAGE_STRING "$PACKAGE_STRING"
1940_ACEOF
1941
b7026657
AC
1942cat >>confdefs.h <<_ACEOF
1943#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1944_ACEOF
1945
81ecdfbb
RW
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_URL "$PACKAGE_URL"
1948_ACEOF
1949
b7026657
AC
1950
1951# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1952# Prefer an explicitly selected file to automatically selected ones.
1953ac_site_file1=NONE
1954ac_site_file2=NONE
1955if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
1956 # We do not want a PATH search for config.site.
1957 case $CONFIG_SITE in #((
1958 -*) ac_site_file1=./$CONFIG_SITE;;
1959 */*) ac_site_file1=$CONFIG_SITE;;
1960 *) ac_site_file1=./$CONFIG_SITE;;
1961 esac
81ecdfbb
RW
1962elif test "x$prefix" != xNONE; then
1963 ac_site_file1=$prefix/share/config.site
1964 ac_site_file2=$prefix/etc/config.site
1965else
1966 ac_site_file1=$ac_default_prefix/share/config.site
1967 ac_site_file2=$ac_default_prefix/etc/config.site
b7026657 1968fi
81ecdfbb
RW
1969for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1970do
1971 test "x$ac_site_file" = xNONE && continue
d0ac1c44 1972 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1974$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 1975 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
1976 . "$ac_site_file" \
1977 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1979as_fn_error $? "failed to load site script $ac_site_file
1980See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
1981 fi
1982done
1983
1984if test -r "$cache_file"; then
d0ac1c44
SM
1985 # Some versions of bash will fail to source /dev/null (special files
1986 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1987 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1989$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 1990 case $cache_file in
81ecdfbb
RW
1991 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1992 *) . "./$cache_file";;
b7026657
AC
1993 esac
1994 fi
1995else
81ecdfbb
RW
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1997$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
1998 >$cache_file
1999fi
2000
2001# Check that the precious variables saved in the cache have kept the same
2002# value.
2003ac_cache_corrupted=false
81ecdfbb 2004for ac_var in $ac_precious_vars; do
b7026657
AC
2005 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2006 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2007 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2008 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2009 case $ac_old_set,$ac_new_set in
2010 set,)
81ecdfbb
RW
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2012$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2013 ac_cache_corrupted=: ;;
2014 ,set)
81ecdfbb
RW
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2016$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2017 ac_cache_corrupted=: ;;
2018 ,);;
2019 *)
2020 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2021 # differences in whitespace do not lead to failure.
2022 ac_old_val_w=`echo x $ac_old_val`
2023 ac_new_val_w=`echo x $ac_new_val`
2024 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2026$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2027 ac_cache_corrupted=:
2028 else
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2030$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2031 eval $ac_var=\$ac_old_val
2032 fi
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2034$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2036$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2037 fi;;
2038 esac
2039 # Pass precious variables to config.status.
2040 if test "$ac_new_set" = set; then
2041 case $ac_new_val in
81ecdfbb 2042 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2043 *) ac_arg=$ac_var=$ac_new_val ;;
2044 esac
2045 case " $ac_configure_args " in
2046 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2047 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2048 esac
2049 fi
2050done
2051if $ac_cache_corrupted; then
81ecdfbb
RW
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2055$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2056 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2057fi
81ecdfbb
RW
2058## -------------------- ##
2059## Main body of script. ##
2060## -------------------- ##
b7026657
AC
2061
2062ac_ext=c
2063ac_cpp='$CPP $CPPFLAGS'
2064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067
6ffe910a
MF
2068
2069# This file contains common code used by all simulators.
2070#
2071# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2072# directory. It is intended to be invoked before any target specific stuff.
2073# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2074# It is intended to be invoked last.
2075#
306f4178 2076# The simulator's configure.ac should look like:
6ffe910a
MF
2077#
2078# dnl Process this file with autoconf to produce a configure script.
2079# AC_PREREQ(2.64)dnl
2080# AC_INIT(Makefile.in)
2081# sinclude(../common/aclocal.m4)
2082#
2083# SIM_AC_COMMON
2084#
2085# ... target specific stuff ...
2086#
2087# SIM_AC_OUTPUT
2088
2089# Include global overrides and fixes for Autoconf.
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
6bb11ab3
L
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
37f980dc
SM
2123
2124
6bb11ab3
L
2125# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2126#
2127# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2128# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2129# Written by Gordon Matzigkeit, 1996
2130#
2131# This file is free software; the Free Software Foundation gives
2132# unlimited permission to copy and/or distribute it, with or without
2133# modifications, as long as this notice is preserved.
2134
2135
2136
2137# serial 56 LT_INIT
2138
2139
2140# LT_PREREQ(VERSION)
2141# ------------------
2142# Complain and exit if this libtool version is less that VERSION.
2143
2144
2145
2146# _LT_CHECK_BUILDDIR
2147# ------------------
2148# Complain if the absolute build directory name contains unusual characters
2149
2150
2151
2152# LT_INIT([OPTIONS])
2153# ------------------
2154# LT_INIT
2155
2156# Old names:
2157# This is what autoupdate's m4 run will expand. It fires
2158# the warning (with _au_warn_XXX), outputs it into the
2159# updated configure.ac (with AC_DIAGNOSE), and then outputs
2160# the replacement expansion.
2161
2162
2163# This is an auxiliary macro that is also run when
2164# autoupdate runs m4. It simply calls m4_warning, but
2165# we need a wrapper so that each warning is emitted only
2166# once. We break the quoting in m4_warning's argument in
2167# order to expand this macro's arguments, not AU_DEFUN's.
2168
2169
2170# Finally, this is the expansion that is picked up by
2171# autoconf. It tells the user to run autoupdate, and
2172# then outputs the replacement expansion. We do not care
2173# about autoupdate's warning because that contains
2174# information on what to do *after* running autoupdate.
2175
2176# This is what autoupdate's m4 run will expand. It fires
2177# the warning (with _au_warn_XXX), outputs it into the
2178# updated configure.ac (with AC_DIAGNOSE), and then outputs
2179# the replacement expansion.
2180
2181
2182# This is an auxiliary macro that is also run when
2183# autoupdate runs m4. It simply calls m4_warning, but
2184# we need a wrapper so that each warning is emitted only
2185# once. We break the quoting in m4_warning's argument in
2186# order to expand this macro's arguments, not AU_DEFUN's.
2187
2188
2189# Finally, this is the expansion that is picked up by
2190# autoconf. It tells the user to run autoupdate, and
2191# then outputs the replacement expansion. We do not care
2192# about autoupdate's warning because that contains
2193# information on what to do *after* running autoupdate.
2194
2195
2196
2197# _LT_CC_BASENAME(CC)
2198# -------------------
2199# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2200
2201
2202
2203# _LT_FILEUTILS_DEFAULTS
2204# ----------------------
2205# It is okay to use these file commands and assume they have been set
2206# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2207# _LT_FILEUTILS_DEFAULTS
2208
2209
2210# _LT_SETUP
2211# ---------
2212# _LT_SETUP
2213
2214
2215# _LT_PREPARE_SED_QUOTE_VARS
2216# --------------------------
2217# Define a few sed substitution that help us do robust quoting.
2218
2219
2220# _LT_PROG_LTMAIN
2221# ---------------
2222# Note that this code is called both from `configure', and `config.status'
2223# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2224# `config.status' has no value for ac_aux_dir unless we are using Automake,
2225# so we pass a copy along to make sure it has a sensible value anyway.
2226# _LT_PROG_LTMAIN
2227
2228
2229## ------------------------------------- ##
2230## Accumulate code for creating libtool. ##
2231## ------------------------------------- ##
2232
2233# So that we can recreate a full libtool script including additional
2234# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2235# in macros and then make a single call at the end using the `libtool'
2236# label.
2237
2238
2239# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2240# ----------------------------------------
2241# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2242
2243
2244# Initialize.
2245
2246
2247
2248# _LT_CONFIG_LIBTOOL([COMMANDS])
2249# ------------------------------
2250# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2251
2252
2253# Initialize.
2254
2255
2256
2257# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2258# -----------------------------------------------------
2259
2260
2261
2262# _LT_FORMAT_COMMENT([COMMENT])
2263# -----------------------------
2264# Add leading comment marks to the start of each line, and a trailing
2265# full-stop to the whole comment if one is not present already.
2266
2267
2268
2269
2270## ------------------------ ##
2271## FIXME: Eliminate VARNAME ##
2272## ------------------------ ##
2273
2274
2275# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2276# -------------------------------------------------------------------
2277# CONFIGNAME is the name given to the value in the libtool script.
2278# VARNAME is the (base) name used in the configure script.
2279# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2280# VARNAME. Any other value will be used directly.
2281
2282
2283
2284# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2285# --------------------------------------------------------
2286
2287
2288
2289# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2290# ------------------------------------------------
2291
2292
2293
2294# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2295# ---------------------------------------------------------
2296
2297
2298
2299# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2300# --------------------------------------------------
2301
2302
2303
2304# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2305# ---------------------------------------------------
2306
2307
2308
2309# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2310# ---------------------------------------------------
2311
2312
2313
2314
2315# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2316# ------------------------------------------------
2317
2318
2319
2320
2321# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2322# ------------------------------------
2323# Quote a variable value, and forward it to `config.status' so that its
2324# declaration there will have the same value as in `configure'. VARNAME
2325# must have a single quote delimited value for this to work.
2326
2327
2328
2329# _LT_CONFIG_STATUS_DECLARATIONS
2330# ------------------------------
2331# We delimit libtool config variables with single quotes, so when
2332# we write them to config.status, we have to be sure to quote all
2333# embedded single quotes properly. In configure, this macro expands
2334# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2335#
2336# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2337
2338
2339
2340# _LT_LIBTOOL_TAGS
2341# ----------------
2342# Output comment and list of tags supported by the script
2343
2344
2345
2346# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2347# -----------------------------------
2348# Extract the dictionary values for VARNAME (optionally with TAG) and
2349# expand to a commented shell variable setting:
2350#
2351# # Some comment about what VAR is for.
2352# visible_name=$lt_internal_name
2353
2354
2355
2356# _LT_LIBTOOL_CONFIG_VARS
2357# -----------------------
2358# Produce commented declarations of non-tagged libtool config variables
2359# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2360# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2361# section) are produced by _LT_LIBTOOL_TAG_VARS.
2362
2363
2364
2365# _LT_LIBTOOL_TAG_VARS(TAG)
2366# -------------------------
2367
2368
2369
2370# _LT_TAGVAR(VARNAME, [TAGNAME])
2371# ------------------------------
2372
2373
2374
2375# _LT_CONFIG_COMMANDS
2376# -------------------
2377# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2378# variables for single and double quote escaping we saved from calls
2379# to _LT_DECL, we can put quote escaped variables declarations
2380# into `config.status', and then the shell code to quote escape them in
2381# for loops in `config.status'. Finally, any additional code accumulated
2382# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2383#_LT_CONFIG_COMMANDS
2384
2385
2386# Initialize.
2387
2388
2389# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2390# ------------------------------------
2391# Generate a child script FILE with all initialization necessary to
2392# reuse the environment learned by the parent script, and make the
2393# file executable. If COMMENT is supplied, it is inserted after the
2394# `#!' sequence but before initialization text begins. After this
2395# macro, additional text can be appended to FILE to form the body of
2396# the child script. The macro ends with non-zero status if the
2397# file could not be fully written (such as if the disk is full).
2398# _LT_GENERATED_FILE_INIT
2399
2400# LT_OUTPUT
2401# ---------
2402# This macro allows early generation of the libtool script (before
2403# AC_OUTPUT is called), incase it is used in configure for compilation
2404# tests.
2405# LT_OUTPUT
2406
2407
2408# _LT_CONFIG(TAG)
2409# ---------------
2410# If TAG is the built-in tag, create an initial libtool script with a
2411# default configuration from the untagged config vars. Otherwise add code
2412# to config.status for appending the configuration named by TAG from the
2413# matching tagged config vars.
2414# _LT_CONFIG
2415
2416
2417# LT_SUPPORTED_TAG(TAG)
2418# ---------------------
2419# Trace this macro to discover what tags are supported by the libtool
2420# --tag option, using:
2421# autoconf --trace 'LT_SUPPORTED_TAG:$1'
2422
2423
2424
2425# C support is built-in for now
2426
2427
2428
2429
2430# LT_LANG(LANG)
2431# -------------
2432# Enable libtool support for the given language if not already enabled.
2433# LT_LANG
2434
2435
2436# _LT_LANG(LANGNAME)
2437# ------------------
2438# _LT_LANG
2439
2440
2441# _LT_LANG_DEFAULT_CONFIG
2442# -----------------------
2443# _LT_LANG_DEFAULT_CONFIG
2444
2445# Obsolete macros:
2446# This is what autoupdate's m4 run will expand. It fires
2447# the warning (with _au_warn_XXX), outputs it into the
2448# updated configure.ac (with AC_DIAGNOSE), and then outputs
2449# the replacement expansion.
2450
2451
2452# This is an auxiliary macro that is also run when
2453# autoupdate runs m4. It simply calls m4_warning, but
2454# we need a wrapper so that each warning is emitted only
2455# once. We break the quoting in m4_warning's argument in
2456# order to expand this macro's arguments, not AU_DEFUN's.
2457
2458
2459# Finally, this is the expansion that is picked up by
2460# autoconf. It tells the user to run autoupdate, and
2461# then outputs the replacement expansion. We do not care
2462# about autoupdate's warning because that contains
2463# information on what to do *after* running autoupdate.
2464
2465# This is what autoupdate's m4 run will expand. It fires
2466# the warning (with _au_warn_XXX), outputs it into the
2467# updated configure.ac (with AC_DIAGNOSE), and then outputs
2468# the replacement expansion.
2469
2470
2471# This is an auxiliary macro that is also run when
2472# autoupdate runs m4. It simply calls m4_warning, but
2473# we need a wrapper so that each warning is emitted only
2474# once. We break the quoting in m4_warning's argument in
2475# order to expand this macro's arguments, not AU_DEFUN's.
2476
2477
2478# Finally, this is the expansion that is picked up by
2479# autoconf. It tells the user to run autoupdate, and
2480# then outputs the replacement expansion. We do not care
2481# about autoupdate's warning because that contains
2482# information on what to do *after* running autoupdate.
2483
2484# This is what autoupdate's m4 run will expand. It fires
2485# the warning (with _au_warn_XXX), outputs it into the
2486# updated configure.ac (with AC_DIAGNOSE), and then outputs
2487# the replacement expansion.
2488
2489
2490# This is an auxiliary macro that is also run when
2491# autoupdate runs m4. It simply calls m4_warning, but
2492# we need a wrapper so that each warning is emitted only
2493# once. We break the quoting in m4_warning's argument in
2494# order to expand this macro's arguments, not AU_DEFUN's.
2495
2496
2497# Finally, this is the expansion that is picked up by
2498# autoconf. It tells the user to run autoupdate, and
2499# then outputs the replacement expansion. We do not care
2500# about autoupdate's warning because that contains
2501# information on what to do *after* running autoupdate.
2502
2503# This is what autoupdate's m4 run will expand. It fires
2504# the warning (with _au_warn_XXX), outputs it into the
2505# updated configure.ac (with AC_DIAGNOSE), and then outputs
2506# the replacement expansion.
2507
2508
2509# This is an auxiliary macro that is also run when
2510# autoupdate runs m4. It simply calls m4_warning, but
2511# we need a wrapper so that each warning is emitted only
2512# once. We break the quoting in m4_warning's argument in
2513# order to expand this macro's arguments, not AU_DEFUN's.
2514
2515
2516# Finally, this is the expansion that is picked up by
2517# autoconf. It tells the user to run autoupdate, and
2518# then outputs the replacement expansion. We do not care
2519# about autoupdate's warning because that contains
2520# information on what to do *after* running autoupdate.
2521
2522# This is what autoupdate's m4 run will expand. It fires
2523# the warning (with _au_warn_XXX), outputs it into the
2524# updated configure.ac (with AC_DIAGNOSE), and then outputs
2525# the replacement expansion.
2526
2527
2528# This is an auxiliary macro that is also run when
2529# autoupdate runs m4. It simply calls m4_warning, but
2530# we need a wrapper so that each warning is emitted only
2531# once. We break the quoting in m4_warning's argument in
2532# order to expand this macro's arguments, not AU_DEFUN's.
2533
2534
2535# Finally, this is the expansion that is picked up by
2536# autoconf. It tells the user to run autoupdate, and
2537# then outputs the replacement expansion. We do not care
2538# about autoupdate's warning because that contains
2539# information on what to do *after* running autoupdate.
2540
2541
2542
2543# _LT_TAG_COMPILER
2544# ----------------
2545# _LT_TAG_COMPILER
2546
2547
2548# _LT_COMPILER_BOILERPLATE
2549# ------------------------
2550# Check for compiler boilerplate output or warnings with
2551# the simple compiler test code.
2552# _LT_COMPILER_BOILERPLATE
2553
2554
2555# _LT_LINKER_BOILERPLATE
2556# ----------------------
2557# Check for linker boilerplate output or warnings with
2558# the simple link test code.
2559# _LT_LINKER_BOILERPLATE
2560
2561# _LT_REQUIRED_DARWIN_CHECKS
2562# -------------------------
2563
2564
2565
2566# _LT_DARWIN_LINKER_FEATURES
2567# --------------------------
2568# Checks for linker and compiler features on darwin
2569
2570
2571# _LT_SYS_MODULE_PATH_AIX
2572# -----------------------
2573# Links a minimal program and checks the executable
2574# for the system default hardcoded library path. In most cases,
2575# this is /usr/lib:/lib, but when the MPI compilers are used
2576# the location of the communication and MPI libs are included too.
2577# If we don't find anything, use the default library path according
2578# to the aix ld manual.
2579# _LT_SYS_MODULE_PATH_AIX
2580
2581
2582# _LT_SHELL_INIT(ARG)
2583# -------------------
2584# _LT_SHELL_INIT
2585
2586
2587
2588# _LT_PROG_ECHO_BACKSLASH
2589# -----------------------
2590# Find how we can fake an echo command that does not interpret backslash.
2591# In particular, with Autoconf 2.60 or later we add some code to the start
2592# of the generated configure script which will find a shell with a builtin
2593# printf (which we can use as an echo command).
2594# _LT_PROG_ECHO_BACKSLASH
2595
2596
2597# _LT_ENABLE_LOCK
2598# ---------------
2599# _LT_ENABLE_LOCK
2600
2601
2602# _LT_CMD_OLD_ARCHIVE
2603# -------------------
2604# _LT_CMD_OLD_ARCHIVE
2605
2606
2607# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2608# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2609# ----------------------------------------------------------------
2610# Check whether the given compiler option works
2611# _LT_COMPILER_OPTION
2612
2613# Old name:
2614# This is what autoupdate's m4 run will expand. It fires
2615# the warning (with _au_warn_XXX), outputs it into the
2616# updated configure.ac (with AC_DIAGNOSE), and then outputs
2617# the replacement expansion.
2618
2619
2620# This is an auxiliary macro that is also run when
2621# autoupdate runs m4. It simply calls m4_warning, but
2622# we need a wrapper so that each warning is emitted only
2623# once. We break the quoting in m4_warning's argument in
2624# order to expand this macro's arguments, not AU_DEFUN's.
2625
2626
2627# Finally, this is the expansion that is picked up by
2628# autoconf. It tells the user to run autoupdate, and
2629# then outputs the replacement expansion. We do not care
2630# about autoupdate's warning because that contains
2631# information on what to do *after* running autoupdate.
2632
2633
2634
2635# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2636# [ACTION-SUCCESS], [ACTION-FAILURE])
2637# ----------------------------------------------------
2638# Check whether the given linker option works
2639# _LT_LINKER_OPTION
2640
2641# Old name:
2642# This is what autoupdate's m4 run will expand. It fires
2643# the warning (with _au_warn_XXX), outputs it into the
2644# updated configure.ac (with AC_DIAGNOSE), and then outputs
2645# the replacement expansion.
2646
2647
2648# This is an auxiliary macro that is also run when
2649# autoupdate runs m4. It simply calls m4_warning, but
2650# we need a wrapper so that each warning is emitted only
2651# once. We break the quoting in m4_warning's argument in
2652# order to expand this macro's arguments, not AU_DEFUN's.
2653
2654
2655# Finally, this is the expansion that is picked up by
2656# autoconf. It tells the user to run autoupdate, and
2657# then outputs the replacement expansion. We do not care
2658# about autoupdate's warning because that contains
2659# information on what to do *after* running autoupdate.
2660
2661
2662
2663# LT_CMD_MAX_LEN
2664#---------------
2665# LT_CMD_MAX_LEN
2666
2667# Old name:
2668# This is what autoupdate's m4 run will expand. It fires
2669# the warning (with _au_warn_XXX), outputs it into the
2670# updated configure.ac (with AC_DIAGNOSE), and then outputs
2671# the replacement expansion.
2672
2673
2674# This is an auxiliary macro that is also run when
2675# autoupdate runs m4. It simply calls m4_warning, but
2676# we need a wrapper so that each warning is emitted only
2677# once. We break the quoting in m4_warning's argument in
2678# order to expand this macro's arguments, not AU_DEFUN's.
2679
2680
2681# Finally, this is the expansion that is picked up by
2682# autoconf. It tells the user to run autoupdate, and
2683# then outputs the replacement expansion. We do not care
2684# about autoupdate's warning because that contains
2685# information on what to do *after* running autoupdate.
2686
2687
2688
2689# _LT_HEADER_DLFCN
2690# ----------------
2691# _LT_HEADER_DLFCN
2692
2693
2694# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2695# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2696# ----------------------------------------------------------------
2697# _LT_TRY_DLOPEN_SELF
2698
2699
2700# LT_SYS_DLOPEN_SELF
2701# ------------------
2702# LT_SYS_DLOPEN_SELF
2703
2704# Old name:
2705# This is what autoupdate's m4 run will expand. It fires
2706# the warning (with _au_warn_XXX), outputs it into the
2707# updated configure.ac (with AC_DIAGNOSE), and then outputs
2708# the replacement expansion.
2709
2710
2711# This is an auxiliary macro that is also run when
2712# autoupdate runs m4. It simply calls m4_warning, but
2713# we need a wrapper so that each warning is emitted only
2714# once. We break the quoting in m4_warning's argument in
2715# order to expand this macro's arguments, not AU_DEFUN's.
2716
2717
2718# Finally, this is the expansion that is picked up by
2719# autoconf. It tells the user to run autoupdate, and
2720# then outputs the replacement expansion. We do not care
2721# about autoupdate's warning because that contains
2722# information on what to do *after* running autoupdate.
2723
2724
2725
2726# _LT_COMPILER_C_O([TAGNAME])
2727# ---------------------------
2728# Check to see if options -c and -o are simultaneously supported by compiler.
2729# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2730# _LT_COMPILER_C_O
2731
2732
2733# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2734# ----------------------------------
2735# Check to see if we can do hard links to lock some files if needed
2736# _LT_COMPILER_FILE_LOCKS
2737
2738
2739# _LT_CHECK_OBJDIR
2740# ----------------
2741# _LT_CHECK_OBJDIR
2742
2743
2744# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2745# --------------------------------------
2746# Check hardcoding attributes.
2747# _LT_LINKER_HARDCODE_LIBPATH
2748
2749
2750# _LT_CMD_STRIPLIB
2751# ----------------
2752# _LT_CMD_STRIPLIB
2753
2754
2755# _LT_SYS_DYNAMIC_LINKER([TAG])
2756# -----------------------------
2757# PORTME Fill in your ld.so characteristics
2758# _LT_SYS_DYNAMIC_LINKER
2759
2760
2761# _LT_PATH_TOOL_PREFIX(TOOL)
2762# --------------------------
2763# find a file program which can recognize shared library
2764# _LT_PATH_TOOL_PREFIX
2765
2766# Old name:
2767# This is what autoupdate's m4 run will expand. It fires
2768# the warning (with _au_warn_XXX), outputs it into the
2769# updated configure.ac (with AC_DIAGNOSE), and then outputs
2770# the replacement expansion.
2771
2772
2773# This is an auxiliary macro that is also run when
2774# autoupdate runs m4. It simply calls m4_warning, but
2775# we need a wrapper so that each warning is emitted only
2776# once. We break the quoting in m4_warning's argument in
2777# order to expand this macro's arguments, not AU_DEFUN's.
2778
2779
2780# Finally, this is the expansion that is picked up by
2781# autoconf. It tells the user to run autoupdate, and
2782# then outputs the replacement expansion. We do not care
2783# about autoupdate's warning because that contains
2784# information on what to do *after* running autoupdate.
2785
2786
2787
2788# _LT_PATH_MAGIC
2789# --------------
2790# find a file program which can recognize a shared library
2791# _LT_PATH_MAGIC
2792
2793
2794# LT_PATH_LD
2795# ----------
2796# find the pathname to the GNU or non-GNU linker
2797# LT_PATH_LD
2798
2799# Old names:
2800# This is what autoupdate's m4 run will expand. It fires
2801# the warning (with _au_warn_XXX), outputs it into the
2802# updated configure.ac (with AC_DIAGNOSE), and then outputs
2803# the replacement expansion.
2804
2805
2806# This is an auxiliary macro that is also run when
2807# autoupdate runs m4. It simply calls m4_warning, but
2808# we need a wrapper so that each warning is emitted only
2809# once. We break the quoting in m4_warning's argument in
2810# order to expand this macro's arguments, not AU_DEFUN's.
2811
2812
2813# Finally, this is the expansion that is picked up by
2814# autoconf. It tells the user to run autoupdate, and
2815# then outputs the replacement expansion. We do not care
2816# about autoupdate's warning because that contains
2817# information on what to do *after* running autoupdate.
2818
2819# This is what autoupdate's m4 run will expand. It fires
2820# the warning (with _au_warn_XXX), outputs it into the
2821# updated configure.ac (with AC_DIAGNOSE), and then outputs
2822# the replacement expansion.
2823
2824
2825# This is an auxiliary macro that is also run when
2826# autoupdate runs m4. It simply calls m4_warning, but
2827# we need a wrapper so that each warning is emitted only
2828# once. We break the quoting in m4_warning's argument in
2829# order to expand this macro's arguments, not AU_DEFUN's.
2830
2831
2832# Finally, this is the expansion that is picked up by
2833# autoconf. It tells the user to run autoupdate, and
2834# then outputs the replacement expansion. We do not care
2835# about autoupdate's warning because that contains
2836# information on what to do *after* running autoupdate.
2837
2838
2839
2840# _LT_PATH_LD_GNU
2841#- --------------
2842# _LT_PATH_LD_GNU
2843
2844
2845# _LT_CMD_RELOAD
2846# --------------
2847# find reload flag for linker
2848# -- PORTME Some linkers may need a different reload flag.
2849# _LT_CMD_RELOAD
2850
2851
2852# _LT_CHECK_MAGIC_METHOD
2853# ----------------------
2854# how to check for library dependencies
2855# -- PORTME fill in with the dynamic library characteristics
2856# _LT_CHECK_MAGIC_METHOD
2857
2858
2859# LT_PATH_NM
2860# ----------
2861# find the pathname to a BSD- or MS-compatible name lister
2862# LT_PATH_NM
2863
2864# Old names:
2865# This is what autoupdate's m4 run will expand. It fires
2866# the warning (with _au_warn_XXX), outputs it into the
2867# updated configure.ac (with AC_DIAGNOSE), and then outputs
2868# the replacement expansion.
2869
2870
2871# This is an auxiliary macro that is also run when
2872# autoupdate runs m4. It simply calls m4_warning, but
2873# we need a wrapper so that each warning is emitted only
2874# once. We break the quoting in m4_warning's argument in
2875# order to expand this macro's arguments, not AU_DEFUN's.
2876
2877
2878# Finally, this is the expansion that is picked up by
2879# autoconf. It tells the user to run autoupdate, and
2880# then outputs the replacement expansion. We do not care
2881# about autoupdate's warning because that contains
2882# information on what to do *after* running autoupdate.
2883
2884# This is what autoupdate's m4 run will expand. It fires
2885# the warning (with _au_warn_XXX), outputs it into the
2886# updated configure.ac (with AC_DIAGNOSE), and then outputs
2887# the replacement expansion.
2888
2889
2890# This is an auxiliary macro that is also run when
2891# autoupdate runs m4. It simply calls m4_warning, but
2892# we need a wrapper so that each warning is emitted only
2893# once. We break the quoting in m4_warning's argument in
2894# order to expand this macro's arguments, not AU_DEFUN's.
2895
2896
2897# Finally, this is the expansion that is picked up by
2898# autoconf. It tells the user to run autoupdate, and
2899# then outputs the replacement expansion. We do not care
2900# about autoupdate's warning because that contains
2901# information on what to do *after* running autoupdate.
2902
2903
2904
2905# LT_LIB_M
2906# --------
2907# check for math library
2908# LT_LIB_M
2909
2910# Old name:
2911# This is what autoupdate's m4 run will expand. It fires
2912# the warning (with _au_warn_XXX), outputs it into the
2913# updated configure.ac (with AC_DIAGNOSE), and then outputs
2914# the replacement expansion.
2915
2916
2917# This is an auxiliary macro that is also run when
2918# autoupdate runs m4. It simply calls m4_warning, but
2919# we need a wrapper so that each warning is emitted only
2920# once. We break the quoting in m4_warning's argument in
2921# order to expand this macro's arguments, not AU_DEFUN's.
2922
2923
2924# Finally, this is the expansion that is picked up by
2925# autoconf. It tells the user to run autoupdate, and
2926# then outputs the replacement expansion. We do not care
2927# about autoupdate's warning because that contains
2928# information on what to do *after* running autoupdate.
2929
2930
2931
2932# _LT_COMPILER_NO_RTTI([TAGNAME])
2933# -------------------------------
2934# _LT_COMPILER_NO_RTTI
2935
2936
2937# _LT_CMD_GLOBAL_SYMBOLS
2938# ----------------------
2939 # _LT_CMD_GLOBAL_SYMBOLS
2940
2941
2942# _LT_COMPILER_PIC([TAGNAME])
2943# ---------------------------
2944# _LT_COMPILER_PIC
2945
2946
2947# _LT_LINKER_SHLIBS([TAGNAME])
2948# ----------------------------
2949# See if the linker supports building shared libraries.
2950# _LT_LINKER_SHLIBS
2951
2952
2953# _LT_LANG_C_CONFIG([TAG])
2954# ------------------------
2955# Ensure that the configuration variables for a C compiler are suitably
2956# defined. These variables are subsequently used by _LT_CONFIG to write
2957# the compiler configuration to `libtool'.
2958# _LT_LANG_C_CONFIG
2959
2960
2961# _LT_LANG_CXX_CONFIG([TAG])
2962# --------------------------
2963# Ensure that the configuration variables for a C++ compiler are suitably
2964# defined. These variables are subsequently used by _LT_CONFIG to write
2965# the compiler configuration to `libtool'.
2966# _LT_LANG_CXX_CONFIG
2967
2968
2969# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
2970# ---------------------------------
2971# Figure out "hidden" library dependencies from verbose
2972# compiler output when linking a shared library.
2973# Parse the compiler output and extract the necessary
2974# objects, libraries and library flags.
2975# _LT_SYS_HIDDEN_LIBDEPS
2976
2977
2978# _LT_LANG_F77_CONFIG([TAG])
2979# --------------------------
2980# Ensure that the configuration variables for a Fortran 77 compiler are
2981# suitably defined. These variables are subsequently used by _LT_CONFIG
2982# to write the compiler configuration to `libtool'.
2983# _LT_LANG_F77_CONFIG
2984
2985
2986# _LT_LANG_FC_CONFIG([TAG])
2987# -------------------------
2988# Ensure that the configuration variables for a Fortran compiler are
2989# suitably defined. These variables are subsequently used by _LT_CONFIG
2990# to write the compiler configuration to `libtool'.
2991# _LT_LANG_FC_CONFIG
2992
2993
2994# _LT_LANG_GCJ_CONFIG([TAG])
2995# --------------------------
2996# Ensure that the configuration variables for the GNU Java Compiler compiler
2997# are suitably defined. These variables are subsequently used by _LT_CONFIG
2998# to write the compiler configuration to `libtool'.
2999# _LT_LANG_GCJ_CONFIG
3000
3001
3002# _LT_LANG_RC_CONFIG([TAG])
3003# -------------------------
3004# Ensure that the configuration variables for the Windows resource compiler
3005# are suitably defined. These variables are subsequently used by _LT_CONFIG
3006# to write the compiler configuration to `libtool'.
3007# _LT_LANG_RC_CONFIG
3008
3009
3010# LT_PROG_GCJ
3011# -----------
3012
3013
3014# Old name:
3015# This is what autoupdate's m4 run will expand. It fires
3016# the warning (with _au_warn_XXX), outputs it into the
3017# updated configure.ac (with AC_DIAGNOSE), and then outputs
3018# the replacement expansion.
3019
3020
3021# This is an auxiliary macro that is also run when
3022# autoupdate runs m4. It simply calls m4_warning, but
3023# we need a wrapper so that each warning is emitted only
3024# once. We break the quoting in m4_warning's argument in
3025# order to expand this macro's arguments, not AU_DEFUN's.
3026
3027
3028# Finally, this is the expansion that is picked up by
3029# autoconf. It tells the user to run autoupdate, and
3030# then outputs the replacement expansion. We do not care
3031# about autoupdate's warning because that contains
3032# information on what to do *after* running autoupdate.
3033
3034
3035
3036# LT_PROG_RC
3037# ----------
3038
3039
3040# Old name:
3041# This is what autoupdate's m4 run will expand. It fires
3042# the warning (with _au_warn_XXX), outputs it into the
3043# updated configure.ac (with AC_DIAGNOSE), and then outputs
3044# the replacement expansion.
3045
3046
3047# This is an auxiliary macro that is also run when
3048# autoupdate runs m4. It simply calls m4_warning, but
3049# we need a wrapper so that each warning is emitted only
3050# once. We break the quoting in m4_warning's argument in
3051# order to expand this macro's arguments, not AU_DEFUN's.
3052
3053
3054# Finally, this is the expansion that is picked up by
3055# autoconf. It tells the user to run autoupdate, and
3056# then outputs the replacement expansion. We do not care
3057# about autoupdate's warning because that contains
3058# information on what to do *after* running autoupdate.
3059
3060
3061
3062# _LT_DECL_EGREP
3063# --------------
3064# If we don't have a new enough Autoconf to choose the best grep
3065# available, choose the one first in the user's PATH.
3066
3067
3068
3069# _LT_DECL_OBJDUMP
3070# --------------
3071# If we don't have a new enough Autoconf to choose the best objdump
3072# available, choose the one first in the user's PATH.
3073
3074
3075
3076# _LT_DECL_SED
3077# ------------
3078# Check for a fully-functional sed program, that truncates
3079# as few characters as possible. Prefer GNU sed if found.
3080# _LT_DECL_SED
3081
3082#m4_ifndef
3083
3084# Old name:
3085# This is what autoupdate's m4 run will expand. It fires
3086# the warning (with _au_warn_XXX), outputs it into the
3087# updated configure.ac (with AC_DIAGNOSE), and then outputs
3088# the replacement expansion.
3089
3090
3091# This is an auxiliary macro that is also run when
3092# autoupdate runs m4. It simply calls m4_warning, but
3093# we need a wrapper so that each warning is emitted only
3094# once. We break the quoting in m4_warning's argument in
3095# order to expand this macro's arguments, not AU_DEFUN's.
3096
3097
3098# Finally, this is the expansion that is picked up by
3099# autoconf. It tells the user to run autoupdate, and
3100# then outputs the replacement expansion. We do not care
3101# about autoupdate's warning because that contains
3102# information on what to do *after* running autoupdate.
3103
3104
3105
3106# _LT_CHECK_SHELL_FEATURES
3107# ------------------------
3108# Find out whether the shell is Bourne or XSI compatible,
3109# or has some other useful features.
3110# _LT_CHECK_SHELL_FEATURES
3111
3112
3113# _LT_PROG_XSI_SHELLFNS
3114# ---------------------
3115# Bourne and XSI compatible variants of some useful shell functions.
3116
3117
3118# Helper functions for option handling. -*- Autoconf -*-
3119#
3120# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3121# Inc.
3122# Written by Gary V. Vaughan, 2004
3123#
3124# This file is free software; the Free Software Foundation gives
3125# unlimited permission to copy and/or distribute it, with or without
3126# modifications, as long as this notice is preserved.
3127
3128# serial 6 ltoptions.m4
3129
3130# This is to help aclocal find these macros, as it can't see m4_define.
3131
3132
3133
3134# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3135# ------------------------------------------
3136
3137
3138
3139# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3140# ---------------------------------------
3141# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3142# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3143# saved as a flag.
3144
3145
3146
3147# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3148# ------------------------------------------------------------
3149# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3150
3151
3152
3153# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3154# -------------------------------------------------------
3155# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3156# are set.
3157
3158
3159
3160# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3161# ----------------------------------------
3162# OPTION-LIST is a space-separated list of Libtool options associated
3163# with MACRO-NAME. If any OPTION has a matching handler declared with
3164# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3165# the unknown option and exit.
3166# _LT_SET_OPTIONS
3167
3168
3169## --------------------------------- ##
3170## Macros to handle LT_INIT options. ##
3171## --------------------------------- ##
3172
3173# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3174# -----------------------------------------
3175
3176
3177
3178# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3179# -----------------------------------------------
3180# LT_OPTION_DEFINE
3181
3182
3183# dlopen
3184# ------
3185
3186
3187# This is what autoupdate's m4 run will expand. It fires
3188# the warning (with _au_warn_XXX), outputs it into the
3189# updated configure.ac (with AC_DIAGNOSE), and then outputs
3190# the replacement expansion.
3191
3192
3193# This is an auxiliary macro that is also run when
3194# autoupdate runs m4. It simply calls m4_warning, but
3195# we need a wrapper so that each warning is emitted only
3196# once. We break the quoting in m4_warning's argument in
3197# order to expand this macro's arguments, not AU_DEFUN's.
3198
3199
3200# Finally, this is the expansion that is picked up by
3201# autoconf. It tells the user to run autoupdate, and
3202# then outputs the replacement expansion. We do not care
3203# about autoupdate's warning because that contains
3204# information on what to do *after* running autoupdate.
3205
3206
3207
3208
3209# win32-dll
3210# ---------
3211# Declare package support for building win32 dll's.
3212# win32-dll
3213
3214# This is what autoupdate's m4 run will expand. It fires
3215# the warning (with _au_warn_XXX), outputs it into the
3216# updated configure.ac (with AC_DIAGNOSE), and then outputs
3217# the replacement expansion.
3218
3219
3220# This is an auxiliary macro that is also run when
3221# autoupdate runs m4. It simply calls m4_warning, but
3222# we need a wrapper so that each warning is emitted only
3223# once. We break the quoting in m4_warning's argument in
3224# order to expand this macro's arguments, not AU_DEFUN's.
3225
3226
3227# Finally, this is the expansion that is picked up by
3228# autoconf. It tells the user to run autoupdate, and
3229# then outputs the replacement expansion. We do not care
3230# about autoupdate's warning because that contains
3231# information on what to do *after* running autoupdate.
3232
3233
3234
3235
3236# _LT_ENABLE_SHARED([DEFAULT])
3237# ----------------------------
3238# implement the --enable-shared flag, and supports the `shared' and
3239# `disable-shared' LT_INIT options.
3240# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3241# _LT_ENABLE_SHARED
3242
3243
3244
3245
3246# Old names:
3247
3248
3249
3250
3251# This is what autoupdate's m4 run will expand. It fires
3252# the warning (with _au_warn_XXX), outputs it into the
3253# updated configure.ac (with AC_DIAGNOSE), and then outputs
3254# the replacement expansion.
3255
3256
3257# This is an auxiliary macro that is also run when
3258# autoupdate runs m4. It simply calls m4_warning, but
3259# we need a wrapper so that each warning is emitted only
3260# once. We break the quoting in m4_warning's argument in
3261# order to expand this macro's arguments, not AU_DEFUN's.
3262
3263
3264# Finally, this is the expansion that is picked up by
3265# autoconf. It tells the user to run autoupdate, and
3266# then outputs the replacement expansion. We do not care
3267# about autoupdate's warning because that contains
3268# information on what to do *after* running autoupdate.
3269
3270# This is what autoupdate's m4 run will expand. It fires
3271# the warning (with _au_warn_XXX), outputs it into the
3272# updated configure.ac (with AC_DIAGNOSE), and then outputs
3273# the replacement expansion.
3274
3275
3276# This is an auxiliary macro that is also run when
3277# autoupdate runs m4. It simply calls m4_warning, but
3278# we need a wrapper so that each warning is emitted only
3279# once. We break the quoting in m4_warning's argument in
3280# order to expand this macro's arguments, not AU_DEFUN's.
3281
3282
3283# Finally, this is the expansion that is picked up by
3284# autoconf. It tells the user to run autoupdate, and
3285# then outputs the replacement expansion. We do not care
3286# about autoupdate's warning because that contains
3287# information on what to do *after* running autoupdate.
3288
3289
3290
3291
3292
3293# _LT_ENABLE_STATIC([DEFAULT])
3294# ----------------------------
3295# implement the --enable-static flag, and support the `static' and
3296# `disable-static' LT_INIT options.
3297# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3298# _LT_ENABLE_STATIC
3299
3300
3301
3302
3303# Old names:
3304
3305
3306
3307
3308# This is what autoupdate's m4 run will expand. It fires
3309# the warning (with _au_warn_XXX), outputs it into the
3310# updated configure.ac (with AC_DIAGNOSE), and then outputs
3311# the replacement expansion.
3312
3313
3314# This is an auxiliary macro that is also run when
3315# autoupdate runs m4. It simply calls m4_warning, but
3316# we need a wrapper so that each warning is emitted only
3317# once. We break the quoting in m4_warning's argument in
3318# order to expand this macro's arguments, not AU_DEFUN's.
3319
3320
3321# Finally, this is the expansion that is picked up by
3322# autoconf. It tells the user to run autoupdate, and
3323# then outputs the replacement expansion. We do not care
3324# about autoupdate's warning because that contains
3325# information on what to do *after* running autoupdate.
3326
3327# This is what autoupdate's m4 run will expand. It fires
3328# the warning (with _au_warn_XXX), outputs it into the
3329# updated configure.ac (with AC_DIAGNOSE), and then outputs
3330# the replacement expansion.
3331
3332
3333# This is an auxiliary macro that is also run when
3334# autoupdate runs m4. It simply calls m4_warning, but
3335# we need a wrapper so that each warning is emitted only
3336# once. We break the quoting in m4_warning's argument in
3337# order to expand this macro's arguments, not AU_DEFUN's.
3338
3339
3340# Finally, this is the expansion that is picked up by
3341# autoconf. It tells the user to run autoupdate, and
3342# then outputs the replacement expansion. We do not care
3343# about autoupdate's warning because that contains
3344# information on what to do *after* running autoupdate.
3345
3346
3347
3348
3349
3350# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3351# ----------------------------------
3352# implement the --enable-fast-install flag, and support the `fast-install'
3353# and `disable-fast-install' LT_INIT options.
3354# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3355# _LT_ENABLE_FAST_INSTALL
3356
3357
3358
3359
3360# Old names:
3361# This is what autoupdate's m4 run will expand. It fires
3362# the warning (with _au_warn_XXX), outputs it into the
3363# updated configure.ac (with AC_DIAGNOSE), and then outputs
3364# the replacement expansion.
3365
3366
3367# This is an auxiliary macro that is also run when
3368# autoupdate runs m4. It simply calls m4_warning, but
3369# we need a wrapper so that each warning is emitted only
3370# once. We break the quoting in m4_warning's argument in
3371# order to expand this macro's arguments, not AU_DEFUN's.
3372
3373
3374# Finally, this is the expansion that is picked up by
3375# autoconf. It tells the user to run autoupdate, and
3376# then outputs the replacement expansion. We do not care
3377# about autoupdate's warning because that contains
3378# information on what to do *after* running autoupdate.
3379
3380
3381# This is what autoupdate's m4 run will expand. It fires
3382# the warning (with _au_warn_XXX), outputs it into the
3383# updated configure.ac (with AC_DIAGNOSE), and then outputs
3384# the replacement expansion.
3385
3386
3387# This is an auxiliary macro that is also run when
3388# autoupdate runs m4. It simply calls m4_warning, but
3389# we need a wrapper so that each warning is emitted only
3390# once. We break the quoting in m4_warning's argument in
3391# order to expand this macro's arguments, not AU_DEFUN's.
3392
3393
3394# Finally, this is the expansion that is picked up by
3395# autoconf. It tells the user to run autoupdate, and
3396# then outputs the replacement expansion. We do not care
3397# about autoupdate's warning because that contains
3398# information on what to do *after* running autoupdate.
3399
3400
3401
3402
3403# _LT_WITH_PIC([MODE])
3404# --------------------
3405# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3406# LT_INIT options.
3407# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3408# _LT_WITH_PIC
3409
3410
3411
3412
3413# Old name:
3414# This is what autoupdate's m4 run will expand. It fires
3415# the warning (with _au_warn_XXX), outputs it into the
3416# updated configure.ac (with AC_DIAGNOSE), and then outputs
3417# the replacement expansion.
3418
3419
3420# This is an auxiliary macro that is also run when
3421# autoupdate runs m4. It simply calls m4_warning, but
3422# we need a wrapper so that each warning is emitted only
3423# once. We break the quoting in m4_warning's argument in
3424# order to expand this macro's arguments, not AU_DEFUN's.
3425
3426
3427# Finally, this is the expansion that is picked up by
3428# autoconf. It tells the user to run autoupdate, and
3429# then outputs the replacement expansion. We do not care
3430# about autoupdate's warning because that contains
3431# information on what to do *after* running autoupdate.
3432
3433
3434
3435## ----------------- ##
3436## LTDL_INIT Options ##
3437## ----------------- ##
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3449#
3450# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3451# Written by Gary V. Vaughan, 2004
3452#
3453# This file is free software; the Free Software Foundation gives
3454# unlimited permission to copy and/or distribute it, with or without
3455# modifications, as long as this notice is preserved.
3456
3457# serial 6 ltsugar.m4
3458
3459# This is to help aclocal find these macros, as it can't see m4_define.
3460
3461
3462
3463# lt_join(SEP, ARG1, [ARG2...])
3464# -----------------------------
3465# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3466# associated separator.
3467# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3468# versions in m4sugar had bugs.
3469
3470
3471
3472
3473# lt_car(LIST)
3474# lt_cdr(LIST)
3475# ------------
3476# Manipulate m4 lists.
3477# These macros are necessary as long as will still need to support
3478# Autoconf-2.59 which quotes differently.
3479
3480
3481
3482
3483
3484# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3485# ------------------------------------------
3486# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3487# Note that neither SEPARATOR nor STRING are expanded; they are appended
3488# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3489# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3490# than defined and empty).
3491#
3492# This macro is needed until we can rely on Autoconf 2.62, since earlier
3493# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3494
3495
3496
3497
3498# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3499# ----------------------------------------------------------
3500# Produce a SEP delimited list of all paired combinations of elements of
3501# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3502# has the form PREFIXmINFIXSUFFIXn.
3503# Needed until we can rely on m4_combine added in Autoconf 2.62.
3504
3505
3506
3507# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3508# -----------------------------------------------------------------------
3509# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3510# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3511
3512
3513
3514# lt_dict_add(DICT, KEY, VALUE)
3515# -----------------------------
3516
3517
3518
3519# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3520# --------------------------------------------
3521
3522
3523
3524# lt_dict_fetch(DICT, KEY, [SUBKEY])
3525# ----------------------------------
3526
3527
3528
3529# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3530# -----------------------------------------------------------------
3531
3532
3533
3534# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3535# --------------------------------------------------------------
3536
3537
3538# ltversion.m4 -- version numbers -*- Autoconf -*-
3539#
3540# Copyright (C) 2004 Free Software Foundation, Inc.
3541# Written by Scott James Remnant, 2004
3542#
3543# This file is free software; the Free Software Foundation gives
3544# unlimited permission to copy and/or distribute it, with or without
3545# modifications, as long as this notice is preserved.
3546
3547# Generated from ltversion.in.
3548
3549# serial 3134 ltversion.m4
3550# This file is part of GNU Libtool
3551
3552
3553
3554
3555
3556
3557# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3558#
3559# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3560# Written by Scott James Remnant, 2004.
3561#
3562# This file is free software; the Free Software Foundation gives
3563# unlimited permission to copy and/or distribute it, with or without
3564# modifications, as long as this notice is preserved.
3565
3566# serial 4 lt~obsolete.m4
3567
3568# These exist entirely to fool aclocal when bootstrapping libtool.
3569#
3570# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3571# which have later been changed to m4_define as they aren't part of the
3572# exported API, or moved to Autoconf or Automake where they belong.
3573#
3574# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3575# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3576# using a macro with the same name in our local m4/libtool.m4 it'll
3577# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3578# and doesn't know about Autoconf macros at all.)
3579#
3580# So we provide this file, which has a silly filename so it's always
3581# included after everything else. This provides aclocal with the
3582# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3583# because those macros already exist, or will be overwritten later.
3584# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3585#
3586# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3587# Yes, that means every name once taken will need to remain here until
3588# we give up compatibility with versions before 1.7, at which point
3589# we need to keep only those names which we still refer to.
3590
3591# This is to help aclocal find these macros, as it can't see m4_define.
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
6ffe910a
MF
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
2232061b
MF
3656## -*- Autoconf -*-
3657
3658# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3659# Free Software Foundation, Inc.
3660#
3661# This file is free software; the Free Software Foundation
3662# gives unlimited permission to copy and/or distribute it,
3663# with or without modifications, as long as this notice is preserved.
3664
3665# serial 8
3666
3667# Based on depend.m4 from automake 1.9, modified for standalone use in
3668# an environment where GNU make is required.
3669
3670# ZW_PROG_COMPILER_DEPENDENCIES
3671# -----------------------------
3672# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3673# sets fooDEPMODE accordingly. Cache-variable compatible with
3674# original; not side-effect compatible. As the users of this macro
3675# may require accurate dependencies for correct builds, it does *not*
3676# honor --disable-dependency-checking, and failure to detect a usable
3677# method is an error. depcomp is assumed to be located in
3678# $ac_aux_dir.
3679#
3680# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3681
3682
3683
3684# AM_SET_DEPDIR
3685# -------------
3686# Choose a directory name for dependency files.
3687
3688
3689# ZW_CREATE_DEPDIR
3690# ----------------
3691# As AM_SET_DEPDIR, but also create the directory at config.status time.
3692
3693
6ffe910a
MF
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
6ffe910a
MF
3733
3734
3735
3736
3737
6ffe910a
MF
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
6ffe910a
MF
3753
3754
3755
3756
3757
3758# intl sister-directory configuration rules.
3759#
3760
3761# The idea behind this macro is that there's no need to repeat all the
3762# autoconf probes done by the intl directory - it's already done them
3763# for us. In fact, there's no need even to look at the cache for the
3764# answers. All we need to do is nab a few pieces of information.
3765# The intl directory is set up to make this easy, by generating a
3766# small file which can be sourced as a shell script; then we produce
3767# the necessary substitutions and definitions for this directory.
3768
3769
3770
3771# Autoconf M4 include file defining utility macros for complex Canadian
3772# cross builds.
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782####
3783# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
3784# or AC_INIT.
3785# These demand that AC_CANONICAL_SYSTEM be called beforehand.
3786
3787####
3788# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3789# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
3790
3791
3792####
3793# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3794# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
3795
3796
3797
3798# Backported from Autoconf 2.5x; can go away when and if
3799# we switch. Put the OS path separator in $PATH_SEPARATOR.
3800
3801
3802
3803
37f980dc
SM
3804
3805
3806
3807
6ffe910a
MF
3808# ACX_HAVE_GCC_FOR_TARGET
3809# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
3810
3811
3812# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
3813# Searching for installed target binutils. We need to take extra care,
3814# else we may find the wrong assembler, linker, etc., and lose.
3815#
3816# First try --with-build-time-tools, if specified.
3817#
3818# For build != host, we ask the installed GCC for the name of the tool it
3819# uses, and accept it if it is an absolute path. This is because the
3820# only good choice for a compiler is the same GCC version that is being
3821# installed (or we couldn't make target libraries), and we assume that
3822# on the host system we'll have not only the same GCC version, but also
3823# the same binutils version.
3824#
3825# For build == host, search the same directories that the installed
3826# compiler will search. We used to do this for the assembler, linker,
3827# and nm only; for simplicity of configuration, however, we extend this
3828# criterion to tools (such as ar and ranlib) that are never invoked by
3829# the compiler, to avoid mismatches.
3830#
3831# Also note we have to check MD_EXEC_PREFIX before checking the user's path
3832# if build == target. This makes the most sense only when bootstrapping,
3833# but we also do so when build != host. In this case, we hope that the
3834# build and host systems will have similar contents of MD_EXEC_PREFIX.
3835#
3836# If we do not find a suitable binary, then try the user's path.
3837
3838
3839###
3840# AC_PROG_CPP_WERROR
3841# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
3842# triggers warnings from the preprocessor. Will be in autoconf 2.58.
3843# For now, using this also overrides header checks to use only the
3844# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
3845# bit harder from here).
3846# Eventually autoconf will default to checking headers with the compiler
3847# instead, and we'll have to do this differently.
3848
3849# AC_PROG_CPP_WERROR
3850
3851# Test for GNAT.
2232061b
MF
3852# We require the gnatbind & gnatmake programs, as well as a compiler driver
3853# that understands Ada. We use the user's CC setting, already found, and
3854# possibly add $1 to the command-line parameters.
6ffe910a
MF
3855#
3856# Sets the shell variable have_gnat to yes or no as appropriate, and
3857# substitutes GNATBIND and GNATMAKE.
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
b7026657
AC
3878
3879
b7026657
AC
3880
3881
3882
3883ac_aux_dir=
81ecdfbb 3884for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
3885 if test -f "$ac_dir/install-sh"; then
3886 ac_aux_dir=$ac_dir
3887 ac_install_sh="$ac_aux_dir/install-sh -c"
3888 break
3889 elif test -f "$ac_dir/install.sh"; then
3890 ac_aux_dir=$ac_dir
3891 ac_install_sh="$ac_aux_dir/install.sh -c"
3892 break
3893 elif test -f "$ac_dir/shtool"; then
3894 ac_aux_dir=$ac_dir
3895 ac_install_sh="$ac_aux_dir/shtool install -c"
3896 break
3897 fi
b7026657
AC
3898done
3899if test -z "$ac_aux_dir"; then
d0ac1c44 3900 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b7026657 3901fi
81ecdfbb
RW
3902
3903# These three variables are undocumented and unsupported,
3904# and are intended to be withdrawn in a future Autoconf release.
3905# They can cause serious problems if a builder's source tree is in a directory
3906# whose full name contains unusual characters.
3907ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3908ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3909ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3910
b7026657
AC
3911
3912# Find a good install program. We prefer a C program (faster),
3913# so one script is as good as another. But avoid the broken or
3914# incompatible versions:
3915# SysV /etc/install, /usr/sbin/install
3916# SunOS /usr/etc/install
3917# IRIX /sbin/install
3918# AIX /bin/install
3919# AmigaOS /C/install, which installs bootblocks on floppy discs
3920# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3921# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3922# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3923# OS/2's system install, which has a completely different semantic
3924# ./install, which can be erroneously created by make from ./install.sh.
81ecdfbb
RW
3925# Reject install programs that cannot install multiple files.
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3927$as_echo_n "checking for a BSD-compatible install... " >&6; }
b7026657 3928if test -z "$INSTALL"; then
d0ac1c44 3929if ${ac_cv_path_install+:} false; then :
81ecdfbb 3930 $as_echo_n "(cached) " >&6
b7026657
AC
3931else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3937 # Account for people who put trailing slashes in PATH elements.
3938case $as_dir/ in #((
3939 ./ | .// | /[cC]/* | \
b7026657 3940 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3941 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b7026657
AC
3942 /usr/ucb/* ) ;;
3943 *)
3944 # OSF1 and SCO ODT 3.0 have their own names for install.
3945 # Don't use installbsd from OSF since it installs stuff as root
3946 # by default.
3947 for ac_prog in ginstall scoinst install; do
3948 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3949 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
b7026657
AC
3950 if test $ac_prog = install &&
3951 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3952 # AIX install. It has an incompatible calling convention.
3953 :
3954 elif test $ac_prog = install &&
3955 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3956 # program-specific install script used by HP pwplus--don't use.
3957 :
3958 else
81ecdfbb
RW
3959 rm -rf conftest.one conftest.two conftest.dir
3960 echo one > conftest.one
3961 echo two > conftest.two
3962 mkdir conftest.dir
3963 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3964 test -s conftest.one && test -s conftest.two &&
3965 test -s conftest.dir/conftest.one &&
3966 test -s conftest.dir/conftest.two
3967 then
3968 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3969 break 3
3970 fi
b7026657
AC
3971 fi
3972 fi
3973 done
3974 done
3975 ;;
3976esac
b7026657 3977
81ecdfbb
RW
3978 done
3979IFS=$as_save_IFS
3980
3981rm -rf conftest.one conftest.two conftest.dir
b7026657
AC
3982
3983fi
3984 if test "${ac_cv_path_install+set}" = set; then
3985 INSTALL=$ac_cv_path_install
3986 else
81ecdfbb
RW
3987 # As a last resort, use the slow shell script. Don't cache a
3988 # value for INSTALL within a source directory, because that will
b7026657 3989 # break other packages using the cache if that directory is
81ecdfbb 3990 # removed, or if the value is a relative name.
b7026657
AC
3991 INSTALL=$ac_install_sh
3992 fi
3993fi
81ecdfbb
RW
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3995$as_echo "$INSTALL" >&6; }
b7026657
AC
3996
3997# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3998# It thinks the first close brace ends the variable substitution.
c906108c
SS
3999test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4000
b7026657 4001test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cd0fc7c3 4002
c906108c
SS
4003test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4004
b7026657
AC
4005ac_ext=c
4006ac_cpp='$CPP $CPPFLAGS'
4007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4009ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010if test -n "$ac_tool_prefix"; then
4011 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4012set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4015if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4016 $as_echo_n "(cached) " >&6
b7026657
AC
4017else
4018 if test -n "$CC"; then
4019 ac_cv_prog_CC="$CC" # Let the user override the test.
4020else
4021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022for as_dir in $PATH
4023do
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
81ecdfbb 4026 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4028 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4030 break 2
4031 fi
4032done
81ecdfbb
RW
4033 done
4034IFS=$as_save_IFS
b7026657
AC
4035
4036fi
4037fi
4038CC=$ac_cv_prog_CC
4039if test -n "$CC"; then
81ecdfbb
RW
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4041$as_echo "$CC" >&6; }
b7026657 4042else
81ecdfbb
RW
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044$as_echo "no" >&6; }
b7026657
AC
4045fi
4046
81ecdfbb 4047
b7026657
AC
4048fi
4049if test -z "$ac_cv_prog_CC"; then
4050 ac_ct_CC=$CC
4051 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 4052set dummy gcc; ac_word=$2
81ecdfbb
RW
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4055if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4056 $as_echo_n "(cached) " >&6
b7026657
AC
4057else
4058 if test -n "$ac_ct_CC"; then
4059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4060else
4061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH
4063do
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
81ecdfbb 4066 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4068 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4070 break 2
4071 fi
4072done
81ecdfbb
RW
4073 done
4074IFS=$as_save_IFS
b7026657
AC
4075
4076fi
4077fi
4078ac_ct_CC=$ac_cv_prog_ac_ct_CC
4079if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4081$as_echo "$ac_ct_CC" >&6; }
b7026657 4082else
81ecdfbb
RW
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084$as_echo "no" >&6; }
b7026657
AC
4085fi
4086
81ecdfbb
RW
4087 if test "x$ac_ct_CC" = x; then
4088 CC=""
4089 else
4090 case $cross_compiling:$ac_tool_warned in
4091yes:)
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4094ac_tool_warned=yes ;;
4095esac
4096 CC=$ac_ct_CC
4097 fi
b7026657
AC
4098else
4099 CC="$ac_cv_prog_CC"
4100fi
4101
4102if test -z "$CC"; then
81ecdfbb
RW
4103 if test -n "$ac_tool_prefix"; then
4104 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b7026657 4105set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4108if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4109 $as_echo_n "(cached) " >&6
c906108c
SS
4110else
4111 if test -n "$CC"; then
4112 ac_cv_prog_CC="$CC" # Let the user override the test.
4113else
b7026657
AC
4114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115for as_dir in $PATH
4116do
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
81ecdfbb 4119 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4121 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4123 break 2
4124 fi
4125done
81ecdfbb
RW
4126 done
4127IFS=$as_save_IFS
b7026657 4128
c906108c
SS
4129fi
4130fi
b7026657 4131CC=$ac_cv_prog_CC
c906108c 4132if test -n "$CC"; then
81ecdfbb
RW
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4134$as_echo "$CC" >&6; }
b7026657 4135else
81ecdfbb
RW
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137$as_echo "no" >&6; }
b7026657
AC
4138fi
4139
c906108c 4140
81ecdfbb 4141 fi
b7026657 4142fi
c906108c
SS
4143if test -z "$CC"; then
4144 # Extract the first word of "cc", so it can be a program name with args.
4145set dummy cc; ac_word=$2
81ecdfbb
RW
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4148if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4149 $as_echo_n "(cached) " >&6
c906108c
SS
4150else
4151 if test -n "$CC"; then
4152 ac_cv_prog_CC="$CC" # Let the user override the test.
4153else
c906108c 4154 ac_prog_rejected=no
b7026657
AC
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
81ecdfbb 4160 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657
AC
4162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4163 ac_prog_rejected=yes
4164 continue
4165 fi
4166 ac_cv_prog_CC="cc"
81ecdfbb 4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4168 break 2
4169 fi
4170done
81ecdfbb
RW
4171 done
4172IFS=$as_save_IFS
b7026657 4173
c906108c
SS
4174if test $ac_prog_rejected = yes; then
4175 # We found a bogon in the path, so make sure we never use it.
4176 set dummy $ac_cv_prog_CC
4177 shift
b7026657 4178 if test $# != 0; then
c906108c
SS
4179 # We chose a different compiler from the bogus one.
4180 # However, it has the same basename, so the bogon will be chosen
4181 # first if we set CC to just the basename; use the full file name.
4182 shift
b7026657 4183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
4184 fi
4185fi
4186fi
4187fi
b7026657 4188CC=$ac_cv_prog_CC
c906108c 4189if test -n "$CC"; then
81ecdfbb
RW
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4191$as_echo "$CC" >&6; }
c906108c 4192else
81ecdfbb
RW
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194$as_echo "no" >&6; }
c906108c
SS
4195fi
4196
81ecdfbb 4197
b7026657
AC
4198fi
4199if test -z "$CC"; then
4200 if test -n "$ac_tool_prefix"; then
81ecdfbb 4201 for ac_prog in cl.exe
b7026657
AC
4202 do
4203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4204set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4207if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4208 $as_echo_n "(cached) " >&6
c906108c
SS
4209else
4210 if test -n "$CC"; then
4211 ac_cv_prog_CC="$CC" # Let the user override the test.
4212else
b7026657
AC
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
81ecdfbb 4218 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4220 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4222 break 2
4223 fi
4224done
81ecdfbb
RW
4225 done
4226IFS=$as_save_IFS
b7026657 4227
c906108c
SS
4228fi
4229fi
b7026657 4230CC=$ac_cv_prog_CC
c906108c 4231if test -n "$CC"; then
81ecdfbb
RW
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4233$as_echo "$CC" >&6; }
c906108c 4234else
81ecdfbb
RW
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236$as_echo "no" >&6; }
c906108c 4237fi
b7026657 4238
81ecdfbb 4239
b7026657
AC
4240 test -n "$CC" && break
4241 done
4242fi
4243if test -z "$CC"; then
4244 ac_ct_CC=$CC
81ecdfbb 4245 for ac_prog in cl.exe
b7026657
AC
4246do
4247 # Extract the first word of "$ac_prog", so it can be a program name with args.
4248set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4251if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4252 $as_echo_n "(cached) " >&6
b7026657
AC
4253else
4254 if test -n "$ac_ct_CC"; then
4255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4256else
4257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258for as_dir in $PATH
4259do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
81ecdfbb 4262 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4264 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657 4266 break 2
c906108c 4267 fi
b7026657 4268done
81ecdfbb
RW
4269 done
4270IFS=$as_save_IFS
b7026657
AC
4271
4272fi
4273fi
4274ac_ct_CC=$ac_cv_prog_ac_ct_CC
4275if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4277$as_echo "$ac_ct_CC" >&6; }
b7026657 4278else
81ecdfbb
RW
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280$as_echo "no" >&6; }
c906108c
SS
4281fi
4282
81ecdfbb 4283
b7026657
AC
4284 test -n "$ac_ct_CC" && break
4285done
c906108c 4286
81ecdfbb
RW
4287 if test "x$ac_ct_CC" = x; then
4288 CC=""
4289 else
4290 case $cross_compiling:$ac_tool_warned in
4291yes:)
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4294ac_tool_warned=yes ;;
4295esac
4296 CC=$ac_ct_CC
4297 fi
b7026657
AC
4298fi
4299
4300fi
4301
4302
81ecdfbb
RW
4303test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4305as_fn_error $? "no acceptable C compiler found in \$PATH
4306See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
4307
4308# Provide some information about the compiler.
81ecdfbb
RW
4309$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4310set X $ac_compile
4311ac_compiler=$2
4312for ac_option in --version -v -V -qversion; do
4313 { { ac_try="$ac_compiler $ac_option >&5"
4314case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317esac
4318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4319$as_echo "$ac_try_echo"; } >&5
4320 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b7026657 4321 ac_status=$?
81ecdfbb
RW
4322 if test -s conftest.err; then
4323 sed '10a\
4324... rest of stderr output deleted ...
4325 10q' conftest.err >conftest.er1
4326 cat conftest.er1 >&5
81ecdfbb 4327 fi
d0ac1c44 4328 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }
4331done
b7026657 4332
81ecdfbb 4333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4334/* end confdefs.h. */
4335
4336int
4337main ()
4338{
4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344ac_clean_files_save=$ac_clean_files
d0ac1c44 4345ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b7026657
AC
4346# Try to create an executable without -o first, disregard a.out.
4347# It will help us diagnose broken compilers, and finding out an intuition
4348# of exeext.
d0ac1c44
SM
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4350$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4351ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4352
4353# The possible output files:
4354ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4355
4356ac_rmfiles=
4357for ac_file in $ac_files
4358do
4359 case $ac_file in
4360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4361 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4362 esac
4363done
4364rm -f $ac_rmfiles
4365
4366if { { ac_try="$ac_link_default"
4367case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370esac
4371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372$as_echo "$ac_try_echo"; } >&5
4373 (eval "$ac_link_default") 2>&5
b7026657 4374 ac_status=$?
81ecdfbb
RW
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }; then :
4377 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4378# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4379# in a Makefile. We should not override ac_cv_exeext if it was cached,
4380# so that the user can short-circuit this test for compilers unknown to
4381# Autoconf.
4382for ac_file in $ac_files ''
b7026657
AC
4383do
4384 test -f "$ac_file" || continue
4385 case $ac_file in
81ecdfbb 4386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
4387 ;;
4388 [ab].out )
4389 # We found the default executable, but exeext='' is most
4390 # certainly right.
4391 break;;
4392 *.* )
81ecdfbb
RW
4393 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4394 then :; else
4395 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4396 fi
4397 # We set ac_cv_exeext here because the later test for it is not
4398 # safe: cross compilers may not add the suffix if given an `-o'
4399 # argument, so we may need to know it at that point already.
4400 # Even if this section looks crufty: it has the advantage of
4401 # actually working.
b7026657
AC
4402 break;;
4403 * )
4404 break;;
4405 esac
4406done
81ecdfbb
RW
4407test "$ac_cv_exeext" = no && ac_cv_exeext=
4408
b7026657 4409else
81ecdfbb
RW
4410 ac_file=''
4411fi
81ecdfbb 4412if test -z "$ac_file"; then :
d0ac1c44
SM
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414$as_echo "no" >&6; }
4415$as_echo "$as_me: failed program was:" >&5
b7026657
AC
4416sed 's/^/| /' conftest.$ac_ext >&5
4417
81ecdfbb
RW
4418{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4420as_fn_error 77 "C compiler cannot create executables
4421See \`config.log' for more details" "$LINENO" 5; }
4422else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4424$as_echo "yes" >&6; }
b7026657 4425fi
d0ac1c44
SM
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4427$as_echo_n "checking for C compiler default output file name... " >&6; }
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4429$as_echo "$ac_file" >&6; }
b7026657 4430ac_exeext=$ac_cv_exeext
b7026657 4431
d0ac1c44 4432rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b7026657 4433ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4435$as_echo_n "checking for suffix of executables... " >&6; }
4436if { { ac_try="$ac_link"
4437case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440esac
4441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442$as_echo "$ac_try_echo"; } >&5
4443 (eval "$ac_link") 2>&5
b7026657 4444 ac_status=$?
81ecdfbb
RW
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }; then :
b7026657
AC
4447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4448# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4449# work properly (i.e., refer to `conftest.exe'), while it won't with
4450# `rm'.
4451for ac_file in conftest.exe conftest conftest.*; do
4452 test -f "$ac_file" || continue
4453 case $ac_file in
81ecdfbb 4454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 4455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
4456 break;;
4457 * ) break;;
4458 esac
4459done
c906108c 4460else
81ecdfbb
RW
4461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4463as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4464See \`config.log' for more details" "$LINENO" 5; }
c906108c 4465fi
d0ac1c44 4466rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4468$as_echo "$ac_cv_exeext" >&6; }
b7026657
AC
4469
4470rm -f conftest.$ac_ext
4471EXEEXT=$ac_cv_exeext
4472ac_exeext=$EXEEXT
d0ac1c44
SM
4473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474/* end confdefs.h. */
4475#include <stdio.h>
4476int
4477main ()
4478{
4479FILE *f = fopen ("conftest.out", "w");
4480 return ferror (f) || fclose (f) != 0;
4481
4482 ;
4483 return 0;
4484}
4485_ACEOF
4486ac_clean_files="$ac_clean_files conftest.out"
4487# Check that the compiler produces executables we can run. If not, either
4488# the compiler is broken, or we cross compile.
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4490$as_echo_n "checking whether we are cross compiling... " >&6; }
4491if test "$cross_compiling" != yes; then
4492 { { ac_try="$ac_link"
4493case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496esac
4497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498$as_echo "$ac_try_echo"; } >&5
4499 (eval "$ac_link") 2>&5
4500 ac_status=$?
4501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502 test $ac_status = 0; }
4503 if { ac_try='./conftest$ac_cv_exeext'
4504 { { case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507esac
4508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509$as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_try") 2>&5
4511 ac_status=$?
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }; }; then
4514 cross_compiling=no
4515 else
4516 if test "$cross_compiling" = maybe; then
4517 cross_compiling=yes
4518 else
4519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4521as_fn_error $? "cannot run C compiled programs.
4522If you meant to cross compile, use \`--host'.
4523See \`config.log' for more details" "$LINENO" 5; }
4524 fi
4525 fi
4526fi
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4528$as_echo "$cross_compiling" >&6; }
4529
4530rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4531ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4533$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4534if ${ac_cv_objext+:} false; then :
81ecdfbb 4535 $as_echo_n "(cached) " >&6
b7026657 4536else
81ecdfbb 4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4538/* end confdefs.h. */
4539
4540int
4541main ()
4542{
4543
4544 ;
4545 return 0;
4546}
4547_ACEOF
4548rm -f conftest.o conftest.obj
81ecdfbb
RW
4549if { { ac_try="$ac_compile"
4550case "(($ac_try" in
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4553esac
4554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4555$as_echo "$ac_try_echo"; } >&5
4556 (eval "$ac_compile") 2>&5
b7026657 4557 ac_status=$?
81ecdfbb
RW
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559 test $ac_status = 0; }; then :
4560 for ac_file in conftest.o conftest.obj conftest.*; do
4561 test -f "$ac_file" || continue;
b7026657 4562 case $ac_file in
81ecdfbb 4563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
4564 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4565 break;;
4566 esac
4567done
4568else
81ecdfbb 4569 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
81ecdfbb
RW
4572{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4574as_fn_error $? "cannot compute suffix of object files: cannot compile
4575See \`config.log' for more details" "$LINENO" 5; }
c906108c 4576fi
b7026657
AC
4577rm -f conftest.$ac_cv_objext conftest.$ac_ext
4578fi
81ecdfbb
RW
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4580$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
4581OBJEXT=$ac_cv_objext
4582ac_objext=$OBJEXT
81ecdfbb
RW
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4584$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4585if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4586 $as_echo_n "(cached) " >&6
b7026657 4587else
81ecdfbb 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4589/* end confdefs.h. */
4590
4591int
4592main ()
4593{
4594#ifndef __GNUC__
4595 choke me
4596#endif
c906108c 4597
b7026657
AC
4598 ;
4599 return 0;
4600}
4601_ACEOF
81ecdfbb 4602if ac_fn_c_try_compile "$LINENO"; then :
b7026657 4603 ac_compiler_gnu=yes
c906108c 4604else
81ecdfbb 4605 ac_compiler_gnu=no
c906108c 4606fi
81ecdfbb 4607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4608ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 4609
b7026657 4610fi
81ecdfbb
RW
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4612$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4613if test $ac_compiler_gnu = yes; then
4614 GCC=yes
4615else
4616 GCC=
4617fi
b7026657
AC
4618ac_test_CFLAGS=${CFLAGS+set}
4619ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4621$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4622if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb 4623 $as_echo_n "(cached) " >&6
c906108c 4624else
81ecdfbb
RW
4625 ac_save_c_werror_flag=$ac_c_werror_flag
4626 ac_c_werror_flag=yes
4627 ac_cv_prog_cc_g=no
4628 CFLAGS="-g"
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4630/* end confdefs.h. */
4631
4632int
4633main ()
4634{
4635
4636 ;
4637 return 0;
4638}
4639_ACEOF
81ecdfbb 4640if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4641 ac_cv_prog_cc_g=yes
4642else
81ecdfbb
RW
4643 CFLAGS=""
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645/* end confdefs.h. */
c906108c 4646
81ecdfbb
RW
4647int
4648main ()
4649{
4650
4651 ;
4652 return 0;
4653}
4654_ACEOF
4655if ac_fn_c_try_compile "$LINENO"; then :
4656
4657else
4658 ac_c_werror_flag=$ac_save_c_werror_flag
4659 CFLAGS="-g"
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661/* end confdefs.h. */
4662
4663int
4664main ()
4665{
4666
4667 ;
4668 return 0;
4669}
4670_ACEOF
4671if ac_fn_c_try_compile "$LINENO"; then :
4672 ac_cv_prog_cc_g=yes
4673fi
4674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675fi
4676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677fi
4678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ac_c_werror_flag=$ac_save_c_werror_flag
4680fi
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4682$as_echo "$ac_cv_prog_cc_g" >&6; }
4683if test "$ac_test_CFLAGS" = set; then
4684 CFLAGS=$ac_save_CFLAGS
4685elif test $ac_cv_prog_cc_g = yes; then
4686 if test "$GCC" = yes; then
4687 CFLAGS="-g -O2"
4688 else
c906108c
SS
4689 CFLAGS="-g"
4690 fi
4691else
4692 if test "$GCC" = yes; then
4693 CFLAGS="-O2"
4694 else
4695 CFLAGS=
4696 fi
4697fi
81ecdfbb
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4699$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4700if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4701 $as_echo_n "(cached) " >&6
b7026657 4702else
81ecdfbb 4703 ac_cv_prog_cc_c89=no
b7026657 4704ac_save_CC=$CC
81ecdfbb 4705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4706/* end confdefs.h. */
4707#include <stdarg.h>
4708#include <stdio.h>
d0ac1c44 4709struct stat;
b7026657
AC
4710/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4711struct buf { int x; };
4712FILE * (*rcsopen) (struct buf *, struct stat *, int);
4713static char *e (p, i)
4714 char **p;
4715 int i;
4716{
4717 return p[i];
4718}
4719static char *f (char * (*g) (char **, int), char **p, ...)
4720{
4721 char *s;
4722 va_list v;
4723 va_start (v,p);
4724 s = g (p, va_arg (v,int));
4725 va_end (v);
4726 return s;
4727}
4728
4729/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4730 function prototypes and stuff, but not '\xHH' hex character constants.
4731 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4732 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
4733 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4734 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4735 that's true only with -std. */
b7026657
AC
4736int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4737
81ecdfbb
RW
4738/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4739 inside strings and character constants. */
4740#define FOO(x) 'x'
4741int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4742
b7026657
AC
4743int test (int i, double x);
4744struct s1 {int (*f) (int a);};
4745struct s2 {int (*f) (double a);};
4746int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4747int argc;
4748char **argv;
4749int
4750main ()
4751{
4752return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4753 ;
4754 return 0;
4755}
4756_ACEOF
81ecdfbb
RW
4757for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4758 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
4759do
4760 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_prog_cc_c89=$ac_arg
b7026657 4763fi
81ecdfbb
RW
4764rm -f core conftest.err conftest.$ac_objext
4765 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 4766done
81ecdfbb 4767rm -f conftest.$ac_ext
b7026657
AC
4768CC=$ac_save_CC
4769
4770fi
81ecdfbb
RW
4771# AC_CACHE_VAL
4772case "x$ac_cv_prog_cc_c89" in
4773 x)
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4775$as_echo "none needed" >&6; } ;;
4776 xno)
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4778$as_echo "unsupported" >&6; } ;;
b7026657 4779 *)
81ecdfbb
RW
4780 CC="$CC $ac_cv_prog_cc_c89"
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4782$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 4783esac
81ecdfbb 4784if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657
AC
4785
4786fi
b7026657 4787
b7026657
AC
4788ac_ext=c
4789ac_cpp='$CPP $CPPFLAGS'
4790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
c906108c
SS
4794
4795
4796
2232061b
MF
4797# Check whether --enable-werror was given.
4798if test "${enable_werror+set}" = set; then :
4799 enableval=$enable_werror; case "${enableval}" in
4800 yes | y) ERROR_ON_WARNING="yes" ;;
4801 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 4802 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
2232061b
MF
4803 esac
4804fi
4805
4806
4807# Enable -Werror by default when using gcc
4808if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4809 ERROR_ON_WARNING=yes
4810fi
4811
4812WERROR_CFLAGS=""
bf470982
MF
4813 if test "${ERROR_ON_WARNING}" = yes ; then
4814 WERROR_CFLAGS="-Werror"
4815 fi
2232061b 4816
2232061b 4817build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 4818-Wpointer-sign \
2232061b 4819-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
4820-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
4821-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
4822-Wold-style-declaration -Wold-style-definition"
2232061b
MF
4823
4824# Enable -Wno-format by default when using gcc on mingw since many
4825# GCC versions complain about %I64.
4826case "${host}" in
4827 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 4828 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
4829esac
4830
81ecdfbb
RW
4831# Check whether --enable-build-warnings was given.
4832if test "${enable_build_warnings+set}" = set; then :
4833 enableval=$enable_build_warnings; case "${enableval}" in
c8cca39f
AC
4834 yes) ;;
4835 no) build_warnings="-w";;
4836 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4837 build_warnings="${build_warnings} ${t}";;
4838 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4839 build_warnings="${t} ${build_warnings}";;
4840 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4841esac
4842if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4843 echo "Setting compiler warning flags = $build_warnings" 6>&1
4844fi
81ecdfbb
RW
4845fi
4846# Check whether --enable-sim-build-warnings was given.
4847if test "${enable_sim_build_warnings+set}" = set; then :
4848 enableval=$enable_sim_build_warnings; case "${enableval}" in
c906108c
SS
4849 yes) ;;
4850 no) build_warnings="-w";;
4851 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 4852 build_warnings="${build_warnings} ${t}";;
c906108c 4853 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
4854 build_warnings="${t} ${build_warnings}";;
4855 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
4856esac
4857if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
4858 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4859fi
81ecdfbb
RW
4860fi
4861WARN_CFLAGS=""
d4f3574e
SS
4862if test "x${build_warnings}" != x -a "x$GCC" = xyes
4863then
81ecdfbb
RW
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4865$as_echo_n "checking compiler warning flags... " >&6; }
c8cca39f
AC
4866 # Separate out the -Werror flag as some files just cannot be
4867 # compiled with it enabled.
4868 for w in ${build_warnings}; do
4869 case $w in
4870 -Werr*) WERROR_CFLAGS=-Werror ;;
4871 *) # Check that GCC accepts it
4872 saved_CFLAGS="$CFLAGS"
4873 CFLAGS="$CFLAGS $w"
81ecdfbb 4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4875/* end confdefs.h. */
4876
4877int
4878main ()
4879{
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
81ecdfbb 4885if ac_fn_c_try_compile "$LINENO"; then :
c8cca39f 4886 WARN_CFLAGS="${WARN_CFLAGS} $w"
c8cca39f 4887fi
81ecdfbb 4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
4889 CFLAGS="$saved_CFLAGS"
4890 esac
4891 done
2232061b
MF
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
4893$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
c906108c
SS
4894fi
4895
4896
4897# Put a plausible default for CC_FOR_BUILD in Makefile.
4898if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
4899 AR_FOR_BUILD='$(AR)'
4900 AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
4901 CC_FOR_BUILD='$(CC)'
4902 CFLAGS_FOR_BUILD='$(CFLAGS)'
4903 RANLIB_FOR_BUILD='$(RANLIB)'
4904 LIBIBERTY_LIB=../../libiberty/libiberty.a
4905else
4906 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4907 AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
4908 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4909 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
4910 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4911 LIBIBERTY_LIB=
4912fi
4913
4914
c906108c 4915# Make sure we can run config.sub.
81ecdfbb 4916$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 4917 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
4918
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4920$as_echo_n "checking build system type... " >&6; }
d0ac1c44 4921if ${ac_cv_build+:} false; then :
81ecdfbb 4922 $as_echo_n "(cached) " >&6
b7026657 4923else
81ecdfbb
RW
4924 ac_build_alias=$build_alias
4925test "x$ac_build_alias" = x &&
4926 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4927test "x$ac_build_alias" = x &&
d0ac1c44 4928 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 4929ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 4930 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
4931
4932fi
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4934$as_echo "$ac_cv_build" >&6; }
4935case $ac_cv_build in
4936*-*-*) ;;
d0ac1c44 4937*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 4938esac
b7026657 4939build=$ac_cv_build
81ecdfbb
RW
4940ac_save_IFS=$IFS; IFS='-'
4941set x $ac_cv_build
4942shift
4943build_cpu=$1
4944build_vendor=$2
4945shift; shift
4946# Remember, the first character of IFS is used to create $*,
4947# except with old shells:
4948build_os=$*
4949IFS=$ac_save_IFS
4950case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4951
4952
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4954$as_echo_n "checking host system type... " >&6; }
d0ac1c44 4955if ${ac_cv_host+:} false; then :
81ecdfbb 4956 $as_echo_n "(cached) " >&6
b7026657 4957else
81ecdfbb
RW
4958 if test "x$host_alias" = x; then
4959 ac_cv_host=$ac_cv_build
4960else
4961 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 4962 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 4963fi
c906108c 4964
b7026657 4965fi
81ecdfbb
RW
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4967$as_echo "$ac_cv_host" >&6; }
4968case $ac_cv_host in
4969*-*-*) ;;
d0ac1c44 4970*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 4971esac
b7026657 4972host=$ac_cv_host
81ecdfbb
RW
4973ac_save_IFS=$IFS; IFS='-'
4974set x $ac_cv_host
4975shift
4976host_cpu=$1
4977host_vendor=$2
4978shift; shift
4979# Remember, the first character of IFS is used to create $*,
4980# except with old shells:
4981host_os=$*
4982IFS=$ac_save_IFS
4983case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4984
4985
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4987$as_echo_n "checking target system type... " >&6; }
d0ac1c44 4988if ${ac_cv_target+:} false; then :
81ecdfbb
RW
4989 $as_echo_n "(cached) " >&6
4990else
4991 if test "x$target_alias" = x; then
4992 ac_cv_target=$ac_cv_host
b7026657 4993else
81ecdfbb 4994 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 4995 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 4996fi
c906108c 4997
b7026657 4998fi
81ecdfbb
RW
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5000$as_echo "$ac_cv_target" >&6; }
5001case $ac_cv_target in
5002*-*-*) ;;
d0ac1c44 5003*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 5004esac
b7026657 5005target=$ac_cv_target
81ecdfbb
RW
5006ac_save_IFS=$IFS; IFS='-'
5007set x $ac_cv_target
5008shift
5009target_cpu=$1
5010target_vendor=$2
5011shift; shift
5012# Remember, the first character of IFS is used to create $*,
5013# except with old shells:
5014target_os=$*
5015IFS=$ac_save_IFS
5016case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c906108c 5017
c906108c 5018
b7026657
AC
5019# The aliases save the names the user supplied, while $host etc.
5020# will get canonicalized.
5021test -n "$target_alias" &&
c906108c
SS
5022 test "$program_prefix$program_suffix$program_transform_name" = \
5023 NONENONEs,x,x, &&
5024 program_prefix=${target_alias}-
81ecdfbb 5025
c906108c 5026test "$program_prefix" != NONE &&
81ecdfbb 5027 program_transform_name="s&^&$program_prefix&;$program_transform_name"
c906108c
SS
5028# Use a double $ so make ignores it.
5029test "$program_suffix" != NONE &&
81ecdfbb
RW
5030 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5031# Double any \ or $.
b7026657 5032# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
5033ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5034program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
c906108c
SS
5035
5036
5037. ${srcdir}/../../bfd/configure.host
5038
81ecdfbb 5039ac_config_headers="$ac_config_headers config.h:config.in"
c906108c
SS
5040
5041
b7026657
AC
5042ac_ext=c
5043ac_cpp='$CPP $CPPFLAGS'
5044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5048$as_echo_n "checking how to run the C preprocessor... " >&6; }
c906108c
SS
5049# On Suns, sometimes $CPP names a directory.
5050if test -n "$CPP" && test -d "$CPP"; then
5051 CPP=
5052fi
5053if test -z "$CPP"; then
d0ac1c44 5054 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 5055 $as_echo_n "(cached) " >&6
c906108c 5056else
b7026657
AC
5057 # Double quotes because CPP needs to be expanded
5058 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5059 do
5060 ac_preproc_ok=false
5061for ac_c_preproc_warn_flag in '' yes
5062do
5063 # Use a header file that comes with gcc, so configuring glibc
5064 # with a fresh cross-compiler works.
5065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5066 # <limits.h> exists even on freestanding compilers.
c906108c 5067 # On the NeXT, cc -E runs the code through the compiler's parser,
b7026657 5068 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5070/* end confdefs.h. */
5071#ifdef __STDC__
5072# include <limits.h>
5073#else
5074# include <assert.h>
5075#endif
5076 Syntax error
5077_ACEOF
81ecdfbb 5078if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 5079
81ecdfbb 5080else
b7026657
AC
5081 # Broken: fails on valid input.
5082continue
5083fi
d0ac1c44 5084rm -f conftest.err conftest.i conftest.$ac_ext
b7026657 5085
81ecdfbb 5086 # OK, works on sane cases. Now check whether nonexistent headers
b7026657 5087 # can be detected and how.
81ecdfbb 5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5089/* end confdefs.h. */
5090#include <ac_nonexistent.h>
5091_ACEOF
81ecdfbb 5092if ac_fn_c_try_cpp "$LINENO"; then :
b7026657
AC
5093 # Broken: success on invalid input.
5094continue
5095else
b7026657
AC
5096 # Passes both tests.
5097ac_preproc_ok=:
5098break
5099fi
d0ac1c44 5100rm -f conftest.err conftest.i conftest.$ac_ext
b7026657
AC
5101
5102done
5103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5104rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 5105if $ac_preproc_ok; then :
b7026657
AC
5106 break
5107fi
5108
5109 done
5110 ac_cv_prog_CPP=$CPP
5111
5112fi
5113 CPP=$ac_cv_prog_CPP
5114else
5115 ac_cv_prog_CPP=$CPP
5116fi
81ecdfbb
RW
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5118$as_echo "$CPP" >&6; }
b7026657
AC
5119ac_preproc_ok=false
5120for ac_c_preproc_warn_flag in '' yes
5121do
5122 # Use a header file that comes with gcc, so configuring glibc
5123 # with a fresh cross-compiler works.
5124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5125 # <limits.h> exists even on freestanding compilers.
5126 # On the NeXT, cc -E runs the code through the compiler's parser,
5127 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5129/* end confdefs.h. */
5130#ifdef __STDC__
5131# include <limits.h>
5132#else
5133# include <assert.h>
5134#endif
5135 Syntax error
5136_ACEOF
81ecdfbb 5137if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 5138
81ecdfbb 5139else
b7026657
AC
5140 # Broken: fails on valid input.
5141continue
5142fi
d0ac1c44 5143rm -f conftest.err conftest.i conftest.$ac_ext
b7026657 5144
81ecdfbb 5145 # OK, works on sane cases. Now check whether nonexistent headers
b7026657 5146 # can be detected and how.
81ecdfbb 5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5148/* end confdefs.h. */
5149#include <ac_nonexistent.h>
5150_ACEOF
81ecdfbb 5151if ac_fn_c_try_cpp "$LINENO"; then :
b7026657
AC
5152 # Broken: success on invalid input.
5153continue
5154else
b7026657
AC
5155 # Passes both tests.
5156ac_preproc_ok=:
5157break
5158fi
d0ac1c44 5159rm -f conftest.err conftest.i conftest.$ac_ext
b7026657
AC
5160
5161done
5162# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5163rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
5164if $ac_preproc_ok; then :
5165
c906108c 5166else
81ecdfbb
RW
5167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5169as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5170See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
5171fi
5172
5173ac_ext=c
5174ac_cpp='$CPP $CPPFLAGS'
5175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178
5179
81ecdfbb
RW
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5181$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 5182if ${ac_cv_path_GREP+:} false; then :
81ecdfbb 5183 $as_echo_n "(cached) " >&6
b7026657 5184else
81ecdfbb
RW
5185 if test -z "$GREP"; then
5186 ac_path_GREP_found=false
5187 # Loop through the user's path and test for each of PROGNAME-LIST
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5190do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_prog in grep ggrep; do
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5196 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
5197# Check for GNU ac_path_GREP and select it if it is found.
5198 # Check for GNU $ac_path_GREP
5199case `"$ac_path_GREP" --version 2>&1` in
5200*GNU*)
5201 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5202*)
5203 ac_count=0
5204 $as_echo_n 0123456789 >"conftest.in"
5205 while :
5206 do
5207 cat "conftest.in" "conftest.in" >"conftest.tmp"
5208 mv "conftest.tmp" "conftest.in"
5209 cp "conftest.in" "conftest.nl"
5210 $as_echo 'GREP' >> "conftest.nl"
5211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5213 as_fn_arith $ac_count + 1 && ac_count=$as_val
5214 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5215 # Best one so far, save it but keep looking for a better one
5216 ac_cv_path_GREP="$ac_path_GREP"
5217 ac_path_GREP_max=$ac_count
b7026657 5218 fi
81ecdfbb
RW
5219 # 10*(2^10) chars as input seems more than enough
5220 test $ac_count -gt 10 && break
5221 done
5222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5223esac
5224
5225 $ac_path_GREP_found && break 3
5226 done
5227 done
5228 done
5229IFS=$as_save_IFS
5230 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 5231 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5232 fi
5233else
5234 ac_cv_path_GREP=$GREP
5235fi
5236
b7026657 5237fi
81ecdfbb
RW
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5239$as_echo "$ac_cv_path_GREP" >&6; }
5240 GREP="$ac_cv_path_GREP"
b7026657
AC
5241
5242
81ecdfbb
RW
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5244$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5245if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 5246 $as_echo_n "(cached) " >&6
b7026657 5247else
81ecdfbb
RW
5248 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5249 then ac_cv_path_EGREP="$GREP -E"
5250 else
5251 if test -z "$EGREP"; then
5252 ac_path_EGREP_found=false
5253 # Loop through the user's path and test for each of PROGNAME-LIST
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_prog in egrep; do
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5262 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
5263# Check for GNU ac_path_EGREP and select it if it is found.
5264 # Check for GNU $ac_path_EGREP
5265case `"$ac_path_EGREP" --version 2>&1` in
5266*GNU*)
5267 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5268*)
5269 ac_count=0
5270 $as_echo_n 0123456789 >"conftest.in"
5271 while :
5272 do
5273 cat "conftest.in" "conftest.in" >"conftest.tmp"
5274 mv "conftest.tmp" "conftest.in"
5275 cp "conftest.in" "conftest.nl"
5276 $as_echo 'EGREP' >> "conftest.nl"
5277 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5279 as_fn_arith $ac_count + 1 && ac_count=$as_val
5280 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5281 # Best one so far, save it but keep looking for a better one
5282 ac_cv_path_EGREP="$ac_path_EGREP"
5283 ac_path_EGREP_max=$ac_count
5284 fi
5285 # 10*(2^10) chars as input seems more than enough
5286 test $ac_count -gt 10 && break
5287 done
5288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5289esac
5290
5291 $ac_path_EGREP_found && break 3
5292 done
5293 done
5294 done
5295IFS=$as_save_IFS
5296 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5297 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5298 fi
5299else
5300 ac_cv_path_EGREP=$EGREP
5301fi
5302
5303 fi
5304fi
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5306$as_echo "$ac_cv_path_EGREP" >&6; }
5307 EGREP="$ac_cv_path_EGREP"
5308
5309
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5311$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5312if ${ac_cv_header_stdc+:} false; then :
81ecdfbb
RW
5313 $as_echo_n "(cached) " >&6
5314else
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5316/* end confdefs.h. */
5317#include <stdlib.h>
5318#include <stdarg.h>
5319#include <string.h>
5320#include <float.h>
5321
5322int
5323main ()
5324{
5325
5326 ;
5327 return 0;
5328}
5329_ACEOF
81ecdfbb 5330if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
5331 ac_cv_header_stdc=yes
5332else
81ecdfbb 5333 ac_cv_header_stdc=no
b7026657 5334fi
81ecdfbb 5335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
5336
5337if test $ac_cv_header_stdc = yes; then
5338 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5340/* end confdefs.h. */
5341#include <string.h>
5342
5343_ACEOF
5344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5345 $EGREP "memchr" >/dev/null 2>&1; then :
5346
c906108c 5347else
b7026657 5348 ac_cv_header_stdc=no
c906108c
SS
5349fi
5350rm -f conftest*
b7026657 5351
c906108c 5352fi
b7026657
AC
5353
5354if test $ac_cv_header_stdc = yes; then
5355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5357/* end confdefs.h. */
5358#include <stdlib.h>
5359
5360_ACEOF
5361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5362 $EGREP "free" >/dev/null 2>&1; then :
5363
b7026657
AC
5364else
5365 ac_cv_header_stdc=no
c906108c
SS
5366fi
5367rm -f conftest*
b7026657 5368
c906108c 5369fi
b7026657
AC
5370
5371if test $ac_cv_header_stdc = yes; then
5372 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5373 if test "$cross_compiling" = yes; then :
b7026657 5374 :
c906108c 5375else
81ecdfbb 5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5377/* end confdefs.h. */
5378#include <ctype.h>
81ecdfbb 5379#include <stdlib.h>
b7026657
AC
5380#if ((' ' & 0x0FF) == 0x020)
5381# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5382# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5383#else
5384# define ISLOWER(c) \
5385 (('a' <= (c) && (c) <= 'i') \
5386 || ('j' <= (c) && (c) <= 'r') \
5387 || ('s' <= (c) && (c) <= 'z'))
5388# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5389#endif
5390
5391#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5392int
5393main ()
5394{
5395 int i;
5396 for (i = 0; i < 256; i++)
5397 if (XOR (islower (i), ISLOWER (i))
5398 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5399 return 2;
5400 return 0;
b7026657
AC
5401}
5402_ACEOF
81ecdfbb 5403if ac_fn_c_try_run "$LINENO"; then :
b7026657 5404
81ecdfbb
RW
5405else
5406 ac_cv_header_stdc=no
b7026657 5407fi
81ecdfbb
RW
5408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5409 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 5410fi
81ecdfbb 5411
b7026657
AC
5412fi
5413fi
81ecdfbb
RW
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5415$as_echo "$ac_cv_header_stdc" >&6; }
b7026657
AC
5416if test $ac_cv_header_stdc = yes; then
5417
81ecdfbb 5418$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b7026657 5419
c906108c 5420fi
c906108c 5421
b7026657 5422# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
5423for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5424 inttypes.h stdint.h unistd.h
5425do :
5426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5427ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5428"
d0ac1c44 5429if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
5430 cat >>confdefs.h <<_ACEOF
5431#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5432_ACEOF
b7026657 5433
81ecdfbb 5434fi
b7026657 5435
81ecdfbb 5436done
b7026657
AC
5437
5438
81ecdfbb
RW
5439for ac_header in stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h
5440do :
5441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5442ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 5443if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
5444 cat >>confdefs.h <<_ACEOF
5445#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5446_ACEOF
b7026657 5447
81ecdfbb 5448fi
b7026657 5449
81ecdfbb 5450done
b7026657 5451
81ecdfbb
RW
5452ac_header_dirent=no
5453for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5454 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5456$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0ac1c44 5457if eval \${$as_ac_Header+:} false; then :
81ecdfbb 5458 $as_echo_n "(cached) " >&6
b7026657 5459else
81ecdfbb 5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5461/* end confdefs.h. */
81ecdfbb
RW
5462#include <sys/types.h>
5463#include <$ac_hdr>
b7026657 5464
81ecdfbb
RW
5465int
5466main ()
5467{
5468if ((DIR *) 0)
5469return 0;
5470 ;
5471 return 0;
5472}
b7026657 5473_ACEOF
81ecdfbb 5474if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
5475 eval "$as_ac_Header=yes"
5476else
81ecdfbb 5477 eval "$as_ac_Header=no"
c906108c 5478fi
81ecdfbb 5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 5480fi
81ecdfbb
RW
5481eval ac_res=\$$as_ac_Header
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5483$as_echo "$ac_res" >&6; }
d0ac1c44 5484if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
b7026657 5485 cat >>confdefs.h <<_ACEOF
81ecdfbb 5486#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
b7026657
AC
5487_ACEOF
5488
81ecdfbb 5489ac_header_dirent=$ac_hdr; break
c906108c 5490fi
b7026657 5491
c906108c
SS
5492done
5493# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5494if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5496$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 5497if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 5498 $as_echo_n "(cached) " >&6
b7026657
AC
5499else
5500 ac_func_search_save_LIBS=$LIBS
81ecdfbb 5501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5502/* end confdefs.h. */
5503
81ecdfbb
RW
5504/* Override any GCC internal prototype to avoid an error.
5505 Use char because int might match the return type of a GCC
5506 builtin and then its argument prototype would still apply. */
b7026657
AC
5507#ifdef __cplusplus
5508extern "C"
5509#endif
b7026657
AC
5510char opendir ();
5511int
5512main ()
5513{
81ecdfbb 5514return opendir ();
b7026657
AC
5515 ;
5516 return 0;
5517}
5518_ACEOF
81ecdfbb
RW
5519for ac_lib in '' dir; do
5520 if test -z "$ac_lib"; then
5521 ac_res="none required"
5522 else
5523 ac_res=-l$ac_lib
b7026657 5524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
5525 fi
5526 if ac_fn_c_try_link "$LINENO"; then :
5527 ac_cv_search_opendir=$ac_res
5528fi
5529rm -f core conftest.err conftest.$ac_objext \
5530 conftest$ac_exeext
d0ac1c44 5531 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
5532 break
5533fi
5534done
d0ac1c44 5535if ${ac_cv_search_opendir+:} false; then :
b7026657 5536
c906108c 5537else
81ecdfbb 5538 ac_cv_search_opendir=no
b7026657 5539fi
81ecdfbb 5540rm conftest.$ac_ext
b7026657
AC
5541LIBS=$ac_func_search_save_LIBS
5542fi
81ecdfbb
RW
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5544$as_echo "$ac_cv_search_opendir" >&6; }
5545ac_res=$ac_cv_search_opendir
5546if test "$ac_res" != no; then :
5547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b7026657 5548
c906108c
SS
5549fi
5550
5551else
81ecdfbb
RW
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5553$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 5554if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 5555 $as_echo_n "(cached) " >&6
c906108c 5556else
b7026657 5557 ac_func_search_save_LIBS=$LIBS
81ecdfbb 5558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5559/* end confdefs.h. */
5560
81ecdfbb
RW
5561/* Override any GCC internal prototype to avoid an error.
5562 Use char because int might match the return type of a GCC
5563 builtin and then its argument prototype would still apply. */
b7026657
AC
5564#ifdef __cplusplus
5565extern "C"
5566#endif
b7026657
AC
5567char opendir ();
5568int
5569main ()
5570{
81ecdfbb 5571return opendir ();
b7026657
AC
5572 ;
5573 return 0;
5574}
5575_ACEOF
81ecdfbb
RW
5576for ac_lib in '' x; do
5577 if test -z "$ac_lib"; then
5578 ac_res="none required"
5579 else
5580 ac_res=-l$ac_lib
b7026657 5581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
5582 fi
5583 if ac_fn_c_try_link "$LINENO"; then :
5584 ac_cv_search_opendir=$ac_res
5585fi
5586rm -f core conftest.err conftest.$ac_objext \
5587 conftest$ac_exeext
d0ac1c44 5588 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
5589 break
5590fi
5591done
d0ac1c44 5592if ${ac_cv_search_opendir+:} false; then :
b7026657 5593
c906108c 5594else
81ecdfbb 5595 ac_cv_search_opendir=no
b7026657 5596fi
81ecdfbb 5597rm conftest.$ac_ext
b7026657 5598LIBS=$ac_func_search_save_LIBS
c906108c 5599fi
81ecdfbb
RW
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5601$as_echo "$ac_cv_search_opendir" >&6; }
5602ac_res=$ac_cv_search_opendir
5603if test "$ac_res" != no; then :
5604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
c906108c
SS
5605
5606fi
5607
b7026657 5608fi
c906108c
SS
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
b7026657
AC
5619
5620if test -n "$ac_tool_prefix"; then
5621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5622set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5625if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 5626 $as_echo_n "(cached) " >&6
c906108c
SS
5627else
5628 if test -n "$RANLIB"; then
5629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5630else
b7026657
AC
5631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632for as_dir in $PATH
5633do
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
81ecdfbb 5636 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 5638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5640 break 2
5641 fi
5642done
81ecdfbb
RW
5643 done
5644IFS=$as_save_IFS
b7026657 5645
c906108c
SS
5646fi
5647fi
b7026657 5648RANLIB=$ac_cv_prog_RANLIB
c906108c 5649if test -n "$RANLIB"; then
81ecdfbb
RW
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5651$as_echo "$RANLIB" >&6; }
b7026657 5652else
81ecdfbb
RW
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654$as_echo "no" >&6; }
b7026657
AC
5655fi
5656
81ecdfbb 5657
b7026657
AC
5658fi
5659if test -z "$ac_cv_prog_RANLIB"; then
5660 ac_ct_RANLIB=$RANLIB
5661 # Extract the first word of "ranlib", so it can be a program name with args.
5662set dummy ranlib; ac_word=$2
81ecdfbb
RW
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5665if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 5666 $as_echo_n "(cached) " >&6
b7026657
AC
5667else
5668 if test -n "$ac_ct_RANLIB"; then
5669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
81ecdfbb 5676 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 5678 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5680 break 2
5681 fi
5682done
81ecdfbb
RW
5683 done
5684IFS=$as_save_IFS
b7026657 5685
b7026657
AC
5686fi
5687fi
5688ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5689if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5691$as_echo "$ac_ct_RANLIB" >&6; }
b7026657 5692else
81ecdfbb
RW
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }
b7026657
AC
5695fi
5696
81ecdfbb
RW
5697 if test "x$ac_ct_RANLIB" = x; then
5698 RANLIB=":"
5699 else
5700 case $cross_compiling:$ac_tool_warned in
5701yes:)
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5704ac_tool_warned=yes ;;
5705esac
5706 RANLIB=$ac_ct_RANLIB
5707 fi
c906108c 5708else
b7026657 5709 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
5710fi
5711
5712
81ecdfbb
RW
5713ac_config_files="$ac_config_files Makefile"
5714
5715ac_config_commands="$ac_config_commands default"
5716
b7026657 5717cat >confcache <<\_ACEOF
c906108c
SS
5718# This file is a shell script that caches the results of configure
5719# tests run on this system so they can be shared between configure
b7026657
AC
5720# scripts and configure runs, see configure's option --config-cache.
5721# It is not useful on other systems. If it contains results you don't
5722# want to keep, you may remove or edit it.
c906108c 5723#
b7026657
AC
5724# config.status only pays attention to the cache file if you give it
5725# the --recheck option to rerun configure.
c906108c 5726#
b7026657
AC
5727# `ac_cv_env_foo' variables (set or unset) will be overridden when
5728# loading this file, other *unset* `ac_cv_foo' will be assigned the
5729# following values.
5730
5731_ACEOF
5732
c906108c
SS
5733# The following way of writing the cache mishandles newlines in values,
5734# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 5735# So, we kill variables containing newlines.
c906108c
SS
5736# Ultrix sh set writes to stderr and can't be redirected directly,
5737# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
5738(
5739 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5740 eval ac_val=\$$ac_var
5741 case $ac_val in #(
5742 *${as_nl}*)
5743 case $ac_var in #(
5744 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5745$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5746 esac
5747 case $ac_var in #(
5748 _ | IFS | as_nl) ;; #(
5749 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5750 *) { eval $ac_var=; unset $ac_var;} ;;
5751 esac ;;
5752 esac
5753 done
5754
b7026657 5755 (set) 2>&1 |
81ecdfbb
RW
5756 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5757 *${as_nl}ac_space=\ *)
5758 # `set' does not quote correctly, so add quotes: double-quote
5759 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
5760 sed -n \
5761 "s/'/'\\\\''/g;
5762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 5763 ;; #(
b7026657
AC
5764 *)
5765 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 5766 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 5767 ;;
81ecdfbb
RW
5768 esac |
5769 sort
5770) |
b7026657 5771 sed '
81ecdfbb 5772 /^ac_cv_env_/b end
b7026657 5773 t clear
81ecdfbb 5774 :clear
b7026657
AC
5775 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5776 t end
81ecdfbb
RW
5777 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5778 :end' >>confcache
5779if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5780 if test -w "$cache_file"; then
d0ac1c44 5781 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5783$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
5784 if test ! -f "$cache_file" || test -h "$cache_file"; then
5785 cat confcache >"$cache_file"
5786 else
5787 case $cache_file in #(
5788 */* | ?:*)
5789 mv -f confcache "$cache_file"$$ &&
5790 mv -f "$cache_file"$$ "$cache_file" ;; #(
5791 *)
5792 mv -f confcache "$cache_file" ;;
5793 esac
5794 fi
5795 fi
c906108c 5796 else
81ecdfbb
RW
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5798$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
5799 fi
5800fi
5801rm -f confcache
5802
c906108c
SS
5803test "x$prefix" = xNONE && prefix=$ac_default_prefix
5804# Let make expand exec_prefix.
5805test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5806
c906108c
SS
5807DEFS=-DHAVE_CONFIG_H
5808
b7026657
AC
5809ac_libobjs=
5810ac_ltlibobjs=
d0ac1c44 5811U=
b7026657
AC
5812for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5813 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
5814 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5815 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5816 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5817 # will be set to the directory where LIBOBJS objects are built.
5818 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5819 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
5820done
5821LIBOBJS=$ac_libobjs
c906108c 5822
b7026657
AC
5823LTLIBOBJS=$ac_ltlibobjs
5824
5825
5826
d0ac1c44 5827: "${CONFIG_STATUS=./config.status}"
81ecdfbb 5828ac_write_fail=0
b7026657
AC
5829ac_clean_files_save=$ac_clean_files
5830ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5832$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5833as_write_fail=0
5834cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
5835#! $SHELL
5836# Generated by $as_me.
c906108c 5837# Run this file to recreate the current configuration.
c906108c 5838# Compiler output produced by configure, useful for debugging
b7026657
AC
5839# configure, is in config.log if it exists.
5840
5841debug=false
5842ac_cs_recheck=false
5843ac_cs_silent=false
b7026657 5844
81ecdfbb
RW
5845SHELL=\${CONFIG_SHELL-$SHELL}
5846export SHELL
5847_ASEOF
5848cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5849## -------------------- ##
5850## M4sh Initialization. ##
5851## -------------------- ##
5852
5853# Be more Bourne compatible
5854DUALCASE=1; export DUALCASE # for MKS sh
5855if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
5856 emulate sh
5857 NULLCMD=:
81ecdfbb 5858 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
5859 # is contrary to our usage. Disable this feature.
5860 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
5861 setopt NO_GLOB_SUBST
5862else
5863 case `(set -o) 2>/dev/null` in #(
5864 *posix*) :
5865 set -o posix ;; #(
5866 *) :
5867 ;;
5868esac
b7026657 5869fi
c906108c 5870
81ecdfbb
RW
5871
5872as_nl='
5873'
5874export as_nl
5875# Printing a long string crashes Solaris 7 /usr/bin/printf.
5876as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5877as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5878as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5879# Prefer a ksh shell builtin over an external printf program on Solaris,
5880# but without wasting forks for bash or zsh.
5881if test -z "$BASH_VERSION$ZSH_VERSION" \
5882 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5883 as_echo='print -r --'
5884 as_echo_n='print -rn --'
5885elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5886 as_echo='printf %s\n'
5887 as_echo_n='printf %s'
b7026657 5888else
81ecdfbb
RW
5889 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5890 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5891 as_echo_n='/usr/ucb/echo -n'
5892 else
5893 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5894 as_echo_n_body='eval
5895 arg=$1;
5896 case $arg in #(
5897 *"$as_nl"*)
5898 expr "X$arg" : "X\\(.*\\)$as_nl";
5899 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5900 esac;
5901 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5902 '
5903 export as_echo_n_body
5904 as_echo_n='sh -c $as_echo_n_body as_echo'
5905 fi
5906 export as_echo_body
5907 as_echo='sh -c $as_echo_body as_echo'
5908fi
5909
5910# The user is always right.
5911if test "${PATH_SEPARATOR+set}" != set; then
5912 PATH_SEPARATOR=:
5913 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5914 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5915 PATH_SEPARATOR=';'
5916 }
b7026657
AC
5917fi
5918
5919
81ecdfbb
RW
5920# IFS
5921# We need space, tab and new line, in precisely that order. Quoting is
5922# there to prevent editors from complaining about space-tab.
5923# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5924# splitting by setting IFS to empty value.)
5925IFS=" "" $as_nl"
5926
5927# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 5928as_myself=
81ecdfbb
RW
5929case $0 in #((
5930 *[\\/]* ) as_myself=$0 ;;
5931 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5937 done
5938IFS=$as_save_IFS
5939
5940 ;;
5941esac
5942# We did not find ourselves, most probably we were run as `sh COMMAND'
5943# in which case we are not to be found in the path.
5944if test "x$as_myself" = x; then
5945 as_myself=$0
5946fi
5947if test ! -f "$as_myself"; then
5948 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5949 exit 1
5950fi
5951
5952# Unset variables that we do not need and which cause bugs (e.g. in
5953# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5954# suppresses any "Segmentation fault" message there. '((' could
5955# trigger a bug in pdksh 5.2.14.
5956for as_var in BASH_ENV ENV MAIL MAILPATH
5957do eval test x\${$as_var+set} = xset \
5958 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5959done
b7026657
AC
5960PS1='$ '
5961PS2='> '
5962PS4='+ '
5963
5964# NLS nuisances.
81ecdfbb
RW
5965LC_ALL=C
5966export LC_ALL
5967LANGUAGE=C
5968export LANGUAGE
5969
5970# CDPATH.
5971(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5972
5973
d0ac1c44
SM
5974# as_fn_error STATUS ERROR [LINENO LOG_FD]
5975# ----------------------------------------
81ecdfbb
RW
5976# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5977# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 5978# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
5979as_fn_error ()
5980{
d0ac1c44
SM
5981 as_status=$1; test $as_status -eq 0 && as_status=1
5982 if test "$4"; then
5983 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5984 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 5985 fi
d0ac1c44 5986 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
5987 as_fn_exit $as_status
5988} # as_fn_error
5989
5990
5991# as_fn_set_status STATUS
5992# -----------------------
5993# Set $? to STATUS, without forking.
5994as_fn_set_status ()
5995{
5996 return $1
5997} # as_fn_set_status
5998
5999# as_fn_exit STATUS
6000# -----------------
6001# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6002as_fn_exit ()
6003{
6004 set +e
6005 as_fn_set_status $1
6006 exit $1
6007} # as_fn_exit
6008
6009# as_fn_unset VAR
6010# ---------------
6011# Portably unset VAR.
6012as_fn_unset ()
6013{
6014 { eval $1=; unset $1;}
6015}
6016as_unset=as_fn_unset
6017# as_fn_append VAR VALUE
6018# ----------------------
6019# Append the text in VALUE to the end of the definition contained in VAR. Take
6020# advantage of any shell optimizations that allow amortized linear growth over
6021# repeated appends, instead of the typical quadratic growth present in naive
6022# implementations.
6023if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6024 eval 'as_fn_append ()
6025 {
6026 eval $1+=\$2
6027 }'
6028else
6029 as_fn_append ()
6030 {
6031 eval $1=\$$1\$2
6032 }
6033fi # as_fn_append
6034
6035# as_fn_arith ARG...
6036# ------------------
6037# Perform arithmetic evaluation on the ARGs, and store the result in the
6038# global $as_val. Take advantage of shells that can avoid forks. The arguments
6039# must be portable across $(()) and expr.
6040if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6041 eval 'as_fn_arith ()
6042 {
6043 as_val=$(( $* ))
6044 }'
6045else
6046 as_fn_arith ()
6047 {
6048 as_val=`expr "$@" || test $? -eq 1`
6049 }
6050fi # as_fn_arith
6051
c906108c 6052
81ecdfbb
RW
6053if expr a : '\(a\)' >/dev/null 2>&1 &&
6054 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
6055 as_expr=expr
6056else
6057 as_expr=false
6058fi
c906108c 6059
81ecdfbb 6060if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
6061 as_basename=basename
6062else
6063 as_basename=false
6064fi
c906108c 6065
81ecdfbb
RW
6066if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6067 as_dirname=dirname
6068else
6069 as_dirname=false
6070fi
c906108c 6071
81ecdfbb 6072as_me=`$as_basename -- "$0" ||
b7026657
AC
6073$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6074 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
6075 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6076$as_echo X/"$0" |
6077 sed '/^.*\/\([^/][^/]*\)\/*$/{
6078 s//\1/
6079 q
6080 }
6081 /^X\/\(\/\/\)$/{
6082 s//\1/
6083 q
6084 }
6085 /^X\/\(\/\).*/{
6086 s//\1/
6087 q
6088 }
6089 s/.*/./; q'`
b7026657 6090
b7026657
AC
6091# Avoid depending upon Character Ranges.
6092as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6093as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6094as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6095as_cr_digits='0123456789'
6096as_cr_alnum=$as_cr_Letters$as_cr_digits
6097
81ecdfbb
RW
6098ECHO_C= ECHO_N= ECHO_T=
6099case `echo -n x` in #(((((
6100-n*)
6101 case `echo 'xy\c'` in
6102 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6103 xy) ECHO_C='\c';;
6104 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6105 ECHO_T=' ';;
6106 esac;;
6107*)
6108 ECHO_N='-n';;
b7026657
AC
6109esac
6110
81ecdfbb
RW
6111rm -f conf$$ conf$$.exe conf$$.file
6112if test -d conf$$.dir; then
6113 rm -f conf$$.dir/conf$$.file
b7026657 6114else
81ecdfbb
RW
6115 rm -f conf$$.dir
6116 mkdir conf$$.dir 2>/dev/null
b7026657 6117fi
81ecdfbb
RW
6118if (echo >conf$$.file) 2>/dev/null; then
6119 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 6120 as_ln_s='ln -s'
81ecdfbb
RW
6121 # ... but there are two gotchas:
6122 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6123 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 6124 # In both cases, we have to default to `cp -pR'.
81ecdfbb 6125 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 6126 as_ln_s='cp -pR'
81ecdfbb
RW
6127 elif ln conf$$.file conf$$ 2>/dev/null; then
6128 as_ln_s=ln
6129 else
d0ac1c44 6130 as_ln_s='cp -pR'
c906108c 6131 fi
b7026657 6132else
d0ac1c44 6133 as_ln_s='cp -pR'
b7026657 6134fi
81ecdfbb
RW
6135rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6136rmdir conf$$.dir 2>/dev/null
6137
6138
6139# as_fn_mkdir_p
6140# -------------
6141# Create "$as_dir" as a directory, including parents if necessary.
6142as_fn_mkdir_p ()
6143{
6144
6145 case $as_dir in #(
6146 -*) as_dir=./$as_dir;;
6147 esac
6148 test -d "$as_dir" || eval $as_mkdir_p || {
6149 as_dirs=
6150 while :; do
6151 case $as_dir in #(
6152 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6153 *) as_qdir=$as_dir;;
6154 esac
6155 as_dirs="'$as_qdir' $as_dirs"
6156 as_dir=`$as_dirname -- "$as_dir" ||
6157$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6158 X"$as_dir" : 'X\(//\)[^/]' \| \
6159 X"$as_dir" : 'X\(//\)$' \| \
6160 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6161$as_echo X"$as_dir" |
6162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6163 s//\1/
6164 q
6165 }
6166 /^X\(\/\/\)[^/].*/{
6167 s//\1/
6168 q
6169 }
6170 /^X\(\/\/\)$/{
6171 s//\1/
6172 q
6173 }
6174 /^X\(\/\).*/{
6175 s//\1/
6176 q
6177 }
6178 s/.*/./; q'`
6179 test -d "$as_dir" && break
6180 done
6181 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 6182 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b7026657 6183
81ecdfbb
RW
6184
6185} # as_fn_mkdir_p
b7026657 6186if mkdir -p . 2>/dev/null; then
81ecdfbb 6187 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
6188else
6189 test -d ./-p && rmdir ./-p
6190 as_mkdir_p=false
6191fi
6192
d0ac1c44
SM
6193
6194# as_fn_executable_p FILE
6195# -----------------------
6196# Test if FILE is an executable regular file.
6197as_fn_executable_p ()
6198{
6199 test -f "$1" && test -x "$1"
6200} # as_fn_executable_p
6201as_test_x='test -x'
6202as_executable_p=as_fn_executable_p
b7026657
AC
6203
6204# Sed expression to map a string onto a valid CPP name.
6205as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6206
6207# Sed expression to map a string onto a valid variable name.
6208as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6209
6210
b7026657 6211exec 6>&1
81ecdfbb
RW
6212## ----------------------------------- ##
6213## Main body of $CONFIG_STATUS script. ##
6214## ----------------------------------- ##
6215_ASEOF
6216test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6217
6218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6219# Save the log message, to keep $0 and so on meaningful, and to
b7026657 6220# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
6221# values after options handling.
6222ac_log="
b7026657 6223This file was extended by $as_me, which was
d0ac1c44 6224generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
6225
6226 CONFIG_FILES = $CONFIG_FILES
6227 CONFIG_HEADERS = $CONFIG_HEADERS
6228 CONFIG_LINKS = $CONFIG_LINKS
6229 CONFIG_COMMANDS = $CONFIG_COMMANDS
6230 $ $0 $@
6231
81ecdfbb
RW
6232on `(hostname || uname -n) 2>/dev/null | sed 1q`
6233"
6234
b7026657
AC
6235_ACEOF
6236
81ecdfbb
RW
6237case $ac_config_files in *"
6238"*) set x $ac_config_files; shift; ac_config_files=$*;;
6239esac
b7026657 6240
81ecdfbb
RW
6241case $ac_config_headers in *"
6242"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6243esac
b7026657 6244
b7026657 6245
81ecdfbb
RW
6246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6247# Files that config.status was made for.
6248config_files="$ac_config_files"
6249config_headers="$ac_config_headers"
6250config_commands="$ac_config_commands"
b7026657 6251
81ecdfbb 6252_ACEOF
b7026657 6253
81ecdfbb 6254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 6255ac_cs_usage="\
81ecdfbb
RW
6256\`$as_me' instantiates files and other configuration actions
6257from templates according to the current configuration. Unless the files
6258and actions are specified as TAGs, all are instantiated by default.
b7026657 6259
81ecdfbb 6260Usage: $0 [OPTION]... [TAG]...
b7026657
AC
6261
6262 -h, --help print this help, then exit
81ecdfbb 6263 -V, --version print version number and configuration settings, then exit
d0ac1c44 6264 --config print configuration, then exit
81ecdfbb
RW
6265 -q, --quiet, --silent
6266 do not print progress messages
b7026657
AC
6267 -d, --debug don't remove temporary files
6268 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
6269 --file=FILE[:TEMPLATE]
6270 instantiate the configuration file FILE
6271 --header=FILE[:TEMPLATE]
6272 instantiate the configuration header FILE
b7026657
AC
6273
6274Configuration files:
6275$config_files
6276
6277Configuration headers:
6278$config_headers
6279
6280Configuration commands:
6281$config_commands
6282
81ecdfbb 6283Report bugs to the package provider."
b7026657 6284
81ecdfbb
RW
6285_ACEOF
6286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 6287ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
6288ac_cs_version="\\
6289config.status
d0ac1c44
SM
6290configured by $0, generated by GNU Autoconf 2.69,
6291 with options \\"\$ac_cs_config\\"
b7026657 6292
d0ac1c44 6293Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
6294This config.status script is free software; the Free Software Foundation
6295gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
6296
6297ac_pwd='$ac_pwd'
6298srcdir='$srcdir'
6299INSTALL='$INSTALL'
6300test -n "\$AWK" || AWK=awk
b7026657
AC
6301_ACEOF
6302
81ecdfbb
RW
6303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6304# The default lists apply if the user does not specify any file.
b7026657
AC
6305ac_need_defaults=:
6306while test $# != 0
6307do
6308 case $1 in
d0ac1c44 6309 --*=?*)
81ecdfbb
RW
6310 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6311 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
6312 ac_shift=:
6313 ;;
d0ac1c44
SM
6314 --*=)
6315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6316 ac_optarg=
6317 ac_shift=:
6318 ;;
81ecdfbb 6319 *)
b7026657
AC
6320 ac_option=$1
6321 ac_optarg=$2
6322 ac_shift=shift
6323 ;;
b7026657
AC
6324 esac
6325
6326 case $ac_option in
6327 # Handling of the options.
b7026657
AC
6328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6329 ac_cs_recheck=: ;;
81ecdfbb
RW
6330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6331 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
6332 --config | --confi | --conf | --con | --co | --c )
6333 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 6334 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
6335 debug=: ;;
6336 --file | --fil | --fi | --f )
6337 $ac_shift
81ecdfbb
RW
6338 case $ac_optarg in
6339 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 6340 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
6341 esac
6342 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
6343 ac_need_defaults=false;;
6344 --header | --heade | --head | --hea )
6345 $ac_shift
81ecdfbb
RW
6346 case $ac_optarg in
6347 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6348 esac
6349 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 6350 ac_need_defaults=false;;
81ecdfbb
RW
6351 --he | --h)
6352 # Conflict between --help and --header
d0ac1c44 6353 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
6354Try \`$0 --help' for more information.";;
6355 --help | --hel | -h )
6356 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
6357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6358 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6359 ac_cs_silent=: ;;
6360
6361 # This is an error.
d0ac1c44 6362 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 6363Try \`$0 --help' for more information." ;;
b7026657 6364
81ecdfbb
RW
6365 *) as_fn_append ac_config_targets " $1"
6366 ac_need_defaults=false ;;
b7026657
AC
6367
6368 esac
6369 shift
c906108c 6370done
b7026657
AC
6371
6372ac_configure_extra_args=
6373
6374if $ac_cs_silent; then
6375 exec 6>/dev/null
6376 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 6377fi
c906108c 6378
b7026657 6379_ACEOF
81ecdfbb 6380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 6381if \$ac_cs_recheck; then
d0ac1c44 6382 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
6383 shift
6384 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6385 CONFIG_SHELL='$SHELL'
6386 export CONFIG_SHELL
6387 exec "\$@"
b7026657 6388fi
c906108c 6389
b7026657 6390_ACEOF
81ecdfbb
RW
6391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6392exec 5>>config.log
6393{
6394 echo
6395 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6396## Running $as_me. ##
6397_ASBOX
6398 $as_echo "$ac_log"
6399} >&5
b7026657 6400
81ecdfbb
RW
6401_ACEOF
6402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6403_ACEOF
b7026657 6404
81ecdfbb 6405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 6406
81ecdfbb 6407# Handling of arguments.
b7026657
AC
6408for ac_config_target in $ac_config_targets
6409do
81ecdfbb
RW
6410 case $ac_config_target in
6411 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6412 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6413 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6414
d0ac1c44 6415 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 6416 esac
b7026657
AC
6417done
6418
81ecdfbb 6419
b7026657
AC
6420# If the user did not use the arguments to specify the items to instantiate,
6421# then the envvar interface is used. Set only those that are not.
6422# We use the long form for the default assignment because of an extremely
6423# bizarre bug on SunOS 4.1.3.
6424if $ac_need_defaults; then
6425 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6426 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6427 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6428fi
c906108c 6429
b7026657 6430# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 6431# simply because there is no reason against having it here, and in addition,
b7026657 6432# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
6433# Hook for its removal unless debugging.
6434# Note that there is a small window in which the directory will not be cleaned:
6435# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
6436$debug ||
6437{
d0ac1c44 6438 tmp= ac_tmp=
81ecdfbb 6439 trap 'exit_status=$?
d0ac1c44
SM
6440 : "${ac_tmp:=$tmp}"
6441 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
6442' 0
6443 trap 'as_fn_exit 1' 1 2 13 15
b7026657 6444}
b7026657
AC
6445# Create a (secure) tmp directory for tmp files.
6446
6447{
81ecdfbb 6448 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 6449 test -d "$tmp"
b7026657
AC
6450} ||
6451{
81ecdfbb
RW
6452 tmp=./conf$$-$RANDOM
6453 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
6454} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6455ac_tmp=$tmp
81ecdfbb
RW
6456
6457# Set up the scripts for CONFIG_FILES section.
6458# No need to generate them if there are no CONFIG_FILES.
6459# This happens for instance with `./config.status config.h'.
6460if test -n "$CONFIG_FILES"; then
6461
6462
6463ac_cr=`echo X | tr X '\015'`
6464# On cygwin, bash can eat \r inside `` if the user requested igncr.
6465# But we know of no other shell where ac_cr would be empty at this
6466# point, so we can use a bashism as a fallback.
6467if test "x$ac_cr" = x; then
6468 eval ac_cr=\$\'\\r\'
6469fi
6470ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6471if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 6472 ac_cs_awk_cr='\\r'
81ecdfbb
RW
6473else
6474 ac_cs_awk_cr=$ac_cr
6475fi
6476
d0ac1c44 6477echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
6478_ACEOF
6479
6480
b7026657 6481{
81ecdfbb
RW
6482 echo "cat >conf$$subs.awk <<_ACEOF" &&
6483 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6484 echo "_ACEOF"
6485} >conf$$subs.sh ||
d0ac1c44
SM
6486 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6487ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
6488ac_delim='%!_!# '
6489for ac_last_try in false false false false false :; do
6490 . ./conf$$subs.sh ||
d0ac1c44 6491 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
6492
6493 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6494 if test $ac_delim_n = $ac_delim_num; then
6495 break
6496 elif $ac_last_try; then
d0ac1c44 6497 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
6498 else
6499 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6500 fi
6501done
6502rm -f conf$$subs.sh
b7026657 6503
81ecdfbb 6504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 6505cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b7026657 6506_ACEOF
81ecdfbb
RW
6507sed -n '
6508h
6509s/^/S["/; s/!.*/"]=/
6510p
6511g
6512s/^[^!]*!//
6513:repl
6514t repl
6515s/'"$ac_delim"'$//
6516t delim
6517:nl
6518h
d0ac1c44 6519s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
6520t more1
6521s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6522p
6523n
6524b repl
6525:more1
6526s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6527p
6528g
6529s/.\{148\}//
6530t nl
6531:delim
6532h
d0ac1c44 6533s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
6534t more2
6535s/["\\]/\\&/g; s/^/"/; s/$/"/
6536p
6537b
6538:more2
6539s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6540p
6541g
6542s/.\{148\}//
6543t delim
6544' <conf$$subs.awk | sed '
6545/^[^""]/{
6546 N
6547 s/\n//
6548}
6549' >>$CONFIG_STATUS || ac_write_fail=1
6550rm -f conf$$subs.awk
6551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6552_ACAWK
d0ac1c44 6553cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
6554 for (key in S) S_is_set[key] = 1
6555 FS = "\a"
b7026657 6556
81ecdfbb
RW
6557}
6558{
6559 line = $ 0
6560 nfields = split(line, field, "@")
6561 substed = 0
6562 len = length(field[1])
6563 for (i = 2; i < nfields; i++) {
6564 key = field[i]
6565 keylen = length(key)
6566 if (S_is_set[key]) {
6567 value = S[key]
6568 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6569 len += length(value) + length(field[++i])
6570 substed = 1
6571 } else
6572 len += 1 + keylen
6573 }
6574
6575 print line
6576}
c906108c 6577
81ecdfbb
RW
6578_ACAWK
6579_ACEOF
6580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6581if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6582 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6583else
6584 cat
d0ac1c44
SM
6585fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6586 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 6587_ACEOF
b7026657 6588
d0ac1c44
SM
6589# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6590# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
6591# trailing colons and then remove the whole line if VPATH becomes empty
6592# (actually we leave an empty line to preserve line numbers).
6593if test "x$srcdir" = x.; then
d0ac1c44
SM
6594 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6595h
6596s///
6597s/^/:/
6598s/[ ]*$/:/
6599s/:\$(srcdir):/:/g
6600s/:\${srcdir}:/:/g
6601s/:@srcdir@:/:/g
6602s/^:*//
81ecdfbb 6603s/:*$//
d0ac1c44
SM
6604x
6605s/\(=[ ]*\).*/\1/
6606G
6607s/\n//
81ecdfbb
RW
6608s/^[^=]*=[ ]*$//
6609}'
6610fi
6611
6612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6613fi # test -n "$CONFIG_FILES"
b7026657 6614
81ecdfbb
RW
6615# Set up the scripts for CONFIG_HEADERS section.
6616# No need to generate them if there are no CONFIG_HEADERS.
6617# This happens for instance with `./config.status Makefile'.
6618if test -n "$CONFIG_HEADERS"; then
d0ac1c44 6619cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 6620BEGIN {
b7026657
AC
6621_ACEOF
6622
81ecdfbb
RW
6623# Transform confdefs.h into an awk script `defines.awk', embedded as
6624# here-document in config.status, that substitutes the proper values into
6625# config.h.in to produce config.h.
6626
6627# Create a delimiter string that does not exist in confdefs.h, to ease
6628# handling of long lines.
6629ac_delim='%!_!# '
6630for ac_last_try in false false :; do
d0ac1c44
SM
6631 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6632 if test -z "$ac_tt"; then
81ecdfbb
RW
6633 break
6634 elif $ac_last_try; then
d0ac1c44 6635 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
6636 else
6637 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 6638 fi
81ecdfbb 6639done
c906108c 6640
81ecdfbb
RW
6641# For the awk script, D is an array of macro values keyed by name,
6642# likewise P contains macro parameters if any. Preserve backslash
6643# newline sequences.
6644
6645ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6646sed -n '
6647s/.\{148\}/&'"$ac_delim"'/g
6648t rset
6649:rset
6650s/^[ ]*#[ ]*define[ ][ ]*/ /
6651t def
6652d
6653:def
6654s/\\$//
6655t bsnl
6656s/["\\]/\\&/g
6657s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6658D["\1"]=" \3"/p
6659s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6660d
6661:bsnl
6662s/["\\]/\\&/g
6663s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6664D["\1"]=" \3\\\\\\n"\\/p
6665t cont
6666s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6667t cont
6668d
6669:cont
6670n
6671s/.\{148\}/&'"$ac_delim"'/g
6672t clear
6673:clear
6674s/\\$//
6675t bsnlc
6676s/["\\]/\\&/g; s/^/"/; s/$/"/p
6677d
6678:bsnlc
6679s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6680b cont
6681' <confdefs.h | sed '
6682s/'"$ac_delim"'/"\\\
6683"/g' >>$CONFIG_STATUS || ac_write_fail=1
6684
6685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6686 for (key in D) D_is_set[key] = 1
6687 FS = "\a"
6688}
6689/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6690 line = \$ 0
6691 split(line, arg, " ")
6692 if (arg[1] == "#") {
6693 defundef = arg[2]
6694 mac1 = arg[3]
6695 } else {
6696 defundef = substr(arg[1], 2)
6697 mac1 = arg[2]
6698 }
6699 split(mac1, mac2, "(") #)
6700 macro = mac2[1]
6701 prefix = substr(line, 1, index(line, defundef) - 1)
6702 if (D_is_set[macro]) {
6703 # Preserve the white space surrounding the "#".
6704 print prefix "define", macro P[macro] D[macro]
6705 next
6706 } else {
6707 # Replace #undef with comments. This is necessary, for example,
6708 # in the case of _POSIX_SOURCE, which is predefined and required
6709 # on some systems where configure will not decide to define it.
6710 if (defundef == "undef") {
6711 print "/*", prefix defundef, macro, "*/"
6712 next
6713 }
6714 }
6715}
6716{ print }
6717_ACAWK
b7026657 6718_ACEOF
81ecdfbb 6719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 6720 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
6721fi # test -n "$CONFIG_HEADERS"
6722
6723
6724eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6725shift
6726for ac_tag
6727do
6728 case $ac_tag in
6729 :[FHLC]) ac_mode=$ac_tag; continue;;
6730 esac
6731 case $ac_mode$ac_tag in
6732 :[FHL]*:*);;
d0ac1c44 6733 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
6734 :[FH]-) ac_tag=-:-;;
6735 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6736 esac
6737 ac_save_IFS=$IFS
6738 IFS=:
6739 set x $ac_tag
6740 IFS=$ac_save_IFS
6741 shift
6742 ac_file=$1
6743 shift
6744
6745 case $ac_mode in
6746 :L) ac_source=$1;;
6747 :[FH])
6748 ac_file_inputs=
6749 for ac_f
6750 do
6751 case $ac_f in
d0ac1c44 6752 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
6753 *) # Look for the file first in the build tree, then in the source tree
6754 # (if the path is not absolute). The absolute path cannot be DOS-style,
6755 # because $ac_f cannot contain `:'.
6756 test -f "$ac_f" ||
6757 case $ac_f in
6758 [\\/$]*) false;;
6759 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6760 esac ||
d0ac1c44 6761 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
6762 esac
6763 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6764 as_fn_append ac_file_inputs " '$ac_f'"
6765 done
6766
6767 # Let's still pretend it is `configure' which instantiates (i.e., don't
6768 # use $as_me), people would be surprised to read:
6769 # /* config.h. Generated by config.status. */
6770 configure_input='Generated from '`
6771 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6772 `' by configure.'
6773 if test x"$ac_file" != x-; then
6774 configure_input="$ac_file. $configure_input"
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6776$as_echo "$as_me: creating $ac_file" >&6;}
6777 fi
6778 # Neutralize special characters interpreted by sed in replacement strings.
6779 case $configure_input in #(
6780 *\&* | *\|* | *\\* )
6781 ac_sed_conf_input=`$as_echo "$configure_input" |
6782 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6783 *) ac_sed_conf_input=$configure_input;;
6784 esac
6785
6786 case $ac_tag in
d0ac1c44
SM
6787 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
6789 esac
6790 ;;
c906108c
SS
6791 esac
6792
81ecdfbb 6793 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
6794$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6795 X"$ac_file" : 'X\(//\)[^/]' \| \
6796 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
6797 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6798$as_echo X"$ac_file" |
6799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6800 s//\1/
6801 q
6802 }
6803 /^X\(\/\/\)[^/].*/{
6804 s//\1/
6805 q
6806 }
6807 /^X\(\/\/\)$/{
6808 s//\1/
6809 q
6810 }
6811 /^X\(\/\).*/{
6812 s//\1/
6813 q
6814 }
6815 s/.*/./; q'`
6816 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
6817 ac_builddir=.
6818
81ecdfbb
RW
6819case "$ac_dir" in
6820.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6821*)
6822 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6823 # A ".." for each directory in $ac_dir_suffix.
6824 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6825 case $ac_top_builddir_sub in
6826 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6827 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6828 esac ;;
6829esac
6830ac_abs_top_builddir=$ac_pwd
6831ac_abs_builddir=$ac_pwd$ac_dir_suffix
6832# for backward compatibility:
6833ac_top_builddir=$ac_top_build_prefix
b7026657
AC
6834
6835case $srcdir in
81ecdfbb 6836 .) # We are building in place.
b7026657 6837 ac_srcdir=.
81ecdfbb
RW
6838 ac_top_srcdir=$ac_top_builddir_sub
6839 ac_abs_top_srcdir=$ac_pwd ;;
6840 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 6841 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
6842 ac_top_srcdir=$srcdir
6843 ac_abs_top_srcdir=$srcdir ;;
6844 *) # Relative name.
6845 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6846 ac_top_srcdir=$ac_top_build_prefix$srcdir
6847 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 6848esac
81ecdfbb 6849ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 6850
b7026657 6851
81ecdfbb
RW
6852 case $ac_mode in
6853 :F)
6854 #
6855 # CONFIG_FILE
6856 #
b7026657
AC
6857
6858 case $INSTALL in
6859 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 6860 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 6861 esac
81ecdfbb 6862_ACEOF
c906108c 6863
81ecdfbb
RW
6864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6865# If the template does not know about datarootdir, expand it.
6866# FIXME: This hack should be removed a few years after 2.60.
6867ac_datarootdir_hack=; ac_datarootdir_seen=
6868ac_sed_dataroot='
6869/datarootdir/ {
6870 p
6871 q
6872}
6873/@datadir@/p
6874/@docdir@/p
6875/@infodir@/p
6876/@localedir@/p
6877/@mandir@/p'
6878case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6879*datarootdir*) ac_datarootdir_seen=yes;;
6880*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6882$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6883_ACEOF
6884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6885 ac_datarootdir_hack='
6886 s&@datadir@&$datadir&g
6887 s&@docdir@&$docdir&g
6888 s&@infodir@&$infodir&g
6889 s&@localedir@&$localedir&g
6890 s&@mandir@&$mandir&g
6891 s&\\\${datarootdir}&$datarootdir&g' ;;
6892esac
b7026657 6893_ACEOF
81ecdfbb
RW
6894
6895# Neutralize VPATH when `$srcdir' = `.'.
6896# Shell code in configure.ac might set extrasub.
6897# FIXME: do we really want to maintain this feature?
6898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6899ac_sed_extra="$ac_vpsub
b7026657
AC
6900$extrasub
6901_ACEOF
81ecdfbb 6902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
6903:t
6904/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
6905s|@configure_input@|$ac_sed_conf_input|;t t
6906s&@top_builddir@&$ac_top_builddir_sub&;t t
6907s&@top_build_prefix@&$ac_top_build_prefix&;t t
6908s&@srcdir@&$ac_srcdir&;t t
6909s&@abs_srcdir@&$ac_abs_srcdir&;t t
6910s&@top_srcdir@&$ac_top_srcdir&;t t
6911s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6912s&@builddir@&$ac_builddir&;t t
6913s&@abs_builddir@&$ac_abs_builddir&;t t
6914s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6915s&@INSTALL@&$ac_INSTALL&;t t
6916$ac_datarootdir_hack
6917"
d0ac1c44
SM
6918eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6919 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
6920
6921test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
6922 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6923 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6924 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 6926which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 6927$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 6928which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 6929
d0ac1c44 6930 rm -f "$ac_tmp/stdin"
b7026657 6931 case $ac_file in
d0ac1c44
SM
6932 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6933 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 6934 esac \
d0ac1c44 6935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
6936 ;;
6937 :H)
6938 #
6939 # CONFIG_HEADER
6940 #
b7026657 6941 if test x"$ac_file" != x-; then
81ecdfbb
RW
6942 {
6943 $as_echo "/* $configure_input */" \
d0ac1c44
SM
6944 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6945 } >"$ac_tmp/config.h" \
6946 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6947 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6949$as_echo "$as_me: $ac_file is unchanged" >&6;}
b7026657 6950 else
81ecdfbb 6951 rm -f "$ac_file"
d0ac1c44
SM
6952 mv "$ac_tmp/config.h" "$ac_file" \
6953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
c906108c 6954 fi
b7026657 6955 else
81ecdfbb 6956 $as_echo "/* $configure_input */" \
d0ac1c44
SM
6957 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6958 || as_fn_error $? "could not create -" "$LINENO" 5
c906108c 6959 fi
81ecdfbb 6960 ;;
b7026657 6961
81ecdfbb
RW
6962 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6963$as_echo "$as_me: executing $ac_file commands" >&6;}
6964 ;;
6965 esac
b7026657 6966
b7026657 6967
81ecdfbb
RW
6968 case $ac_file$ac_mode in
6969 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
c906108c 6970
b7026657 6971 esac
81ecdfbb 6972done # for ac_tag
c906108c 6973
b7026657 6974
81ecdfbb 6975as_fn_exit 0
b7026657 6976_ACEOF
b7026657
AC
6977ac_clean_files=$ac_clean_files_save
6978
81ecdfbb 6979test $ac_write_fail = 0 ||
d0ac1c44 6980 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 6981
b7026657
AC
6982
6983# configure is writing to config.log, and then calls config.status.
6984# config.status does its own redirection, appending to config.log.
6985# Unfortunately, on DOS this fails, as config.log is still kept open
6986# by configure, so config.status won't be able to write to it; its
6987# output is simply discarded. So we exec the FD to /dev/null,
6988# effectively closing config.log, so it can be properly (re)opened and
6989# appended to by config.status. When coming back to configure, we
6990# need to make the FD available again.
6991if test "$no_create" != yes; then
6992 ac_cs_success=:
6993 ac_config_status_args=
6994 test "$silent" = yes &&
6995 ac_config_status_args="$ac_config_status_args --quiet"
6996 exec 5>/dev/null
6997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6998 exec 5>>config.log
6999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7000 # would make configure fail if this is the last instruction.
d0ac1c44 7001 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
7002fi
7003if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7005$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 7006fi
c906108c 7007