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