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