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