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