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