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