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