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