]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/igen/configure
sim: drop use of bfd/configure.host
[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#
50df264d 2076# See README-HACKING for more details.
6ffe910a
MF
2077
2078# Include global overrides and fixes for Autoconf.
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
6bb11ab3
L
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
37f980dc
SM
2112
2113
6bb11ab3
L
2114# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2115#
2116# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2117# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2118# Written by Gordon Matzigkeit, 1996
2119#
2120# This file is free software; the Free Software Foundation gives
2121# unlimited permission to copy and/or distribute it, with or without
2122# modifications, as long as this notice is preserved.
2123
2124
2125
2126# serial 56 LT_INIT
2127
2128
2129# LT_PREREQ(VERSION)
2130# ------------------
2131# Complain and exit if this libtool version is less that VERSION.
2132
2133
2134
2135# _LT_CHECK_BUILDDIR
2136# ------------------
2137# Complain if the absolute build directory name contains unusual characters
2138
2139
2140
2141# LT_INIT([OPTIONS])
2142# ------------------
2143# LT_INIT
2144
2145# Old names:
2146# This is what autoupdate's m4 run will expand. It fires
2147# the warning (with _au_warn_XXX), outputs it into the
2148# updated configure.ac (with AC_DIAGNOSE), and then outputs
2149# the replacement expansion.
2150
2151
2152# This is an auxiliary macro that is also run when
2153# autoupdate runs m4. It simply calls m4_warning, but
2154# we need a wrapper so that each warning is emitted only
2155# once. We break the quoting in m4_warning's argument in
2156# order to expand this macro's arguments, not AU_DEFUN's.
2157
2158
2159# Finally, this is the expansion that is picked up by
2160# autoconf. It tells the user to run autoupdate, and
2161# then outputs the replacement expansion. We do not care
2162# about autoupdate's warning because that contains
2163# information on what to do *after* running autoupdate.
2164
2165# This is what autoupdate's m4 run will expand. It fires
2166# the warning (with _au_warn_XXX), outputs it into the
2167# updated configure.ac (with AC_DIAGNOSE), and then outputs
2168# the replacement expansion.
2169
2170
2171# This is an auxiliary macro that is also run when
2172# autoupdate runs m4. It simply calls m4_warning, but
2173# we need a wrapper so that each warning is emitted only
2174# once. We break the quoting in m4_warning's argument in
2175# order to expand this macro's arguments, not AU_DEFUN's.
2176
2177
2178# Finally, this is the expansion that is picked up by
2179# autoconf. It tells the user to run autoupdate, and
2180# then outputs the replacement expansion. We do not care
2181# about autoupdate's warning because that contains
2182# information on what to do *after* running autoupdate.
2183
2184
2185
2186# _LT_CC_BASENAME(CC)
2187# -------------------
2188# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2189
2190
2191
2192# _LT_FILEUTILS_DEFAULTS
2193# ----------------------
2194# It is okay to use these file commands and assume they have been set
2195# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2196# _LT_FILEUTILS_DEFAULTS
2197
2198
2199# _LT_SETUP
2200# ---------
2201# _LT_SETUP
2202
2203
2204# _LT_PREPARE_SED_QUOTE_VARS
2205# --------------------------
2206# Define a few sed substitution that help us do robust quoting.
2207
2208
2209# _LT_PROG_LTMAIN
2210# ---------------
2211# Note that this code is called both from `configure', and `config.status'
2212# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2213# `config.status' has no value for ac_aux_dir unless we are using Automake,
2214# so we pass a copy along to make sure it has a sensible value anyway.
2215# _LT_PROG_LTMAIN
2216
2217
2218## ------------------------------------- ##
2219## Accumulate code for creating libtool. ##
2220## ------------------------------------- ##
2221
2222# So that we can recreate a full libtool script including additional
2223# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2224# in macros and then make a single call at the end using the `libtool'
2225# label.
2226
2227
2228# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2229# ----------------------------------------
2230# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2231
2232
2233# Initialize.
2234
2235
2236
2237# _LT_CONFIG_LIBTOOL([COMMANDS])
2238# ------------------------------
2239# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2240
2241
2242# Initialize.
2243
2244
2245
2246# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2247# -----------------------------------------------------
2248
2249
2250
2251# _LT_FORMAT_COMMENT([COMMENT])
2252# -----------------------------
2253# Add leading comment marks to the start of each line, and a trailing
2254# full-stop to the whole comment if one is not present already.
2255
2256
2257
2258
2259## ------------------------ ##
2260## FIXME: Eliminate VARNAME ##
2261## ------------------------ ##
2262
2263
2264# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2265# -------------------------------------------------------------------
2266# CONFIGNAME is the name given to the value in the libtool script.
2267# VARNAME is the (base) name used in the configure script.
2268# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2269# VARNAME. Any other value will be used directly.
2270
2271
2272
2273# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2274# --------------------------------------------------------
2275
2276
2277
2278# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2279# ------------------------------------------------
2280
2281
2282
2283# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2284# ---------------------------------------------------------
2285
2286
2287
2288# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2289# --------------------------------------------------
2290
2291
2292
2293# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2294# ---------------------------------------------------
2295
2296
2297
2298# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2299# ---------------------------------------------------
2300
2301
2302
2303
2304# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2305# ------------------------------------------------
2306
2307
2308
2309
2310# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2311# ------------------------------------
2312# Quote a variable value, and forward it to `config.status' so that its
2313# declaration there will have the same value as in `configure'. VARNAME
2314# must have a single quote delimited value for this to work.
2315
2316
2317
2318# _LT_CONFIG_STATUS_DECLARATIONS
2319# ------------------------------
2320# We delimit libtool config variables with single quotes, so when
2321# we write them to config.status, we have to be sure to quote all
2322# embedded single quotes properly. In configure, this macro expands
2323# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2324#
2325# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2326
2327
2328
2329# _LT_LIBTOOL_TAGS
2330# ----------------
2331# Output comment and list of tags supported by the script
2332
2333
2334
2335# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2336# -----------------------------------
2337# Extract the dictionary values for VARNAME (optionally with TAG) and
2338# expand to a commented shell variable setting:
2339#
2340# # Some comment about what VAR is for.
2341# visible_name=$lt_internal_name
2342
2343
2344
2345# _LT_LIBTOOL_CONFIG_VARS
2346# -----------------------
2347# Produce commented declarations of non-tagged libtool config variables
2348# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2349# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2350# section) are produced by _LT_LIBTOOL_TAG_VARS.
2351
2352
2353
2354# _LT_LIBTOOL_TAG_VARS(TAG)
2355# -------------------------
2356
2357
2358
2359# _LT_TAGVAR(VARNAME, [TAGNAME])
2360# ------------------------------
2361
2362
2363
2364# _LT_CONFIG_COMMANDS
2365# -------------------
2366# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2367# variables for single and double quote escaping we saved from calls
2368# to _LT_DECL, we can put quote escaped variables declarations
2369# into `config.status', and then the shell code to quote escape them in
2370# for loops in `config.status'. Finally, any additional code accumulated
2371# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2372#_LT_CONFIG_COMMANDS
2373
2374
2375# Initialize.
2376
2377
2378# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2379# ------------------------------------
2380# Generate a child script FILE with all initialization necessary to
2381# reuse the environment learned by the parent script, and make the
2382# file executable. If COMMENT is supplied, it is inserted after the
2383# `#!' sequence but before initialization text begins. After this
2384# macro, additional text can be appended to FILE to form the body of
2385# the child script. The macro ends with non-zero status if the
2386# file could not be fully written (such as if the disk is full).
2387# _LT_GENERATED_FILE_INIT
2388
2389# LT_OUTPUT
2390# ---------
2391# This macro allows early generation of the libtool script (before
2392# AC_OUTPUT is called), incase it is used in configure for compilation
2393# tests.
2394# LT_OUTPUT
2395
2396
2397# _LT_CONFIG(TAG)
2398# ---------------
2399# If TAG is the built-in tag, create an initial libtool script with a
2400# default configuration from the untagged config vars. Otherwise add code
2401# to config.status for appending the configuration named by TAG from the
2402# matching tagged config vars.
2403# _LT_CONFIG
2404
2405
2406# LT_SUPPORTED_TAG(TAG)
2407# ---------------------
2408# Trace this macro to discover what tags are supported by the libtool
2409# --tag option, using:
2410# autoconf --trace 'LT_SUPPORTED_TAG:$1'
2411
2412
2413
2414# C support is built-in for now
2415
2416
2417
2418
2419# LT_LANG(LANG)
2420# -------------
2421# Enable libtool support for the given language if not already enabled.
2422# LT_LANG
2423
2424
2425# _LT_LANG(LANGNAME)
2426# ------------------
2427# _LT_LANG
2428
2429
2430# _LT_LANG_DEFAULT_CONFIG
2431# -----------------------
2432# _LT_LANG_DEFAULT_CONFIG
2433
2434# Obsolete macros:
2435# This is what autoupdate's m4 run will expand. It fires
2436# the warning (with _au_warn_XXX), outputs it into the
2437# updated configure.ac (with AC_DIAGNOSE), and then outputs
2438# the replacement expansion.
2439
2440
2441# This is an auxiliary macro that is also run when
2442# autoupdate runs m4. It simply calls m4_warning, but
2443# we need a wrapper so that each warning is emitted only
2444# once. We break the quoting in m4_warning's argument in
2445# order to expand this macro's arguments, not AU_DEFUN's.
2446
2447
2448# Finally, this is the expansion that is picked up by
2449# autoconf. It tells the user to run autoupdate, and
2450# then outputs the replacement expansion. We do not care
2451# about autoupdate's warning because that contains
2452# information on what to do *after* running autoupdate.
2453
2454# This is what autoupdate's m4 run will expand. It fires
2455# the warning (with _au_warn_XXX), outputs it into the
2456# updated configure.ac (with AC_DIAGNOSE), and then outputs
2457# the replacement expansion.
2458
2459
2460# This is an auxiliary macro that is also run when
2461# autoupdate runs m4. It simply calls m4_warning, but
2462# we need a wrapper so that each warning is emitted only
2463# once. We break the quoting in m4_warning's argument in
2464# order to expand this macro's arguments, not AU_DEFUN's.
2465
2466
2467# Finally, this is the expansion that is picked up by
2468# autoconf. It tells the user to run autoupdate, and
2469# then outputs the replacement expansion. We do not care
2470# about autoupdate's warning because that contains
2471# information on what to do *after* running autoupdate.
2472
2473# This is what autoupdate's m4 run will expand. It fires
2474# the warning (with _au_warn_XXX), outputs it into the
2475# updated configure.ac (with AC_DIAGNOSE), and then outputs
2476# the replacement expansion.
2477
2478
2479# This is an auxiliary macro that is also run when
2480# autoupdate runs m4. It simply calls m4_warning, but
2481# we need a wrapper so that each warning is emitted only
2482# once. We break the quoting in m4_warning's argument in
2483# order to expand this macro's arguments, not AU_DEFUN's.
2484
2485
2486# Finally, this is the expansion that is picked up by
2487# autoconf. It tells the user to run autoupdate, and
2488# then outputs the replacement expansion. We do not care
2489# about autoupdate's warning because that contains
2490# information on what to do *after* running autoupdate.
2491
2492# This is what autoupdate's m4 run will expand. It fires
2493# the warning (with _au_warn_XXX), outputs it into the
2494# updated configure.ac (with AC_DIAGNOSE), and then outputs
2495# the replacement expansion.
2496
2497
2498# This is an auxiliary macro that is also run when
2499# autoupdate runs m4. It simply calls m4_warning, but
2500# we need a wrapper so that each warning is emitted only
2501# once. We break the quoting in m4_warning's argument in
2502# order to expand this macro's arguments, not AU_DEFUN's.
2503
2504
2505# Finally, this is the expansion that is picked up by
2506# autoconf. It tells the user to run autoupdate, and
2507# then outputs the replacement expansion. We do not care
2508# about autoupdate's warning because that contains
2509# information on what to do *after* running autoupdate.
2510
2511# This is what autoupdate's m4 run will expand. It fires
2512# the warning (with _au_warn_XXX), outputs it into the
2513# updated configure.ac (with AC_DIAGNOSE), and then outputs
2514# the replacement expansion.
2515
2516
2517# This is an auxiliary macro that is also run when
2518# autoupdate runs m4. It simply calls m4_warning, but
2519# we need a wrapper so that each warning is emitted only
2520# once. We break the quoting in m4_warning's argument in
2521# order to expand this macro's arguments, not AU_DEFUN's.
2522
2523
2524# Finally, this is the expansion that is picked up by
2525# autoconf. It tells the user to run autoupdate, and
2526# then outputs the replacement expansion. We do not care
2527# about autoupdate's warning because that contains
2528# information on what to do *after* running autoupdate.
2529
2530
2531
2532# _LT_TAG_COMPILER
2533# ----------------
2534# _LT_TAG_COMPILER
2535
2536
2537# _LT_COMPILER_BOILERPLATE
2538# ------------------------
2539# Check for compiler boilerplate output or warnings with
2540# the simple compiler test code.
2541# _LT_COMPILER_BOILERPLATE
2542
2543
2544# _LT_LINKER_BOILERPLATE
2545# ----------------------
2546# Check for linker boilerplate output or warnings with
2547# the simple link test code.
2548# _LT_LINKER_BOILERPLATE
2549
2550# _LT_REQUIRED_DARWIN_CHECKS
2551# -------------------------
2552
2553
2554
2555# _LT_DARWIN_LINKER_FEATURES
2556# --------------------------
2557# Checks for linker and compiler features on darwin
2558
2559
2560# _LT_SYS_MODULE_PATH_AIX
2561# -----------------------
2562# Links a minimal program and checks the executable
2563# for the system default hardcoded library path. In most cases,
2564# this is /usr/lib:/lib, but when the MPI compilers are used
2565# the location of the communication and MPI libs are included too.
2566# If we don't find anything, use the default library path according
2567# to the aix ld manual.
2568# _LT_SYS_MODULE_PATH_AIX
2569
2570
2571# _LT_SHELL_INIT(ARG)
2572# -------------------
2573# _LT_SHELL_INIT
2574
2575
2576
2577# _LT_PROG_ECHO_BACKSLASH
2578# -----------------------
2579# Find how we can fake an echo command that does not interpret backslash.
2580# In particular, with Autoconf 2.60 or later we add some code to the start
2581# of the generated configure script which will find a shell with a builtin
2582# printf (which we can use as an echo command).
2583# _LT_PROG_ECHO_BACKSLASH
2584
2585
2586# _LT_ENABLE_LOCK
2587# ---------------
2588# _LT_ENABLE_LOCK
2589
2590
2591# _LT_CMD_OLD_ARCHIVE
2592# -------------------
2593# _LT_CMD_OLD_ARCHIVE
2594
2595
2596# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2597# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2598# ----------------------------------------------------------------
2599# Check whether the given compiler option works
2600# _LT_COMPILER_OPTION
2601
2602# Old name:
2603# This is what autoupdate's m4 run will expand. It fires
2604# the warning (with _au_warn_XXX), outputs it into the
2605# updated configure.ac (with AC_DIAGNOSE), and then outputs
2606# the replacement expansion.
2607
2608
2609# This is an auxiliary macro that is also run when
2610# autoupdate runs m4. It simply calls m4_warning, but
2611# we need a wrapper so that each warning is emitted only
2612# once. We break the quoting in m4_warning's argument in
2613# order to expand this macro's arguments, not AU_DEFUN's.
2614
2615
2616# Finally, this is the expansion that is picked up by
2617# autoconf. It tells the user to run autoupdate, and
2618# then outputs the replacement expansion. We do not care
2619# about autoupdate's warning because that contains
2620# information on what to do *after* running autoupdate.
2621
2622
2623
2624# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2625# [ACTION-SUCCESS], [ACTION-FAILURE])
2626# ----------------------------------------------------
2627# Check whether the given linker option works
2628# _LT_LINKER_OPTION
2629
2630# Old name:
2631# This is what autoupdate's m4 run will expand. It fires
2632# the warning (with _au_warn_XXX), outputs it into the
2633# updated configure.ac (with AC_DIAGNOSE), and then outputs
2634# the replacement expansion.
2635
2636
2637# This is an auxiliary macro that is also run when
2638# autoupdate runs m4. It simply calls m4_warning, but
2639# we need a wrapper so that each warning is emitted only
2640# once. We break the quoting in m4_warning's argument in
2641# order to expand this macro's arguments, not AU_DEFUN's.
2642
2643
2644# Finally, this is the expansion that is picked up by
2645# autoconf. It tells the user to run autoupdate, and
2646# then outputs the replacement expansion. We do not care
2647# about autoupdate's warning because that contains
2648# information on what to do *after* running autoupdate.
2649
2650
2651
2652# LT_CMD_MAX_LEN
2653#---------------
2654# LT_CMD_MAX_LEN
2655
2656# Old name:
2657# This is what autoupdate's m4 run will expand. It fires
2658# the warning (with _au_warn_XXX), outputs it into the
2659# updated configure.ac (with AC_DIAGNOSE), and then outputs
2660# the replacement expansion.
2661
2662
2663# This is an auxiliary macro that is also run when
2664# autoupdate runs m4. It simply calls m4_warning, but
2665# we need a wrapper so that each warning is emitted only
2666# once. We break the quoting in m4_warning's argument in
2667# order to expand this macro's arguments, not AU_DEFUN's.
2668
2669
2670# Finally, this is the expansion that is picked up by
2671# autoconf. It tells the user to run autoupdate, and
2672# then outputs the replacement expansion. We do not care
2673# about autoupdate's warning because that contains
2674# information on what to do *after* running autoupdate.
2675
2676
2677
2678# _LT_HEADER_DLFCN
2679# ----------------
2680# _LT_HEADER_DLFCN
2681
2682
2683# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2684# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2685# ----------------------------------------------------------------
2686# _LT_TRY_DLOPEN_SELF
2687
2688
2689# LT_SYS_DLOPEN_SELF
2690# ------------------
2691# LT_SYS_DLOPEN_SELF
2692
2693# Old name:
2694# This is what autoupdate's m4 run will expand. It fires
2695# the warning (with _au_warn_XXX), outputs it into the
2696# updated configure.ac (with AC_DIAGNOSE), and then outputs
2697# the replacement expansion.
2698
2699
2700# This is an auxiliary macro that is also run when
2701# autoupdate runs m4. It simply calls m4_warning, but
2702# we need a wrapper so that each warning is emitted only
2703# once. We break the quoting in m4_warning's argument in
2704# order to expand this macro's arguments, not AU_DEFUN's.
2705
2706
2707# Finally, this is the expansion that is picked up by
2708# autoconf. It tells the user to run autoupdate, and
2709# then outputs the replacement expansion. We do not care
2710# about autoupdate's warning because that contains
2711# information on what to do *after* running autoupdate.
2712
2713
2714
2715# _LT_COMPILER_C_O([TAGNAME])
2716# ---------------------------
2717# Check to see if options -c and -o are simultaneously supported by compiler.
2718# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2719# _LT_COMPILER_C_O
2720
2721
2722# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2723# ----------------------------------
2724# Check to see if we can do hard links to lock some files if needed
2725# _LT_COMPILER_FILE_LOCKS
2726
2727
2728# _LT_CHECK_OBJDIR
2729# ----------------
2730# _LT_CHECK_OBJDIR
2731
2732
2733# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2734# --------------------------------------
2735# Check hardcoding attributes.
2736# _LT_LINKER_HARDCODE_LIBPATH
2737
2738
2739# _LT_CMD_STRIPLIB
2740# ----------------
2741# _LT_CMD_STRIPLIB
2742
2743
2744# _LT_SYS_DYNAMIC_LINKER([TAG])
2745# -----------------------------
2746# PORTME Fill in your ld.so characteristics
2747# _LT_SYS_DYNAMIC_LINKER
2748
2749
2750# _LT_PATH_TOOL_PREFIX(TOOL)
2751# --------------------------
2752# find a file program which can recognize shared library
2753# _LT_PATH_TOOL_PREFIX
2754
2755# Old name:
2756# This is what autoupdate's m4 run will expand. It fires
2757# the warning (with _au_warn_XXX), outputs it into the
2758# updated configure.ac (with AC_DIAGNOSE), and then outputs
2759# the replacement expansion.
2760
2761
2762# This is an auxiliary macro that is also run when
2763# autoupdate runs m4. It simply calls m4_warning, but
2764# we need a wrapper so that each warning is emitted only
2765# once. We break the quoting in m4_warning's argument in
2766# order to expand this macro's arguments, not AU_DEFUN's.
2767
2768
2769# Finally, this is the expansion that is picked up by
2770# autoconf. It tells the user to run autoupdate, and
2771# then outputs the replacement expansion. We do not care
2772# about autoupdate's warning because that contains
2773# information on what to do *after* running autoupdate.
2774
2775
2776
2777# _LT_PATH_MAGIC
2778# --------------
2779# find a file program which can recognize a shared library
2780# _LT_PATH_MAGIC
2781
2782
2783# LT_PATH_LD
2784# ----------
2785# find the pathname to the GNU or non-GNU linker
2786# LT_PATH_LD
2787
2788# Old names:
2789# This is what autoupdate's m4 run will expand. It fires
2790# the warning (with _au_warn_XXX), outputs it into the
2791# updated configure.ac (with AC_DIAGNOSE), and then outputs
2792# the replacement expansion.
2793
2794
2795# This is an auxiliary macro that is also run when
2796# autoupdate runs m4. It simply calls m4_warning, but
2797# we need a wrapper so that each warning is emitted only
2798# once. We break the quoting in m4_warning's argument in
2799# order to expand this macro's arguments, not AU_DEFUN's.
2800
2801
2802# Finally, this is the expansion that is picked up by
2803# autoconf. It tells the user to run autoupdate, and
2804# then outputs the replacement expansion. We do not care
2805# about autoupdate's warning because that contains
2806# information on what to do *after* running autoupdate.
2807
2808# This is what autoupdate's m4 run will expand. It fires
2809# the warning (with _au_warn_XXX), outputs it into the
2810# updated configure.ac (with AC_DIAGNOSE), and then outputs
2811# the replacement expansion.
2812
2813
2814# This is an auxiliary macro that is also run when
2815# autoupdate runs m4. It simply calls m4_warning, but
2816# we need a wrapper so that each warning is emitted only
2817# once. We break the quoting in m4_warning's argument in
2818# order to expand this macro's arguments, not AU_DEFUN's.
2819
2820
2821# Finally, this is the expansion that is picked up by
2822# autoconf. It tells the user to run autoupdate, and
2823# then outputs the replacement expansion. We do not care
2824# about autoupdate's warning because that contains
2825# information on what to do *after* running autoupdate.
2826
2827
2828
2829# _LT_PATH_LD_GNU
2830#- --------------
2831# _LT_PATH_LD_GNU
2832
2833
2834# _LT_CMD_RELOAD
2835# --------------
2836# find reload flag for linker
2837# -- PORTME Some linkers may need a different reload flag.
2838# _LT_CMD_RELOAD
2839
2840
2841# _LT_CHECK_MAGIC_METHOD
2842# ----------------------
2843# how to check for library dependencies
2844# -- PORTME fill in with the dynamic library characteristics
2845# _LT_CHECK_MAGIC_METHOD
2846
2847
2848# LT_PATH_NM
2849# ----------
2850# find the pathname to a BSD- or MS-compatible name lister
2851# LT_PATH_NM
2852
2853# Old names:
2854# This is what autoupdate's m4 run will expand. It fires
2855# the warning (with _au_warn_XXX), outputs it into the
2856# updated configure.ac (with AC_DIAGNOSE), and then outputs
2857# the replacement expansion.
2858
2859
2860# This is an auxiliary macro that is also run when
2861# autoupdate runs m4. It simply calls m4_warning, but
2862# we need a wrapper so that each warning is emitted only
2863# once. We break the quoting in m4_warning's argument in
2864# order to expand this macro's arguments, not AU_DEFUN's.
2865
2866
2867# Finally, this is the expansion that is picked up by
2868# autoconf. It tells the user to run autoupdate, and
2869# then outputs the replacement expansion. We do not care
2870# about autoupdate's warning because that contains
2871# information on what to do *after* running autoupdate.
2872
2873# This is what autoupdate's m4 run will expand. It fires
2874# the warning (with _au_warn_XXX), outputs it into the
2875# updated configure.ac (with AC_DIAGNOSE), and then outputs
2876# the replacement expansion.
2877
2878
2879# This is an auxiliary macro that is also run when
2880# autoupdate runs m4. It simply calls m4_warning, but
2881# we need a wrapper so that each warning is emitted only
2882# once. We break the quoting in m4_warning's argument in
2883# order to expand this macro's arguments, not AU_DEFUN's.
2884
2885
2886# Finally, this is the expansion that is picked up by
2887# autoconf. It tells the user to run autoupdate, and
2888# then outputs the replacement expansion. We do not care
2889# about autoupdate's warning because that contains
2890# information on what to do *after* running autoupdate.
2891
2892
2893
2894# LT_LIB_M
2895# --------
2896# check for math library
2897# LT_LIB_M
2898
2899# Old name:
2900# This is what autoupdate's m4 run will expand. It fires
2901# the warning (with _au_warn_XXX), outputs it into the
2902# updated configure.ac (with AC_DIAGNOSE), and then outputs
2903# the replacement expansion.
2904
2905
2906# This is an auxiliary macro that is also run when
2907# autoupdate runs m4. It simply calls m4_warning, but
2908# we need a wrapper so that each warning is emitted only
2909# once. We break the quoting in m4_warning's argument in
2910# order to expand this macro's arguments, not AU_DEFUN's.
2911
2912
2913# Finally, this is the expansion that is picked up by
2914# autoconf. It tells the user to run autoupdate, and
2915# then outputs the replacement expansion. We do not care
2916# about autoupdate's warning because that contains
2917# information on what to do *after* running autoupdate.
2918
2919
2920
2921# _LT_COMPILER_NO_RTTI([TAGNAME])
2922# -------------------------------
2923# _LT_COMPILER_NO_RTTI
2924
2925
2926# _LT_CMD_GLOBAL_SYMBOLS
2927# ----------------------
2928 # _LT_CMD_GLOBAL_SYMBOLS
2929
2930
2931# _LT_COMPILER_PIC([TAGNAME])
2932# ---------------------------
2933# _LT_COMPILER_PIC
2934
2935
2936# _LT_LINKER_SHLIBS([TAGNAME])
2937# ----------------------------
2938# See if the linker supports building shared libraries.
2939# _LT_LINKER_SHLIBS
2940
2941
2942# _LT_LANG_C_CONFIG([TAG])
2943# ------------------------
2944# Ensure that the configuration variables for a C compiler are suitably
2945# defined. These variables are subsequently used by _LT_CONFIG to write
2946# the compiler configuration to `libtool'.
2947# _LT_LANG_C_CONFIG
2948
2949
2950# _LT_LANG_CXX_CONFIG([TAG])
2951# --------------------------
2952# Ensure that the configuration variables for a C++ compiler are suitably
2953# defined. These variables are subsequently used by _LT_CONFIG to write
2954# the compiler configuration to `libtool'.
2955# _LT_LANG_CXX_CONFIG
2956
2957
2958# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
2959# ---------------------------------
2960# Figure out "hidden" library dependencies from verbose
2961# compiler output when linking a shared library.
2962# Parse the compiler output and extract the necessary
2963# objects, libraries and library flags.
2964# _LT_SYS_HIDDEN_LIBDEPS
2965
2966
2967# _LT_LANG_F77_CONFIG([TAG])
2968# --------------------------
2969# Ensure that the configuration variables for a Fortran 77 compiler are
2970# suitably defined. These variables are subsequently used by _LT_CONFIG
2971# to write the compiler configuration to `libtool'.
2972# _LT_LANG_F77_CONFIG
2973
2974
2975# _LT_LANG_FC_CONFIG([TAG])
2976# -------------------------
2977# Ensure that the configuration variables for a Fortran compiler are
2978# suitably defined. These variables are subsequently used by _LT_CONFIG
2979# to write the compiler configuration to `libtool'.
2980# _LT_LANG_FC_CONFIG
2981
2982
2983# _LT_LANG_GCJ_CONFIG([TAG])
2984# --------------------------
2985# Ensure that the configuration variables for the GNU Java Compiler compiler
2986# are suitably defined. These variables are subsequently used by _LT_CONFIG
2987# to write the compiler configuration to `libtool'.
2988# _LT_LANG_GCJ_CONFIG
2989
2990
2991# _LT_LANG_RC_CONFIG([TAG])
2992# -------------------------
2993# Ensure that the configuration variables for the Windows resource compiler
2994# are suitably defined. These variables are subsequently used by _LT_CONFIG
2995# to write the compiler configuration to `libtool'.
2996# _LT_LANG_RC_CONFIG
2997
2998
2999# LT_PROG_GCJ
3000# -----------
3001
3002
3003# Old name:
3004# This is what autoupdate's m4 run will expand. It fires
3005# the warning (with _au_warn_XXX), outputs it into the
3006# updated configure.ac (with AC_DIAGNOSE), and then outputs
3007# the replacement expansion.
3008
3009
3010# This is an auxiliary macro that is also run when
3011# autoupdate runs m4. It simply calls m4_warning, but
3012# we need a wrapper so that each warning is emitted only
3013# once. We break the quoting in m4_warning's argument in
3014# order to expand this macro's arguments, not AU_DEFUN's.
3015
3016
3017# Finally, this is the expansion that is picked up by
3018# autoconf. It tells the user to run autoupdate, and
3019# then outputs the replacement expansion. We do not care
3020# about autoupdate's warning because that contains
3021# information on what to do *after* running autoupdate.
3022
3023
3024
3025# LT_PROG_RC
3026# ----------
3027
3028
3029# Old name:
3030# This is what autoupdate's m4 run will expand. It fires
3031# the warning (with _au_warn_XXX), outputs it into the
3032# updated configure.ac (with AC_DIAGNOSE), and then outputs
3033# the replacement expansion.
3034
3035
3036# This is an auxiliary macro that is also run when
3037# autoupdate runs m4. It simply calls m4_warning, but
3038# we need a wrapper so that each warning is emitted only
3039# once. We break the quoting in m4_warning's argument in
3040# order to expand this macro's arguments, not AU_DEFUN's.
3041
3042
3043# Finally, this is the expansion that is picked up by
3044# autoconf. It tells the user to run autoupdate, and
3045# then outputs the replacement expansion. We do not care
3046# about autoupdate's warning because that contains
3047# information on what to do *after* running autoupdate.
3048
3049
3050
3051# _LT_DECL_EGREP
3052# --------------
3053# If we don't have a new enough Autoconf to choose the best grep
3054# available, choose the one first in the user's PATH.
3055
3056
3057
3058# _LT_DECL_OBJDUMP
3059# --------------
3060# If we don't have a new enough Autoconf to choose the best objdump
3061# available, choose the one first in the user's PATH.
3062
3063
3064
3065# _LT_DECL_SED
3066# ------------
3067# Check for a fully-functional sed program, that truncates
3068# as few characters as possible. Prefer GNU sed if found.
3069# _LT_DECL_SED
3070
3071#m4_ifndef
3072
3073# Old name:
3074# This is what autoupdate's m4 run will expand. It fires
3075# the warning (with _au_warn_XXX), outputs it into the
3076# updated configure.ac (with AC_DIAGNOSE), and then outputs
3077# the replacement expansion.
3078
3079
3080# This is an auxiliary macro that is also run when
3081# autoupdate runs m4. It simply calls m4_warning, but
3082# we need a wrapper so that each warning is emitted only
3083# once. We break the quoting in m4_warning's argument in
3084# order to expand this macro's arguments, not AU_DEFUN's.
3085
3086
3087# Finally, this is the expansion that is picked up by
3088# autoconf. It tells the user to run autoupdate, and
3089# then outputs the replacement expansion. We do not care
3090# about autoupdate's warning because that contains
3091# information on what to do *after* running autoupdate.
3092
3093
3094
3095# _LT_CHECK_SHELL_FEATURES
3096# ------------------------
3097# Find out whether the shell is Bourne or XSI compatible,
3098# or has some other useful features.
3099# _LT_CHECK_SHELL_FEATURES
3100
3101
3102# _LT_PROG_XSI_SHELLFNS
3103# ---------------------
3104# Bourne and XSI compatible variants of some useful shell functions.
3105
3106
3107# Helper functions for option handling. -*- Autoconf -*-
3108#
3109# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3110# Inc.
3111# Written by Gary V. Vaughan, 2004
3112#
3113# This file is free software; the Free Software Foundation gives
3114# unlimited permission to copy and/or distribute it, with or without
3115# modifications, as long as this notice is preserved.
3116
3117# serial 6 ltoptions.m4
3118
3119# This is to help aclocal find these macros, as it can't see m4_define.
3120
3121
3122
3123# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3124# ------------------------------------------
3125
3126
3127
3128# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3129# ---------------------------------------
3130# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3131# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3132# saved as a flag.
3133
3134
3135
3136# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3137# ------------------------------------------------------------
3138# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3139
3140
3141
3142# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3143# -------------------------------------------------------
3144# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3145# are set.
3146
3147
3148
3149# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3150# ----------------------------------------
3151# OPTION-LIST is a space-separated list of Libtool options associated
3152# with MACRO-NAME. If any OPTION has a matching handler declared with
3153# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3154# the unknown option and exit.
3155# _LT_SET_OPTIONS
3156
3157
3158## --------------------------------- ##
3159## Macros to handle LT_INIT options. ##
3160## --------------------------------- ##
3161
3162# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3163# -----------------------------------------
3164
3165
3166
3167# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3168# -----------------------------------------------
3169# LT_OPTION_DEFINE
3170
3171
3172# dlopen
3173# ------
3174
3175
3176# This is what autoupdate's m4 run will expand. It fires
3177# the warning (with _au_warn_XXX), outputs it into the
3178# updated configure.ac (with AC_DIAGNOSE), and then outputs
3179# the replacement expansion.
3180
3181
3182# This is an auxiliary macro that is also run when
3183# autoupdate runs m4. It simply calls m4_warning, but
3184# we need a wrapper so that each warning is emitted only
3185# once. We break the quoting in m4_warning's argument in
3186# order to expand this macro's arguments, not AU_DEFUN's.
3187
3188
3189# Finally, this is the expansion that is picked up by
3190# autoconf. It tells the user to run autoupdate, and
3191# then outputs the replacement expansion. We do not care
3192# about autoupdate's warning because that contains
3193# information on what to do *after* running autoupdate.
3194
3195
3196
3197
3198# win32-dll
3199# ---------
3200# Declare package support for building win32 dll's.
3201# win32-dll
3202
3203# This is what autoupdate's m4 run will expand. It fires
3204# the warning (with _au_warn_XXX), outputs it into the
3205# updated configure.ac (with AC_DIAGNOSE), and then outputs
3206# the replacement expansion.
3207
3208
3209# This is an auxiliary macro that is also run when
3210# autoupdate runs m4. It simply calls m4_warning, but
3211# we need a wrapper so that each warning is emitted only
3212# once. We break the quoting in m4_warning's argument in
3213# order to expand this macro's arguments, not AU_DEFUN's.
3214
3215
3216# Finally, this is the expansion that is picked up by
3217# autoconf. It tells the user to run autoupdate, and
3218# then outputs the replacement expansion. We do not care
3219# about autoupdate's warning because that contains
3220# information on what to do *after* running autoupdate.
3221
3222
3223
3224
3225# _LT_ENABLE_SHARED([DEFAULT])
3226# ----------------------------
3227# implement the --enable-shared flag, and supports the `shared' and
3228# `disable-shared' LT_INIT options.
3229# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3230# _LT_ENABLE_SHARED
3231
3232
3233
3234
3235# Old names:
3236
3237
3238
3239
3240# This is what autoupdate's m4 run will expand. It fires
3241# the warning (with _au_warn_XXX), outputs it into the
3242# updated configure.ac (with AC_DIAGNOSE), and then outputs
3243# the replacement expansion.
3244
3245
3246# This is an auxiliary macro that is also run when
3247# autoupdate runs m4. It simply calls m4_warning, but
3248# we need a wrapper so that each warning is emitted only
3249# once. We break the quoting in m4_warning's argument in
3250# order to expand this macro's arguments, not AU_DEFUN's.
3251
3252
3253# Finally, this is the expansion that is picked up by
3254# autoconf. It tells the user to run autoupdate, and
3255# then outputs the replacement expansion. We do not care
3256# about autoupdate's warning because that contains
3257# information on what to do *after* running autoupdate.
3258
3259# This is what autoupdate's m4 run will expand. It fires
3260# the warning (with _au_warn_XXX), outputs it into the
3261# updated configure.ac (with AC_DIAGNOSE), and then outputs
3262# the replacement expansion.
3263
3264
3265# This is an auxiliary macro that is also run when
3266# autoupdate runs m4. It simply calls m4_warning, but
3267# we need a wrapper so that each warning is emitted only
3268# once. We break the quoting in m4_warning's argument in
3269# order to expand this macro's arguments, not AU_DEFUN's.
3270
3271
3272# Finally, this is the expansion that is picked up by
3273# autoconf. It tells the user to run autoupdate, and
3274# then outputs the replacement expansion. We do not care
3275# about autoupdate's warning because that contains
3276# information on what to do *after* running autoupdate.
3277
3278
3279
3280
3281
3282# _LT_ENABLE_STATIC([DEFAULT])
3283# ----------------------------
3284# implement the --enable-static flag, and support the `static' and
3285# `disable-static' LT_INIT options.
3286# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3287# _LT_ENABLE_STATIC
3288
3289
3290
3291
3292# Old names:
3293
3294
3295
3296
3297# This is what autoupdate's m4 run will expand. It fires
3298# the warning (with _au_warn_XXX), outputs it into the
3299# updated configure.ac (with AC_DIAGNOSE), and then outputs
3300# the replacement expansion.
3301
3302
3303# This is an auxiliary macro that is also run when
3304# autoupdate runs m4. It simply calls m4_warning, but
3305# we need a wrapper so that each warning is emitted only
3306# once. We break the quoting in m4_warning's argument in
3307# order to expand this macro's arguments, not AU_DEFUN's.
3308
3309
3310# Finally, this is the expansion that is picked up by
3311# autoconf. It tells the user to run autoupdate, and
3312# then outputs the replacement expansion. We do not care
3313# about autoupdate's warning because that contains
3314# information on what to do *after* running autoupdate.
3315
3316# This is what autoupdate's m4 run will expand. It fires
3317# the warning (with _au_warn_XXX), outputs it into the
3318# updated configure.ac (with AC_DIAGNOSE), and then outputs
3319# the replacement expansion.
3320
3321
3322# This is an auxiliary macro that is also run when
3323# autoupdate runs m4. It simply calls m4_warning, but
3324# we need a wrapper so that each warning is emitted only
3325# once. We break the quoting in m4_warning's argument in
3326# order to expand this macro's arguments, not AU_DEFUN's.
3327
3328
3329# Finally, this is the expansion that is picked up by
3330# autoconf. It tells the user to run autoupdate, and
3331# then outputs the replacement expansion. We do not care
3332# about autoupdate's warning because that contains
3333# information on what to do *after* running autoupdate.
3334
3335
3336
3337
3338
3339# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3340# ----------------------------------
3341# implement the --enable-fast-install flag, and support the `fast-install'
3342# and `disable-fast-install' LT_INIT options.
3343# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3344# _LT_ENABLE_FAST_INSTALL
3345
3346
3347
3348
3349# Old names:
3350# This is what autoupdate's m4 run will expand. It fires
3351# the warning (with _au_warn_XXX), outputs it into the
3352# updated configure.ac (with AC_DIAGNOSE), and then outputs
3353# the replacement expansion.
3354
3355
3356# This is an auxiliary macro that is also run when
3357# autoupdate runs m4. It simply calls m4_warning, but
3358# we need a wrapper so that each warning is emitted only
3359# once. We break the quoting in m4_warning's argument in
3360# order to expand this macro's arguments, not AU_DEFUN's.
3361
3362
3363# Finally, this is the expansion that is picked up by
3364# autoconf. It tells the user to run autoupdate, and
3365# then outputs the replacement expansion. We do not care
3366# about autoupdate's warning because that contains
3367# information on what to do *after* running autoupdate.
3368
3369
3370# This is what autoupdate's m4 run will expand. It fires
3371# the warning (with _au_warn_XXX), outputs it into the
3372# updated configure.ac (with AC_DIAGNOSE), and then outputs
3373# the replacement expansion.
3374
3375
3376# This is an auxiliary macro that is also run when
3377# autoupdate runs m4. It simply calls m4_warning, but
3378# we need a wrapper so that each warning is emitted only
3379# once. We break the quoting in m4_warning's argument in
3380# order to expand this macro's arguments, not AU_DEFUN's.
3381
3382
3383# Finally, this is the expansion that is picked up by
3384# autoconf. It tells the user to run autoupdate, and
3385# then outputs the replacement expansion. We do not care
3386# about autoupdate's warning because that contains
3387# information on what to do *after* running autoupdate.
3388
3389
3390
3391
3392# _LT_WITH_PIC([MODE])
3393# --------------------
3394# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3395# LT_INIT options.
3396# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3397# _LT_WITH_PIC
3398
3399
3400
3401
3402# Old name:
3403# This is what autoupdate's m4 run will expand. It fires
3404# the warning (with _au_warn_XXX), outputs it into the
3405# updated configure.ac (with AC_DIAGNOSE), and then outputs
3406# the replacement expansion.
3407
3408
3409# This is an auxiliary macro that is also run when
3410# autoupdate runs m4. It simply calls m4_warning, but
3411# we need a wrapper so that each warning is emitted only
3412# once. We break the quoting in m4_warning's argument in
3413# order to expand this macro's arguments, not AU_DEFUN's.
3414
3415
3416# Finally, this is the expansion that is picked up by
3417# autoconf. It tells the user to run autoupdate, and
3418# then outputs the replacement expansion. We do not care
3419# about autoupdate's warning because that contains
3420# information on what to do *after* running autoupdate.
3421
3422
3423
3424## ----------------- ##
3425## LTDL_INIT Options ##
3426## ----------------- ##
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3438#
3439# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3440# Written by Gary V. Vaughan, 2004
3441#
3442# This file is free software; the Free Software Foundation gives
3443# unlimited permission to copy and/or distribute it, with or without
3444# modifications, as long as this notice is preserved.
3445
3446# serial 6 ltsugar.m4
3447
3448# This is to help aclocal find these macros, as it can't see m4_define.
3449
3450
3451
3452# lt_join(SEP, ARG1, [ARG2...])
3453# -----------------------------
3454# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3455# associated separator.
3456# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3457# versions in m4sugar had bugs.
3458
3459
3460
3461
3462# lt_car(LIST)
3463# lt_cdr(LIST)
3464# ------------
3465# Manipulate m4 lists.
3466# These macros are necessary as long as will still need to support
3467# Autoconf-2.59 which quotes differently.
3468
3469
3470
3471
3472
3473# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3474# ------------------------------------------
3475# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3476# Note that neither SEPARATOR nor STRING are expanded; they are appended
3477# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3478# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3479# than defined and empty).
3480#
3481# This macro is needed until we can rely on Autoconf 2.62, since earlier
3482# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3483
3484
3485
3486
3487# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3488# ----------------------------------------------------------
3489# Produce a SEP delimited list of all paired combinations of elements of
3490# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3491# has the form PREFIXmINFIXSUFFIXn.
3492# Needed until we can rely on m4_combine added in Autoconf 2.62.
3493
3494
3495
3496# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3497# -----------------------------------------------------------------------
3498# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3499# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3500
3501
3502
3503# lt_dict_add(DICT, KEY, VALUE)
3504# -----------------------------
3505
3506
3507
3508# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3509# --------------------------------------------
3510
3511
3512
3513# lt_dict_fetch(DICT, KEY, [SUBKEY])
3514# ----------------------------------
3515
3516
3517
3518# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3519# -----------------------------------------------------------------
3520
3521
3522
3523# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3524# --------------------------------------------------------------
3525
3526
3527# ltversion.m4 -- version numbers -*- Autoconf -*-
3528#
3529# Copyright (C) 2004 Free Software Foundation, Inc.
3530# Written by Scott James Remnant, 2004
3531#
3532# This file is free software; the Free Software Foundation gives
3533# unlimited permission to copy and/or distribute it, with or without
3534# modifications, as long as this notice is preserved.
3535
3536# Generated from ltversion.in.
3537
3538# serial 3134 ltversion.m4
3539# This file is part of GNU Libtool
3540
3541
3542
3543
3544
3545
3546# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3547#
3548# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3549# Written by Scott James Remnant, 2004.
3550#
3551# This file is free software; the Free Software Foundation gives
3552# unlimited permission to copy and/or distribute it, with or without
3553# modifications, as long as this notice is preserved.
3554
3555# serial 4 lt~obsolete.m4
3556
3557# These exist entirely to fool aclocal when bootstrapping libtool.
3558#
3559# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3560# which have later been changed to m4_define as they aren't part of the
3561# exported API, or moved to Autoconf or Automake where they belong.
3562#
3563# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3564# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3565# using a macro with the same name in our local m4/libtool.m4 it'll
3566# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3567# and doesn't know about Autoconf macros at all.)
3568#
3569# So we provide this file, which has a silly filename so it's always
3570# included after everything else. This provides aclocal with the
3571# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3572# because those macros already exist, or will be overwritten later.
3573# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3574#
3575# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3576# Yes, that means every name once taken will need to remain here until
3577# we give up compatibility with versions before 1.7, at which point
3578# we need to keep only those names which we still refer to.
3579
3580# This is to help aclocal find these macros, as it can't see m4_define.
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
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
6ffe910a
MF
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
2232061b
MF
3645## -*- Autoconf -*-
3646
3647# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3648# Free Software Foundation, Inc.
3649#
3650# This file is free software; the Free Software Foundation
3651# gives unlimited permission to copy and/or distribute it,
3652# with or without modifications, as long as this notice is preserved.
3653
3654# serial 8
3655
3656# Based on depend.m4 from automake 1.9, modified for standalone use in
3657# an environment where GNU make is required.
3658
3659# ZW_PROG_COMPILER_DEPENDENCIES
3660# -----------------------------
3661# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3662# sets fooDEPMODE accordingly. Cache-variable compatible with
3663# original; not side-effect compatible. As the users of this macro
3664# may require accurate dependencies for correct builds, it does *not*
3665# honor --disable-dependency-checking, and failure to detect a usable
3666# method is an error. depcomp is assumed to be located in
3667# $ac_aux_dir.
3668#
3669# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3670
3671
3672
3673# AM_SET_DEPDIR
3674# -------------
3675# Choose a directory name for dependency files.
3676
3677
3678# ZW_CREATE_DEPDIR
3679# ----------------
3680# As AM_SET_DEPDIR, but also create the directory at config.status time.
3681
3682
6ffe910a
MF
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
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
6ffe910a
MF
3722
3723
3724
3725
3726
6ffe910a
MF
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
6ffe910a
MF
3742
3743
3744
3745
3746
3747# intl sister-directory configuration rules.
3748#
3749
3750# The idea behind this macro is that there's no need to repeat all the
3751# autoconf probes done by the intl directory - it's already done them
3752# for us. In fact, there's no need even to look at the cache for the
3753# answers. All we need to do is nab a few pieces of information.
3754# The intl directory is set up to make this easy, by generating a
3755# small file which can be sourced as a shell script; then we produce
3756# the necessary substitutions and definitions for this directory.
3757
3758
3759
3760# Autoconf M4 include file defining utility macros for complex Canadian
3761# cross builds.
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771####
3772# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
3773# or AC_INIT.
3774# These demand that AC_CANONICAL_SYSTEM be called beforehand.
3775
3776####
3777# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3778# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
3779
3780
3781####
3782# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3783# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
3784
3785
3786
3787# Backported from Autoconf 2.5x; can go away when and if
3788# we switch. Put the OS path separator in $PATH_SEPARATOR.
3789
3790
3791
3792
37f980dc
SM
3793
3794
3795
3796
6ffe910a
MF
3797# ACX_HAVE_GCC_FOR_TARGET
3798# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
3799
3800
3801# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
3802# Searching for installed target binutils. We need to take extra care,
3803# else we may find the wrong assembler, linker, etc., and lose.
3804#
3805# First try --with-build-time-tools, if specified.
3806#
3807# For build != host, we ask the installed GCC for the name of the tool it
3808# uses, and accept it if it is an absolute path. This is because the
3809# only good choice for a compiler is the same GCC version that is being
3810# installed (or we couldn't make target libraries), and we assume that
3811# on the host system we'll have not only the same GCC version, but also
3812# the same binutils version.
3813#
3814# For build == host, search the same directories that the installed
3815# compiler will search. We used to do this for the assembler, linker,
3816# and nm only; for simplicity of configuration, however, we extend this
3817# criterion to tools (such as ar and ranlib) that are never invoked by
3818# the compiler, to avoid mismatches.
3819#
3820# Also note we have to check MD_EXEC_PREFIX before checking the user's path
3821# if build == target. This makes the most sense only when bootstrapping,
3822# but we also do so when build != host. In this case, we hope that the
3823# build and host systems will have similar contents of MD_EXEC_PREFIX.
3824#
3825# If we do not find a suitable binary, then try the user's path.
3826
3827
3828###
3829# AC_PROG_CPP_WERROR
3830# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
3831# triggers warnings from the preprocessor. Will be in autoconf 2.58.
3832# For now, using this also overrides header checks to use only the
3833# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
3834# bit harder from here).
3835# Eventually autoconf will default to checking headers with the compiler
3836# instead, and we'll have to do this differently.
3837
3838# AC_PROG_CPP_WERROR
3839
3840# Test for GNAT.
2232061b
MF
3841# We require the gnatbind & gnatmake programs, as well as a compiler driver
3842# that understands Ada. We use the user's CC setting, already found, and
3843# possibly add $1 to the command-line parameters.
6ffe910a
MF
3844#
3845# Sets the shell variable have_gnat to yes or no as appropriate, and
3846# substitutes GNATBIND and GNATMAKE.
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
b7026657
AC
3867
3868
b7026657
AC
3869
3870
3871
3872ac_aux_dir=
81ecdfbb 3873for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
3874 if test -f "$ac_dir/install-sh"; then
3875 ac_aux_dir=$ac_dir
3876 ac_install_sh="$ac_aux_dir/install-sh -c"
3877 break
3878 elif test -f "$ac_dir/install.sh"; then
3879 ac_aux_dir=$ac_dir
3880 ac_install_sh="$ac_aux_dir/install.sh -c"
3881 break
3882 elif test -f "$ac_dir/shtool"; then
3883 ac_aux_dir=$ac_dir
3884 ac_install_sh="$ac_aux_dir/shtool install -c"
3885 break
3886 fi
b7026657
AC
3887done
3888if test -z "$ac_aux_dir"; then
d0ac1c44 3889 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
b7026657 3890fi
81ecdfbb
RW
3891
3892# These three variables are undocumented and unsupported,
3893# and are intended to be withdrawn in a future Autoconf release.
3894# They can cause serious problems if a builder's source tree is in a directory
3895# whose full name contains unusual characters.
3896ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3897ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3898ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3899
b7026657
AC
3900
3901# Find a good install program. We prefer a C program (faster),
3902# so one script is as good as another. But avoid the broken or
3903# incompatible versions:
3904# SysV /etc/install, /usr/sbin/install
3905# SunOS /usr/etc/install
3906# IRIX /sbin/install
3907# AIX /bin/install
3908# AmigaOS /C/install, which installs bootblocks on floppy discs
3909# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3910# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3911# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3912# OS/2's system install, which has a completely different semantic
3913# ./install, which can be erroneously created by make from ./install.sh.
81ecdfbb
RW
3914# Reject install programs that cannot install multiple files.
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3916$as_echo_n "checking for a BSD-compatible install... " >&6; }
b7026657 3917if test -z "$INSTALL"; then
d0ac1c44 3918if ${ac_cv_path_install+:} false; then :
81ecdfbb 3919 $as_echo_n "(cached) " >&6
b7026657
AC
3920else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3926 # Account for people who put trailing slashes in PATH elements.
3927case $as_dir/ in #((
3928 ./ | .// | /[cC]/* | \
b7026657 3929 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3930 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b7026657
AC
3931 /usr/ucb/* ) ;;
3932 *)
3933 # OSF1 and SCO ODT 3.0 have their own names for install.
3934 # Don't use installbsd from OSF since it installs stuff as root
3935 # by default.
3936 for ac_prog in ginstall scoinst install; do
3937 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3938 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
b7026657
AC
3939 if test $ac_prog = install &&
3940 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3941 # AIX install. It has an incompatible calling convention.
3942 :
3943 elif test $ac_prog = install &&
3944 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3945 # program-specific install script used by HP pwplus--don't use.
3946 :
3947 else
81ecdfbb
RW
3948 rm -rf conftest.one conftest.two conftest.dir
3949 echo one > conftest.one
3950 echo two > conftest.two
3951 mkdir conftest.dir
3952 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3953 test -s conftest.one && test -s conftest.two &&
3954 test -s conftest.dir/conftest.one &&
3955 test -s conftest.dir/conftest.two
3956 then
3957 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3958 break 3
3959 fi
b7026657
AC
3960 fi
3961 fi
3962 done
3963 done
3964 ;;
3965esac
b7026657 3966
81ecdfbb
RW
3967 done
3968IFS=$as_save_IFS
3969
3970rm -rf conftest.one conftest.two conftest.dir
b7026657
AC
3971
3972fi
3973 if test "${ac_cv_path_install+set}" = set; then
3974 INSTALL=$ac_cv_path_install
3975 else
81ecdfbb
RW
3976 # As a last resort, use the slow shell script. Don't cache a
3977 # value for INSTALL within a source directory, because that will
b7026657 3978 # break other packages using the cache if that directory is
81ecdfbb 3979 # removed, or if the value is a relative name.
b7026657
AC
3980 INSTALL=$ac_install_sh
3981 fi
3982fi
81ecdfbb
RW
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3984$as_echo "$INSTALL" >&6; }
b7026657
AC
3985
3986# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3987# It thinks the first close brace ends the variable substitution.
c906108c
SS
3988test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3989
b7026657 3990test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
cd0fc7c3 3991
c906108c
SS
3992test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3993
b7026657
AC
3994ac_ext=c
3995ac_cpp='$CPP $CPPFLAGS'
3996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999if test -n "$ac_tool_prefix"; then
4000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4001set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4004if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4005 $as_echo_n "(cached) " >&6
b7026657
AC
4006else
4007 if test -n "$CC"; then
4008 ac_cv_prog_CC="$CC" # Let the user override the test.
4009else
4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
81ecdfbb 4015 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4017 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4019 break 2
4020 fi
4021done
81ecdfbb
RW
4022 done
4023IFS=$as_save_IFS
b7026657
AC
4024
4025fi
4026fi
4027CC=$ac_cv_prog_CC
4028if test -n "$CC"; then
81ecdfbb
RW
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4030$as_echo "$CC" >&6; }
b7026657 4031else
81ecdfbb
RW
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033$as_echo "no" >&6; }
b7026657
AC
4034fi
4035
81ecdfbb 4036
b7026657
AC
4037fi
4038if test -z "$ac_cv_prog_CC"; then
4039 ac_ct_CC=$CC
4040 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 4041set dummy gcc; ac_word=$2
81ecdfbb
RW
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4043$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4044if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4045 $as_echo_n "(cached) " >&6
b7026657
AC
4046else
4047 if test -n "$ac_ct_CC"; then
4048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4049else
4050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051for as_dir in $PATH
4052do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
81ecdfbb 4055 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4057 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4059 break 2
4060 fi
4061done
81ecdfbb
RW
4062 done
4063IFS=$as_save_IFS
b7026657
AC
4064
4065fi
4066fi
4067ac_ct_CC=$ac_cv_prog_ac_ct_CC
4068if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4070$as_echo "$ac_ct_CC" >&6; }
b7026657 4071else
81ecdfbb
RW
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073$as_echo "no" >&6; }
b7026657
AC
4074fi
4075
81ecdfbb
RW
4076 if test "x$ac_ct_CC" = x; then
4077 CC=""
4078 else
4079 case $cross_compiling:$ac_tool_warned in
4080yes:)
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4083ac_tool_warned=yes ;;
4084esac
4085 CC=$ac_ct_CC
4086 fi
b7026657
AC
4087else
4088 CC="$ac_cv_prog_CC"
4089fi
4090
4091if test -z "$CC"; then
81ecdfbb
RW
4092 if test -n "$ac_tool_prefix"; then
4093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b7026657 4094set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4097if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4098 $as_echo_n "(cached) " >&6
c906108c
SS
4099else
4100 if test -n "$CC"; then
4101 ac_cv_prog_CC="$CC" # Let the user override the test.
4102else
b7026657
AC
4103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104for as_dir in $PATH
4105do
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
81ecdfbb 4108 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4110 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4112 break 2
4113 fi
4114done
81ecdfbb
RW
4115 done
4116IFS=$as_save_IFS
b7026657 4117
c906108c
SS
4118fi
4119fi
b7026657 4120CC=$ac_cv_prog_CC
c906108c 4121if test -n "$CC"; then
81ecdfbb
RW
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4123$as_echo "$CC" >&6; }
b7026657 4124else
81ecdfbb
RW
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126$as_echo "no" >&6; }
b7026657
AC
4127fi
4128
c906108c 4129
81ecdfbb 4130 fi
b7026657 4131fi
c906108c
SS
4132if test -z "$CC"; then
4133 # Extract the first word of "cc", so it can be a program name with args.
4134set dummy cc; ac_word=$2
81ecdfbb
RW
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4137if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4138 $as_echo_n "(cached) " >&6
c906108c
SS
4139else
4140 if test -n "$CC"; then
4141 ac_cv_prog_CC="$CC" # Let the user override the test.
4142else
c906108c 4143 ac_prog_rejected=no
b7026657
AC
4144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145for as_dir in $PATH
4146do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
81ecdfbb 4149 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657
AC
4151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4152 ac_prog_rejected=yes
4153 continue
4154 fi
4155 ac_cv_prog_CC="cc"
81ecdfbb 4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4157 break 2
4158 fi
4159done
81ecdfbb
RW
4160 done
4161IFS=$as_save_IFS
b7026657 4162
c906108c
SS
4163if test $ac_prog_rejected = yes; then
4164 # We found a bogon in the path, so make sure we never use it.
4165 set dummy $ac_cv_prog_CC
4166 shift
b7026657 4167 if test $# != 0; then
c906108c
SS
4168 # We chose a different compiler from the bogus one.
4169 # However, it has the same basename, so the bogon will be chosen
4170 # first if we set CC to just the basename; use the full file name.
4171 shift
b7026657 4172 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
4173 fi
4174fi
4175fi
4176fi
b7026657 4177CC=$ac_cv_prog_CC
c906108c 4178if test -n "$CC"; then
81ecdfbb
RW
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4180$as_echo "$CC" >&6; }
c906108c 4181else
81ecdfbb
RW
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183$as_echo "no" >&6; }
c906108c
SS
4184fi
4185
81ecdfbb 4186
b7026657
AC
4187fi
4188if test -z "$CC"; then
4189 if test -n "$ac_tool_prefix"; then
81ecdfbb 4190 for ac_prog in cl.exe
b7026657
AC
4191 do
4192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4193set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4196if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4197 $as_echo_n "(cached) " >&6
c906108c
SS
4198else
4199 if test -n "$CC"; then
4200 ac_cv_prog_CC="$CC" # Let the user override the test.
4201else
b7026657
AC
4202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203for as_dir in $PATH
4204do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
81ecdfbb 4207 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4211 break 2
4212 fi
4213done
81ecdfbb
RW
4214 done
4215IFS=$as_save_IFS
b7026657 4216
c906108c
SS
4217fi
4218fi
b7026657 4219CC=$ac_cv_prog_CC
c906108c 4220if test -n "$CC"; then
81ecdfbb
RW
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4222$as_echo "$CC" >&6; }
c906108c 4223else
81ecdfbb
RW
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225$as_echo "no" >&6; }
c906108c 4226fi
b7026657 4227
81ecdfbb 4228
b7026657
AC
4229 test -n "$CC" && break
4230 done
4231fi
4232if test -z "$CC"; then
4233 ac_ct_CC=$CC
81ecdfbb 4234 for ac_prog in cl.exe
b7026657
AC
4235do
4236 # Extract the first word of "$ac_prog", so it can be a program name with args.
4237set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4240if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4241 $as_echo_n "(cached) " >&6
b7026657
AC
4242else
4243 if test -n "$ac_ct_CC"; then
4244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4245else
4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
81ecdfbb 4251 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 4253 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657 4255 break 2
c906108c 4256 fi
b7026657 4257done
81ecdfbb
RW
4258 done
4259IFS=$as_save_IFS
b7026657
AC
4260
4261fi
4262fi
4263ac_ct_CC=$ac_cv_prog_ac_ct_CC
4264if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4266$as_echo "$ac_ct_CC" >&6; }
b7026657 4267else
81ecdfbb
RW
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269$as_echo "no" >&6; }
c906108c
SS
4270fi
4271
81ecdfbb 4272
b7026657
AC
4273 test -n "$ac_ct_CC" && break
4274done
c906108c 4275
81ecdfbb
RW
4276 if test "x$ac_ct_CC" = x; then
4277 CC=""
4278 else
4279 case $cross_compiling:$ac_tool_warned in
4280yes:)
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4283ac_tool_warned=yes ;;
4284esac
4285 CC=$ac_ct_CC
4286 fi
b7026657
AC
4287fi
4288
4289fi
4290
4291
81ecdfbb
RW
4292test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4294as_fn_error $? "no acceptable C compiler found in \$PATH
4295See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
4296
4297# Provide some information about the compiler.
81ecdfbb
RW
4298$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4299set X $ac_compile
4300ac_compiler=$2
4301for ac_option in --version -v -V -qversion; do
4302 { { ac_try="$ac_compiler $ac_option >&5"
4303case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306esac
4307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308$as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b7026657 4310 ac_status=$?
81ecdfbb
RW
4311 if test -s conftest.err; then
4312 sed '10a\
4313... rest of stderr output deleted ...
4314 10q' conftest.err >conftest.er1
4315 cat conftest.er1 >&5
81ecdfbb 4316 fi
d0ac1c44 4317 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }
4320done
b7026657 4321
81ecdfbb 4322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4323/* end confdefs.h. */
4324
4325int
4326main ()
4327{
4328
4329 ;
4330 return 0;
4331}
4332_ACEOF
4333ac_clean_files_save=$ac_clean_files
d0ac1c44 4334ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b7026657
AC
4335# Try to create an executable without -o first, disregard a.out.
4336# It will help us diagnose broken compilers, and finding out an intuition
4337# of exeext.
d0ac1c44
SM
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4339$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4340ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4341
4342# The possible output files:
4343ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4344
4345ac_rmfiles=
4346for ac_file in $ac_files
4347do
4348 case $ac_file in
4349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4350 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4351 esac
4352done
4353rm -f $ac_rmfiles
4354
4355if { { ac_try="$ac_link_default"
4356case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361$as_echo "$ac_try_echo"; } >&5
4362 (eval "$ac_link_default") 2>&5
b7026657 4363 ac_status=$?
81ecdfbb
RW
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }; then :
4366 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4367# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4368# in a Makefile. We should not override ac_cv_exeext if it was cached,
4369# so that the user can short-circuit this test for compilers unknown to
4370# Autoconf.
4371for ac_file in $ac_files ''
b7026657
AC
4372do
4373 test -f "$ac_file" || continue
4374 case $ac_file in
81ecdfbb 4375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
4376 ;;
4377 [ab].out )
4378 # We found the default executable, but exeext='' is most
4379 # certainly right.
4380 break;;
4381 *.* )
81ecdfbb
RW
4382 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4383 then :; else
4384 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4385 fi
4386 # We set ac_cv_exeext here because the later test for it is not
4387 # safe: cross compilers may not add the suffix if given an `-o'
4388 # argument, so we may need to know it at that point already.
4389 # Even if this section looks crufty: it has the advantage of
4390 # actually working.
b7026657
AC
4391 break;;
4392 * )
4393 break;;
4394 esac
4395done
81ecdfbb
RW
4396test "$ac_cv_exeext" = no && ac_cv_exeext=
4397
b7026657 4398else
81ecdfbb
RW
4399 ac_file=''
4400fi
81ecdfbb 4401if test -z "$ac_file"; then :
d0ac1c44
SM
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403$as_echo "no" >&6; }
4404$as_echo "$as_me: failed program was:" >&5
b7026657
AC
4405sed 's/^/| /' conftest.$ac_ext >&5
4406
81ecdfbb
RW
4407{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4409as_fn_error 77 "C compiler cannot create executables
4410See \`config.log' for more details" "$LINENO" 5; }
4411else
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4413$as_echo "yes" >&6; }
b7026657 4414fi
d0ac1c44
SM
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4416$as_echo_n "checking for C compiler default output file name... " >&6; }
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4418$as_echo "$ac_file" >&6; }
b7026657 4419ac_exeext=$ac_cv_exeext
b7026657 4420
d0ac1c44 4421rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b7026657 4422ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4424$as_echo_n "checking for suffix of executables... " >&6; }
4425if { { ac_try="$ac_link"
4426case "(($ac_try" in
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4429esac
4430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4431$as_echo "$ac_try_echo"; } >&5
4432 (eval "$ac_link") 2>&5
b7026657 4433 ac_status=$?
81ecdfbb
RW
4434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435 test $ac_status = 0; }; then :
b7026657
AC
4436 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4437# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4438# work properly (i.e., refer to `conftest.exe'), while it won't with
4439# `rm'.
4440for ac_file in conftest.exe conftest conftest.*; do
4441 test -f "$ac_file" || continue
4442 case $ac_file in
81ecdfbb 4443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 4444 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
4445 break;;
4446 * ) break;;
4447 esac
4448done
c906108c 4449else
81ecdfbb
RW
4450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4452as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4453See \`config.log' for more details" "$LINENO" 5; }
c906108c 4454fi
d0ac1c44 4455rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4457$as_echo "$ac_cv_exeext" >&6; }
b7026657
AC
4458
4459rm -f conftest.$ac_ext
4460EXEEXT=$ac_cv_exeext
4461ac_exeext=$EXEEXT
d0ac1c44
SM
4462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463/* end confdefs.h. */
4464#include <stdio.h>
4465int
4466main ()
4467{
4468FILE *f = fopen ("conftest.out", "w");
4469 return ferror (f) || fclose (f) != 0;
4470
4471 ;
4472 return 0;
4473}
4474_ACEOF
4475ac_clean_files="$ac_clean_files conftest.out"
4476# Check that the compiler produces executables we can run. If not, either
4477# the compiler is broken, or we cross compile.
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4479$as_echo_n "checking whether we are cross compiling... " >&6; }
4480if test "$cross_compiling" != yes; then
4481 { { ac_try="$ac_link"
4482case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485esac
4486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487$as_echo "$ac_try_echo"; } >&5
4488 (eval "$ac_link") 2>&5
4489 ac_status=$?
4490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491 test $ac_status = 0; }
4492 if { ac_try='./conftest$ac_cv_exeext'
4493 { { case "(($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_try") 2>&5
4500 ac_status=$?
4501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502 test $ac_status = 0; }; }; then
4503 cross_compiling=no
4504 else
4505 if test "$cross_compiling" = maybe; then
4506 cross_compiling=yes
4507 else
4508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510as_fn_error $? "cannot run C compiled programs.
4511If you meant to cross compile, use \`--host'.
4512See \`config.log' for more details" "$LINENO" 5; }
4513 fi
4514 fi
4515fi
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4517$as_echo "$cross_compiling" >&6; }
4518
4519rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4520ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4522$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4523if ${ac_cv_objext+:} false; then :
81ecdfbb 4524 $as_echo_n "(cached) " >&6
b7026657 4525else
81ecdfbb 4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4527/* end confdefs.h. */
4528
4529int
4530main ()
4531{
4532
4533 ;
4534 return 0;
4535}
4536_ACEOF
4537rm -f conftest.o conftest.obj
81ecdfbb
RW
4538if { { ac_try="$ac_compile"
4539case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4542esac
4543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4544$as_echo "$ac_try_echo"; } >&5
4545 (eval "$ac_compile") 2>&5
b7026657 4546 ac_status=$?
81ecdfbb
RW
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }; then :
4549 for ac_file in conftest.o conftest.obj conftest.*; do
4550 test -f "$ac_file" || continue;
b7026657 4551 case $ac_file in
81ecdfbb 4552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
4553 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4554 break;;
4555 esac
4556done
4557else
81ecdfbb 4558 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
4559sed 's/^/| /' conftest.$ac_ext >&5
4560
81ecdfbb
RW
4561{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4563as_fn_error $? "cannot compute suffix of object files: cannot compile
4564See \`config.log' for more details" "$LINENO" 5; }
c906108c 4565fi
b7026657
AC
4566rm -f conftest.$ac_cv_objext conftest.$ac_ext
4567fi
81ecdfbb
RW
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4569$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
4570OBJEXT=$ac_cv_objext
4571ac_objext=$OBJEXT
81ecdfbb
RW
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4573$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4574if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4575 $as_echo_n "(cached) " >&6
b7026657 4576else
81ecdfbb 4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4578/* end confdefs.h. */
4579
4580int
4581main ()
4582{
4583#ifndef __GNUC__
4584 choke me
4585#endif
c906108c 4586
b7026657
AC
4587 ;
4588 return 0;
4589}
4590_ACEOF
81ecdfbb 4591if ac_fn_c_try_compile "$LINENO"; then :
b7026657 4592 ac_compiler_gnu=yes
c906108c 4593else
81ecdfbb 4594 ac_compiler_gnu=no
c906108c 4595fi
81ecdfbb 4596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4597ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 4598
b7026657 4599fi
81ecdfbb
RW
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4601$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4602if test $ac_compiler_gnu = yes; then
4603 GCC=yes
4604else
4605 GCC=
4606fi
b7026657
AC
4607ac_test_CFLAGS=${CFLAGS+set}
4608ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4610$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4611if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb 4612 $as_echo_n "(cached) " >&6
c906108c 4613else
81ecdfbb
RW
4614 ac_save_c_werror_flag=$ac_c_werror_flag
4615 ac_c_werror_flag=yes
4616 ac_cv_prog_cc_g=no
4617 CFLAGS="-g"
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4619/* end confdefs.h. */
4620
4621int
4622main ()
4623{
4624
4625 ;
4626 return 0;
4627}
4628_ACEOF
81ecdfbb 4629if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4630 ac_cv_prog_cc_g=yes
4631else
81ecdfbb
RW
4632 CFLAGS=""
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634/* end confdefs.h. */
c906108c 4635
81ecdfbb
RW
4636int
4637main ()
4638{
4639
4640 ;
4641 return 0;
4642}
4643_ACEOF
4644if ac_fn_c_try_compile "$LINENO"; then :
4645
4646else
4647 ac_c_werror_flag=$ac_save_c_werror_flag
4648 CFLAGS="-g"
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650/* end confdefs.h. */
4651
4652int
4653main ()
4654{
4655
4656 ;
4657 return 0;
4658}
4659_ACEOF
4660if ac_fn_c_try_compile "$LINENO"; then :
4661 ac_cv_prog_cc_g=yes
4662fi
4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664fi
4665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666fi
4667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 ac_c_werror_flag=$ac_save_c_werror_flag
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4671$as_echo "$ac_cv_prog_cc_g" >&6; }
4672if test "$ac_test_CFLAGS" = set; then
4673 CFLAGS=$ac_save_CFLAGS
4674elif test $ac_cv_prog_cc_g = yes; then
4675 if test "$GCC" = yes; then
4676 CFLAGS="-g -O2"
4677 else
c906108c
SS
4678 CFLAGS="-g"
4679 fi
4680else
4681 if test "$GCC" = yes; then
4682 CFLAGS="-O2"
4683 else
4684 CFLAGS=
4685 fi
4686fi
81ecdfbb
RW
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4688$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4689if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4690 $as_echo_n "(cached) " >&6
b7026657 4691else
81ecdfbb 4692 ac_cv_prog_cc_c89=no
b7026657 4693ac_save_CC=$CC
81ecdfbb 4694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4695/* end confdefs.h. */
4696#include <stdarg.h>
4697#include <stdio.h>
d0ac1c44 4698struct stat;
b7026657
AC
4699/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4700struct buf { int x; };
4701FILE * (*rcsopen) (struct buf *, struct stat *, int);
4702static char *e (p, i)
4703 char **p;
4704 int i;
4705{
4706 return p[i];
4707}
4708static char *f (char * (*g) (char **, int), char **p, ...)
4709{
4710 char *s;
4711 va_list v;
4712 va_start (v,p);
4713 s = g (p, va_arg (v,int));
4714 va_end (v);
4715 return s;
4716}
4717
4718/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4719 function prototypes and stuff, but not '\xHH' hex character constants.
4720 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4721 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
4722 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4723 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4724 that's true only with -std. */
b7026657
AC
4725int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4726
81ecdfbb
RW
4727/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4728 inside strings and character constants. */
4729#define FOO(x) 'x'
4730int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4731
b7026657
AC
4732int test (int i, double x);
4733struct s1 {int (*f) (int a);};
4734struct s2 {int (*f) (double a);};
4735int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4736int argc;
4737char **argv;
4738int
4739main ()
4740{
4741return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4742 ;
4743 return 0;
4744}
4745_ACEOF
81ecdfbb
RW
4746for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4747 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
4748do
4749 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4750 if ac_fn_c_try_compile "$LINENO"; then :
4751 ac_cv_prog_cc_c89=$ac_arg
b7026657 4752fi
81ecdfbb
RW
4753rm -f core conftest.err conftest.$ac_objext
4754 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 4755done
81ecdfbb 4756rm -f conftest.$ac_ext
b7026657
AC
4757CC=$ac_save_CC
4758
4759fi
81ecdfbb
RW
4760# AC_CACHE_VAL
4761case "x$ac_cv_prog_cc_c89" in
4762 x)
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4764$as_echo "none needed" >&6; } ;;
4765 xno)
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4767$as_echo "unsupported" >&6; } ;;
b7026657 4768 *)
81ecdfbb
RW
4769 CC="$CC $ac_cv_prog_cc_c89"
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4771$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 4772esac
81ecdfbb 4773if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657
AC
4774
4775fi
b7026657 4776
b7026657
AC
4777ac_ext=c
4778ac_cpp='$CPP $CPPFLAGS'
4779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781ac_compiler_gnu=$ac_cv_c_compiler_gnu
4782
c906108c
SS
4783
4784
4785
2232061b
MF
4786# Check whether --enable-werror was given.
4787if test "${enable_werror+set}" = set; then :
4788 enableval=$enable_werror; case "${enableval}" in
4789 yes | y) ERROR_ON_WARNING="yes" ;;
4790 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 4791 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
2232061b
MF
4792 esac
4793fi
4794
4795
4796# Enable -Werror by default when using gcc
4797if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4798 ERROR_ON_WARNING=yes
4799fi
4800
4801WERROR_CFLAGS=""
bf470982
MF
4802 if test "${ERROR_ON_WARNING}" = yes ; then
4803 WERROR_CFLAGS="-Werror"
4804 fi
2232061b 4805
2232061b 4806build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 4807-Wpointer-sign \
2232061b 4808-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
4809-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
4810-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
4811-Wold-style-declaration -Wold-style-definition"
2232061b
MF
4812
4813# Enable -Wno-format by default when using gcc on mingw since many
4814# GCC versions complain about %I64.
4815case "${host}" in
4816 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 4817 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
4818esac
4819
81ecdfbb
RW
4820# Check whether --enable-build-warnings was given.
4821if test "${enable_build_warnings+set}" = set; then :
4822 enableval=$enable_build_warnings; case "${enableval}" in
c8cca39f
AC
4823 yes) ;;
4824 no) build_warnings="-w";;
4825 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4826 build_warnings="${build_warnings} ${t}";;
4827 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4828 build_warnings="${t} ${build_warnings}";;
4829 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4830esac
4831if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4832 echo "Setting compiler warning flags = $build_warnings" 6>&1
4833fi
81ecdfbb
RW
4834fi
4835# Check whether --enable-sim-build-warnings was given.
4836if test "${enable_sim_build_warnings+set}" = set; then :
4837 enableval=$enable_sim_build_warnings; case "${enableval}" in
c906108c
SS
4838 yes) ;;
4839 no) build_warnings="-w";;
4840 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 4841 build_warnings="${build_warnings} ${t}";;
c906108c 4842 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
4843 build_warnings="${t} ${build_warnings}";;
4844 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
4845esac
4846if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
4847 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4848fi
81ecdfbb
RW
4849fi
4850WARN_CFLAGS=""
d4f3574e
SS
4851if test "x${build_warnings}" != x -a "x$GCC" = xyes
4852then
81ecdfbb
RW
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4854$as_echo_n "checking compiler warning flags... " >&6; }
c8cca39f
AC
4855 # Separate out the -Werror flag as some files just cannot be
4856 # compiled with it enabled.
4857 for w in ${build_warnings}; do
4858 case $w in
4859 -Werr*) WERROR_CFLAGS=-Werror ;;
4860 *) # Check that GCC accepts it
4861 saved_CFLAGS="$CFLAGS"
4862 CFLAGS="$CFLAGS $w"
81ecdfbb 4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4864/* end confdefs.h. */
4865
4866int
4867main ()
4868{
4869
4870 ;
4871 return 0;
4872}
4873_ACEOF
81ecdfbb 4874if ac_fn_c_try_compile "$LINENO"; then :
c8cca39f 4875 WARN_CFLAGS="${WARN_CFLAGS} $w"
c8cca39f 4876fi
81ecdfbb 4877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
4878 CFLAGS="$saved_CFLAGS"
4879 esac
4880 done
2232061b
MF
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
4882$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
c906108c
SS
4883fi
4884
4885
4886# Put a plausible default for CC_FOR_BUILD in Makefile.
4887if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
4888 AR_FOR_BUILD='$(AR)'
4889 AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
4890 CC_FOR_BUILD='$(CC)'
4891 CFLAGS_FOR_BUILD='$(CFLAGS)'
4892 RANLIB_FOR_BUILD='$(RANLIB)'
4893 LIBIBERTY_LIB=../../libiberty/libiberty.a
4894else
4895 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4896 AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
4897 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4898 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
4899 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4900 LIBIBERTY_LIB=
4901fi
4902
4903
c906108c 4904# Make sure we can run config.sub.
81ecdfbb 4905$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 4906 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
4907
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4909$as_echo_n "checking build system type... " >&6; }
d0ac1c44 4910if ${ac_cv_build+:} false; then :
81ecdfbb 4911 $as_echo_n "(cached) " >&6
b7026657 4912else
81ecdfbb
RW
4913 ac_build_alias=$build_alias
4914test "x$ac_build_alias" = x &&
4915 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4916test "x$ac_build_alias" = x &&
d0ac1c44 4917 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 4918ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 4919 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
4920
4921fi
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4923$as_echo "$ac_cv_build" >&6; }
4924case $ac_cv_build in
4925*-*-*) ;;
d0ac1c44 4926*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 4927esac
b7026657 4928build=$ac_cv_build
81ecdfbb
RW
4929ac_save_IFS=$IFS; IFS='-'
4930set x $ac_cv_build
4931shift
4932build_cpu=$1
4933build_vendor=$2
4934shift; shift
4935# Remember, the first character of IFS is used to create $*,
4936# except with old shells:
4937build_os=$*
4938IFS=$ac_save_IFS
4939case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4940
4941
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4943$as_echo_n "checking host system type... " >&6; }
d0ac1c44 4944if ${ac_cv_host+:} false; then :
81ecdfbb 4945 $as_echo_n "(cached) " >&6
b7026657 4946else
81ecdfbb
RW
4947 if test "x$host_alias" = x; then
4948 ac_cv_host=$ac_cv_build
4949else
4950 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 4951 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 4952fi
c906108c 4953
b7026657 4954fi
81ecdfbb
RW
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4956$as_echo "$ac_cv_host" >&6; }
4957case $ac_cv_host in
4958*-*-*) ;;
d0ac1c44 4959*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 4960esac
b7026657 4961host=$ac_cv_host
81ecdfbb
RW
4962ac_save_IFS=$IFS; IFS='-'
4963set x $ac_cv_host
4964shift
4965host_cpu=$1
4966host_vendor=$2
4967shift; shift
4968# Remember, the first character of IFS is used to create $*,
4969# except with old shells:
4970host_os=$*
4971IFS=$ac_save_IFS
4972case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4973
4974
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4976$as_echo_n "checking target system type... " >&6; }
d0ac1c44 4977if ${ac_cv_target+:} false; then :
81ecdfbb
RW
4978 $as_echo_n "(cached) " >&6
4979else
4980 if test "x$target_alias" = x; then
4981 ac_cv_target=$ac_cv_host
b7026657 4982else
81ecdfbb 4983 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 4984 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 4985fi
c906108c 4986
b7026657 4987fi
81ecdfbb
RW
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4989$as_echo "$ac_cv_target" >&6; }
4990case $ac_cv_target in
4991*-*-*) ;;
d0ac1c44 4992*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 4993esac
b7026657 4994target=$ac_cv_target
81ecdfbb
RW
4995ac_save_IFS=$IFS; IFS='-'
4996set x $ac_cv_target
4997shift
4998target_cpu=$1
4999target_vendor=$2
5000shift; shift
5001# Remember, the first character of IFS is used to create $*,
5002# except with old shells:
5003target_os=$*
5004IFS=$ac_save_IFS
5005case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c906108c 5006
c906108c 5007
b7026657
AC
5008# The aliases save the names the user supplied, while $host etc.
5009# will get canonicalized.
5010test -n "$target_alias" &&
c906108c
SS
5011 test "$program_prefix$program_suffix$program_transform_name" = \
5012 NONENONEs,x,x, &&
5013 program_prefix=${target_alias}-
81ecdfbb 5014
c906108c 5015test "$program_prefix" != NONE &&
81ecdfbb 5016 program_transform_name="s&^&$program_prefix&;$program_transform_name"
c906108c
SS
5017# Use a double $ so make ignores it.
5018test "$program_suffix" != NONE &&
81ecdfbb
RW
5019 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5020# Double any \ or $.
b7026657 5021# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
5022ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5023program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
c906108c
SS
5024
5025
81ecdfbb 5026ac_config_headers="$ac_config_headers config.h:config.in"
c906108c
SS
5027
5028
68ed2854 5029# NB: You can assume C11 headers exist.
b7026657
AC
5030ac_ext=c
5031ac_cpp='$CPP $CPPFLAGS'
5032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5036$as_echo_n "checking how to run the C preprocessor... " >&6; }
c906108c
SS
5037# On Suns, sometimes $CPP names a directory.
5038if test -n "$CPP" && test -d "$CPP"; then
5039 CPP=
5040fi
5041if test -z "$CPP"; then
d0ac1c44 5042 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 5043 $as_echo_n "(cached) " >&6
c906108c 5044else
b7026657
AC
5045 # Double quotes because CPP needs to be expanded
5046 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5047 do
5048 ac_preproc_ok=false
5049for ac_c_preproc_warn_flag in '' yes
5050do
5051 # Use a header file that comes with gcc, so configuring glibc
5052 # with a fresh cross-compiler works.
5053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5054 # <limits.h> exists even on freestanding compilers.
c906108c 5055 # On the NeXT, cc -E runs the code through the compiler's parser,
b7026657 5056 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5058/* end confdefs.h. */
5059#ifdef __STDC__
5060# include <limits.h>
5061#else
5062# include <assert.h>
5063#endif
5064 Syntax error
5065_ACEOF
81ecdfbb 5066if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 5067
81ecdfbb 5068else
b7026657
AC
5069 # Broken: fails on valid input.
5070continue
5071fi
d0ac1c44 5072rm -f conftest.err conftest.i conftest.$ac_ext
b7026657 5073
81ecdfbb 5074 # OK, works on sane cases. Now check whether nonexistent headers
b7026657 5075 # can be detected and how.
81ecdfbb 5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5077/* end confdefs.h. */
5078#include <ac_nonexistent.h>
5079_ACEOF
81ecdfbb 5080if ac_fn_c_try_cpp "$LINENO"; then :
b7026657
AC
5081 # Broken: success on invalid input.
5082continue
5083else
b7026657
AC
5084 # Passes both tests.
5085ac_preproc_ok=:
5086break
5087fi
d0ac1c44 5088rm -f conftest.err conftest.i conftest.$ac_ext
b7026657
AC
5089
5090done
5091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5092rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 5093if $ac_preproc_ok; then :
b7026657
AC
5094 break
5095fi
5096
5097 done
5098 ac_cv_prog_CPP=$CPP
5099
5100fi
5101 CPP=$ac_cv_prog_CPP
5102else
5103 ac_cv_prog_CPP=$CPP
5104fi
81ecdfbb
RW
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5106$as_echo "$CPP" >&6; }
b7026657
AC
5107ac_preproc_ok=false
5108for ac_c_preproc_warn_flag in '' yes
5109do
5110 # Use a header file that comes with gcc, so configuring glibc
5111 # with a fresh cross-compiler works.
5112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113 # <limits.h> exists even on freestanding compilers.
5114 # On the NeXT, cc -E runs the code through the compiler's parser,
5115 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5117/* end confdefs.h. */
5118#ifdef __STDC__
5119# include <limits.h>
5120#else
5121# include <assert.h>
5122#endif
5123 Syntax error
5124_ACEOF
81ecdfbb 5125if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 5126
81ecdfbb 5127else
b7026657
AC
5128 # Broken: fails on valid input.
5129continue
5130fi
d0ac1c44 5131rm -f conftest.err conftest.i conftest.$ac_ext
b7026657 5132
81ecdfbb 5133 # OK, works on sane cases. Now check whether nonexistent headers
b7026657 5134 # can be detected and how.
81ecdfbb 5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5136/* end confdefs.h. */
5137#include <ac_nonexistent.h>
5138_ACEOF
81ecdfbb 5139if ac_fn_c_try_cpp "$LINENO"; then :
b7026657
AC
5140 # Broken: success on invalid input.
5141continue
5142else
b7026657
AC
5143 # Passes both tests.
5144ac_preproc_ok=:
5145break
5146fi
d0ac1c44 5147rm -f conftest.err conftest.i conftest.$ac_ext
b7026657
AC
5148
5149done
5150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5151rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
5152if $ac_preproc_ok; then :
5153
c906108c 5154else
81ecdfbb
RW
5155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5157as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5158See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
5159fi
5160
5161ac_ext=c
5162ac_cpp='$CPP $CPPFLAGS'
5163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166
5167
81ecdfbb
RW
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5169$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 5170if ${ac_cv_path_GREP+:} false; then :
81ecdfbb 5171 $as_echo_n "(cached) " >&6
b7026657 5172else
81ecdfbb
RW
5173 if test -z "$GREP"; then
5174 ac_path_GREP_found=false
5175 # Loop through the user's path and test for each of PROGNAME-LIST
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5178do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_prog in grep ggrep; do
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5184 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
5185# Check for GNU ac_path_GREP and select it if it is found.
5186 # Check for GNU $ac_path_GREP
5187case `"$ac_path_GREP" --version 2>&1` in
5188*GNU*)
5189 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5190*)
5191 ac_count=0
5192 $as_echo_n 0123456789 >"conftest.in"
5193 while :
5194 do
5195 cat "conftest.in" "conftest.in" >"conftest.tmp"
5196 mv "conftest.tmp" "conftest.in"
5197 cp "conftest.in" "conftest.nl"
5198 $as_echo 'GREP' >> "conftest.nl"
5199 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5201 as_fn_arith $ac_count + 1 && ac_count=$as_val
5202 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5203 # Best one so far, save it but keep looking for a better one
5204 ac_cv_path_GREP="$ac_path_GREP"
5205 ac_path_GREP_max=$ac_count
b7026657 5206 fi
81ecdfbb
RW
5207 # 10*(2^10) chars as input seems more than enough
5208 test $ac_count -gt 10 && break
5209 done
5210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5211esac
5212
5213 $ac_path_GREP_found && break 3
5214 done
5215 done
5216 done
5217IFS=$as_save_IFS
5218 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 5219 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5220 fi
5221else
5222 ac_cv_path_GREP=$GREP
5223fi
5224
b7026657 5225fi
81ecdfbb
RW
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5227$as_echo "$ac_cv_path_GREP" >&6; }
5228 GREP="$ac_cv_path_GREP"
b7026657
AC
5229
5230
81ecdfbb
RW
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5232$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5233if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 5234 $as_echo_n "(cached) " >&6
b7026657 5235else
81ecdfbb
RW
5236 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5237 then ac_cv_path_EGREP="$GREP -E"
5238 else
5239 if test -z "$EGREP"; then
5240 ac_path_EGREP_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5244do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_prog in egrep; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5250 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
5251# Check for GNU ac_path_EGREP and select it if it is found.
5252 # Check for GNU $ac_path_EGREP
5253case `"$ac_path_EGREP" --version 2>&1` in
5254*GNU*)
5255 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5256*)
5257 ac_count=0
5258 $as_echo_n 0123456789 >"conftest.in"
5259 while :
5260 do
5261 cat "conftest.in" "conftest.in" >"conftest.tmp"
5262 mv "conftest.tmp" "conftest.in"
5263 cp "conftest.in" "conftest.nl"
5264 $as_echo 'EGREP' >> "conftest.nl"
5265 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267 as_fn_arith $ac_count + 1 && ac_count=$as_val
5268 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_EGREP="$ac_path_EGREP"
5271 ac_path_EGREP_max=$ac_count
5272 fi
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5275 done
5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277esac
5278
5279 $ac_path_EGREP_found && break 3
5280 done
5281 done
5282 done
5283IFS=$as_save_IFS
5284 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5285 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5286 fi
5287else
5288 ac_cv_path_EGREP=$EGREP
5289fi
5290
5291 fi
5292fi
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5294$as_echo "$ac_cv_path_EGREP" >&6; }
5295 EGREP="$ac_cv_path_EGREP"
5296
5297
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5299$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5300if ${ac_cv_header_stdc+:} false; then :
81ecdfbb
RW
5301 $as_echo_n "(cached) " >&6
5302else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5304/* end confdefs.h. */
5305#include <stdlib.h>
5306#include <stdarg.h>
5307#include <string.h>
5308#include <float.h>
5309
5310int
5311main ()
5312{
5313
5314 ;
5315 return 0;
5316}
5317_ACEOF
81ecdfbb 5318if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
5319 ac_cv_header_stdc=yes
5320else
81ecdfbb 5321 ac_cv_header_stdc=no
b7026657 5322fi
81ecdfbb 5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
5324
5325if test $ac_cv_header_stdc = yes; then
5326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5328/* end confdefs.h. */
5329#include <string.h>
5330
5331_ACEOF
5332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5333 $EGREP "memchr" >/dev/null 2>&1; then :
5334
c906108c 5335else
b7026657 5336 ac_cv_header_stdc=no
c906108c
SS
5337fi
5338rm -f conftest*
b7026657 5339
c906108c 5340fi
b7026657
AC
5341
5342if test $ac_cv_header_stdc = yes; then
5343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5345/* end confdefs.h. */
5346#include <stdlib.h>
5347
5348_ACEOF
5349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5350 $EGREP "free" >/dev/null 2>&1; then :
5351
b7026657
AC
5352else
5353 ac_cv_header_stdc=no
c906108c
SS
5354fi
5355rm -f conftest*
b7026657 5356
c906108c 5357fi
b7026657
AC
5358
5359if test $ac_cv_header_stdc = yes; then
5360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5361 if test "$cross_compiling" = yes; then :
b7026657 5362 :
c906108c 5363else
81ecdfbb 5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5365/* end confdefs.h. */
5366#include <ctype.h>
81ecdfbb 5367#include <stdlib.h>
b7026657
AC
5368#if ((' ' & 0x0FF) == 0x020)
5369# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5370# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5371#else
5372# define ISLOWER(c) \
5373 (('a' <= (c) && (c) <= 'i') \
5374 || ('j' <= (c) && (c) <= 'r') \
5375 || ('s' <= (c) && (c) <= 'z'))
5376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5377#endif
5378
5379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5380int
5381main ()
5382{
5383 int i;
5384 for (i = 0; i < 256; i++)
5385 if (XOR (islower (i), ISLOWER (i))
5386 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5387 return 2;
5388 return 0;
b7026657
AC
5389}
5390_ACEOF
81ecdfbb 5391if ac_fn_c_try_run "$LINENO"; then :
b7026657 5392
81ecdfbb
RW
5393else
5394 ac_cv_header_stdc=no
b7026657 5395fi
81ecdfbb
RW
5396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5397 conftest.$ac_objext conftest.beam conftest.$ac_ext
b7026657 5398fi
81ecdfbb 5399
b7026657
AC
5400fi
5401fi
81ecdfbb
RW
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5403$as_echo "$ac_cv_header_stdc" >&6; }
b7026657
AC
5404if test $ac_cv_header_stdc = yes; then
5405
81ecdfbb 5406$as_echo "#define STDC_HEADERS 1" >>confdefs.h
b7026657 5407
c906108c 5408fi
c906108c 5409
b7026657 5410# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
5411for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5412 inttypes.h stdint.h unistd.h
5413do :
5414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5415ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5416"
d0ac1c44 5417if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
5418 cat >>confdefs.h <<_ACEOF
5419#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5420_ACEOF
b7026657 5421
81ecdfbb 5422fi
b7026657 5423
81ecdfbb 5424done
b7026657
AC
5425
5426
68ed2854 5427for ac_header in sys/stat.h sys/types.h unistd.h
81ecdfbb
RW
5428do :
5429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5430ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 5431if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
81ecdfbb
RW
5432 cat >>confdefs.h <<_ACEOF
5433#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5434_ACEOF
b7026657 5435
81ecdfbb 5436fi
b7026657 5437
81ecdfbb 5438done
b7026657 5439
81ecdfbb
RW
5440ac_header_dirent=no
5441for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5442 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5444$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0ac1c44 5445if eval \${$as_ac_Header+:} false; then :
81ecdfbb 5446 $as_echo_n "(cached) " >&6
b7026657 5447else
81ecdfbb 5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5449/* end confdefs.h. */
81ecdfbb
RW
5450#include <sys/types.h>
5451#include <$ac_hdr>
b7026657 5452
81ecdfbb
RW
5453int
5454main ()
5455{
5456if ((DIR *) 0)
5457return 0;
5458 ;
5459 return 0;
5460}
b7026657 5461_ACEOF
81ecdfbb 5462if ac_fn_c_try_compile "$LINENO"; then :
b7026657
AC
5463 eval "$as_ac_Header=yes"
5464else
81ecdfbb 5465 eval "$as_ac_Header=no"
c906108c 5466fi
81ecdfbb 5467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 5468fi
81ecdfbb
RW
5469eval ac_res=\$$as_ac_Header
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5471$as_echo "$ac_res" >&6; }
d0ac1c44 5472if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
b7026657 5473 cat >>confdefs.h <<_ACEOF
81ecdfbb 5474#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
b7026657
AC
5475_ACEOF
5476
81ecdfbb 5477ac_header_dirent=$ac_hdr; break
c906108c 5478fi
b7026657 5479
c906108c
SS
5480done
5481# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5482if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5484$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 5485if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 5486 $as_echo_n "(cached) " >&6
b7026657
AC
5487else
5488 ac_func_search_save_LIBS=$LIBS
81ecdfbb 5489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5490/* end confdefs.h. */
5491
81ecdfbb
RW
5492/* Override any GCC internal prototype to avoid an error.
5493 Use char because int might match the return type of a GCC
5494 builtin and then its argument prototype would still apply. */
b7026657
AC
5495#ifdef __cplusplus
5496extern "C"
5497#endif
b7026657
AC
5498char opendir ();
5499int
5500main ()
5501{
81ecdfbb 5502return opendir ();
b7026657
AC
5503 ;
5504 return 0;
5505}
5506_ACEOF
81ecdfbb
RW
5507for ac_lib in '' dir; do
5508 if test -z "$ac_lib"; then
5509 ac_res="none required"
5510 else
5511 ac_res=-l$ac_lib
b7026657 5512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
5513 fi
5514 if ac_fn_c_try_link "$LINENO"; then :
5515 ac_cv_search_opendir=$ac_res
5516fi
5517rm -f core conftest.err conftest.$ac_objext \
5518 conftest$ac_exeext
d0ac1c44 5519 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
5520 break
5521fi
5522done
d0ac1c44 5523if ${ac_cv_search_opendir+:} false; then :
b7026657 5524
c906108c 5525else
81ecdfbb 5526 ac_cv_search_opendir=no
b7026657 5527fi
81ecdfbb 5528rm conftest.$ac_ext
b7026657
AC
5529LIBS=$ac_func_search_save_LIBS
5530fi
81ecdfbb
RW
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5532$as_echo "$ac_cv_search_opendir" >&6; }
5533ac_res=$ac_cv_search_opendir
5534if test "$ac_res" != no; then :
5535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b7026657 5536
c906108c
SS
5537fi
5538
5539else
81ecdfbb
RW
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5541$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 5542if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 5543 $as_echo_n "(cached) " >&6
c906108c 5544else
b7026657 5545 ac_func_search_save_LIBS=$LIBS
81ecdfbb 5546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5547/* end confdefs.h. */
5548
81ecdfbb
RW
5549/* Override any GCC internal prototype to avoid an error.
5550 Use char because int might match the return type of a GCC
5551 builtin and then its argument prototype would still apply. */
b7026657
AC
5552#ifdef __cplusplus
5553extern "C"
5554#endif
b7026657
AC
5555char opendir ();
5556int
5557main ()
5558{
81ecdfbb 5559return opendir ();
b7026657
AC
5560 ;
5561 return 0;
5562}
5563_ACEOF
81ecdfbb
RW
5564for ac_lib in '' x; do
5565 if test -z "$ac_lib"; then
5566 ac_res="none required"
5567 else
5568 ac_res=-l$ac_lib
b7026657 5569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
5570 fi
5571 if ac_fn_c_try_link "$LINENO"; then :
5572 ac_cv_search_opendir=$ac_res
5573fi
5574rm -f core conftest.err conftest.$ac_objext \
5575 conftest$ac_exeext
d0ac1c44 5576 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
5577 break
5578fi
5579done
d0ac1c44 5580if ${ac_cv_search_opendir+:} false; then :
b7026657 5581
c906108c 5582else
81ecdfbb 5583 ac_cv_search_opendir=no
b7026657 5584fi
81ecdfbb 5585rm conftest.$ac_ext
b7026657 5586LIBS=$ac_func_search_save_LIBS
c906108c 5587fi
81ecdfbb
RW
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5589$as_echo "$ac_cv_search_opendir" >&6; }
5590ac_res=$ac_cv_search_opendir
5591if test "$ac_res" != no; then :
5592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
c906108c
SS
5593
5594fi
5595
b7026657 5596fi
c906108c
SS
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
b7026657
AC
5607
5608if test -n "$ac_tool_prefix"; then
5609 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5610set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5613if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 5614 $as_echo_n "(cached) " >&6
c906108c
SS
5615else
5616 if test -n "$RANLIB"; then
5617 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5618else
b7026657
AC
5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
81ecdfbb 5624 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 5626 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5628 break 2
5629 fi
5630done
81ecdfbb
RW
5631 done
5632IFS=$as_save_IFS
b7026657 5633
c906108c
SS
5634fi
5635fi
b7026657 5636RANLIB=$ac_cv_prog_RANLIB
c906108c 5637if test -n "$RANLIB"; then
81ecdfbb
RW
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5639$as_echo "$RANLIB" >&6; }
b7026657 5640else
81ecdfbb
RW
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642$as_echo "no" >&6; }
b7026657
AC
5643fi
5644
81ecdfbb 5645
b7026657
AC
5646fi
5647if test -z "$ac_cv_prog_RANLIB"; then
5648 ac_ct_RANLIB=$RANLIB
5649 # Extract the first word of "ranlib", so it can be a program name with args.
5650set dummy ranlib; ac_word=$2
81ecdfbb
RW
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5653if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 5654 $as_echo_n "(cached) " >&6
b7026657
AC
5655else
5656 if test -n "$ac_ct_RANLIB"; then
5657 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5658else
5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660for as_dir in $PATH
5661do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
81ecdfbb 5664 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b7026657 5666 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
5668 break 2
5669 fi
5670done
81ecdfbb
RW
5671 done
5672IFS=$as_save_IFS
b7026657 5673
b7026657
AC
5674fi
5675fi
5676ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5677if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5679$as_echo "$ac_ct_RANLIB" >&6; }
b7026657 5680else
81ecdfbb
RW
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682$as_echo "no" >&6; }
b7026657
AC
5683fi
5684
81ecdfbb
RW
5685 if test "x$ac_ct_RANLIB" = x; then
5686 RANLIB=":"
5687 else
5688 case $cross_compiling:$ac_tool_warned in
5689yes:)
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692ac_tool_warned=yes ;;
5693esac
5694 RANLIB=$ac_ct_RANLIB
5695 fi
c906108c 5696else
b7026657 5697 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
5698fi
5699
5700
81ecdfbb
RW
5701ac_config_files="$ac_config_files Makefile"
5702
5703ac_config_commands="$ac_config_commands default"
5704
b7026657 5705cat >confcache <<\_ACEOF
c906108c
SS
5706# This file is a shell script that caches the results of configure
5707# tests run on this system so they can be shared between configure
b7026657
AC
5708# scripts and configure runs, see configure's option --config-cache.
5709# It is not useful on other systems. If it contains results you don't
5710# want to keep, you may remove or edit it.
c906108c 5711#
b7026657
AC
5712# config.status only pays attention to the cache file if you give it
5713# the --recheck option to rerun configure.
c906108c 5714#
b7026657
AC
5715# `ac_cv_env_foo' variables (set or unset) will be overridden when
5716# loading this file, other *unset* `ac_cv_foo' will be assigned the
5717# following values.
5718
5719_ACEOF
5720
c906108c
SS
5721# The following way of writing the cache mishandles newlines in values,
5722# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 5723# So, we kill variables containing newlines.
c906108c
SS
5724# Ultrix sh set writes to stderr and can't be redirected directly,
5725# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
5726(
5727 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5728 eval ac_val=\$$ac_var
5729 case $ac_val in #(
5730 *${as_nl}*)
5731 case $ac_var in #(
5732 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5733$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5734 esac
5735 case $ac_var in #(
5736 _ | IFS | as_nl) ;; #(
5737 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5738 *) { eval $ac_var=; unset $ac_var;} ;;
5739 esac ;;
5740 esac
5741 done
5742
b7026657 5743 (set) 2>&1 |
81ecdfbb
RW
5744 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5745 *${as_nl}ac_space=\ *)
5746 # `set' does not quote correctly, so add quotes: double-quote
5747 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
5748 sed -n \
5749 "s/'/'\\\\''/g;
5750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 5751 ;; #(
b7026657
AC
5752 *)
5753 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 5754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 5755 ;;
81ecdfbb
RW
5756 esac |
5757 sort
5758) |
b7026657 5759 sed '
81ecdfbb 5760 /^ac_cv_env_/b end
b7026657 5761 t clear
81ecdfbb 5762 :clear
b7026657
AC
5763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5764 t end
81ecdfbb
RW
5765 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5766 :end' >>confcache
5767if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5768 if test -w "$cache_file"; then
d0ac1c44 5769 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5771$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
5772 if test ! -f "$cache_file" || test -h "$cache_file"; then
5773 cat confcache >"$cache_file"
5774 else
5775 case $cache_file in #(
5776 */* | ?:*)
5777 mv -f confcache "$cache_file"$$ &&
5778 mv -f "$cache_file"$$ "$cache_file" ;; #(
5779 *)
5780 mv -f confcache "$cache_file" ;;
5781 esac
5782 fi
5783 fi
c906108c 5784 else
81ecdfbb
RW
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5786$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
5787 fi
5788fi
5789rm -f confcache
5790
c906108c
SS
5791test "x$prefix" = xNONE && prefix=$ac_default_prefix
5792# Let make expand exec_prefix.
5793test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5794
c906108c
SS
5795DEFS=-DHAVE_CONFIG_H
5796
b7026657
AC
5797ac_libobjs=
5798ac_ltlibobjs=
d0ac1c44 5799U=
b7026657
AC
5800for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5801 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
5802 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5803 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5804 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5805 # will be set to the directory where LIBOBJS objects are built.
5806 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5807 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
5808done
5809LIBOBJS=$ac_libobjs
c906108c 5810
b7026657
AC
5811LTLIBOBJS=$ac_ltlibobjs
5812
5813
5814
d0ac1c44 5815: "${CONFIG_STATUS=./config.status}"
81ecdfbb 5816ac_write_fail=0
b7026657
AC
5817ac_clean_files_save=$ac_clean_files
5818ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5820$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5821as_write_fail=0
5822cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
5823#! $SHELL
5824# Generated by $as_me.
c906108c 5825# Run this file to recreate the current configuration.
c906108c 5826# Compiler output produced by configure, useful for debugging
b7026657
AC
5827# configure, is in config.log if it exists.
5828
5829debug=false
5830ac_cs_recheck=false
5831ac_cs_silent=false
b7026657 5832
81ecdfbb
RW
5833SHELL=\${CONFIG_SHELL-$SHELL}
5834export SHELL
5835_ASEOF
5836cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5837## -------------------- ##
5838## M4sh Initialization. ##
5839## -------------------- ##
5840
5841# Be more Bourne compatible
5842DUALCASE=1; export DUALCASE # for MKS sh
5843if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
5844 emulate sh
5845 NULLCMD=:
81ecdfbb 5846 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
5847 # is contrary to our usage. Disable this feature.
5848 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
5849 setopt NO_GLOB_SUBST
5850else
5851 case `(set -o) 2>/dev/null` in #(
5852 *posix*) :
5853 set -o posix ;; #(
5854 *) :
5855 ;;
5856esac
b7026657 5857fi
c906108c 5858
81ecdfbb
RW
5859
5860as_nl='
5861'
5862export as_nl
5863# Printing a long string crashes Solaris 7 /usr/bin/printf.
5864as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5865as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5866as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5867# Prefer a ksh shell builtin over an external printf program on Solaris,
5868# but without wasting forks for bash or zsh.
5869if test -z "$BASH_VERSION$ZSH_VERSION" \
5870 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5871 as_echo='print -r --'
5872 as_echo_n='print -rn --'
5873elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5874 as_echo='printf %s\n'
5875 as_echo_n='printf %s'
b7026657 5876else
81ecdfbb
RW
5877 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5878 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5879 as_echo_n='/usr/ucb/echo -n'
5880 else
5881 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5882 as_echo_n_body='eval
5883 arg=$1;
5884 case $arg in #(
5885 *"$as_nl"*)
5886 expr "X$arg" : "X\\(.*\\)$as_nl";
5887 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5888 esac;
5889 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5890 '
5891 export as_echo_n_body
5892 as_echo_n='sh -c $as_echo_n_body as_echo'
5893 fi
5894 export as_echo_body
5895 as_echo='sh -c $as_echo_body as_echo'
5896fi
5897
5898# The user is always right.
5899if test "${PATH_SEPARATOR+set}" != set; then
5900 PATH_SEPARATOR=:
5901 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5902 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5903 PATH_SEPARATOR=';'
5904 }
b7026657
AC
5905fi
5906
5907
81ecdfbb
RW
5908# IFS
5909# We need space, tab and new line, in precisely that order. Quoting is
5910# there to prevent editors from complaining about space-tab.
5911# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5912# splitting by setting IFS to empty value.)
5913IFS=" "" $as_nl"
5914
5915# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 5916as_myself=
81ecdfbb
RW
5917case $0 in #((
5918 *[\\/]* ) as_myself=$0 ;;
5919 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5925 done
5926IFS=$as_save_IFS
5927
5928 ;;
5929esac
5930# We did not find ourselves, most probably we were run as `sh COMMAND'
5931# in which case we are not to be found in the path.
5932if test "x$as_myself" = x; then
5933 as_myself=$0
5934fi
5935if test ! -f "$as_myself"; then
5936 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5937 exit 1
5938fi
5939
5940# Unset variables that we do not need and which cause bugs (e.g. in
5941# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5942# suppresses any "Segmentation fault" message there. '((' could
5943# trigger a bug in pdksh 5.2.14.
5944for as_var in BASH_ENV ENV MAIL MAILPATH
5945do eval test x\${$as_var+set} = xset \
5946 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5947done
b7026657
AC
5948PS1='$ '
5949PS2='> '
5950PS4='+ '
5951
5952# NLS nuisances.
81ecdfbb
RW
5953LC_ALL=C
5954export LC_ALL
5955LANGUAGE=C
5956export LANGUAGE
5957
5958# CDPATH.
5959(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5960
5961
d0ac1c44
SM
5962# as_fn_error STATUS ERROR [LINENO LOG_FD]
5963# ----------------------------------------
81ecdfbb
RW
5964# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5965# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 5966# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
5967as_fn_error ()
5968{
d0ac1c44
SM
5969 as_status=$1; test $as_status -eq 0 && as_status=1
5970 if test "$4"; then
5971 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5972 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 5973 fi
d0ac1c44 5974 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
5975 as_fn_exit $as_status
5976} # as_fn_error
5977
5978
5979# as_fn_set_status STATUS
5980# -----------------------
5981# Set $? to STATUS, without forking.
5982as_fn_set_status ()
5983{
5984 return $1
5985} # as_fn_set_status
5986
5987# as_fn_exit STATUS
5988# -----------------
5989# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5990as_fn_exit ()
5991{
5992 set +e
5993 as_fn_set_status $1
5994 exit $1
5995} # as_fn_exit
5996
5997# as_fn_unset VAR
5998# ---------------
5999# Portably unset VAR.
6000as_fn_unset ()
6001{
6002 { eval $1=; unset $1;}
6003}
6004as_unset=as_fn_unset
6005# as_fn_append VAR VALUE
6006# ----------------------
6007# Append the text in VALUE to the end of the definition contained in VAR. Take
6008# advantage of any shell optimizations that allow amortized linear growth over
6009# repeated appends, instead of the typical quadratic growth present in naive
6010# implementations.
6011if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6012 eval 'as_fn_append ()
6013 {
6014 eval $1+=\$2
6015 }'
6016else
6017 as_fn_append ()
6018 {
6019 eval $1=\$$1\$2
6020 }
6021fi # as_fn_append
6022
6023# as_fn_arith ARG...
6024# ------------------
6025# Perform arithmetic evaluation on the ARGs, and store the result in the
6026# global $as_val. Take advantage of shells that can avoid forks. The arguments
6027# must be portable across $(()) and expr.
6028if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6029 eval 'as_fn_arith ()
6030 {
6031 as_val=$(( $* ))
6032 }'
6033else
6034 as_fn_arith ()
6035 {
6036 as_val=`expr "$@" || test $? -eq 1`
6037 }
6038fi # as_fn_arith
6039
c906108c 6040
81ecdfbb
RW
6041if expr a : '\(a\)' >/dev/null 2>&1 &&
6042 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
6043 as_expr=expr
6044else
6045 as_expr=false
6046fi
c906108c 6047
81ecdfbb 6048if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
6049 as_basename=basename
6050else
6051 as_basename=false
6052fi
c906108c 6053
81ecdfbb
RW
6054if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6055 as_dirname=dirname
6056else
6057 as_dirname=false
6058fi
c906108c 6059
81ecdfbb 6060as_me=`$as_basename -- "$0" ||
b7026657
AC
6061$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6062 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
6063 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6064$as_echo X/"$0" |
6065 sed '/^.*\/\([^/][^/]*\)\/*$/{
6066 s//\1/
6067 q
6068 }
6069 /^X\/\(\/\/\)$/{
6070 s//\1/
6071 q
6072 }
6073 /^X\/\(\/\).*/{
6074 s//\1/
6075 q
6076 }
6077 s/.*/./; q'`
b7026657 6078
b7026657
AC
6079# Avoid depending upon Character Ranges.
6080as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6081as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6082as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6083as_cr_digits='0123456789'
6084as_cr_alnum=$as_cr_Letters$as_cr_digits
6085
81ecdfbb
RW
6086ECHO_C= ECHO_N= ECHO_T=
6087case `echo -n x` in #(((((
6088-n*)
6089 case `echo 'xy\c'` in
6090 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6091 xy) ECHO_C='\c';;
6092 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6093 ECHO_T=' ';;
6094 esac;;
6095*)
6096 ECHO_N='-n';;
b7026657
AC
6097esac
6098
81ecdfbb
RW
6099rm -f conf$$ conf$$.exe conf$$.file
6100if test -d conf$$.dir; then
6101 rm -f conf$$.dir/conf$$.file
b7026657 6102else
81ecdfbb
RW
6103 rm -f conf$$.dir
6104 mkdir conf$$.dir 2>/dev/null
b7026657 6105fi
81ecdfbb
RW
6106if (echo >conf$$.file) 2>/dev/null; then
6107 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 6108 as_ln_s='ln -s'
81ecdfbb
RW
6109 # ... but there are two gotchas:
6110 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6111 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 6112 # In both cases, we have to default to `cp -pR'.
81ecdfbb 6113 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 6114 as_ln_s='cp -pR'
81ecdfbb
RW
6115 elif ln conf$$.file conf$$ 2>/dev/null; then
6116 as_ln_s=ln
6117 else
d0ac1c44 6118 as_ln_s='cp -pR'
c906108c 6119 fi
b7026657 6120else
d0ac1c44 6121 as_ln_s='cp -pR'
b7026657 6122fi
81ecdfbb
RW
6123rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6124rmdir conf$$.dir 2>/dev/null
6125
6126
6127# as_fn_mkdir_p
6128# -------------
6129# Create "$as_dir" as a directory, including parents if necessary.
6130as_fn_mkdir_p ()
6131{
6132
6133 case $as_dir in #(
6134 -*) as_dir=./$as_dir;;
6135 esac
6136 test -d "$as_dir" || eval $as_mkdir_p || {
6137 as_dirs=
6138 while :; do
6139 case $as_dir in #(
6140 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6141 *) as_qdir=$as_dir;;
6142 esac
6143 as_dirs="'$as_qdir' $as_dirs"
6144 as_dir=`$as_dirname -- "$as_dir" ||
6145$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6146 X"$as_dir" : 'X\(//\)[^/]' \| \
6147 X"$as_dir" : 'X\(//\)$' \| \
6148 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6149$as_echo X"$as_dir" |
6150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6151 s//\1/
6152 q
6153 }
6154 /^X\(\/\/\)[^/].*/{
6155 s//\1/
6156 q
6157 }
6158 /^X\(\/\/\)$/{
6159 s//\1/
6160 q
6161 }
6162 /^X\(\/\).*/{
6163 s//\1/
6164 q
6165 }
6166 s/.*/./; q'`
6167 test -d "$as_dir" && break
6168 done
6169 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 6170 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
b7026657 6171
81ecdfbb
RW
6172
6173} # as_fn_mkdir_p
b7026657 6174if mkdir -p . 2>/dev/null; then
81ecdfbb 6175 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
6176else
6177 test -d ./-p && rmdir ./-p
6178 as_mkdir_p=false
6179fi
6180
d0ac1c44
SM
6181
6182# as_fn_executable_p FILE
6183# -----------------------
6184# Test if FILE is an executable regular file.
6185as_fn_executable_p ()
6186{
6187 test -f "$1" && test -x "$1"
6188} # as_fn_executable_p
6189as_test_x='test -x'
6190as_executable_p=as_fn_executable_p
b7026657
AC
6191
6192# Sed expression to map a string onto a valid CPP name.
6193as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6194
6195# Sed expression to map a string onto a valid variable name.
6196as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6197
6198
b7026657 6199exec 6>&1
81ecdfbb
RW
6200## ----------------------------------- ##
6201## Main body of $CONFIG_STATUS script. ##
6202## ----------------------------------- ##
6203_ASEOF
6204test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6205
6206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6207# Save the log message, to keep $0 and so on meaningful, and to
b7026657 6208# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
6209# values after options handling.
6210ac_log="
b7026657 6211This file was extended by $as_me, which was
d0ac1c44 6212generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
6213
6214 CONFIG_FILES = $CONFIG_FILES
6215 CONFIG_HEADERS = $CONFIG_HEADERS
6216 CONFIG_LINKS = $CONFIG_LINKS
6217 CONFIG_COMMANDS = $CONFIG_COMMANDS
6218 $ $0 $@
6219
81ecdfbb
RW
6220on `(hostname || uname -n) 2>/dev/null | sed 1q`
6221"
6222
b7026657
AC
6223_ACEOF
6224
81ecdfbb
RW
6225case $ac_config_files in *"
6226"*) set x $ac_config_files; shift; ac_config_files=$*;;
6227esac
b7026657 6228
81ecdfbb
RW
6229case $ac_config_headers in *"
6230"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6231esac
b7026657 6232
b7026657 6233
81ecdfbb
RW
6234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6235# Files that config.status was made for.
6236config_files="$ac_config_files"
6237config_headers="$ac_config_headers"
6238config_commands="$ac_config_commands"
b7026657 6239
81ecdfbb 6240_ACEOF
b7026657 6241
81ecdfbb 6242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 6243ac_cs_usage="\
81ecdfbb
RW
6244\`$as_me' instantiates files and other configuration actions
6245from templates according to the current configuration. Unless the files
6246and actions are specified as TAGs, all are instantiated by default.
b7026657 6247
81ecdfbb 6248Usage: $0 [OPTION]... [TAG]...
b7026657
AC
6249
6250 -h, --help print this help, then exit
81ecdfbb 6251 -V, --version print version number and configuration settings, then exit
d0ac1c44 6252 --config print configuration, then exit
81ecdfbb
RW
6253 -q, --quiet, --silent
6254 do not print progress messages
b7026657
AC
6255 -d, --debug don't remove temporary files
6256 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
6257 --file=FILE[:TEMPLATE]
6258 instantiate the configuration file FILE
6259 --header=FILE[:TEMPLATE]
6260 instantiate the configuration header FILE
b7026657
AC
6261
6262Configuration files:
6263$config_files
6264
6265Configuration headers:
6266$config_headers
6267
6268Configuration commands:
6269$config_commands
6270
81ecdfbb 6271Report bugs to the package provider."
b7026657 6272
81ecdfbb
RW
6273_ACEOF
6274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 6275ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
6276ac_cs_version="\\
6277config.status
d0ac1c44
SM
6278configured by $0, generated by GNU Autoconf 2.69,
6279 with options \\"\$ac_cs_config\\"
b7026657 6280
d0ac1c44 6281Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
6282This config.status script is free software; the Free Software Foundation
6283gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
6284
6285ac_pwd='$ac_pwd'
6286srcdir='$srcdir'
6287INSTALL='$INSTALL'
6288test -n "\$AWK" || AWK=awk
b7026657
AC
6289_ACEOF
6290
81ecdfbb
RW
6291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6292# The default lists apply if the user does not specify any file.
b7026657
AC
6293ac_need_defaults=:
6294while test $# != 0
6295do
6296 case $1 in
d0ac1c44 6297 --*=?*)
81ecdfbb
RW
6298 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
6300 ac_shift=:
6301 ;;
d0ac1c44
SM
6302 --*=)
6303 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6304 ac_optarg=
6305 ac_shift=:
6306 ;;
81ecdfbb 6307 *)
b7026657
AC
6308 ac_option=$1
6309 ac_optarg=$2
6310 ac_shift=shift
6311 ;;
b7026657
AC
6312 esac
6313
6314 case $ac_option in
6315 # Handling of the options.
b7026657
AC
6316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6317 ac_cs_recheck=: ;;
81ecdfbb
RW
6318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6319 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
6320 --config | --confi | --conf | --con | --co | --c )
6321 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 6322 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
6323 debug=: ;;
6324 --file | --fil | --fi | --f )
6325 $ac_shift
81ecdfbb
RW
6326 case $ac_optarg in
6327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 6328 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
6329 esac
6330 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
6331 ac_need_defaults=false;;
6332 --header | --heade | --head | --hea )
6333 $ac_shift
81ecdfbb
RW
6334 case $ac_optarg in
6335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6336 esac
6337 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 6338 ac_need_defaults=false;;
81ecdfbb
RW
6339 --he | --h)
6340 # Conflict between --help and --header
d0ac1c44 6341 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
6342Try \`$0 --help' for more information.";;
6343 --help | --hel | -h )
6344 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
6345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6346 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6347 ac_cs_silent=: ;;
6348
6349 # This is an error.
d0ac1c44 6350 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 6351Try \`$0 --help' for more information." ;;
b7026657 6352
81ecdfbb
RW
6353 *) as_fn_append ac_config_targets " $1"
6354 ac_need_defaults=false ;;
b7026657
AC
6355
6356 esac
6357 shift
c906108c 6358done
b7026657
AC
6359
6360ac_configure_extra_args=
6361
6362if $ac_cs_silent; then
6363 exec 6>/dev/null
6364 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 6365fi
c906108c 6366
b7026657 6367_ACEOF
81ecdfbb 6368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 6369if \$ac_cs_recheck; then
d0ac1c44 6370 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
6371 shift
6372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6373 CONFIG_SHELL='$SHELL'
6374 export CONFIG_SHELL
6375 exec "\$@"
b7026657 6376fi
c906108c 6377
b7026657 6378_ACEOF
81ecdfbb
RW
6379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6380exec 5>>config.log
6381{
6382 echo
6383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6384## Running $as_me. ##
6385_ASBOX
6386 $as_echo "$ac_log"
6387} >&5
b7026657 6388
81ecdfbb
RW
6389_ACEOF
6390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6391_ACEOF
b7026657 6392
81ecdfbb 6393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 6394
81ecdfbb 6395# Handling of arguments.
b7026657
AC
6396for ac_config_target in $ac_config_targets
6397do
81ecdfbb
RW
6398 case $ac_config_target in
6399 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6400 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6401 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6402
d0ac1c44 6403 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 6404 esac
b7026657
AC
6405done
6406
81ecdfbb 6407
b7026657
AC
6408# If the user did not use the arguments to specify the items to instantiate,
6409# then the envvar interface is used. Set only those that are not.
6410# We use the long form for the default assignment because of an extremely
6411# bizarre bug on SunOS 4.1.3.
6412if $ac_need_defaults; then
6413 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6414 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6415 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6416fi
c906108c 6417
b7026657 6418# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 6419# simply because there is no reason against having it here, and in addition,
b7026657 6420# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
6421# Hook for its removal unless debugging.
6422# Note that there is a small window in which the directory will not be cleaned:
6423# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
6424$debug ||
6425{
d0ac1c44 6426 tmp= ac_tmp=
81ecdfbb 6427 trap 'exit_status=$?
d0ac1c44
SM
6428 : "${ac_tmp:=$tmp}"
6429 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
6430' 0
6431 trap 'as_fn_exit 1' 1 2 13 15
b7026657 6432}
b7026657
AC
6433# Create a (secure) tmp directory for tmp files.
6434
6435{
81ecdfbb 6436 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 6437 test -d "$tmp"
b7026657
AC
6438} ||
6439{
81ecdfbb
RW
6440 tmp=./conf$$-$RANDOM
6441 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
6442} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6443ac_tmp=$tmp
81ecdfbb
RW
6444
6445# Set up the scripts for CONFIG_FILES section.
6446# No need to generate them if there are no CONFIG_FILES.
6447# This happens for instance with `./config.status config.h'.
6448if test -n "$CONFIG_FILES"; then
6449
6450
6451ac_cr=`echo X | tr X '\015'`
6452# On cygwin, bash can eat \r inside `` if the user requested igncr.
6453# But we know of no other shell where ac_cr would be empty at this
6454# point, so we can use a bashism as a fallback.
6455if test "x$ac_cr" = x; then
6456 eval ac_cr=\$\'\\r\'
6457fi
6458ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6459if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 6460 ac_cs_awk_cr='\\r'
81ecdfbb
RW
6461else
6462 ac_cs_awk_cr=$ac_cr
6463fi
6464
d0ac1c44 6465echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
6466_ACEOF
6467
6468
b7026657 6469{
81ecdfbb
RW
6470 echo "cat >conf$$subs.awk <<_ACEOF" &&
6471 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6472 echo "_ACEOF"
6473} >conf$$subs.sh ||
d0ac1c44
SM
6474 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6475ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
6476ac_delim='%!_!# '
6477for ac_last_try in false false false false false :; do
6478 . ./conf$$subs.sh ||
d0ac1c44 6479 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
6480
6481 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6482 if test $ac_delim_n = $ac_delim_num; then
6483 break
6484 elif $ac_last_try; then
d0ac1c44 6485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
6486 else
6487 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6488 fi
6489done
6490rm -f conf$$subs.sh
b7026657 6491
81ecdfbb 6492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 6493cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
b7026657 6494_ACEOF
81ecdfbb
RW
6495sed -n '
6496h
6497s/^/S["/; s/!.*/"]=/
6498p
6499g
6500s/^[^!]*!//
6501:repl
6502t repl
6503s/'"$ac_delim"'$//
6504t delim
6505:nl
6506h
d0ac1c44 6507s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
6508t more1
6509s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6510p
6511n
6512b repl
6513:more1
6514s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6515p
6516g
6517s/.\{148\}//
6518t nl
6519:delim
6520h
d0ac1c44 6521s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
6522t more2
6523s/["\\]/\\&/g; s/^/"/; s/$/"/
6524p
6525b
6526:more2
6527s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6528p
6529g
6530s/.\{148\}//
6531t delim
6532' <conf$$subs.awk | sed '
6533/^[^""]/{
6534 N
6535 s/\n//
6536}
6537' >>$CONFIG_STATUS || ac_write_fail=1
6538rm -f conf$$subs.awk
6539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6540_ACAWK
d0ac1c44 6541cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
6542 for (key in S) S_is_set[key] = 1
6543 FS = "\a"
b7026657 6544
81ecdfbb
RW
6545}
6546{
6547 line = $ 0
6548 nfields = split(line, field, "@")
6549 substed = 0
6550 len = length(field[1])
6551 for (i = 2; i < nfields; i++) {
6552 key = field[i]
6553 keylen = length(key)
6554 if (S_is_set[key]) {
6555 value = S[key]
6556 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6557 len += length(value) + length(field[++i])
6558 substed = 1
6559 } else
6560 len += 1 + keylen
6561 }
6562
6563 print line
6564}
c906108c 6565
81ecdfbb
RW
6566_ACAWK
6567_ACEOF
6568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6569if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6570 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6571else
6572 cat
d0ac1c44
SM
6573fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6574 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 6575_ACEOF
b7026657 6576
d0ac1c44
SM
6577# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6578# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
6579# trailing colons and then remove the whole line if VPATH becomes empty
6580# (actually we leave an empty line to preserve line numbers).
6581if test "x$srcdir" = x.; then
d0ac1c44
SM
6582 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6583h
6584s///
6585s/^/:/
6586s/[ ]*$/:/
6587s/:\$(srcdir):/:/g
6588s/:\${srcdir}:/:/g
6589s/:@srcdir@:/:/g
6590s/^:*//
81ecdfbb 6591s/:*$//
d0ac1c44
SM
6592x
6593s/\(=[ ]*\).*/\1/
6594G
6595s/\n//
81ecdfbb
RW
6596s/^[^=]*=[ ]*$//
6597}'
6598fi
6599
6600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6601fi # test -n "$CONFIG_FILES"
b7026657 6602
81ecdfbb
RW
6603# Set up the scripts for CONFIG_HEADERS section.
6604# No need to generate them if there are no CONFIG_HEADERS.
6605# This happens for instance with `./config.status Makefile'.
6606if test -n "$CONFIG_HEADERS"; then
d0ac1c44 6607cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb 6608BEGIN {
b7026657
AC
6609_ACEOF
6610
81ecdfbb
RW
6611# Transform confdefs.h into an awk script `defines.awk', embedded as
6612# here-document in config.status, that substitutes the proper values into
6613# config.h.in to produce config.h.
6614
6615# Create a delimiter string that does not exist in confdefs.h, to ease
6616# handling of long lines.
6617ac_delim='%!_!# '
6618for ac_last_try in false false :; do
d0ac1c44
SM
6619 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6620 if test -z "$ac_tt"; then
81ecdfbb
RW
6621 break
6622 elif $ac_last_try; then
d0ac1c44 6623 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
6624 else
6625 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
c906108c 6626 fi
81ecdfbb 6627done
c906108c 6628
81ecdfbb
RW
6629# For the awk script, D is an array of macro values keyed by name,
6630# likewise P contains macro parameters if any. Preserve backslash
6631# newline sequences.
6632
6633ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6634sed -n '
6635s/.\{148\}/&'"$ac_delim"'/g
6636t rset
6637:rset
6638s/^[ ]*#[ ]*define[ ][ ]*/ /
6639t def
6640d
6641:def
6642s/\\$//
6643t bsnl
6644s/["\\]/\\&/g
6645s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6646D["\1"]=" \3"/p
6647s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6648d
6649:bsnl
6650s/["\\]/\\&/g
6651s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6652D["\1"]=" \3\\\\\\n"\\/p
6653t cont
6654s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6655t cont
6656d
6657:cont
6658n
6659s/.\{148\}/&'"$ac_delim"'/g
6660t clear
6661:clear
6662s/\\$//
6663t bsnlc
6664s/["\\]/\\&/g; s/^/"/; s/$/"/p
6665d
6666:bsnlc
6667s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6668b cont
6669' <confdefs.h | sed '
6670s/'"$ac_delim"'/"\\\
6671"/g' >>$CONFIG_STATUS || ac_write_fail=1
6672
6673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6674 for (key in D) D_is_set[key] = 1
6675 FS = "\a"
6676}
6677/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6678 line = \$ 0
6679 split(line, arg, " ")
6680 if (arg[1] == "#") {
6681 defundef = arg[2]
6682 mac1 = arg[3]
6683 } else {
6684 defundef = substr(arg[1], 2)
6685 mac1 = arg[2]
6686 }
6687 split(mac1, mac2, "(") #)
6688 macro = mac2[1]
6689 prefix = substr(line, 1, index(line, defundef) - 1)
6690 if (D_is_set[macro]) {
6691 # Preserve the white space surrounding the "#".
6692 print prefix "define", macro P[macro] D[macro]
6693 next
6694 } else {
6695 # Replace #undef with comments. This is necessary, for example,
6696 # in the case of _POSIX_SOURCE, which is predefined and required
6697 # on some systems where configure will not decide to define it.
6698 if (defundef == "undef") {
6699 print "/*", prefix defundef, macro, "*/"
6700 next
6701 }
6702 }
6703}
6704{ print }
6705_ACAWK
b7026657 6706_ACEOF
81ecdfbb 6707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 6708 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb
RW
6709fi # test -n "$CONFIG_HEADERS"
6710
6711
6712eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6713shift
6714for ac_tag
6715do
6716 case $ac_tag in
6717 :[FHLC]) ac_mode=$ac_tag; continue;;
6718 esac
6719 case $ac_mode$ac_tag in
6720 :[FHL]*:*);;
d0ac1c44 6721 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
6722 :[FH]-) ac_tag=-:-;;
6723 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6724 esac
6725 ac_save_IFS=$IFS
6726 IFS=:
6727 set x $ac_tag
6728 IFS=$ac_save_IFS
6729 shift
6730 ac_file=$1
6731 shift
6732
6733 case $ac_mode in
6734 :L) ac_source=$1;;
6735 :[FH])
6736 ac_file_inputs=
6737 for ac_f
6738 do
6739 case $ac_f in
d0ac1c44 6740 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
6741 *) # Look for the file first in the build tree, then in the source tree
6742 # (if the path is not absolute). The absolute path cannot be DOS-style,
6743 # because $ac_f cannot contain `:'.
6744 test -f "$ac_f" ||
6745 case $ac_f in
6746 [\\/$]*) false;;
6747 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6748 esac ||
d0ac1c44 6749 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
6750 esac
6751 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6752 as_fn_append ac_file_inputs " '$ac_f'"
6753 done
6754
6755 # Let's still pretend it is `configure' which instantiates (i.e., don't
6756 # use $as_me), people would be surprised to read:
6757 # /* config.h. Generated by config.status. */
6758 configure_input='Generated from '`
6759 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6760 `' by configure.'
6761 if test x"$ac_file" != x-; then
6762 configure_input="$ac_file. $configure_input"
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6764$as_echo "$as_me: creating $ac_file" >&6;}
6765 fi
6766 # Neutralize special characters interpreted by sed in replacement strings.
6767 case $configure_input in #(
6768 *\&* | *\|* | *\\* )
6769 ac_sed_conf_input=`$as_echo "$configure_input" |
6770 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6771 *) ac_sed_conf_input=$configure_input;;
6772 esac
6773
6774 case $ac_tag in
d0ac1c44
SM
6775 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
6777 esac
6778 ;;
c906108c
SS
6779 esac
6780
81ecdfbb 6781 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
6782$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6783 X"$ac_file" : 'X\(//\)[^/]' \| \
6784 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
6785 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6786$as_echo X"$ac_file" |
6787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6788 s//\1/
6789 q
6790 }
6791 /^X\(\/\/\)[^/].*/{
6792 s//\1/
6793 q
6794 }
6795 /^X\(\/\/\)$/{
6796 s//\1/
6797 q
6798 }
6799 /^X\(\/\).*/{
6800 s//\1/
6801 q
6802 }
6803 s/.*/./; q'`
6804 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
6805 ac_builddir=.
6806
81ecdfbb
RW
6807case "$ac_dir" in
6808.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6809*)
6810 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6811 # A ".." for each directory in $ac_dir_suffix.
6812 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6813 case $ac_top_builddir_sub in
6814 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6815 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6816 esac ;;
6817esac
6818ac_abs_top_builddir=$ac_pwd
6819ac_abs_builddir=$ac_pwd$ac_dir_suffix
6820# for backward compatibility:
6821ac_top_builddir=$ac_top_build_prefix
b7026657
AC
6822
6823case $srcdir in
81ecdfbb 6824 .) # We are building in place.
b7026657 6825 ac_srcdir=.
81ecdfbb
RW
6826 ac_top_srcdir=$ac_top_builddir_sub
6827 ac_abs_top_srcdir=$ac_pwd ;;
6828 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 6829 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
6830 ac_top_srcdir=$srcdir
6831 ac_abs_top_srcdir=$srcdir ;;
6832 *) # Relative name.
6833 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6834 ac_top_srcdir=$ac_top_build_prefix$srcdir
6835 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 6836esac
81ecdfbb 6837ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 6838
b7026657 6839
81ecdfbb
RW
6840 case $ac_mode in
6841 :F)
6842 #
6843 # CONFIG_FILE
6844 #
b7026657
AC
6845
6846 case $INSTALL in
6847 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 6848 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 6849 esac
81ecdfbb 6850_ACEOF
c906108c 6851
81ecdfbb
RW
6852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6853# If the template does not know about datarootdir, expand it.
6854# FIXME: This hack should be removed a few years after 2.60.
6855ac_datarootdir_hack=; ac_datarootdir_seen=
6856ac_sed_dataroot='
6857/datarootdir/ {
6858 p
6859 q
6860}
6861/@datadir@/p
6862/@docdir@/p
6863/@infodir@/p
6864/@localedir@/p
6865/@mandir@/p'
6866case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6867*datarootdir*) ac_datarootdir_seen=yes;;
6868*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6870$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6871_ACEOF
6872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6873 ac_datarootdir_hack='
6874 s&@datadir@&$datadir&g
6875 s&@docdir@&$docdir&g
6876 s&@infodir@&$infodir&g
6877 s&@localedir@&$localedir&g
6878 s&@mandir@&$mandir&g
6879 s&\\\${datarootdir}&$datarootdir&g' ;;
6880esac
b7026657 6881_ACEOF
81ecdfbb
RW
6882
6883# Neutralize VPATH when `$srcdir' = `.'.
6884# Shell code in configure.ac might set extrasub.
6885# FIXME: do we really want to maintain this feature?
6886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6887ac_sed_extra="$ac_vpsub
b7026657
AC
6888$extrasub
6889_ACEOF
81ecdfbb 6890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
6891:t
6892/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
6893s|@configure_input@|$ac_sed_conf_input|;t t
6894s&@top_builddir@&$ac_top_builddir_sub&;t t
6895s&@top_build_prefix@&$ac_top_build_prefix&;t t
6896s&@srcdir@&$ac_srcdir&;t t
6897s&@abs_srcdir@&$ac_abs_srcdir&;t t
6898s&@top_srcdir@&$ac_top_srcdir&;t t
6899s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6900s&@builddir@&$ac_builddir&;t t
6901s&@abs_builddir@&$ac_abs_builddir&;t t
6902s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6903s&@INSTALL@&$ac_INSTALL&;t t
6904$ac_datarootdir_hack
6905"
d0ac1c44
SM
6906eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6907 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
6908
6909test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
6910 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6911 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6912 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 6914which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 6915$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 6916which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 6917
d0ac1c44 6918 rm -f "$ac_tmp/stdin"
b7026657 6919 case $ac_file in
d0ac1c44
SM
6920 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6921 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 6922 esac \
d0ac1c44 6923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
6924 ;;
6925 :H)
6926 #
6927 # CONFIG_HEADER
6928 #
b7026657 6929 if test x"$ac_file" != x-; then
81ecdfbb
RW
6930 {
6931 $as_echo "/* $configure_input */" \
d0ac1c44
SM
6932 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6933 } >"$ac_tmp/config.h" \
6934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6935 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6937$as_echo "$as_me: $ac_file is unchanged" >&6;}
b7026657 6938 else
81ecdfbb 6939 rm -f "$ac_file"
d0ac1c44
SM
6940 mv "$ac_tmp/config.h" "$ac_file" \
6941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
c906108c 6942 fi
b7026657 6943 else
81ecdfbb 6944 $as_echo "/* $configure_input */" \
d0ac1c44
SM
6945 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6946 || as_fn_error $? "could not create -" "$LINENO" 5
c906108c 6947 fi
81ecdfbb 6948 ;;
b7026657 6949
81ecdfbb
RW
6950 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6951$as_echo "$as_me: executing $ac_file commands" >&6;}
6952 ;;
6953 esac
b7026657 6954
b7026657 6955
81ecdfbb
RW
6956 case $ac_file$ac_mode in
6957 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
c906108c 6958
b7026657 6959 esac
81ecdfbb 6960done # for ac_tag
c906108c 6961
b7026657 6962
81ecdfbb 6963as_fn_exit 0
b7026657 6964_ACEOF
b7026657
AC
6965ac_clean_files=$ac_clean_files_save
6966
81ecdfbb 6967test $ac_write_fail = 0 ||
d0ac1c44 6968 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 6969
b7026657
AC
6970
6971# configure is writing to config.log, and then calls config.status.
6972# config.status does its own redirection, appending to config.log.
6973# Unfortunately, on DOS this fails, as config.log is still kept open
6974# by configure, so config.status won't be able to write to it; its
6975# output is simply discarded. So we exec the FD to /dev/null,
6976# effectively closing config.log, so it can be properly (re)opened and
6977# appended to by config.status. When coming back to configure, we
6978# need to make the FD available again.
6979if test "$no_create" != yes; then
6980 ac_cs_success=:
6981 ac_config_status_args=
6982 test "$silent" = yes &&
6983 ac_config_status_args="$ac_config_status_args --quiet"
6984 exec 5>/dev/null
6985 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6986 exec 5>>config.log
6987 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6988 # would make configure fail if this is the last instruction.
d0ac1c44 6989 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
6990fi
6991if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6993$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 6994fi
c906108c 6995