beta-0.89.2
[luatex.git] / source / libs / mpfr / configure
blobf263c94ba21d146fc84e7ba4260a5e50804199c3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mpfr (TeX Live) 3.1.3.
5 # Report bugs to <tex-k@tug.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
176 esac
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; }
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 :
192 else
193 exitcode=1; echo positional parameters were not saved.
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
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
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
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
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
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 tex-k@tug.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
275 exit 1
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
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
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 ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
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/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
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"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
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 ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
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 ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
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 ()
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
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
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
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
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
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/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
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
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 '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
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; }
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
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;;
513 ECHO_N='-n';;
514 esac
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
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'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
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
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
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'"
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'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
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`
569 # Initializations.
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=
580 # Identity of this package.
581 PACKAGE_NAME='mpfr (TeX Live)'
582 PACKAGE_TARNAME='mpfr--tex-live-'
583 PACKAGE_VERSION='3.1.3'
584 PACKAGE_STRING='mpfr (TeX Live) 3.1.3'
585 PACKAGE_BUGREPORT='tex-k@tug.org'
586 PACKAGE_URL=''
588 ac_unique_file="mpfr-3.1.3/src/mpfr.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"
625 ac_subst_vars='am__EXEEXT_FALSE
626 am__EXEEXT_TRUE
627 LTLIBOBJS
628 LIBOBJS
629 MPFR_TREE
630 GMP_RULE
631 GMP_DEPEND
632 GMP_LIBS
633 GMP_INCLUDES
634 build_FALSE
635 build_TRUE
636 MPFR_LIBM
637 ALLOCA
638 EGREP
639 GREP
641 host_os
642 host_vendor
643 host_cpu
644 host
645 build_os
646 build_vendor
647 build_cpu
648 build
649 VISIBILITY_CFLAGS
650 LN_S
651 RANLIB
652 WARNING_CFLAGS
653 am__fastdepCC_FALSE
654 am__fastdepCC_TRUE
655 CCDEPMODE
656 am__nodep
657 AMDEPBACKSLASH
658 AMDEP_FALSE
659 AMDEP_TRUE
660 am__quote
661 am__include
662 DEPDIR
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
670 MAINT
671 MAINTAINER_MODE_FALSE
672 MAINTAINER_MODE_TRUE
673 AM_BACKSLASH
674 AM_DEFAULT_VERBOSITY
675 AM_DEFAULT_V
676 AM_V
677 am__untar
678 am__tar
679 AMTAR
680 am__leading_dot
681 SET_MAKE
683 mkdir_p
684 MKDIR_P
685 INSTALL_STRIP_PROGRAM
686 STRIP
687 install_sh
688 MAKEINFO
689 AUTOHEADER
690 AUTOMAKE
691 AUTOCONF
692 ACLOCAL
693 VERSION
694 PACKAGE
695 CYGPATH_W
696 am__isrc
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_URL
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files=''
739 ac_user_opts='
740 enable_option_checking
741 enable_silent_rules
742 enable_maintainer_mode
743 enable_dependency_tracking
744 enable_compiler_warnings
745 with_system_gmp
746 with_gmp_includes
747 with_gmp_libdir
749 ac_precious_vars='build_alias
750 host_alias
751 target_alias
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CPP'
760 # Initialize some variables set by options.
761 ac_init_help=
762 ac_init_version=false
763 ac_unrecognized_opts=
764 ac_unrecognized_sep=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
767 cache_file=/dev/null
768 exec_prefix=NONE
769 no_create=
770 no_recursion=
771 prefix=NONE
772 program_prefix=NONE
773 program_suffix=NONE
774 program_transform_name=s,x,x,
775 silent=
776 site=
777 srcdir=
778 verbose=
779 x_includes=NONE
780 x_libraries=NONE
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 includedir='${prefix}/include'
797 oldincludedir='/usr/include'
798 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799 infodir='${datarootdir}/info'
800 htmldir='${docdir}'
801 dvidir='${docdir}'
802 pdfdir='${docdir}'
803 psdir='${docdir}'
804 libdir='${exec_prefix}/lib'
805 localedir='${datarootdir}/locale'
806 mandir='${datarootdir}/man'
808 ac_prev=
809 ac_dashdash=
810 for ac_option
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
814 eval $ac_prev=\$ac_option
815 ac_prev=
816 continue
819 case $ac_option in
820 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 *=) ac_optarg= ;;
822 *) ac_optarg=yes ;;
823 esac
825 # Accept the important Cygnus configure options, so we can diagnose typos.
827 case $ac_dashdash$ac_option in
829 ac_dashdash=yes ;;
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
832 ac_prev=bindir ;;
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834 bindir=$ac_optarg ;;
836 -build | --build | --buil | --bui | --bu)
837 ac_prev=build_alias ;;
838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839 build_alias=$ac_optarg ;;
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846 cache_file=$ac_optarg ;;
848 --config-cache | -C)
849 cache_file=config.cache ;;
851 -datadir | --datadir | --datadi | --datad)
852 ac_prev=datadir ;;
853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
854 datadir=$ac_optarg ;;
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
863 -disable-* | --disable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 as_fn_error $? "invalid feature name: $ac_useropt"
868 ac_useropt_orig=$ac_useropt
869 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
872 "enable_$ac_useropt"
873 "*) ;;
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
876 esac
877 eval enable_$ac_useropt=no ;;
879 -docdir | --docdir | --docdi | --doc | --do)
880 ac_prev=docdir ;;
881 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882 docdir=$ac_optarg ;;
884 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885 ac_prev=dvidir ;;
886 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887 dvidir=$ac_optarg ;;
889 -enable-* | --enable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=\$ac_optarg ;;
905 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907 | --exec | --exe | --ex)
908 ac_prev=exec_prefix ;;
909 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911 | --exec=* | --exe=* | --ex=*)
912 exec_prefix=$ac_optarg ;;
914 -gas | --gas | --ga | --g)
915 # Obsolete; use --with-gas.
916 with_gas=yes ;;
918 -help | --help | --hel | --he | -h)
919 ac_init_help=long ;;
920 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921 ac_init_help=recursive ;;
922 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923 ac_init_help=short ;;
925 -host | --host | --hos | --ho)
926 ac_prev=host_alias ;;
927 -host=* | --host=* | --hos=* | --ho=*)
928 host_alias=$ac_optarg ;;
930 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931 ac_prev=htmldir ;;
932 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933 | --ht=*)
934 htmldir=$ac_optarg ;;
936 -includedir | --includedir | --includedi | --included | --include \
937 | --includ | --inclu | --incl | --inc)
938 ac_prev=includedir ;;
939 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940 | --includ=* | --inclu=* | --incl=* | --inc=*)
941 includedir=$ac_optarg ;;
943 -infodir | --infodir | --infodi | --infod | --info | --inf)
944 ac_prev=infodir ;;
945 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946 infodir=$ac_optarg ;;
948 -libdir | --libdir | --libdi | --libd)
949 ac_prev=libdir ;;
950 -libdir=* | --libdir=* | --libdi=* | --libd=*)
951 libdir=$ac_optarg ;;
953 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954 | --libexe | --libex | --libe)
955 ac_prev=libexecdir ;;
956 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957 | --libexe=* | --libex=* | --libe=*)
958 libexecdir=$ac_optarg ;;
960 -localedir | --localedir | --localedi | --localed | --locale)
961 ac_prev=localedir ;;
962 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963 localedir=$ac_optarg ;;
965 -localstatedir | --localstatedir | --localstatedi | --localstated \
966 | --localstate | --localstat | --localsta | --localst | --locals)
967 ac_prev=localstatedir ;;
968 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970 localstatedir=$ac_optarg ;;
972 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973 ac_prev=mandir ;;
974 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975 mandir=$ac_optarg ;;
977 -nfp | --nfp | --nf)
978 # Obsolete; use --without-fp.
979 with_fp=no ;;
981 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982 | --no-cr | --no-c | -n)
983 no_create=yes ;;
985 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 no_recursion=yes ;;
989 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991 | --oldin | --oldi | --old | --ol | --o)
992 ac_prev=oldincludedir ;;
993 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996 oldincludedir=$ac_optarg ;;
998 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999 ac_prev=prefix ;;
1000 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 prefix=$ac_optarg ;;
1003 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004 | --program-pre | --program-pr | --program-p)
1005 ac_prev=program_prefix ;;
1006 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008 program_prefix=$ac_optarg ;;
1010 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011 | --program-suf | --program-su | --program-s)
1012 ac_prev=program_suffix ;;
1013 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015 program_suffix=$ac_optarg ;;
1017 -program-transform-name | --program-transform-name \
1018 | --program-transform-nam | --program-transform-na \
1019 | --program-transform-n | --program-transform- \
1020 | --program-transform | --program-transfor \
1021 | --program-transfo | --program-transf \
1022 | --program-trans | --program-tran \
1023 | --progr-tra | --program-tr | --program-t)
1024 ac_prev=program_transform_name ;;
1025 -program-transform-name=* | --program-transform-name=* \
1026 | --program-transform-nam=* | --program-transform-na=* \
1027 | --program-transform-n=* | --program-transform-=* \
1028 | --program-transform=* | --program-transfor=* \
1029 | --program-transfo=* | --program-transf=* \
1030 | --program-trans=* | --program-tran=* \
1031 | --progr-tra=* | --program-tr=* | --program-t=*)
1032 program_transform_name=$ac_optarg ;;
1034 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035 ac_prev=pdfdir ;;
1036 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037 pdfdir=$ac_optarg ;;
1039 -psdir | --psdir | --psdi | --psd | --ps)
1040 ac_prev=psdir ;;
1041 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042 psdir=$ac_optarg ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 silent=yes ;;
1048 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049 ac_prev=sbindir ;;
1050 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051 | --sbi=* | --sb=*)
1052 sbindir=$ac_optarg ;;
1054 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056 | --sharedst | --shareds | --shared | --share | --shar \
1057 | --sha | --sh)
1058 ac_prev=sharedstatedir ;;
1059 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062 | --sha=* | --sh=*)
1063 sharedstatedir=$ac_optarg ;;
1065 -site | --site | --sit)
1066 ac_prev=site ;;
1067 -site=* | --site=* | --sit=*)
1068 site=$ac_optarg ;;
1070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071 ac_prev=srcdir ;;
1072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073 srcdir=$ac_optarg ;;
1075 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076 | --syscon | --sysco | --sysc | --sys | --sy)
1077 ac_prev=sysconfdir ;;
1078 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080 sysconfdir=$ac_optarg ;;
1082 -target | --target | --targe | --targ | --tar | --ta | --t)
1083 ac_prev=target_alias ;;
1084 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085 target_alias=$ac_optarg ;;
1087 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088 verbose=yes ;;
1090 -version | --version | --versio | --versi | --vers | -V)
1091 ac_init_version=: ;;
1093 -with-* | --with-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error $? "invalid package name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "with_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval with_$ac_useropt=\$ac_optarg ;;
1109 -without-* | --without-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1118 "with_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval with_$ac_useropt=no ;;
1125 --x)
1126 # Obsolete; use --with-x.
1127 with_x=yes ;;
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes=$ac_optarg ;;
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries=$ac_optarg ;;
1143 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1144 Try \`$0 --help' for more information"
1147 *=*)
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 case $ac_envvar in #(
1151 '' | [0-9]* | *[!_$as_cr_alnum]* )
1152 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1153 esac
1154 eval $ac_envvar=\$ac_optarg
1155 export $ac_envvar ;;
1158 # FIXME: should be removed in autoconf 3.0.
1159 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1165 esac
1166 done
1168 if test -n "$ac_prev"; then
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 as_fn_error $? "missing argument to $ac_option"
1173 if test -n "$ac_unrecognized_opts"; then
1174 case $enable_option_checking in
1175 no) ;;
1176 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1177 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178 esac
1181 # Check all directory arguments for consistency.
1182 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1187 eval ac_val=\$$ac_var
1188 # Remove trailing slashes.
1189 case $ac_val in
1190 */ )
1191 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192 eval $ac_var=\$ac_val;;
1193 esac
1194 # Be sure to have absolute directory names.
1195 case $ac_val in
1196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198 esac
1199 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200 done
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 elif test "x$build_alias" != "x$host_alias"; then
1214 cross_compiling=yes
1218 ac_tool_prefix=
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221 test "$silent" = yes && exec 6>/dev/null
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227 as_fn_error $? "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 as_fn_error $? "pwd does not report name of working directory"
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234 ac_srcdir_defaulted=yes
1235 # Try the directory containing this script, then the parent directory.
1236 ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238 X"$as_myself" : 'X\(//\)[^/]' \| \
1239 X"$as_myself" : 'X\(//\)$' \| \
1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243 s//\1/
1246 /^X\(\/\/\)[^/].*/{
1247 s//\1/
1250 /^X\(\/\/\)$/{
1251 s//\1/
1254 /^X\(\/\).*/{
1255 s//\1/
1258 s/.*/./; q'`
1259 srcdir=$ac_confdir
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 srcdir=..
1263 else
1264 ac_srcdir_defaulted=no
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 ac_abs_confdir=`(
1272 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273 pwd)`
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276 srcdir=.
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1281 case $srcdir in
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 esac
1284 for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 done
1292 # Report the --help message.
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1297 cat <<_ACEOF
1298 \`configure' configures mpfr (TeX Live) 3.1.3 to adapt to many kinds of systems.
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1305 Defaults for the options are specified in brackets.
1307 Configuration:
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking ...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1322 [PREFIX]
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1329 For better control, use the options below.
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root [DATAROOTDIR/doc/mpfr--tex-live-]
1347 --htmldir=DIR html documentation [DOCDIR]
1348 --dvidir=DIR dvi documentation [DOCDIR]
1349 --pdfdir=DIR pdf documentation [DOCDIR]
1350 --psdir=DIR ps documentation [DOCDIR]
1351 _ACEOF
1353 cat <<\_ACEOF
1355 Program names:
1356 --program-prefix=PREFIX prepend PREFIX to installed program names
1357 --program-suffix=SUFFIX append SUFFIX to installed program names
1358 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1360 System types:
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 _ACEOF
1366 if test -n "$ac_init_help"; then
1367 case $ac_init_help in
1368 short | recursive ) echo "Configuration of mpfr (TeX Live) 3.1.3:";;
1369 esac
1370 cat <<\_ACEOF
1372 Optional Features:
1373 --disable-option-checking ignore unrecognized --enable/--with options
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-silent-rules less verbose build output (undo: "make V=1")
1377 --disable-silent-rules verbose build output (undo: "make V=0")
1378 --enable-maintainer-mode
1379 enable make rules and dependencies not useful (and
1380 sometimes confusing) to the casual installer
1381 --enable-dependency-tracking
1382 do not reject slow dependency extractors
1383 --disable-dependency-tracking
1384 speeds up one-time build
1385 --enable-compiler-warnings=[no|min|yes|max|all]
1386 Turn on compiler warnings [default: yes if
1387 maintainer-mode, min otherwise]
1389 Optional Packages:
1390 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1391 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1392 --with-system-gmp use installed gmp headers and library
1393 --with-gmp-includes=DIR gmp headers installed in DIR
1394 --with-gmp-libdir=DIR gmp library installed in DIR
1396 Some influential environment variables:
1397 CC C compiler command
1398 CFLAGS C compiler flags
1399 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1400 nonstandard directory <lib dir>
1401 LIBS libraries to pass to the linker, e.g. -l<library>
1402 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1403 you have headers in a nonstandard directory <include dir>
1404 CPP C preprocessor
1406 Use these variables to override the choices made by `configure' or to help
1407 it to find libraries and programs with nonstandard names/locations.
1409 Report bugs to <tex-k@tug.org>.
1410 _ACEOF
1411 ac_status=$?
1414 if test "$ac_init_help" = "recursive"; then
1415 # If there are subdirs, report their specific --help.
1416 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1417 test -d "$ac_dir" ||
1418 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1419 continue
1420 ac_builddir=.
1422 case "$ac_dir" in
1423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1426 # A ".." for each directory in $ac_dir_suffix.
1427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1428 case $ac_top_builddir_sub in
1429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1431 esac ;;
1432 esac
1433 ac_abs_top_builddir=$ac_pwd
1434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1435 # for backward compatibility:
1436 ac_top_builddir=$ac_top_build_prefix
1438 case $srcdir in
1439 .) # We are building in place.
1440 ac_srcdir=.
1441 ac_top_srcdir=$ac_top_builddir_sub
1442 ac_abs_top_srcdir=$ac_pwd ;;
1443 [\\/]* | ?:[\\/]* ) # Absolute name.
1444 ac_srcdir=$srcdir$ac_dir_suffix;
1445 ac_top_srcdir=$srcdir
1446 ac_abs_top_srcdir=$srcdir ;;
1447 *) # Relative name.
1448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1449 ac_top_srcdir=$ac_top_build_prefix$srcdir
1450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1451 esac
1452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1454 cd "$ac_dir" || { ac_status=$?; continue; }
1455 # Check for guested configure.
1456 if test -f "$ac_srcdir/configure.gnu"; then
1457 echo &&
1458 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1459 elif test -f "$ac_srcdir/configure"; then
1460 echo &&
1461 $SHELL "$ac_srcdir/configure" --help=recursive
1462 else
1463 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1464 fi || ac_status=$?
1465 cd "$ac_pwd" || { ac_status=$?; break; }
1466 done
1469 test -n "$ac_init_help" && exit $ac_status
1470 if $ac_init_version; then
1471 cat <<\_ACEOF
1472 mpfr (TeX Live) configure 3.1.3
1473 generated by GNU Autoconf 2.69
1475 Copyright (C) 2012 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1478 _ACEOF
1479 exit
1482 ## ------------------------ ##
1483 ## Autoconf initialization. ##
1484 ## ------------------------ ##
1486 # ac_fn_c_try_compile LINENO
1487 # --------------------------
1488 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1489 ac_fn_c_try_compile ()
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 rm -f conftest.$ac_objext
1493 if { { ac_try="$ac_compile"
1494 case "(($ac_try" in
1495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1496 *) ac_try_echo=$ac_try;;
1497 esac
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_compile") 2>conftest.err
1501 ac_status=$?
1502 if test -s conftest.err; then
1503 grep -v '^ *+' conftest.err >conftest.er1
1504 cat conftest.er1 >&5
1505 mv -f conftest.er1 conftest.err
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } && {
1509 test -z "$ac_c_werror_flag" ||
1510 test ! -s conftest.err
1511 } && test -s conftest.$ac_objext; then :
1512 ac_retval=0
1513 else
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1517 ac_retval=1
1519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1520 as_fn_set_status $ac_retval
1522 } # ac_fn_c_try_compile
1524 # ac_fn_c_try_link LINENO
1525 # -----------------------
1526 # Try to link conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_link ()
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext conftest$ac_exeext
1531 if { { ac_try="$ac_link"
1532 case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_link") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest$ac_exeext && {
1550 test "$cross_compiling" = yes ||
1551 test -x conftest$ac_exeext
1552 }; then :
1553 ac_retval=0
1554 else
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1558 ac_retval=1
1560 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1561 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1562 # interfere with the next link command; also delete a directory that is
1563 # left behind by Apple's compiler. We do this before executing the actions.
1564 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1568 } # ac_fn_c_try_link
1570 # ac_fn_c_try_cpp LINENO
1571 # ----------------------
1572 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_cpp ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_cpp conftest.$ac_ext"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } > conftest.i && {
1592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 }; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1600 ac_retval=1
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1605 } # ac_fn_c_try_cpp
1607 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1610 # the include files in INCLUDES and setting the cache variable VAR
1611 # accordingly.
1612 ac_fn_c_check_header_mongrel ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if eval \${$3+:} false; then :
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if eval \${$3+:} false; then :
1619 $as_echo_n "(cached) " >&6
1621 eval ac_res=\$$3
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1624 else
1625 # Is the header compilable?
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1627 $as_echo_n "checking $2 usability... " >&6; }
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"; then :
1634 ac_header_compiler=yes
1635 else
1636 ac_header_compiler=no
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1640 $as_echo "$ac_header_compiler" >&6; }
1642 # Is the header present?
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1644 $as_echo_n "checking $2 presence... " >&6; }
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_cpp "$LINENO"; then :
1650 ac_header_preproc=yes
1651 else
1652 ac_header_preproc=no
1654 rm -f conftest.err conftest.i conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1656 $as_echo "$ac_header_preproc" >&6; }
1658 # So? What about this header?
1659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1660 yes:no: )
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1662 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 no:yes:* )
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1668 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1670 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1672 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1674 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1677 ( $as_echo "## ---------------------------- ##
1678 ## Report this to tex-k@tug.org ##
1679 ## ---------------------------- ##"
1680 ) | sed "s/^/$as_me: WARNING: /" >&2
1682 esac
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval \${$3+:} false; then :
1686 $as_echo_n "(cached) " >&6
1687 else
1688 eval "$3=\$ac_header_compiler"
1690 eval ac_res=\$$3
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 } # ac_fn_c_check_header_mongrel
1698 # ac_fn_c_try_run LINENO
1699 # ----------------------
1700 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1701 # that executables *can* be run.
1702 ac_fn_c_try_run ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_link"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1716 { { case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_try") 2>&5
1723 ac_status=$?
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; }; }; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: program exited with status $ac_status" >&5
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1732 ac_retval=$ac_status
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1738 } # ac_fn_c_try_run
1740 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1741 # -------------------------------------------------------
1742 # Tests whether HEADER exists and can be compiled using the include files in
1743 # INCLUDES, setting the cache variable VAR accordingly.
1744 ac_fn_c_check_header_compile ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1751 else
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1755 #include <$2>
1756 _ACEOF
1757 if ac_fn_c_try_compile "$LINENO"; then :
1758 eval "$3=yes"
1759 else
1760 eval "$3=no"
1762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 } # ac_fn_c_check_header_compile
1771 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1772 # -------------------------------------------
1773 # Tests whether TYPE exists after having included INCLUDES, setting cache
1774 # variable VAR accordingly.
1775 ac_fn_c_check_type ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1783 eval "$3=no"
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1788 main ()
1790 if (sizeof ($2))
1791 return 0;
1793 return 0;
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1801 main ()
1803 if (sizeof (($2)))
1804 return 0;
1806 return 0;
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1811 else
1812 eval "$3=yes"
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 } # ac_fn_c_check_type
1825 # ac_fn_c_check_func LINENO FUNC VAR
1826 # ----------------------------------
1827 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828 ac_fn_c_check_func ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840 #define $2 innocuous_$2
1842 /* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (); below.
1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845 <limits.h> exists even on freestanding compilers. */
1847 #ifdef __STDC__
1848 # include <limits.h>
1849 #else
1850 # include <assert.h>
1851 #endif
1853 #undef $2
1855 /* Override any GCC internal prototype to avoid an error.
1856 Use char because int might match the return type of a GCC
1857 builtin and then its argument prototype would still apply. */
1858 #ifdef __cplusplus
1859 extern "C"
1860 #endif
1861 char $2 ();
1862 /* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865 #if defined __stub_$2 || defined __stub___$2
1866 choke me
1867 #endif
1870 main ()
1872 return $2 ();
1874 return 0;
1876 _ACEOF
1877 if ac_fn_c_try_link "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1882 rm -f core conftest.err conftest.$ac_objext \
1883 conftest$ac_exeext conftest.$ac_ext
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 } # ac_fn_c_check_func
1892 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1893 # ---------------------------------------------
1894 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1895 # accordingly.
1896 ac_fn_c_check_decl ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 as_decl_name=`echo $2|sed 's/ *(.*//'`
1900 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1902 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1903 if eval \${$3+:} false; then :
1904 $as_echo_n "(cached) " >&6
1905 else
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1910 main ()
1912 #ifndef $as_decl_name
1913 #ifdef __cplusplus
1914 (void) $as_decl_use;
1915 #else
1916 (void) $as_decl_name;
1917 #endif
1918 #endif
1921 return 0;
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 eval "$3=yes"
1926 else
1927 eval "$3=no"
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_decl
1937 cat >config.log <<_ACEOF
1938 This file contains any messages produced by compilers while
1939 running configure, to aid debugging if configure makes a mistake.
1941 It was created by mpfr (TeX Live) $as_me 3.1.3, which was
1942 generated by GNU Autoconf 2.69. Invocation command line was
1944 $ $0 $@
1946 _ACEOF
1947 exec 5>>config.log
1949 cat <<_ASUNAME
1950 ## --------- ##
1951 ## Platform. ##
1952 ## --------- ##
1954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1966 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971 _ASUNAME
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 $as_echo "PATH: $as_dir"
1979 done
1980 IFS=$as_save_IFS
1982 } >&5
1984 cat >&5 <<_ACEOF
1987 ## ----------- ##
1988 ## Core tests. ##
1989 ## ----------- ##
1991 _ACEOF
1994 # Keep a trace of the command line.
1995 # Strip out --no-create and --no-recursion so they do not pile up.
1996 # Strip out --silent because we don't want to record it for future runs.
1997 # Also quote any args containing shell meta-characters.
1998 # Make two passes to allow for proper duplicate-argument suppression.
1999 ac_configure_args=
2000 ac_configure_args0=
2001 ac_configure_args1=
2002 ac_must_keep_next=false
2003 for ac_pass in 1 2
2005 for ac_arg
2007 case $ac_arg in
2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010 | -silent | --silent | --silen | --sile | --sil)
2011 continue ;;
2012 *\'*)
2013 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 esac
2015 case $ac_pass in
2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2018 as_fn_append ac_configure_args1 " '$ac_arg'"
2019 if test $ac_must_keep_next = true; then
2020 ac_must_keep_next=false # Got value, back to normal.
2021 else
2022 case $ac_arg in
2023 *=* | --config-cache | -C | -disable-* | --disable-* \
2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026 | -with-* | --with-* | -without-* | --without-* | --x)
2027 case "$ac_configure_args0 " in
2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 esac
2031 -* ) ac_must_keep_next=true ;;
2032 esac
2034 as_fn_append ac_configure_args " '$ac_arg'"
2036 esac
2037 done
2038 done
2039 { ac_configure_args0=; unset ac_configure_args0;}
2040 { ac_configure_args1=; unset ac_configure_args1;}
2042 # When interrupted or exit'd, cleanup temporary files, and complete
2043 # config.log. We remove comments because anyway the quotes in there
2044 # would cause problems or look ugly.
2045 # WARNING: Use '\'' to represent an apostrophe within the trap.
2046 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047 trap 'exit_status=$?
2048 # Save into config.log some information that might help in debugging.
2050 echo
2052 $as_echo "## ---------------- ##
2053 ## Cache variables. ##
2054 ## ---------------- ##"
2055 echo
2056 # The following way of writing the cache mishandles newlines in values,
2058 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in #(
2061 *${as_nl}*)
2062 case $ac_var in #(
2063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2064 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065 esac
2066 case $ac_var in #(
2067 _ | IFS | as_nl) ;; #(
2068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2069 *) { eval $ac_var=; unset $ac_var;} ;;
2070 esac ;;
2071 esac
2072 done
2073 (set) 2>&1 |
2074 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2075 *${as_nl}ac_space=\ *)
2076 sed -n \
2077 "s/'\''/'\''\\\\'\'''\''/g;
2078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079 ;; #(
2081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2083 esac |
2084 sort
2086 echo
2088 $as_echo "## ----------------- ##
2089 ## Output variables. ##
2090 ## ----------------- ##"
2091 echo
2092 for ac_var in $ac_subst_vars
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2102 if test -n "$ac_subst_files"; then
2103 $as_echo "## ------------------- ##
2104 ## File substitutions. ##
2105 ## ------------------- ##"
2106 echo
2107 for ac_var in $ac_subst_files
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
2114 done | sort
2115 echo
2118 if test -s confdefs.h; then
2119 $as_echo "## ----------- ##
2120 ## confdefs.h. ##
2121 ## ----------- ##"
2122 echo
2123 cat confdefs.h
2124 echo
2126 test "$ac_signal" != 0 &&
2127 $as_echo "$as_me: caught signal $ac_signal"
2128 $as_echo "$as_me: exit $exit_status"
2129 } >&5
2130 rm -f core *.core core.conftest.* &&
2131 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132 exit $exit_status
2134 for ac_signal in 1 2 13 15; do
2135 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2136 done
2137 ac_signal=0
2139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2140 rm -f -r conftest* confdefs.h
2142 $as_echo "/* confdefs.h */" > confdefs.h
2144 # Predefined preprocessor variables.
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_NAME "$PACKAGE_NAME"
2148 _ACEOF
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2156 _ACEOF
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_STRING "$PACKAGE_STRING"
2160 _ACEOF
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164 _ACEOF
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_URL "$PACKAGE_URL"
2168 _ACEOF
2171 # Let the site file select an alternate cache file if it wants to.
2172 # Prefer an explicitly selected file to automatically selected ones.
2173 ac_site_file1=NONE
2174 ac_site_file2=NONE
2175 if test -n "$CONFIG_SITE"; then
2176 # We do not want a PATH search for config.site.
2177 case $CONFIG_SITE in #((
2178 -*) ac_site_file1=./$CONFIG_SITE;;
2179 */*) ac_site_file1=$CONFIG_SITE;;
2180 *) ac_site_file1=./$CONFIG_SITE;;
2181 esac
2182 elif test "x$prefix" != xNONE; then
2183 ac_site_file1=$prefix/share/config.site
2184 ac_site_file2=$prefix/etc/config.site
2185 else
2186 ac_site_file1=$ac_default_prefix/share/config.site
2187 ac_site_file2=$ac_default_prefix/etc/config.site
2189 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2191 test "x$ac_site_file" = xNONE && continue
2192 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195 sed 's/^/| /' "$ac_site_file" >&5
2196 . "$ac_site_file" \
2197 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199 as_fn_error $? "failed to load site script $ac_site_file
2200 See \`config.log' for more details" "$LINENO" 5; }
2202 done
2204 if test -r "$cache_file"; then
2205 # Some versions of bash will fail to source /dev/null (special files
2206 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2207 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209 $as_echo "$as_me: loading cache $cache_file" >&6;}
2210 case $cache_file in
2211 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212 *) . "./$cache_file";;
2213 esac
2215 else
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217 $as_echo "$as_me: creating cache $cache_file" >&6;}
2218 >$cache_file
2221 # Check that the precious variables saved in the cache have kept the same
2222 # value.
2223 ac_cache_corrupted=false
2224 for ac_var in $ac_precious_vars; do
2225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2226 eval ac_new_set=\$ac_env_${ac_var}_set
2227 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2228 eval ac_new_val=\$ac_env_${ac_var}_value
2229 case $ac_old_set,$ac_new_set in
2230 set,)
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2232 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2233 ac_cache_corrupted=: ;;
2234 ,set)
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2238 ,);;
2240 if test "x$ac_old_val" != "x$ac_new_val"; then
2241 # differences in whitespace do not lead to failure.
2242 ac_old_val_w=`echo x $ac_old_val`
2243 ac_new_val_w=`echo x $ac_new_val`
2244 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2246 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2247 ac_cache_corrupted=:
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2250 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2251 eval $ac_var=\$ac_old_val
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2254 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2256 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2257 fi;;
2258 esac
2259 # Pass precious variables to config.status.
2260 if test "$ac_new_set" = set; then
2261 case $ac_new_val in
2262 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2263 *) ac_arg=$ac_var=$ac_new_val ;;
2264 esac
2265 case " $ac_configure_args " in
2266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2267 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2268 esac
2270 done
2271 if $ac_cache_corrupted; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2275 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2276 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 ## -------------------- ##
2279 ## Main body of script. ##
2280 ## -------------------- ##
2282 ac_ext=c
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291 ac_aux_dir=
2292 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2293 if test -f "$ac_dir/install-sh"; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/install-sh -c"
2296 break
2297 elif test -f "$ac_dir/install.sh"; then
2298 ac_aux_dir=$ac_dir
2299 ac_install_sh="$ac_aux_dir/install.sh -c"
2300 break
2301 elif test -f "$ac_dir/shtool"; then
2302 ac_aux_dir=$ac_dir
2303 ac_install_sh="$ac_aux_dir/shtool install -c"
2304 break
2306 done
2307 if test -z "$ac_aux_dir"; then
2308 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2311 # These three variables are undocumented and unsupported,
2312 # and are intended to be withdrawn in a future Autoconf release.
2313 # They can cause serious problems if a builder's source tree is in a directory
2314 # whose full name contains unusual characters.
2315 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2316 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2317 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2322 am__api_version='1.15'
2324 # Find a good install program. We prefer a C program (faster),
2325 # so one script is as good as another. But avoid the broken or
2326 # incompatible versions:
2327 # SysV /etc/install, /usr/sbin/install
2328 # SunOS /usr/etc/install
2329 # IRIX /sbin/install
2330 # AIX /bin/install
2331 # AmigaOS /C/install, which installs bootblocks on floppy discs
2332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2335 # OS/2's system install, which has a completely different semantic
2336 # ./install, which can be erroneously created by make from ./install.sh.
2337 # Reject install programs that cannot install multiple files.
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2339 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2340 if test -z "$INSTALL"; then
2341 if ${ac_cv_path_install+:} false; then :
2342 $as_echo_n "(cached) " >&6
2343 else
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 # Account for people who put trailing slashes in PATH elements.
2350 case $as_dir/ in #((
2351 ./ | .// | /[cC]/* | \
2352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2353 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2354 /usr/ucb/* ) ;;
2356 # OSF1 and SCO ODT 3.0 have their own names for install.
2357 # Don't use installbsd from OSF since it installs stuff as root
2358 # by default.
2359 for ac_prog in ginstall scoinst install; do
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2362 if test $ac_prog = install &&
2363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364 # AIX install. It has an incompatible calling convention.
2366 elif test $ac_prog = install &&
2367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368 # program-specific install script used by HP pwplus--don't use.
2370 else
2371 rm -rf conftest.one conftest.two conftest.dir
2372 echo one > conftest.one
2373 echo two > conftest.two
2374 mkdir conftest.dir
2375 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2376 test -s conftest.one && test -s conftest.two &&
2377 test -s conftest.dir/conftest.one &&
2378 test -s conftest.dir/conftest.two
2379 then
2380 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2381 break 3
2385 done
2386 done
2388 esac
2390 done
2391 IFS=$as_save_IFS
2393 rm -rf conftest.one conftest.two conftest.dir
2396 if test "${ac_cv_path_install+set}" = set; then
2397 INSTALL=$ac_cv_path_install
2398 else
2399 # As a last resort, use the slow shell script. Don't cache a
2400 # value for INSTALL within a source directory, because that will
2401 # break other packages using the cache if that directory is
2402 # removed, or if the value is a relative name.
2403 INSTALL=$ac_install_sh
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2407 $as_echo "$INSTALL" >&6; }
2409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2410 # It thinks the first close brace ends the variable substitution.
2411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2415 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2418 $as_echo_n "checking whether build environment is sane... " >&6; }
2419 # Reject unsafe characters in $srcdir or the absolute working directory
2420 # name. Accept space and tab only in the latter.
2421 am_lf='
2423 case `pwd` in
2424 *[\\\"\#\$\&\'\`$am_lf]*)
2425 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2426 esac
2427 case $srcdir in
2428 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2429 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2430 esac
2432 # Do 'set' in a subshell so we don't clobber the current shell's
2433 # arguments. Must try -L first in case configure is actually a
2434 # symlink; some systems play weird games with the mod time of symlinks
2435 # (eg FreeBSD returns the mod time of the symlink's containing
2436 # directory).
2437 if (
2438 am_has_slept=no
2439 for am_try in 1 2; do
2440 echo "timestamp, slept: $am_has_slept" > conftest.file
2441 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2442 if test "$*" = "X"; then
2443 # -L didn't work.
2444 set X `ls -t "$srcdir/configure" conftest.file`
2446 if test "$*" != "X $srcdir/configure conftest.file" \
2447 && test "$*" != "X conftest.file $srcdir/configure"; then
2449 # If neither matched, then we have a broken ls. This can happen
2450 # if, for instance, CONFIG_SHELL is bash and it inherits a
2451 # broken ls alias from the environment. This has actually
2452 # happened. Such a system could not be considered "sane".
2453 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2454 alias in your environment" "$LINENO" 5
2456 if test "$2" = conftest.file || test $am_try -eq 2; then
2457 break
2459 # Just in case.
2460 sleep 1
2461 am_has_slept=yes
2462 done
2463 test "$2" = conftest.file
2465 then
2466 # Ok.
2468 else
2469 as_fn_error $? "newly created file is older than distributed files!
2470 Check your system clock" "$LINENO" 5
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473 $as_echo "yes" >&6; }
2474 # If we didn't sleep, we still need to ensure time stamps of config.status and
2475 # generated files are strictly newer.
2476 am_sleep_pid=
2477 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2478 ( sleep 1 ) &
2479 am_sleep_pid=$!
2482 rm -f conftest.file
2484 test "$program_prefix" != NONE &&
2485 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2486 # Use a double $ so make ignores it.
2487 test "$program_suffix" != NONE &&
2488 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2489 # Double any \ or $.
2490 # By default was `s,x,x', remove it if useless.
2491 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2492 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2494 # Expand $ac_aux_dir to an absolute path.
2495 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2497 if test x"${MISSING+set}" != xset; then
2498 case $am_aux_dir in
2499 *\ * | *\ *)
2500 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2502 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2503 esac
2505 # Use eval to expand $SHELL
2506 if eval "$MISSING --is-lightweight"; then
2507 am_missing_run="$MISSING "
2508 else
2509 am_missing_run=
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2511 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2514 if test x"${install_sh+set}" != xset; then
2515 case $am_aux_dir in
2516 *\ * | *\ *)
2517 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2519 install_sh="\${SHELL} $am_aux_dir/install-sh"
2520 esac
2523 # Installed binaries are usually stripped using 'strip' when the user
2524 # run "make install-strip". However 'strip' might not be the right
2525 # tool to use in cross-compilation environments, therefore Automake
2526 # will honor the 'STRIP' environment variable to overrule this program.
2527 if test "$cross_compiling" != no; then
2528 if test -n "$ac_tool_prefix"; then
2529 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}strip; ac_word=$2
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if ${ac_cv_prog_STRIP+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 if test -n "$STRIP"; then
2537 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2550 done
2551 done
2552 IFS=$as_save_IFS
2556 STRIP=$ac_cv_prog_STRIP
2557 if test -n "$STRIP"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2559 $as_echo "$STRIP" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562 $as_echo "no" >&6; }
2567 if test -z "$ac_cv_prog_STRIP"; then
2568 ac_ct_STRIP=$STRIP
2569 # Extract the first word of "strip", so it can be a program name with args.
2570 set dummy strip; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$ac_ct_STRIP"; then
2577 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586 ac_cv_prog_ac_ct_STRIP="strip"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2590 done
2591 done
2592 IFS=$as_save_IFS
2596 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2597 if test -n "$ac_ct_STRIP"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2599 $as_echo "$ac_ct_STRIP" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2605 if test "x$ac_ct_STRIP" = x; then
2606 STRIP=":"
2607 else
2608 case $cross_compiling:$ac_tool_warned in
2609 yes:)
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2612 ac_tool_warned=yes ;;
2613 esac
2614 STRIP=$ac_ct_STRIP
2616 else
2617 STRIP="$ac_cv_prog_STRIP"
2621 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2624 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2625 if test -z "$MKDIR_P"; then
2626 if ${ac_cv_path_mkdir+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_prog in mkdir gmkdir; do
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2637 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2638 'mkdir (GNU coreutils) '* | \
2639 'mkdir (coreutils) '* | \
2640 'mkdir (fileutils) '4.1*)
2641 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2642 break 3;;
2643 esac
2644 done
2645 done
2646 done
2647 IFS=$as_save_IFS
2651 test -d ./--version && rmdir ./--version
2652 if test "${ac_cv_path_mkdir+set}" = set; then
2653 MKDIR_P="$ac_cv_path_mkdir -p"
2654 else
2655 # As a last resort, use the slow shell script. Don't cache a
2656 # value for MKDIR_P within a source directory, because that will
2657 # break other packages using the cache if that directory is
2658 # removed, or if the value is a relative name.
2659 MKDIR_P="$ac_install_sh -d"
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2663 $as_echo "$MKDIR_P" >&6; }
2665 for ac_prog in gawk mawk nawk awk
2667 # Extract the first word of "$ac_prog", so it can be a program name with args.
2668 set dummy $ac_prog; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if ${ac_cv_prog_AWK+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 if test -n "$AWK"; then
2675 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_AWK="$ac_prog"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2688 done
2689 done
2690 IFS=$as_save_IFS
2694 AWK=$ac_cv_prog_AWK
2695 if test -n "$AWK"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2697 $as_echo "$AWK" >&6; }
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2704 test -n "$AWK" && break
2705 done
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2708 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2709 set x ${MAKE-make}
2710 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2711 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 cat >conftest.make <<\_ACEOF
2715 SHELL = /bin/sh
2716 all:
2717 @echo '@@@%%%=$(MAKE)=@@@%%%'
2718 _ACEOF
2719 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2720 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2721 *@@@%%%=?*=@@@%%%*)
2722 eval ac_cv_prog_make_${ac_make}_set=yes;;
2724 eval ac_cv_prog_make_${ac_make}_set=no;;
2725 esac
2726 rm -f conftest.make
2728 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2730 $as_echo "yes" >&6; }
2731 SET_MAKE=
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 SET_MAKE="MAKE=${MAKE-make}"
2738 rm -rf .tst 2>/dev/null
2739 mkdir .tst 2>/dev/null
2740 if test -d .tst; then
2741 am__leading_dot=.
2742 else
2743 am__leading_dot=_
2745 rmdir .tst 2>/dev/null
2747 # Check whether --enable-silent-rules was given.
2748 if test "${enable_silent_rules+set}" = set; then :
2749 enableval=$enable_silent_rules;
2752 case $enable_silent_rules in # (((
2753 yes) AM_DEFAULT_VERBOSITY=0;;
2754 no) AM_DEFAULT_VERBOSITY=1;;
2755 *) AM_DEFAULT_VERBOSITY=1;;
2756 esac
2757 am_make=${MAKE-make}
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2759 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2760 if ${am_cv_make_support_nested_variables+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if $as_echo 'TRUE=$(BAR$(V))
2764 BAR0=false
2765 BAR1=true
2767 am__doit:
2768 @$(TRUE)
2769 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2770 am_cv_make_support_nested_variables=yes
2771 else
2772 am_cv_make_support_nested_variables=no
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2776 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2777 if test $am_cv_make_support_nested_variables = yes; then
2778 AM_V='$(V)'
2779 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2780 else
2781 AM_V=$AM_DEFAULT_VERBOSITY
2782 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2784 AM_BACKSLASH='\'
2786 DEPDIR="${am__leading_dot}deps"
2788 ac_config_commands="$ac_config_commands depfiles"
2791 am_make=${MAKE-make}
2792 cat > confinc << 'END'
2793 am__doit:
2794 @echo this is the am__doit target
2795 .PHONY: am__doit
2797 # If we don't find an include directive, just comment out the code.
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2799 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2800 am__include="#"
2801 am__quote=
2802 _am_result=none
2803 # First try GNU make style include.
2804 echo "include confinc" > confmf
2805 # Ignore all kinds of additional output from 'make'.
2806 case `$am_make -s -f confmf 2> /dev/null` in #(
2807 *the\ am__doit\ target*)
2808 am__include=include
2809 am__quote=
2810 _am_result=GNU
2812 esac
2813 # Now try BSD make style include.
2814 if test "$am__include" = "#"; then
2815 echo '.include "confinc"' > confmf
2816 case `$am_make -s -f confmf 2> /dev/null` in #(
2817 *the\ am__doit\ target*)
2818 am__include=.include
2819 am__quote="\""
2820 _am_result=BSD
2822 esac
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2827 $as_echo "$_am_result" >&6; }
2828 rm -f confinc confmf
2830 # Check whether --enable-dependency-tracking was given.
2831 if test "${enable_dependency_tracking+set}" = set; then :
2832 enableval=$enable_dependency_tracking;
2835 if test "x$enable_dependency_tracking" != xno; then
2836 am_depcomp="$ac_aux_dir/depcomp"
2837 AMDEPBACKSLASH='\'
2838 am__nodep='_no'
2840 if test "x$enable_dependency_tracking" != xno; then
2841 AMDEP_TRUE=
2842 AMDEP_FALSE='#'
2843 else
2844 AMDEP_TRUE='#'
2845 AMDEP_FALSE=
2849 ac_ext=c
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2876 done
2877 done
2878 IFS=$as_save_IFS
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2893 if test -z "$ac_cv_prog_CC"; then
2894 ac_ct_CC=$CC
2895 # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_ac_ct_CC="gcc"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2918 IFS=$as_save_IFS
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2931 if test "x$ac_ct_CC" = x; then
2932 CC=""
2933 else
2934 case $cross_compiling:$ac_tool_warned in
2935 yes:)
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938 ac_tool_warned=yes ;;
2939 esac
2940 CC=$ac_ct_CC
2942 else
2943 CC="$ac_cv_prog_CC"
2946 if test -z "$CC"; then
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}cc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_CC="${ac_tool_prefix}cc"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2969 done
2970 done
2971 IFS=$as_save_IFS
2975 CC=$ac_cv_prog_CC
2976 if test -n "$CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2987 if test -z "$CC"; then
2988 # Extract the first word of "cc", so it can be a program name with args.
2989 set dummy cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998 ac_prog_rejected=no
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007 ac_prog_rejected=yes
3008 continue
3010 ac_cv_prog_CC="cc"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3014 done
3015 done
3016 IFS=$as_save_IFS
3018 if test $ac_prog_rejected = yes; then
3019 # We found a bogon in the path, so make sure we never use it.
3020 set dummy $ac_cv_prog_CC
3021 shift
3022 if test $# != 0; then
3023 # We chose a different compiler from the bogus one.
3024 # However, it has the same basename, so the bogon will be chosen
3025 # first if we set CC to just the basename; use the full file name.
3026 shift
3027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3043 if test -z "$CC"; then
3044 if test -n "$ac_tool_prefix"; then
3045 for ac_prog in cl.exe
3047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_CC+:} false; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3068 done
3069 done
3070 IFS=$as_save_IFS
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3078 else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3084 test -n "$CC" && break
3085 done
3087 if test -z "$CC"; then
3088 ac_ct_CC=$CC
3089 for ac_prog in cl.exe
3091 # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108 ac_cv_prog_ac_ct_CC="$ac_prog"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3112 done
3113 done
3114 IFS=$as_save_IFS
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3122 else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3128 test -n "$ac_ct_CC" && break
3129 done
3131 if test "x$ac_ct_CC" = x; then
3132 CC=""
3133 else
3134 case $cross_compiling:$ac_tool_warned in
3135 yes:)
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3139 esac
3140 CC=$ac_ct_CC
3147 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details" "$LINENO" 5; }
3152 # Provide some information about the compiler.
3153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3154 set X $ac_compile
3155 ac_compiler=$2
3156 for ac_option in --version -v -V -qversion; do
3157 { { ac_try="$ac_compiler $ac_option >&5"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3165 ac_status=$?
3166 if test -s conftest.err; then
3167 sed '10a\
3168 ... rest of stderr output deleted ...
3169 10q' conftest.err >conftest.er1
3170 cat conftest.er1 >&5
3172 rm -f conftest.er1 conftest.err
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }
3175 done
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3181 main ()
3185 return 0;
3187 _ACEOF
3188 ac_clean_files_save=$ac_clean_files
3189 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3190 # Try to create an executable without -o first, disregard a.out.
3191 # It will help us diagnose broken compilers, and finding out an intuition
3192 # of exeext.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3194 $as_echo_n "checking whether the C compiler works... " >&6; }
3195 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3197 # The possible output files:
3198 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3200 ac_rmfiles=
3201 for ac_file in $ac_files
3203 case $ac_file in
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3206 esac
3207 done
3208 rm -f $ac_rmfiles
3210 if { { ac_try="$ac_link_default"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link_default") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3224 # so that the user can short-circuit this test for compilers unknown to
3225 # Autoconf.
3226 for ac_file in $ac_files ''
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3232 [ab].out )
3233 # We found the default executable, but exeext='' is most
3234 # certainly right.
3235 break;;
3236 *.* )
3237 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3238 then :; else
3239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241 # We set ac_cv_exeext here because the later test for it is not
3242 # safe: cross compilers may not add the suffix if given an `-o'
3243 # argument, so we may need to know it at that point already.
3244 # Even if this section looks crufty: it has the advantage of
3245 # actually working.
3246 break;;
3248 break;;
3249 esac
3250 done
3251 test "$ac_cv_exeext" = no && ac_cv_exeext=
3253 else
3254 ac_file=''
3256 if test -z "$ac_file"; then :
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 as_fn_error 77 "C compiler cannot create executables
3265 See \`config.log' for more details" "$LINENO" 5; }
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3271 $as_echo_n "checking for C compiler default output file name... " >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3273 $as_echo "$ac_file" >&6; }
3274 ac_exeext=$ac_cv_exeext
3276 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3277 ac_clean_files=$ac_clean_files_save
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3279 $as_echo_n "checking for suffix of executables... " >&6; }
3280 if { { ac_try="$ac_link"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_link") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
3291 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3292 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3293 # work properly (i.e., refer to `conftest.exe'), while it won't with
3294 # `rm'.
3295 for ac_file in conftest.exe conftest conftest.*; do
3296 test -f "$ac_file" || continue
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300 break;;
3301 * ) break;;
3302 esac
3303 done
3304 else
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3308 See \`config.log' for more details" "$LINENO" 5; }
3310 rm -f conftest conftest$ac_cv_exeext
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3312 $as_echo "$ac_cv_exeext" >&6; }
3314 rm -f conftest.$ac_ext
3315 EXEEXT=$ac_cv_exeext
3316 ac_exeext=$EXEEXT
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3319 #include <stdio.h>
3321 main ()
3323 FILE *f = fopen ("conftest.out", "w");
3324 return ferror (f) || fclose (f) != 0;
3327 return 0;
3329 _ACEOF
3330 ac_clean_files="$ac_clean_files conftest.out"
3331 # Check that the compiler produces executables we can run. If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3334 $as_echo_n "checking whether we are cross compiling... " >&6; }
3335 if test "$cross_compiling" != yes; then
3336 { { ac_try="$ac_link"
3337 case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_link") 2>&5
3344 ac_status=$?
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }
3347 if { ac_try='./conftest$ac_cv_exeext'
3348 { { case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_try") 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; }; then
3358 cross_compiling=no
3359 else
3360 if test "$cross_compiling" = maybe; then
3361 cross_compiling=yes
3362 else
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "cannot run C compiled programs.
3366 If you meant to cross compile, use \`--host'.
3367 See \`config.log' for more details" "$LINENO" 5; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3372 $as_echo "$cross_compiling" >&6; }
3374 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3375 ac_clean_files=$ac_clean_files_save
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3377 $as_echo_n "checking for suffix of object files... " >&6; }
3378 if ${ac_cv_objext+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3385 main ()
3389 return 0;
3391 _ACEOF
3392 rm -f conftest.o conftest.obj
3393 if { { ac_try="$ac_compile"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_compile") 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
3404 for ac_file in conftest.o conftest.obj conftest.*; do
3405 test -f "$ac_file" || continue;
3406 case $ac_file in
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3408 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3409 break;;
3410 esac
3411 done
3412 else
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot compute suffix of object files: cannot compile
3419 See \`config.log' for more details" "$LINENO" 5; }
3421 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3424 $as_echo "$ac_cv_objext" >&6; }
3425 OBJEXT=$ac_cv_objext
3426 ac_objext=$OBJEXT
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3428 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3429 if ${ac_cv_c_compiler_gnu+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3436 main ()
3438 #ifndef __GNUC__
3439 choke me
3440 #endif
3443 return 0;
3445 _ACEOF
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447 ac_compiler_gnu=yes
3448 else
3449 ac_compiler_gnu=no
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3456 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3457 if test $ac_compiler_gnu = yes; then
3458 GCC=yes
3459 else
3460 GCC=
3462 ac_test_CFLAGS=${CFLAGS+set}
3463 ac_save_CFLAGS=$CFLAGS
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3465 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3466 if ${ac_cv_prog_cc_g+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 ac_save_c_werror_flag=$ac_c_werror_flag
3470 ac_c_werror_flag=yes
3471 ac_cv_prog_cc_g=no
3472 CFLAGS="-g"
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3477 main ()
3481 return 0;
3483 _ACEOF
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485 ac_cv_prog_cc_g=yes
3486 else
3487 CFLAGS=""
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3492 main ()
3496 return 0;
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3501 else
3502 ac_c_werror_flag=$ac_save_c_werror_flag
3503 CFLAGS="-g"
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3508 main ()
3512 return 0;
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_cv_prog_cc_g=yes
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_c_werror_flag=$ac_save_c_werror_flag
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3526 $as_echo "$ac_cv_prog_cc_g" >&6; }
3527 if test "$ac_test_CFLAGS" = set; then
3528 CFLAGS=$ac_save_CFLAGS
3529 elif test $ac_cv_prog_cc_g = yes; then
3530 if test "$GCC" = yes; then
3531 CFLAGS="-g -O2"
3532 else
3533 CFLAGS="-g"
3535 else
3536 if test "$GCC" = yes; then
3537 CFLAGS="-O2"
3538 else
3539 CFLAGS=
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3543 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3544 if ${ac_cv_prog_cc_c89+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 ac_cv_prog_cc_c89=no
3548 ac_save_CC=$CC
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551 #include <stdarg.h>
3552 #include <stdio.h>
3553 struct stat;
3554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3555 struct buf { int x; };
3556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3557 static char *e (p, i)
3558 char **p;
3559 int i;
3561 return p[i];
3563 static char *f (char * (*g) (char **, int), char **p, ...)
3565 char *s;
3566 va_list v;
3567 va_start (v,p);
3568 s = g (p, va_arg (v,int));
3569 va_end (v);
3570 return s;
3573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3574 function prototypes and stuff, but not '\xHH' hex character constants.
3575 These don't provoke an error unfortunately, instead are silently treated
3576 as 'x'. The following induces an error, until -std is added to get
3577 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3578 array size at least. It's necessary to write '\x00'==0 to get something
3579 that's true only with -std. */
3580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3582 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3583 inside strings and character constants. */
3584 #define FOO(x) 'x'
3585 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3587 int test (int i, double x);
3588 struct s1 {int (*f) (int a);};
3589 struct s2 {int (*f) (double a);};
3590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3591 int argc;
3592 char **argv;
3594 main ()
3596 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3598 return 0;
3600 _ACEOF
3601 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3602 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3604 CC="$ac_save_CC $ac_arg"
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_prog_cc_c89=$ac_arg
3608 rm -f core conftest.err conftest.$ac_objext
3609 test "x$ac_cv_prog_cc_c89" != "xno" && break
3610 done
3611 rm -f conftest.$ac_ext
3612 CC=$ac_save_CC
3615 # AC_CACHE_VAL
3616 case "x$ac_cv_prog_cc_c89" in
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619 $as_echo "none needed" >&6; } ;;
3620 xno)
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622 $as_echo "unsupported" >&6; } ;;
3624 CC="$CC $ac_cv_prog_cc_c89"
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3626 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3627 esac
3628 if test "x$ac_cv_prog_cc_c89" != xno; then :
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3644 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3645 if ${am_cv_prog_cc_c_o+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3652 main ()
3656 return 0;
3658 _ACEOF
3659 # Make sure it works both with $CC and with simple cc.
3660 # Following AC_PROG_CC_C_O, we do the test twice because some
3661 # compilers refuse to overwrite an existing .o file with -o,
3662 # though they will create one.
3663 am_cv_prog_cc_c_o=yes
3664 for am_i in 1 2; do
3665 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3666 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } \
3670 && test -f conftest2.$ac_objext; then
3671 : OK
3672 else
3673 am_cv_prog_cc_c_o=no
3674 break
3676 done
3677 rm -f core conftest*
3678 unset am_i
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3681 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3682 if test "$am_cv_prog_cc_c_o" != yes; then
3683 # Losing compiler, so override with the script.
3684 # FIXME: It is wrong to rewrite CC.
3685 # But if we don't then we get into trouble of one sort or another.
3686 # A longer-term fix would be to have automake use am__CC in this case,
3687 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3688 CC="$am_aux_dir/compile $CC"
3690 ac_ext=c
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697 depcc="$CC" am_compiler_list=
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3700 $as_echo_n "checking dependency style of $depcc... " >&6; }
3701 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3705 # We make a subdir and do the tests there. Otherwise we can end up
3706 # making bogus files that we don't know about and never remove. For
3707 # instance it was reported that on HP-UX the gcc test will end up
3708 # making a dummy file named 'D' -- because '-MD' means "put the output
3709 # in D".
3710 rm -rf conftest.dir
3711 mkdir conftest.dir
3712 # Copy depcomp to subdir because otherwise we won't find it if we're
3713 # using a relative directory.
3714 cp "$am_depcomp" conftest.dir
3715 cd conftest.dir
3716 # We will build objects and dependencies in a subdirectory because
3717 # it helps to detect inapplicable dependency modes. For instance
3718 # both Tru64's cc and ICC support -MD to output dependencies as a
3719 # side effect of compilation, but ICC will put the dependencies in
3720 # the current directory while Tru64 will put them in the object
3721 # directory.
3722 mkdir sub
3724 am_cv_CC_dependencies_compiler_type=none
3725 if test "$am_compiler_list" = ""; then
3726 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3728 am__universal=false
3729 case " $depcc " in #(
3730 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3731 esac
3733 for depmode in $am_compiler_list; do
3734 # Setup a source with many dependencies, because some compilers
3735 # like to wrap large dependency lists on column 80 (with \), and
3736 # we should not choose a depcomp mode which is confused by this.
3738 # We need to recreate these files for each test, as the compiler may
3739 # overwrite some of them when testing with obscure command lines.
3740 # This happens at least with the AIX C compiler.
3741 : > sub/conftest.c
3742 for i in 1 2 3 4 5 6; do
3743 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3744 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3745 # Solaris 10 /bin/sh.
3746 echo '/* dummy */' > sub/conftst$i.h
3747 done
3748 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3750 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3751 # mode. It turns out that the SunPro C++ compiler does not properly
3752 # handle '-M -o', and we need to detect this. Also, some Intel
3753 # versions had trouble with output in subdirs.
3754 am__obj=sub/conftest.${OBJEXT-o}
3755 am__minus_obj="-o $am__obj"
3756 case $depmode in
3757 gcc)
3758 # This depmode causes a compiler race in universal mode.
3759 test "$am__universal" = false || continue
3761 nosideeffect)
3762 # After this tag, mechanisms are not by side-effect, so they'll
3763 # only be used when explicitly requested.
3764 if test "x$enable_dependency_tracking" = xyes; then
3765 continue
3766 else
3767 break
3770 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3771 # This compiler won't grok '-c -o', but also, the minuso test has
3772 # not run yet. These depmodes are late enough in the game, and
3773 # so weak that their functioning should not be impacted.
3774 am__obj=conftest.${OBJEXT-o}
3775 am__minus_obj=
3777 none) break ;;
3778 esac
3779 if depmode=$depmode \
3780 source=sub/conftest.c object=$am__obj \
3781 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3782 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3783 >/dev/null 2>conftest.err &&
3784 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3785 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3786 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3787 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3788 # icc doesn't choke on unknown options, it will just issue warnings
3789 # or remarks (even with -Werror). So we grep stderr for any message
3790 # that says an option was ignored or not supported.
3791 # When given -MP, icc 7.0 and 7.1 complain thusly:
3792 # icc: Command line warning: ignoring option '-M'; no argument required
3793 # The diagnosis changed in icc 8.0:
3794 # icc: Command line remark: option '-MP' not supported
3795 if (grep 'ignoring option' conftest.err ||
3796 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3797 am_cv_CC_dependencies_compiler_type=$depmode
3798 break
3801 done
3803 cd ..
3804 rm -rf conftest.dir
3805 else
3806 am_cv_CC_dependencies_compiler_type=none
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3811 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3812 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3815 test "x$enable_dependency_tracking" != xno \
3816 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3817 am__fastdepCC_TRUE=
3818 am__fastdepCC_FALSE='#'
3819 else
3820 am__fastdepCC_TRUE='#'
3821 am__fastdepCC_FALSE=
3826 # Check whether --enable-compiler-warnings was given.
3827 if test "${enable_compiler_warnings+set}" = set; then :
3828 enableval=$enable_compiler_warnings;
3830 case $enable_compiler_warnings in #(
3831 no | min | yes | max | all) :
3832 ;; #(
3833 *) :
3834 if test "x$enable_maintainer_mode" = xyes; then :
3835 enable_compiler_warnings=yes
3836 else
3837 enable_compiler_warnings=min
3838 fi ;;
3839 esac
3842 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3843 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3844 # is not polluted with repeated "-I."
3845 am__isrc=' -I$(srcdir)'
3846 # test to see if srcdir already configured
3847 if test -f $srcdir/config.status; then
3848 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3852 # test whether we have cygpath
3853 if test -z "$CYGPATH_W"; then
3854 if (cygpath --version) >/dev/null 2>/dev/null; then
3855 CYGPATH_W='cygpath -w'
3856 else
3857 CYGPATH_W=echo
3862 # Define the identity of the package.
3863 PACKAGE='mpfr--tex-live-'
3864 VERSION='3.1.3'
3867 cat >>confdefs.h <<_ACEOF
3868 #define PACKAGE "$PACKAGE"
3869 _ACEOF
3872 cat >>confdefs.h <<_ACEOF
3873 #define VERSION "$VERSION"
3874 _ACEOF
3876 # Some tools Automake needs.
3878 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3881 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3884 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3887 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3890 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3892 # For better backward compatibility. To be removed once Automake 1.9.x
3893 # dies out for good. For more background, see:
3894 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3895 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3896 mkdir_p='$(MKDIR_P)'
3898 # We need awk for the "check" target (and possibly the TAP driver). The
3899 # system "awk" is bad on some platforms.
3900 # Always define AMTAR for backward compatibility. Yes, it's still used
3901 # in the wild :-( We should find a proper way to deprecate it ...
3902 AMTAR='$${TAR-tar}'
3905 # We'll loop over all known methods to create a tar archive until one works.
3906 _am_tools='gnutar pax cpio none'
3908 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3915 # POSIX will say in a future version that running "rm -f" with no argument
3916 # is OK; and we want to be able to make that assumption in our Makefile
3917 # recipes. So use an aggressive probe to check that the usage we want is
3918 # actually supported "in the wild" to an acceptable degree.
3919 # See automake bug#10828.
3920 # To make any issue more visible, cause the running configure to be aborted
3921 # by default if the 'rm' program in use doesn't match our expectations; the
3922 # user can still override this though.
3923 if rm -f && rm -fr && rm -rf; then : OK; else
3924 cat >&2 <<'END'
3925 Oops!
3927 Your 'rm' program seems unable to run without file operands specified
3928 on the command line, even when the '-f' option is present. This is contrary
3929 to the behaviour of most rm programs out there, and not conforming with
3930 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3932 Please tell bug-automake@gnu.org about your system, including the value
3933 of your $PATH and any error possibly output before this message. This
3934 can help us improve future automake versions.
3937 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3938 echo 'Configuration will proceed anyway, since you have set the' >&2
3939 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3940 echo >&2
3941 else
3942 cat >&2 <<'END'
3943 Aborting the configuration process, to ensure you take notice of the issue.
3945 You can download and install GNU coreutils to get an 'rm' implementation
3946 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3948 If you want to complete the configuration process using your problematic
3949 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3950 to "yes", and re-run configure.
3953 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3959 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3960 # Check whether --enable-maintainer-mode was given.
3961 if test "${enable_maintainer_mode+set}" = set; then :
3962 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3963 else
3964 USE_MAINTAINER_MODE=no
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3968 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3969 if test $USE_MAINTAINER_MODE = yes; then
3970 MAINTAINER_MODE_TRUE=
3971 MAINTAINER_MODE_FALSE='#'
3972 else
3973 MAINTAINER_MODE_TRUE='#'
3974 MAINTAINER_MODE_FALSE=
3977 MAINT=$MAINTAINER_MODE_TRUE
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
3981 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
3982 if ${kb_cv_c_prototypes+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987 #include <stdarg.h>
3989 main ()
3991 extern void foo(int i,...);
3993 return 0;
3995 _ACEOF
3996 if ac_fn_c_try_link "$LINENO"; then :
3997 kb_cv_c_prototypes=yes
3998 else
3999 kb_cv_c_prototypes=no
4001 rm -f core conftest.err conftest.$ac_objext \
4002 conftest$ac_exeext conftest.$ac_ext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
4005 $as_echo "$kb_cv_c_prototypes" >&6; }
4006 if test "x$kb_cv_c_prototypes" = xno; then
4007 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
4010 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
4011 if ${kpse_cv_warning_cflags+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if test "x$GCC" = xyes; then
4015 kpse_cv_warning_cflags=
4016 if test "x$enable_compiler_warnings" != xno; then
4017 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
4018 case `$CC -dumpversion` in #(
4019 3.4.* | 4.* | 5.*) :
4020 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
4021 *) :
4023 esac
4024 case `$CC -dumpversion` in #(
4025 3.[234].* | 4.* | 5.*) :
4026 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
4027 *) :
4029 esac
4030 if test "x$enable_compiler_warnings" != xmin; then
4031 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
4032 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
4033 if test "x$enable_compiler_warnings" != xyes; then
4034 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
4035 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
4036 case `$CC -dumpversion` in #(
4037 3.4.* | 4.* | 5.*) :
4038 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
4039 *) :
4041 esac
4042 if test "x$enable_compiler_warnings" != xmax; then
4043 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
4048 elif test "x$enable_compiler_warnings" = xno; then
4049 kpse_cv_warning_cflags=
4050 else
4051 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
4055 $as_echo "$kpse_cv_warning_cflags" >&6; }
4056 WARNING_CFLAGS=$kpse_cv_warning_cflags
4065 ac_ext=c
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if ${ac_cv_prog_CC+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4092 done
4093 done
4094 IFS=$as_save_IFS
4098 CC=$ac_cv_prog_CC
4099 if test -n "$CC"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 $as_echo "$CC" >&6; }
4102 else
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4109 if test -z "$ac_cv_prog_CC"; then
4110 ac_ct_CC=$CC
4111 # Extract the first word of "gcc", so it can be a program name with args.
4112 set dummy gcc; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 if test -n "$ac_ct_CC"; then
4119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_prog_ac_ct_CC="gcc"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 break 2
4132 done
4133 done
4134 IFS=$as_save_IFS
4138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4139 if test -n "$ac_ct_CC"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4141 $as_echo "$ac_ct_CC" >&6; }
4142 else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4147 if test "x$ac_ct_CC" = x; then
4148 CC=""
4149 else
4150 case $cross_compiling:$ac_tool_warned in
4151 yes:)
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154 ac_tool_warned=yes ;;
4155 esac
4156 CC=$ac_ct_CC
4158 else
4159 CC="$ac_cv_prog_CC"
4162 if test -z "$CC"; then
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4165 set dummy ${ac_tool_prefix}cc; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if ${ac_cv_prog_CC+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_CC="${ac_tool_prefix}cc"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4185 done
4186 done
4187 IFS=$as_save_IFS
4191 CC=$ac_cv_prog_CC
4192 if test -n "$CC"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194 $as_echo "$CC" >&6; }
4195 else
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4203 if test -z "$CC"; then
4204 # Extract the first word of "cc", so it can be a program name with args.
4205 set dummy cc; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if ${ac_cv_prog_CC+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4213 else
4214 ac_prog_rejected=no
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4223 ac_prog_rejected=yes
4224 continue
4226 ac_cv_prog_CC="cc"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4230 done
4231 done
4232 IFS=$as_save_IFS
4234 if test $ac_prog_rejected = yes; then
4235 # We found a bogon in the path, so make sure we never use it.
4236 set dummy $ac_cv_prog_CC
4237 shift
4238 if test $# != 0; then
4239 # We chose a different compiler from the bogus one.
4240 # However, it has the same basename, so the bogon will be chosen
4241 # first if we set CC to just the basename; use the full file name.
4242 shift
4243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4248 CC=$ac_cv_prog_CC
4249 if test -n "$CC"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251 $as_echo "$CC" >&6; }
4252 else
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4259 if test -z "$CC"; then
4260 if test -n "$ac_tool_prefix"; then
4261 for ac_prog in cl.exe
4263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_CC+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4284 done
4285 done
4286 IFS=$as_save_IFS
4290 CC=$ac_cv_prog_CC
4291 if test -n "$CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293 $as_echo "$CC" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4300 test -n "$CC" && break
4301 done
4303 if test -z "$CC"; then
4304 ac_ct_CC=$CC
4305 for ac_prog in cl.exe
4307 # Extract the first word of "$ac_prog", so it can be a program name with args.
4308 set dummy $ac_prog; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -n "$ac_ct_CC"; then
4315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_ac_ct_CC="$ac_prog"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4328 done
4329 done
4330 IFS=$as_save_IFS
4334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335 if test -n "$ac_ct_CC"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4337 $as_echo "$ac_ct_CC" >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4344 test -n "$ac_ct_CC" && break
4345 done
4347 if test "x$ac_ct_CC" = x; then
4348 CC=""
4349 else
4350 case $cross_compiling:$ac_tool_warned in
4351 yes:)
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354 ac_tool_warned=yes ;;
4355 esac
4356 CC=$ac_ct_CC
4363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365 as_fn_error $? "no acceptable C compiler found in \$PATH
4366 See \`config.log' for more details" "$LINENO" 5; }
4368 # Provide some information about the compiler.
4369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4370 set X $ac_compile
4371 ac_compiler=$2
4372 for ac_option in --version -v -V -qversion; do
4373 { { ac_try="$ac_compiler $ac_option >&5"
4374 case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377 esac
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4381 ac_status=$?
4382 if test -s conftest.err; then
4383 sed '10a\
4384 ... rest of stderr output deleted ...
4385 10q' conftest.err >conftest.er1
4386 cat conftest.er1 >&5
4388 rm -f conftest.er1 conftest.err
4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }
4391 done
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4394 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4395 if ${ac_cv_c_compiler_gnu+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4402 main ()
4404 #ifndef __GNUC__
4405 choke me
4406 #endif
4409 return 0;
4411 _ACEOF
4412 if ac_fn_c_try_compile "$LINENO"; then :
4413 ac_compiler_gnu=yes
4414 else
4415 ac_compiler_gnu=no
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4422 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4423 if test $ac_compiler_gnu = yes; then
4424 GCC=yes
4425 else
4426 GCC=
4428 ac_test_CFLAGS=${CFLAGS+set}
4429 ac_save_CFLAGS=$CFLAGS
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4431 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4432 if ${ac_cv_prog_cc_g+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 ac_save_c_werror_flag=$ac_c_werror_flag
4436 ac_c_werror_flag=yes
4437 ac_cv_prog_cc_g=no
4438 CFLAGS="-g"
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4443 main ()
4447 return 0;
4449 _ACEOF
4450 if ac_fn_c_try_compile "$LINENO"; then :
4451 ac_cv_prog_cc_g=yes
4452 else
4453 CFLAGS=""
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4458 main ()
4462 return 0;
4464 _ACEOF
4465 if ac_fn_c_try_compile "$LINENO"; then :
4467 else
4468 ac_c_werror_flag=$ac_save_c_werror_flag
4469 CFLAGS="-g"
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4474 main ()
4478 return 0;
4480 _ACEOF
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_prog_cc_g=yes
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 ac_c_werror_flag=$ac_save_c_werror_flag
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4492 $as_echo "$ac_cv_prog_cc_g" >&6; }
4493 if test "$ac_test_CFLAGS" = set; then
4494 CFLAGS=$ac_save_CFLAGS
4495 elif test $ac_cv_prog_cc_g = yes; then
4496 if test "$GCC" = yes; then
4497 CFLAGS="-g -O2"
4498 else
4499 CFLAGS="-g"
4501 else
4502 if test "$GCC" = yes; then
4503 CFLAGS="-O2"
4504 else
4505 CFLAGS=
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4509 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4510 if ${ac_cv_prog_cc_c89+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 ac_cv_prog_cc_c89=no
4514 ac_save_CC=$CC
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517 #include <stdarg.h>
4518 #include <stdio.h>
4519 struct stat;
4520 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4521 struct buf { int x; };
4522 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4523 static char *e (p, i)
4524 char **p;
4525 int i;
4527 return p[i];
4529 static char *f (char * (*g) (char **, int), char **p, ...)
4531 char *s;
4532 va_list v;
4533 va_start (v,p);
4534 s = g (p, va_arg (v,int));
4535 va_end (v);
4536 return s;
4539 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4540 function prototypes and stuff, but not '\xHH' hex character constants.
4541 These don't provoke an error unfortunately, instead are silently treated
4542 as 'x'. The following induces an error, until -std is added to get
4543 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4544 array size at least. It's necessary to write '\x00'==0 to get something
4545 that's true only with -std. */
4546 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4548 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4549 inside strings and character constants. */
4550 #define FOO(x) 'x'
4551 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4553 int test (int i, double x);
4554 struct s1 {int (*f) (int a);};
4555 struct s2 {int (*f) (double a);};
4556 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4557 int argc;
4558 char **argv;
4560 main ()
4562 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4564 return 0;
4566 _ACEOF
4567 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4568 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4570 CC="$ac_save_CC $ac_arg"
4571 if ac_fn_c_try_compile "$LINENO"; then :
4572 ac_cv_prog_cc_c89=$ac_arg
4574 rm -f core conftest.err conftest.$ac_objext
4575 test "x$ac_cv_prog_cc_c89" != "xno" && break
4576 done
4577 rm -f conftest.$ac_ext
4578 CC=$ac_save_CC
4581 # AC_CACHE_VAL
4582 case "x$ac_cv_prog_cc_c89" in
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4585 $as_echo "none needed" >&6; } ;;
4586 xno)
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4588 $as_echo "unsupported" >&6; } ;;
4590 CC="$CC $ac_cv_prog_cc_c89"
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4592 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4593 esac
4594 if test "x$ac_cv_prog_cc_c89" != xno; then :
4598 ac_ext=c
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 ac_ext=c
4605 ac_cpp='$CPP $CPPFLAGS'
4606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4610 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4611 if ${am_cv_prog_cc_c_o+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4618 main ()
4622 return 0;
4624 _ACEOF
4625 # Make sure it works both with $CC and with simple cc.
4626 # Following AC_PROG_CC_C_O, we do the test twice because some
4627 # compilers refuse to overwrite an existing .o file with -o,
4628 # though they will create one.
4629 am_cv_prog_cc_c_o=yes
4630 for am_i in 1 2; do
4631 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4632 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } \
4636 && test -f conftest2.$ac_objext; then
4637 : OK
4638 else
4639 am_cv_prog_cc_c_o=no
4640 break
4642 done
4643 rm -f core conftest*
4644 unset am_i
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4647 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4648 if test "$am_cv_prog_cc_c_o" != yes; then
4649 # Losing compiler, so override with the script.
4650 # FIXME: It is wrong to rewrite CC.
4651 # But if we don't then we get into trouble of one sort or another.
4652 # A longer-term fix would be to have automake use am__CC in this case,
4653 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4654 CC="$am_aux_dir/compile $CC"
4656 ac_ext=c
4657 ac_cpp='$CPP $CPPFLAGS'
4658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4663 depcc="$CC" am_compiler_list=
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4666 $as_echo_n "checking dependency style of $depcc... " >&6; }
4667 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4671 # We make a subdir and do the tests there. Otherwise we can end up
4672 # making bogus files that we don't know about and never remove. For
4673 # instance it was reported that on HP-UX the gcc test will end up
4674 # making a dummy file named 'D' -- because '-MD' means "put the output
4675 # in D".
4676 rm -rf conftest.dir
4677 mkdir conftest.dir
4678 # Copy depcomp to subdir because otherwise we won't find it if we're
4679 # using a relative directory.
4680 cp "$am_depcomp" conftest.dir
4681 cd conftest.dir
4682 # We will build objects and dependencies in a subdirectory because
4683 # it helps to detect inapplicable dependency modes. For instance
4684 # both Tru64's cc and ICC support -MD to output dependencies as a
4685 # side effect of compilation, but ICC will put the dependencies in
4686 # the current directory while Tru64 will put them in the object
4687 # directory.
4688 mkdir sub
4690 am_cv_CC_dependencies_compiler_type=none
4691 if test "$am_compiler_list" = ""; then
4692 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4694 am__universal=false
4695 case " $depcc " in #(
4696 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4697 esac
4699 for depmode in $am_compiler_list; do
4700 # Setup a source with many dependencies, because some compilers
4701 # like to wrap large dependency lists on column 80 (with \), and
4702 # we should not choose a depcomp mode which is confused by this.
4704 # We need to recreate these files for each test, as the compiler may
4705 # overwrite some of them when testing with obscure command lines.
4706 # This happens at least with the AIX C compiler.
4707 : > sub/conftest.c
4708 for i in 1 2 3 4 5 6; do
4709 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4710 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4711 # Solaris 10 /bin/sh.
4712 echo '/* dummy */' > sub/conftst$i.h
4713 done
4714 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4716 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4717 # mode. It turns out that the SunPro C++ compiler does not properly
4718 # handle '-M -o', and we need to detect this. Also, some Intel
4719 # versions had trouble with output in subdirs.
4720 am__obj=sub/conftest.${OBJEXT-o}
4721 am__minus_obj="-o $am__obj"
4722 case $depmode in
4723 gcc)
4724 # This depmode causes a compiler race in universal mode.
4725 test "$am__universal" = false || continue
4727 nosideeffect)
4728 # After this tag, mechanisms are not by side-effect, so they'll
4729 # only be used when explicitly requested.
4730 if test "x$enable_dependency_tracking" = xyes; then
4731 continue
4732 else
4733 break
4736 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4737 # This compiler won't grok '-c -o', but also, the minuso test has
4738 # not run yet. These depmodes are late enough in the game, and
4739 # so weak that their functioning should not be impacted.
4740 am__obj=conftest.${OBJEXT-o}
4741 am__minus_obj=
4743 none) break ;;
4744 esac
4745 if depmode=$depmode \
4746 source=sub/conftest.c object=$am__obj \
4747 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4748 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4749 >/dev/null 2>conftest.err &&
4750 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4751 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4752 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4753 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4754 # icc doesn't choke on unknown options, it will just issue warnings
4755 # or remarks (even with -Werror). So we grep stderr for any message
4756 # that says an option was ignored or not supported.
4757 # When given -MP, icc 7.0 and 7.1 complain thusly:
4758 # icc: Command line warning: ignoring option '-M'; no argument required
4759 # The diagnosis changed in icc 8.0:
4760 # icc: Command line remark: option '-MP' not supported
4761 if (grep 'ignoring option' conftest.err ||
4762 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4763 am_cv_CC_dependencies_compiler_type=$depmode
4764 break
4767 done
4769 cd ..
4770 rm -rf conftest.dir
4771 else
4772 am_cv_CC_dependencies_compiler_type=none
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4777 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4778 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4781 test "x$enable_dependency_tracking" != xno \
4782 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4783 am__fastdepCC_TRUE=
4784 am__fastdepCC_FALSE='#'
4785 else
4786 am__fastdepCC_TRUE='#'
4787 am__fastdepCC_FALSE=
4791 if test -n "$ac_tool_prefix"; then
4792 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4793 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if ${ac_cv_prog_RANLIB+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -n "$RANLIB"; then
4800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4813 done
4814 done
4815 IFS=$as_save_IFS
4819 RANLIB=$ac_cv_prog_RANLIB
4820 if test -n "$RANLIB"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4822 $as_echo "$RANLIB" >&6; }
4823 else
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 $as_echo "no" >&6; }
4830 if test -z "$ac_cv_prog_RANLIB"; then
4831 ac_ct_RANLIB=$RANLIB
4832 # Extract the first word of "ranlib", so it can be a program name with args.
4833 set dummy ranlib; ac_word=$2
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test -n "$ac_ct_RANLIB"; then
4840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_ac_ct_RANLIB="ranlib"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4853 done
4854 done
4855 IFS=$as_save_IFS
4859 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4860 if test -n "$ac_ct_RANLIB"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4862 $as_echo "$ac_ct_RANLIB" >&6; }
4863 else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4868 if test "x$ac_ct_RANLIB" = x; then
4869 RANLIB=":"
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872 yes:)
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned=yes ;;
4876 esac
4877 RANLIB=$ac_ct_RANLIB
4879 else
4880 RANLIB="$ac_cv_prog_RANLIB"
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4884 $as_echo_n "checking whether ln -s works... " >&6; }
4885 LN_S=$as_ln_s
4886 if test "$LN_S" = "ln -s"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4888 $as_echo "yes" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4891 $as_echo "no, using $LN_S" >&6; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for C to hide external symbols" >&5
4896 $as_echo_n "checking CFLAGS for C to hide external symbols... " >&6; }
4897 if ${kpse_cv_visibility_cflags+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 ac_ext=c
4901 ac_cpp='$CPP $CPPFLAGS'
4902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906 kpse_cv_visibility_cflags=unknown
4907 kpse_save_flags=$CFLAGS
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910 #include <stdio.h>
4911 extern void foo(void);
4912 void foo(void){printf("foo\n");}
4913 _ACEOF
4914 # FIXME: Add tests for non-GNU compilers
4915 for kpse_flag in '-fvisibility=hidden -fvisibility-inlines-hidden' '-fvisibility=hidden'; do
4916 CFLAGS="$kpse_save_flags -Werror $kpse_flag"
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 kpse_cv_visibility_cflags=$kpse_flag; break
4920 rm -f core conftest.err conftest.$ac_objext
4921 done
4922 ac_ext=c
4923 ac_cpp='$CPP $CPPFLAGS'
4924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_visibility_cflags" >&5
4931 $as_echo "$kpse_cv_visibility_cflags" >&6; }
4932 CFLAGS=$kpse_save_flags
4933 case $kpse_cv_visibility_cflags in #(
4934 unknown) :
4935 ;; #(
4936 *) :
4937 VISIBILITY_CFLAGS=$kpse_cv_visibility_cflags
4939 esac
4945 ac_config_headers="$ac_config_headers config.h"
4948 # Make sure we can run config.sub.
4949 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4950 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4953 $as_echo_n "checking build system type... " >&6; }
4954 if ${ac_cv_build+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 ac_build_alias=$build_alias
4958 test "x$ac_build_alias" = x &&
4959 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4960 test "x$ac_build_alias" = x &&
4961 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4962 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4963 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4967 $as_echo "$ac_cv_build" >&6; }
4968 case $ac_cv_build in
4969 *-*-*) ;;
4970 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4971 esac
4972 build=$ac_cv_build
4973 ac_save_IFS=$IFS; IFS='-'
4974 set x $ac_cv_build
4975 shift
4976 build_cpu=$1
4977 build_vendor=$2
4978 shift; shift
4979 # Remember, the first character of IFS is used to create $*,
4980 # except with old shells:
4981 build_os=$*
4982 IFS=$ac_save_IFS
4983 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4987 $as_echo_n "checking host system type... " >&6; }
4988 if ${ac_cv_host+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test "x$host_alias" = x; then
4992 ac_cv_host=$ac_cv_build
4993 else
4994 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4995 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5000 $as_echo "$ac_cv_host" >&6; }
5001 case $ac_cv_host in
5002 *-*-*) ;;
5003 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5004 esac
5005 host=$ac_cv_host
5006 ac_save_IFS=$IFS; IFS='-'
5007 set x $ac_cv_host
5008 shift
5009 host_cpu=$1
5010 host_vendor=$2
5011 shift; shift
5012 # Remember, the first character of IFS is used to create $*,
5013 # except with old shells:
5014 host_os=$*
5015 IFS=$ac_save_IFS
5016 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5019 if test "x$host_alias" != x && test "x$build_alias" = x; then :
5020 as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5
5022 eval kpse_build_alias=\${build_alias-$build}
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5026 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5027 if ${ac_cv_header_time+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032 #include <sys/types.h>
5033 #include <sys/time.h>
5034 #include <time.h>
5037 main ()
5039 if ((struct tm *) 0)
5040 return 0;
5042 return 0;
5044 _ACEOF
5045 if ac_fn_c_try_compile "$LINENO"; then :
5046 ac_cv_header_time=yes
5047 else
5048 ac_cv_header_time=no
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5053 $as_echo "$ac_cv_header_time" >&6; }
5054 if test $ac_cv_header_time = yes; then
5056 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5060 ac_ext=c
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5066 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5067 # On Suns, sometimes $CPP names a directory.
5068 if test -n "$CPP" && test -d "$CPP"; then
5069 CPP=
5071 if test -z "$CPP"; then
5072 if ${ac_cv_prog_CPP+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 # Double quotes because CPP needs to be expanded
5076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5078 ac_preproc_ok=false
5079 for ac_c_preproc_warn_flag in '' yes
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #ifdef __STDC__
5090 # include <limits.h>
5091 #else
5092 # include <assert.h>
5093 #endif
5094 Syntax error
5095 _ACEOF
5096 if ac_fn_c_try_cpp "$LINENO"; then :
5098 else
5099 # Broken: fails on valid input.
5100 continue
5102 rm -f conftest.err conftest.i conftest.$ac_ext
5104 # OK, works on sane cases. Now check whether nonexistent headers
5105 # can be detected and how.
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 #include <ac_nonexistent.h>
5109 _ACEOF
5110 if ac_fn_c_try_cpp "$LINENO"; then :
5111 # Broken: success on invalid input.
5112 continue
5113 else
5114 # Passes both tests.
5115 ac_preproc_ok=:
5116 break
5118 rm -f conftest.err conftest.i conftest.$ac_ext
5120 done
5121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5122 rm -f conftest.i conftest.err conftest.$ac_ext
5123 if $ac_preproc_ok; then :
5124 break
5127 done
5128 ac_cv_prog_CPP=$CPP
5131 CPP=$ac_cv_prog_CPP
5132 else
5133 ac_cv_prog_CPP=$CPP
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5136 $as_echo "$CPP" >&6; }
5137 ac_preproc_ok=false
5138 for ac_c_preproc_warn_flag in '' yes
5140 # Use a header file that comes with gcc, so configuring glibc
5141 # with a fresh cross-compiler works.
5142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5143 # <limits.h> exists even on freestanding compilers.
5144 # On the NeXT, cc -E runs the code through the compiler's parser,
5145 # not just through cpp. "Syntax error" is here to catch this case.
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 #ifdef __STDC__
5149 # include <limits.h>
5150 #else
5151 # include <assert.h>
5152 #endif
5153 Syntax error
5154 _ACEOF
5155 if ac_fn_c_try_cpp "$LINENO"; then :
5157 else
5158 # Broken: fails on valid input.
5159 continue
5161 rm -f conftest.err conftest.i conftest.$ac_ext
5163 # OK, works on sane cases. Now check whether nonexistent headers
5164 # can be detected and how.
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #include <ac_nonexistent.h>
5168 _ACEOF
5169 if ac_fn_c_try_cpp "$LINENO"; then :
5170 # Broken: success on invalid input.
5171 continue
5172 else
5173 # Passes both tests.
5174 ac_preproc_ok=:
5175 break
5177 rm -f conftest.err conftest.i conftest.$ac_ext
5179 done
5180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5181 rm -f conftest.i conftest.err conftest.$ac_ext
5182 if $ac_preproc_ok; then :
5184 else
5185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5187 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5188 See \`config.log' for more details" "$LINENO" 5; }
5191 ac_ext=c
5192 ac_cpp='$CPP $CPPFLAGS'
5193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5199 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5200 if ${ac_cv_path_GREP+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 if test -z "$GREP"; then
5204 ac_path_GREP_found=false
5205 # Loop through the user's path and test for each of PROGNAME-LIST
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_prog in grep ggrep; do
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5214 as_fn_executable_p "$ac_path_GREP" || continue
5215 # Check for GNU ac_path_GREP and select it if it is found.
5216 # Check for GNU $ac_path_GREP
5217 case `"$ac_path_GREP" --version 2>&1` in
5218 *GNU*)
5219 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5221 ac_count=0
5222 $as_echo_n 0123456789 >"conftest.in"
5223 while :
5225 cat "conftest.in" "conftest.in" >"conftest.tmp"
5226 mv "conftest.tmp" "conftest.in"
5227 cp "conftest.in" "conftest.nl"
5228 $as_echo 'GREP' >> "conftest.nl"
5229 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5231 as_fn_arith $ac_count + 1 && ac_count=$as_val
5232 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5233 # Best one so far, save it but keep looking for a better one
5234 ac_cv_path_GREP="$ac_path_GREP"
5235 ac_path_GREP_max=$ac_count
5237 # 10*(2^10) chars as input seems more than enough
5238 test $ac_count -gt 10 && break
5239 done
5240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5241 esac
5243 $ac_path_GREP_found && break 3
5244 done
5245 done
5246 done
5247 IFS=$as_save_IFS
5248 if test -z "$ac_cv_path_GREP"; then
5249 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5251 else
5252 ac_cv_path_GREP=$GREP
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5257 $as_echo "$ac_cv_path_GREP" >&6; }
5258 GREP="$ac_cv_path_GREP"
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5262 $as_echo_n "checking for egrep... " >&6; }
5263 if ${ac_cv_path_EGREP+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5267 then ac_cv_path_EGREP="$GREP -E"
5268 else
5269 if test -z "$EGREP"; then
5270 ac_path_EGREP_found=false
5271 # Loop through the user's path and test for each of PROGNAME-LIST
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_prog in egrep; do
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5280 as_fn_executable_p "$ac_path_EGREP" || continue
5281 # Check for GNU ac_path_EGREP and select it if it is found.
5282 # Check for GNU $ac_path_EGREP
5283 case `"$ac_path_EGREP" --version 2>&1` in
5284 *GNU*)
5285 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5287 ac_count=0
5288 $as_echo_n 0123456789 >"conftest.in"
5289 while :
5291 cat "conftest.in" "conftest.in" >"conftest.tmp"
5292 mv "conftest.tmp" "conftest.in"
5293 cp "conftest.in" "conftest.nl"
5294 $as_echo 'EGREP' >> "conftest.nl"
5295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5297 as_fn_arith $ac_count + 1 && ac_count=$as_val
5298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5299 # Best one so far, save it but keep looking for a better one
5300 ac_cv_path_EGREP="$ac_path_EGREP"
5301 ac_path_EGREP_max=$ac_count
5303 # 10*(2^10) chars as input seems more than enough
5304 test $ac_count -gt 10 && break
5305 done
5306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5307 esac
5309 $ac_path_EGREP_found && break 3
5310 done
5311 done
5312 done
5313 IFS=$as_save_IFS
5314 if test -z "$ac_cv_path_EGREP"; then
5315 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5317 else
5318 ac_cv_path_EGREP=$EGREP
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5324 $as_echo "$ac_cv_path_EGREP" >&6; }
5325 EGREP="$ac_cv_path_EGREP"
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5329 $as_echo_n "checking for ANSI C header files... " >&6; }
5330 if ${ac_cv_header_stdc+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #include <stdlib.h>
5336 #include <stdarg.h>
5337 #include <string.h>
5338 #include <float.h>
5341 main ()
5345 return 0;
5347 _ACEOF
5348 if ac_fn_c_try_compile "$LINENO"; then :
5349 ac_cv_header_stdc=yes
5350 else
5351 ac_cv_header_stdc=no
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 if test $ac_cv_header_stdc = yes; then
5356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5359 #include <string.h>
5361 _ACEOF
5362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363 $EGREP "memchr" >/dev/null 2>&1; then :
5365 else
5366 ac_cv_header_stdc=no
5368 rm -f conftest*
5372 if test $ac_cv_header_stdc = yes; then
5373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 #include <stdlib.h>
5378 _ACEOF
5379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380 $EGREP "free" >/dev/null 2>&1; then :
5382 else
5383 ac_cv_header_stdc=no
5385 rm -f conftest*
5389 if test $ac_cv_header_stdc = yes; then
5390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5391 if test "$cross_compiling" = yes; then :
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 #include <ctype.h>
5397 #include <stdlib.h>
5398 #if ((' ' & 0x0FF) == 0x020)
5399 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5400 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5401 #else
5402 # define ISLOWER(c) \
5403 (('a' <= (c) && (c) <= 'i') \
5404 || ('j' <= (c) && (c) <= 'r') \
5405 || ('s' <= (c) && (c) <= 'z'))
5406 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5407 #endif
5409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5411 main ()
5413 int i;
5414 for (i = 0; i < 256; i++)
5415 if (XOR (islower (i), ISLOWER (i))
5416 || toupper (i) != TOUPPER (i))
5417 return 2;
5418 return 0;
5420 _ACEOF
5421 if ac_fn_c_try_run "$LINENO"; then :
5423 else
5424 ac_cv_header_stdc=no
5426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5427 conftest.$ac_objext conftest.beam conftest.$ac_ext
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5433 $as_echo "$ac_cv_header_stdc" >&6; }
5434 if test $ac_cv_header_stdc = yes; then
5436 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5441 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5442 inttypes.h stdint.h unistd.h
5443 do :
5444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5445 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5447 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5448 cat >>confdefs.h <<_ACEOF
5449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5450 _ACEOF
5454 done
5457 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5458 if test "x$ac_cv_type_size_t" = xyes; then :
5460 else
5462 cat >>confdefs.h <<_ACEOF
5463 #define size_t unsigned int
5464 _ACEOF
5471 for ac_header in wchar.h
5472 do :
5473 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5474 if test "x$ac_cv_header_wchar_h" = xyes; then :
5475 cat >>confdefs.h <<_ACEOF
5476 #define HAVE_WCHAR_H 1
5477 _ACEOF
5481 done
5485 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
5488 for ac_header in sys/time.h
5489 do :
5490 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5491 if test "x$ac_cv_header_sys_time_h" = xyes; then :
5492 cat >>confdefs.h <<_ACEOF
5493 #define HAVE_SYS_TIME_H 1
5494 _ACEOF
5498 done
5501 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5502 # for constant arguments. Useless!
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5504 $as_echo_n "checking for working alloca.h... " >&6; }
5505 if ${ac_cv_working_alloca_h+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 #include <alloca.h>
5512 main ()
5514 char *p = (char *) alloca (2 * sizeof (int));
5515 if (p) return 0;
5517 return 0;
5519 _ACEOF
5520 if ac_fn_c_try_link "$LINENO"; then :
5521 ac_cv_working_alloca_h=yes
5522 else
5523 ac_cv_working_alloca_h=no
5525 rm -f core conftest.err conftest.$ac_objext \
5526 conftest$ac_exeext conftest.$ac_ext
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5529 $as_echo "$ac_cv_working_alloca_h" >&6; }
5530 if test $ac_cv_working_alloca_h = yes; then
5532 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5537 $as_echo_n "checking for alloca... " >&6; }
5538 if ${ac_cv_func_alloca_works+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 #ifdef __GNUC__
5544 # define alloca __builtin_alloca
5545 #else
5546 # ifdef _MSC_VER
5547 # include <malloc.h>
5548 # define alloca _alloca
5549 # else
5550 # ifdef HAVE_ALLOCA_H
5551 # include <alloca.h>
5552 # else
5553 # ifdef _AIX
5554 #pragma alloca
5555 # else
5556 # ifndef alloca /* predefined by HP cc +Olibcalls */
5557 void *alloca (size_t);
5558 # endif
5559 # endif
5560 # endif
5561 # endif
5562 #endif
5565 main ()
5567 char *p = (char *) alloca (1);
5568 if (p) return 0;
5570 return 0;
5572 _ACEOF
5573 if ac_fn_c_try_link "$LINENO"; then :
5574 ac_cv_func_alloca_works=yes
5575 else
5576 ac_cv_func_alloca_works=no
5578 rm -f core conftest.err conftest.$ac_objext \
5579 conftest$ac_exeext conftest.$ac_ext
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5582 $as_echo "$ac_cv_func_alloca_works" >&6; }
5584 if test $ac_cv_func_alloca_works = yes; then
5586 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5588 else
5589 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5590 # that cause trouble. Some versions do not even contain alloca or
5591 # contain a buggy version. If you still want to use their alloca,
5592 # use ar to extract alloca.o from them instead of compiling alloca.c.
5594 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5596 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5600 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5601 if ${ac_cv_os_cray+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 #if defined CRAY && ! defined CRAY2
5607 webecray
5608 #else
5609 wenotbecray
5610 #endif
5612 _ACEOF
5613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5614 $EGREP "webecray" >/dev/null 2>&1; then :
5615 ac_cv_os_cray=yes
5616 else
5617 ac_cv_os_cray=no
5619 rm -f conftest*
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5623 $as_echo "$ac_cv_os_cray" >&6; }
5624 if test $ac_cv_os_cray = yes; then
5625 for ac_func in _getb67 GETB67 getb67; do
5626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5628 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5630 cat >>confdefs.h <<_ACEOF
5631 #define CRAY_STACKSEG_END $ac_func
5632 _ACEOF
5634 break
5637 done
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5641 $as_echo_n "checking stack direction for C alloca... " >&6; }
5642 if ${ac_cv_c_stack_direction+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test "$cross_compiling" = yes; then :
5646 ac_cv_c_stack_direction=0
5647 else
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650 $ac_includes_default
5652 find_stack_direction (int *addr, int depth)
5654 int dir, dummy = 0;
5655 if (! addr)
5656 addr = &dummy;
5657 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5658 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5659 return dir + dummy;
5663 main (int argc, char **argv)
5665 return find_stack_direction (0, argc + !argv + 20) < 0;
5667 _ACEOF
5668 if ac_fn_c_try_run "$LINENO"; then :
5669 ac_cv_c_stack_direction=1
5670 else
5671 ac_cv_c_stack_direction=-1
5673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5674 conftest.$ac_objext conftest.beam conftest.$ac_ext
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5679 $as_echo "$ac_cv_c_stack_direction" >&6; }
5680 cat >>confdefs.h <<_ACEOF
5681 #define STACK_DIRECTION $ac_cv_c_stack_direction
5682 _ACEOF
5688 ac_fn_c_check_decl "$LINENO" "SIZE_MAX" "ac_cv_have_decl_SIZE_MAX" "$ac_includes_default"
5689 if test "x$ac_cv_have_decl_SIZE_MAX" = xyes; then :
5691 else
5693 $as_echo "#define SIZE_MAX ((size_t)-1)" >>confdefs.h
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5
5699 $as_echo_n "checking how to copy va_list... " >&6; }
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5703 #include <stdarg.h>
5706 main ()
5709 va_list ap1, ap2;
5710 va_copy(ap1, ap2);
5713 return 0;
5715 _ACEOF
5716 if ac_fn_c_try_link "$LINENO"; then :
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
5719 $as_echo "va_copy" >&6; }
5721 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
5724 else
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5728 #include <stdarg.h>
5731 main ()
5734 va_list ap1, ap2;
5735 __va_copy(ap1, ap2);
5738 return 0;
5740 _ACEOF
5741 if ac_fn_c_try_link "$LINENO"; then :
5743 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
5746 $as_echo "__va_copy" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
5749 $as_echo "memcpy" >&6; }
5751 rm -f core conftest.err conftest.$ac_objext \
5752 conftest$ac_exeext conftest.$ac_ext
5754 rm -f core conftest.err conftest.$ac_objext \
5755 conftest$ac_exeext conftest.$ac_ext
5757 case $host in #(
5758 alpha*-*-*) :
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IEEE-754 switches" >&5
5761 $as_echo_n "checking for IEEE-754 switches... " >&6; }
5762 if ${mpfr_cv_ieee_switches+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5766 saved_CFLAGS=$CFLAGS
5767 if test -n "$GCC"; then
5768 mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
5769 else
5770 mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
5772 CFLAGS="$CFLAGS $mpfr_cv_ieee_switches"
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5777 main ()
5781 return 0;
5783 _ACEOF
5784 if ac_fn_c_try_compile "$LINENO"; then :
5786 else
5787 mpfr_cv_ieee_switches=none
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 CFLAGS=$saved_CFLAGS
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_ieee_switches" >&5
5794 $as_echo "$mpfr_cv_ieee_switches" >&6; }
5795 test "x$mpfr_cv_ieee_switches" = xnone || CFLAGS="$CFLAGS $mpfr_cv_ieee_switches"
5796 ;; #(
5797 *) :
5799 esac
5801 ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default"
5802 if test "x$ac_cv_type_long_long_int" = xyes; then :
5804 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
5809 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5810 if test "x$ac_cv_type_intmax_t" = xyes; then :
5812 cat >>confdefs.h <<_ACEOF
5813 #define HAVE_INTMAX_T 1
5814 _ACEOF
5819 if test "x$ac_cv_type_intmax_t" = xyes; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working INTMAX_MAX" >&5
5821 $as_echo_n "checking for working INTMAX_MAX... " >&6; }
5822 if ${mpfr_cv_have_intmax_max+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5826 saved_CPPFLAGS=$CPPFLAGS
5827 CPPFLAGS="$CPPFLAGS -I$srcdir/mpfr-3.1.3/src"
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #include "mpfr-intmax.h"
5832 main ()
5834 intmax_t x = INTMAX_MAX;
5836 return 0;
5838 _ACEOF
5839 if ac_fn_c_try_compile "$LINENO"; then :
5840 mpfr_cv_have_intmax_max=yes
5841 else
5842 mpfr_cv_have_intmax_max=no
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 CPPFLAGS=$saved_CPPFLAGS
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_intmax_max" >&5
5849 $as_echo "$mpfr_cv_have_intmax_max" >&6; }
5850 if test "x$mpfr_cv_have_intmax_max" = xyes; then
5852 $as_echo "#define MPFR_HAVE_INTMAX_MAX 1" >>confdefs.h
5857 kpse_search_save_LIBS=$LIBS
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
5859 $as_echo_n "checking for library containing pow... " >&6; }
5860 if ${ac_cv_search_pow+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 ac_func_search_save_LIBS=$LIBS
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5867 /* Override any GCC internal prototype to avoid an error.
5868 Use char because int might match the return type of a GCC
5869 builtin and then its argument prototype would still apply. */
5870 #ifdef __cplusplus
5871 extern "C"
5872 #endif
5873 char pow ();
5875 main ()
5877 return pow ();
5879 return 0;
5881 _ACEOF
5882 for ac_lib in '' m; do
5883 if test -z "$ac_lib"; then
5884 ac_res="none required"
5885 else
5886 ac_res=-l$ac_lib
5887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5889 if ac_fn_c_try_link "$LINENO"; then :
5890 ac_cv_search_pow=$ac_res
5892 rm -f core conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext
5894 if ${ac_cv_search_pow+:} false; then :
5895 break
5897 done
5898 if ${ac_cv_search_pow+:} false; then :
5900 else
5901 ac_cv_search_pow=no
5903 rm conftest.$ac_ext
5904 LIBS=$ac_func_search_save_LIBS
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
5907 $as_echo "$ac_cv_search_pow" >&6; }
5908 ac_res=$ac_cv_search_pow
5909 if test "$ac_res" != no; then :
5910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5914 LIBS=$kpse_search_save_LIBS
5915 case $ac_cv_search_pow in #(
5916 "none required") :
5917 ;; #(
5918 no) :
5919 as_fn_error $? "Sorry, did not find pow()" "$LINENO" 5 ;; #(
5920 *) :
5921 MPFR_LIBM=$ac_cv_search_pow ;;
5922 esac
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5
5926 $as_echo_n "checking for fesetround... " >&6; }
5927 if ${mpfr_cv_have_fesetround+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5931 saved_LIBS=$LIBS
5932 LIBS="$LIBS $MPFR_LIBM"
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 #include <fenv.h>
5937 main ()
5939 fesetround(FE_TONEAREST);
5941 return 0;
5943 _ACEOF
5944 if ac_fn_c_try_link "$LINENO"; then :
5945 mpfr_cv_have_fesetround=yes
5946 else
5947 mpfr_cv_have_fesetround=no
5949 rm -f core conftest.err conftest.$ac_objext \
5950 conftest$ac_exeext conftest.$ac_ext
5951 LIBS=$saved_LIBS
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5
5955 $as_echo "$mpfr_cv_have_fesetround" >&6; }
5956 if test "x$mpfr_cv_have_fesetround" = xyes; then
5958 $as_echo "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h
5962 if test -n "$GCC"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5
5964 $as_echo_n "checking for gcc float-conversion bug... " >&6; }
5965 if ${mpfr_cv_gcc_floatconv_bug+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5969 saved_LIBS=$LIBS
5970 LIBS="$LIBS $MPFR_LIBM"
5971 if test "$cross_compiling" = yes; then :
5972 mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
5973 else
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5977 #include <float.h>
5978 #ifdef MPFR_HAVE_FESETROUND
5979 #include <fenv.h>
5980 #endif
5981 static double get_max (void);
5982 int main() {
5983 double x = 0.5;
5984 double y;
5985 int i;
5986 for (i = 1; i <= 11; i++)
5987 x *= x;
5988 if (x != 0)
5989 return 1;
5990 #ifdef MPFR_HAVE_FESETROUND
5991 /* Useful test for the G4 PowerPC */
5992 fesetround(FE_TOWARDZERO);
5993 x = y = get_max ();
5994 x *= 2.0;
5995 if (x != y)
5996 return 1;
5997 #endif
5998 return 0;
6000 static double get_max (void) { static volatile double d = DBL_MAX; return d; }
6002 _ACEOF
6003 if ac_fn_c_try_run "$LINENO"; then :
6004 mpfr_cv_gcc_floatconv_bug="no"
6005 else
6006 mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
6008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6009 conftest.$ac_objext conftest.beam conftest.$ac_ext
6012 LIBS=$saved_LIBS
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5
6016 $as_echo "$mpfr_cv_gcc_floatconv_bug" >&6; }
6017 test "x$mpfr_cv_gcc_floatconv_bug" = xno || CFLAGS="$CFLAGS -ffloat-store"
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for denormalized numbers" >&5
6021 $as_echo_n "checking for denormalized numbers... " >&6; }
6022 if ${mpfr_cv_have_denorms+:} false; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6026 if test "$cross_compiling" = yes; then :
6027 mpfr_cv_have_denorms=no
6028 else
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6032 #include <math.h>
6033 #include <stdio.h>
6034 int main() {
6035 double x = 2.22507385850720138309e-308;
6036 fprintf (stderr, "%e\n", x / 2.0);
6037 return 2.0 * (x / 2.0) != x;
6040 _ACEOF
6041 if ac_fn_c_try_run "$LINENO"; then :
6042 mpfr_cv_have_denorms=yes
6043 else
6044 mpfr_cv_have_denorms=no
6046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6047 conftest.$ac_objext conftest.beam conftest.$ac_ext
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_denorms" >&5
6053 $as_echo "$mpfr_cv_have_denorms" >&6; }
6054 if test "x$mpfr_cv_have_denorms" = xyes; then
6056 $as_echo "#define HAVE_DENORMS 1" >>confdefs.h
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the FP division by 0 fails" >&5
6061 $as_echo_n "checking if the FP division by 0 fails... " >&6; }
6062 if ${mpfr_cv_errdivzero+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6066 if test "$cross_compiling" = yes; then :
6067 mpfr_cv_errdivzero="cannot test, assume no"
6068 else
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6072 int main() {
6073 volatile double d = 0.0, x;
6074 x = 0.0 / d;
6075 x = 1.0 / d;
6076 return 0;
6079 _ACEOF
6080 if ac_fn_c_try_run "$LINENO"; then :
6081 mpfr_cv_errdivzero="no"
6082 else
6083 mpfr_cv_errdivzero="yes"
6085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6086 conftest.$ac_objext conftest.beam conftest.$ac_ext
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_errdivzero" >&5
6092 $as_echo "$mpfr_cv_errdivzero" >&6; }
6093 if test "x$mpfr_cv_errdivzero" = xyes; then
6095 $as_echo "#define MPFR_ERRDIVZERO 1" >>confdefs.h
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The floating-point division by 0 fails instead of" >&5
6098 $as_echo "$as_me: WARNING: The floating-point division by 0 fails instead of" >&2;}
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: returning a special value: NaN or infinity. Tests" >&5
6100 $as_echo "$as_me: WARNING: returning a special value: NaN or infinity. Tests" >&2;}
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: involving a FP division by 0 will be disabled." >&5
6102 $as_echo "$as_me: WARNING: involving a FP division by 0 will be disabled." >&2;}
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5
6106 $as_echo_n "checking if NAN == NAN... " >&6; }
6107 if ${mpfr_cv_nanisnan+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6111 if test "$cross_compiling" = yes; then :
6112 mpfr_cv_nanisnan="cannot test, assume no"
6113 else
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6117 #include <stdio.h>
6118 #include <math.h>
6119 #ifndef NAN
6120 # define NAN (0.0/0.0)
6121 #endif
6122 int main() {
6123 double d;
6124 d = NAN;
6125 return d != d;
6128 _ACEOF
6129 if ac_fn_c_try_run "$LINENO"; then :
6130 mpfr_cv_nanisnan="yes"
6131 else
6132 mpfr_cv_nanisnan="no"
6134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6135 conftest.$ac_objext conftest.beam conftest.$ac_ext
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5
6141 $as_echo "$mpfr_cv_nanisnan" >&6; }
6142 if test "x$mpfr_cv_nanisnan" = xyes; then
6144 $as_echo "#define MPFR_NANISNAN 1" >>confdefs.h
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5
6147 $as_echo "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;}
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5
6149 $as_echo "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;}
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5
6151 $as_echo "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;}
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used. You" >&5
6153 $as_echo "$as_me: WARNING: -fast (depending on the compiler), has been used. You" >&2;}
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5
6155 $as_echo "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;}
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5
6157 $as_echo "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;}
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5
6159 $as_echo "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;}
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5
6161 $as_echo "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;}
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5
6163 $as_echo "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;}
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5
6165 $as_echo "$as_me: WARNING: platform and/or document the behavior." >&2;}
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5
6169 $as_echo_n "checking if charset has consecutive values... " >&6; }
6170 if test "$cross_compiling" = yes; then :
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
6172 $as_echo "cannot test" >&6; }
6173 else
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6177 char *number = "0123456789";
6178 char *lower = "abcdefghijklmnopqrstuvwxyz";
6179 char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
6182 main ()
6185 int i;
6186 unsigned char *p;
6187 for (p = (unsigned char*) number, i = 0; i < 9; i++)
6188 if ( (*p)+1 != *(p+1) ) return 1;
6189 for (p = (unsigned char*) lower, i = 0; i < 25; i++)
6190 if ( (*p)+1 != *(p+1) ) return 1;
6191 for (p = (unsigned char*) upper, i = 0; i < 25; i++)
6192 if ( (*p)+1 != *(p+1) ) return 1;
6195 return 0;
6197 _ACEOF
6198 if ac_fn_c_try_run "$LINENO"; then :
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6200 $as_echo "yes" >&6; }
6201 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6206 $as_echo "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h
6210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6211 conftest.$ac_objext conftest.beam conftest.$ac_ext
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`long double' floating point" >&5
6218 $as_echo_n "checking format of \`long double' floating point... " >&6; }
6219 if ${mpfr_cv_c_long_double_format+:} false; then :
6220 $as_echo_n "(cached) " >&6
6221 else
6222 mpfr_cv_c_long_double_format=unknown
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6226 /* "before" is 16 bytes to ensure there's no padding between it and "x".
6227 We're not expecting any "long double" bigger than 16 bytes or with
6228 alignment requirements stricter than 16 bytes. */
6229 struct {
6230 char before[16];
6231 long double x;
6232 char after[8];
6233 } foo = {
6234 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
6235 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
6236 -123456789.0,
6237 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
6241 main ()
6245 return 0;
6247 _ACEOF
6248 if ac_fn_c_try_compile "$LINENO"; then :
6249 cat >conftest.awk <<\EOF
6251 BEGIN {
6252 found = 0
6255 # got[] holds a sliding window of bytes read the input. got[0] is the most
6256 # recent byte read, and got[31] the oldest byte read, so when looking to
6257 # match some data the indices are "reversed".
6260 for (f = 2; f <= NF; f++)
6262 # new byte, shift others up
6263 for (i = 31; i >= 0; i--)
6264 got[i+1] = got[i];
6265 got[0] = $f;
6267 # end sequence
6268 if (got[7] != "376") continue
6269 if (got[6] != "334") continue
6270 if (got[5] != "272") continue
6271 if (got[4] != "230") continue
6272 if (got[3] != "166") continue
6273 if (got[2] != "124") continue
6274 if (got[1] != "062") continue
6275 if (got[0] != "020") continue
6277 # start sequence, with 8-byte body
6278 if (got[23] == "001" && \
6279 got[22] == "043" && \
6280 got[21] == "105" && \
6281 got[20] == "147" && \
6282 got[19] == "211" && \
6283 got[18] == "253" && \
6284 got[17] == "315" && \
6285 got[16] == "357")
6287 saw = " (" got[15] \
6288 " " got[14] \
6289 " " got[13] \
6290 " " got[12] \
6291 " " got[11] \
6292 " " got[10] \
6293 " " got[9] \
6294 " " got[8] ")"
6296 if (got[15] == "301" && \
6297 got[14] == "235" && \
6298 got[13] == "157" && \
6299 got[12] == "064" && \
6300 got[11] == "124" && \
6301 got[10] == "000" && \
6302 got[9] == "000" && \
6303 got[8] == "000")
6305 print "IEEE double, big endian"
6306 found = 1
6307 exit
6310 if (got[15] == "000" && \
6311 got[14] == "000" && \
6312 got[13] == "000" && \
6313 got[12] == "124" && \
6314 got[11] == "064" && \
6315 got[10] == "157" && \
6316 got[9] == "235" && \
6317 got[8] == "301")
6319 print "IEEE double, little endian"
6320 found = 1
6321 exit
6325 # start sequence, with 12-byte body
6326 if (got[27] == "001" && \
6327 got[26] == "043" && \
6328 got[25] == "105" && \
6329 got[24] == "147" && \
6330 got[23] == "211" && \
6331 got[22] == "253" && \
6332 got[21] == "315" && \
6333 got[20] == "357")
6335 saw = " (" got[19] \
6336 " " got[18] \
6337 " " got[17] \
6338 " " got[16] \
6339 " " got[15] \
6340 " " got[14] \
6341 " " got[13] \
6342 " " got[12] \
6343 " " got[11] \
6344 " " got[10] \
6345 " " got[9] \
6346 " " got[8] ")"
6348 if (got[19] == "000" && \
6349 got[18] == "000" && \
6350 got[17] == "000" && \
6351 got[16] == "000" && \
6352 got[15] == "240" && \
6353 got[14] == "242" && \
6354 got[13] == "171" && \
6355 got[12] == "353" && \
6356 got[11] == "031" && \
6357 got[10] == "300")
6359 print "IEEE extended, little endian"
6360 found = 1
6361 exit
6364 if (got[19] == "300" && \
6365 got[18] == "031" && \
6366 got[17] == "000" && \
6367 got[16] == "000" && \
6368 got[15] == "353" && \
6369 got[14] == "171" && \
6370 got[13] == "242" && \
6371 got[12] == "240" && \
6372 got[11] == "000" && \
6373 got[10] == "000" && \
6374 got[09] == "000" && \
6375 got[08] == "000")
6377 # format found on m68k
6378 print "IEEE extended, big endian"
6379 found = 1
6380 exit
6384 # start sequence, with 16-byte body
6385 if (got[31] == "001" && \
6386 got[30] == "043" && \
6387 got[29] == "105" && \
6388 got[28] == "147" && \
6389 got[27] == "211" && \
6390 got[26] == "253" && \
6391 got[25] == "315" && \
6392 got[24] == "357")
6394 saw = " (" got[23] \
6395 " " got[22] \
6396 " " got[21] \
6397 " " got[20] \
6398 " " got[19] \
6399 " " got[18] \
6400 " " got[17] \
6401 " " got[16] \
6402 " " got[15] \
6403 " " got[14] \
6404 " " got[13] \
6405 " " got[12] \
6406 " " got[11] \
6407 " " got[10] \
6408 " " got[9] \
6409 " " got[8] ")"
6411 if (got[23] == "000" && \
6412 got[22] == "000" && \
6413 got[21] == "000" && \
6414 got[20] == "000" && \
6415 got[19] == "240" && \
6416 got[18] == "242" && \
6417 got[17] == "171" && \
6418 got[16] == "353" && \
6419 got[15] == "031" && \
6420 got[14] == "300")
6422 print "IEEE extended, little endian"
6423 found = 1
6424 exit
6427 if (got[23] == "300" && \
6428 got[22] == "031" && \
6429 got[21] == "326" && \
6430 got[20] == "363" && \
6431 got[19] == "105" && \
6432 got[18] == "100" && \
6433 got[17] == "000" && \
6434 got[16] == "000" && \
6435 got[15] == "000" && \
6436 got[14] == "000" && \
6437 got[13] == "000" && \
6438 got[12] == "000" && \
6439 got[11] == "000" && \
6440 got[10] == "000" && \
6441 got[9] == "000" && \
6442 got[8] == "000")
6444 # format used on HP 9000/785 under HP-UX
6445 print "IEEE quad, big endian"
6446 found = 1
6447 exit
6450 if (got[23] == "000" && \
6451 got[22] == "000" && \
6452 got[21] == "000" && \
6453 got[20] == "000" && \
6454 got[19] == "000" && \
6455 got[18] == "000" && \
6456 got[17] == "000" && \
6457 got[16] == "000" && \
6458 got[15] == "000" && \
6459 got[14] == "000" && \
6460 got[13] == "100" && \
6461 got[12] == "105" && \
6462 got[11] == "363" && \
6463 got[10] == "326" && \
6464 got[9] == "031" && \
6465 got[8] == "300")
6467 print "IEEE quad, little endian"
6468 found = 1
6469 exit
6472 if (got[23] == "301" && \
6473 got[22] == "235" && \
6474 got[21] == "157" && \
6475 got[20] == "064" && \
6476 got[19] == "124" && \
6477 got[18] == "000" && \
6478 got[17] == "000" && \
6479 got[16] == "000" && \
6480 got[15] == "000" && \
6481 got[14] == "000" && \
6482 got[13] == "000" && \
6483 got[12] == "000" && \
6484 got[11] == "000" && \
6485 got[10] == "000" && \
6486 got[9] == "000" && \
6487 got[8] == "000")
6489 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux)
6490 print "possibly double-double, big endian"
6491 found = 1
6492 exit
6498 END {
6499 if (! found)
6500 print "unknown", saw
6504 mpfr_cv_c_long_double_format=`od -b conftest.$ac_objext | $AWK -f conftest.awk`
6505 case $mpfr_cv_c_long_double_format in #(
6506 unknown*) :
6507 echo "cannot match anything, conftest.$ac_objext contains" >&5
6508 od -b conftest.$ac_objext >&5 ;; #(
6509 *) :
6511 esac
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
6514 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 rm -f conftest.awk
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5
6520 $as_echo "$mpfr_cv_c_long_double_format" >&6; }
6524 case $mpfr_cv_c_long_double_format in #(
6525 "IEEE extended, little endian") :
6526 $as_echo "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h
6527 ;; #(
6528 "IEEE quad, big endian") :
6529 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h
6530 ;; #(
6531 "IEEE quad, little endian") :
6532 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_LITTLE 1" >>confdefs.h
6533 ;; #(
6534 "possibly double-double, big endian") :
6535 # Since we are not sure, we do not want to define a macro.
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5
6537 $as_echo "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;}
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5
6539 $as_echo "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;}
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5
6541 $as_echo "$as_me: WARNING: You can safely ignore this warning, though." >&2;} ;; #(
6542 unknown* | "not available") :
6543 ;; #(
6544 *) :
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&5
6546 $as_echo "$as_me: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&2;} ;;
6547 esac
6552 if test "x$enable_build" != xno; then
6553 build_TRUE=
6554 build_FALSE='#'
6555 else
6556 build_TRUE='#'
6557 build_FALSE=
6561 ## _KPSE_INIT: Initialize TL infrastructure
6562 kpse_BLD=`(cd "./../../." && pwd)`
6563 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
6565 ## _KPSE_LIB_FLAGS: Setup gmp (-lgmp) flags
6567 # Check whether --with-system-gmp was given.
6568 if test "${with_system_gmp+set}" = set; then :
6569 withval=$with_system_gmp;
6572 # Check whether --with-gmp-includes was given.
6573 if test "${with_gmp_includes+set}" = set; then :
6574 withval=$with_gmp_includes;
6577 # Check whether --with-gmp-libdir was given.
6578 if test "${with_gmp_libdir+set}" = set; then :
6579 withval=$with_gmp_libdir;
6581 if test "x$with_system_gmp" = xyes; then
6582 if test "x$with_gmp_includes" != x && test "x$with_gmp_includes" != xyes; then
6583 GMP_INCLUDES="-I$with_gmp_includes"
6585 GMP_LIBS="-lgmp"
6586 if test "x$with_gmp_libdir" != x && test "x$with_gmp_libdir" != xyes; then
6587 GMP_LIBS="-L$with_gmp_libdir $GMP_LIBS"
6589 else
6590 GMP_INCLUDES="-I$kpse_BLD/libs/gmp/include"
6591 GMP_LIBS="$kpse_BLD/libs/gmp/libgmp.a"
6592 GMP_DEPEND='${top_builddir}/../../libs/gmp/libgmp.a'
6593 GMP_RULE='# Rebuild libgmp
6594 $(GMP_DEPEND): ${top_builddir}/../../libs/gmp/include/gmp.h
6595 cd ${top_builddir}/../../libs/gmp && $(MAKE) $(AM_MAKEFLAGS) rebuild
6596 ${top_builddir}/../../libs/gmp/include/gmp.h:
6597 cd ${top_builddir}/../../libs/gmp && $(MAKE) $(AM_MAKEFLAGS) rebuild'
6601 if test "x$enable_build" != xno || test -f config.force; then
6603 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
6604 if test "x$ac_cv_header_limits_h" = xyes; then :
6606 else
6607 as_fn_error $? "limits.h not found" "$LINENO" 5
6611 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
6612 if test "x$ac_cv_header_float_h" = xyes; then :
6614 else
6615 as_fn_error $? "float.h not found" "$LINENO" 5
6619 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
6620 if test "x$ac_cv_header_string_h" = xyes; then :
6622 else
6623 as_fn_error $? "string.h not found" "$LINENO" 5
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICC" >&5
6629 $as_echo_n "checking for ICC... " >&6; }
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6633 #if !defined __ICC
6634 # error "ICC Not Found"
6635 error
6636 #endif
6639 main ()
6643 return 0;
6645 _ACEOF
6646 if ac_fn_c_try_compile "$LINENO"; then :
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6649 $as_echo "yes" >&6; }
6650 CFLAGS="-fp_port -mp -wd1572 -wd265 -wd186 -wd239 $CFLAGS"
6652 else
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 case $host in #(
6659 *-apple-darwin*) :
6660 case $LDFLAGS in #(
6661 *-Wl,-search_paths_first*) :
6662 ;; #(
6663 *) :
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5
6665 $as_echo_n "checking if the compiler understands -Wl,-search_paths_first... " >&6; }
6666 saved_LDFLAGS=$LDFLAGS
6667 LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6672 main ()
6676 return 0;
6678 _ACEOF
6679 if ac_fn_c_try_link "$LINENO"; then :
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6681 $as_echo "yes" >&6; }
6682 else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6685 LDFLAGS=$saved_LDFLAGS
6687 rm -f core conftest.err conftest.$ac_objext \
6688 conftest$ac_exeext conftest.$ac_ext ;;
6689 esac
6690 ;; #(
6691 *) :
6693 esac
6695 kpse_save_CPPFLAGS=$CPPFLAGS
6696 kpse_save_LIBS=$LIBS
6698 eval CPPFLAGS=\"$GMP_INCLUDES \$CPPFLAGS\"
6699 eval LIBS=\"$GMP_LIBS \$LIBS\"
6702 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
6703 if test "x$ac_cv_header_gmp_h" = xyes; then :
6705 else
6706 as_fn_error $? "gmp.h not found" "$LINENO" 5
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
6712 $as_echo_n "checking for recent GMP... " >&6; }
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6716 #include "gmp.h"
6717 #if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 410)
6718 # error "min GMP version is 4.1.0"
6719 error
6720 #endif
6722 _ACEOF
6723 if ac_fn_c_try_compile "$LINENO"; then :
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6725 $as_echo "yes" >&6; }
6726 else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6730 as_fn_error $? "GMP 4.1.0 min required" "$LINENO" 5
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 ac_fn_c_check_func "$LINENO" "__gmpz_init" "ac_cv_func___gmpz_init"
6736 if test "x$ac_cv_func___gmpz_init" = xyes; then :
6738 else
6739 as_fn_error $? "Sorry, cannot find/use libgmp" "$LINENO" 5
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5
6744 $as_echo_n "checking if gmp.h version and libgmp version are the same... " >&6; }
6745 if test "$cross_compiling" = yes; then :
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not test" >&5
6747 $as_echo "can not test" >&6; }
6748 else
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6752 #include <stdio.h>
6753 #include <string.h>
6754 #include "gmp.h"
6757 main ()
6760 char buffer[100];
6761 sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
6762 __GNU_MP_VERSION_PATCHLEVEL);
6763 printf ("(%s/%s) ", buffer, gmp_version);
6764 if (strcmp (buffer, gmp_version) == 0)
6765 return 0;
6766 if (__GNU_MP_VERSION_PATCHLEVEL != 0)
6767 return 1;
6768 sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
6769 return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
6772 return 0;
6774 _ACEOF
6775 if ac_fn_c_try_run "$LINENO"; then :
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6777 $as_echo "yes" >&6; }
6779 if test "x$ac_cv_type_intmax_t" = xyes; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5
6782 $as_echo_n "checking if gmp_printf supports \"%jd\"... " >&6; }
6783 if test "$cross_compiling" = yes; then :
6784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6786 as_fn_error $? "cannot run test program while cross compiling
6787 See \`config.log' for more details" "$LINENO" 5; }
6788 else
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6792 #include <stdio.h>
6794 #ifdef HAVE_INTTYPES_H
6795 # include <inttypes.h>
6796 #endif
6797 #ifdef HAVE_STDINT_H
6798 # include <stdint.h>
6799 #endif
6801 #include <gmp.h>
6804 main ()
6807 char s[256];
6808 intmax_t a = 17;
6810 if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1) return 1;
6811 return (strcmp (s, "(17)(42)") != 0);
6814 return 0;
6816 _ACEOF
6817 if ac_fn_c_try_run "$LINENO"; then :
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6819 $as_echo "yes" >&6; }
6821 else
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6825 $as_echo "#define NPRINTF_J 1" >>confdefs.h
6828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6829 conftest.$ac_objext conftest.beam conftest.$ac_ext
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5
6837 $as_echo_n "checking if gmp_printf supports \"%hhd\"... " >&6; }
6838 if test "$cross_compiling" = yes; then :
6839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6841 as_fn_error $? "cannot run test program while cross compiling
6842 See \`config.log' for more details" "$LINENO" 5; }
6843 else
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6847 #include <stdio.h>
6849 #include <gmp.h>
6852 main ()
6855 char s[256];
6856 char a = 17;
6858 if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1) return 1;
6859 return (strcmp (s, "(17)(42)") != 0);
6862 return 0;
6864 _ACEOF
6865 if ac_fn_c_try_run "$LINENO"; then :
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6867 $as_echo "yes" >&6; }
6869 else
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6873 $as_echo "#define NPRINTF_HH 1" >>confdefs.h
6876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6877 conftest.$ac_objext conftest.beam conftest.$ac_ext
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5
6884 $as_echo_n "checking if gmp_printf supports \"%lld\"... " >&6; }
6885 if test "$cross_compiling" = yes; then :
6886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6888 as_fn_error $? "cannot run test program while cross compiling
6889 See \`config.log' for more details" "$LINENO" 5; }
6890 else
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6894 #include <stdio.h>
6896 #include <gmp.h>
6899 main ()
6902 char s[256];
6903 long long int a = 17;
6905 if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1) return 1;
6906 return (strcmp (s, "(17)(42)") != 0);
6909 return 0;
6911 _ACEOF
6912 if ac_fn_c_try_run "$LINENO"; then :
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6914 $as_echo "yes" >&6; }
6916 else
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6920 $as_echo "#define NPRINTF_LL 1" >>confdefs.h
6923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6924 conftest.$ac_objext conftest.beam conftest.$ac_ext
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5
6931 $as_echo_n "checking if gmp_printf supports \"%Lf\"... " >&6; }
6932 if test "$cross_compiling" = yes; then :
6933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6935 as_fn_error $? "cannot run test program while cross compiling
6936 See \`config.log' for more details" "$LINENO" 5; }
6937 else
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6941 #include <stdio.h>
6943 #include <gmp.h>
6946 main ()
6949 char s[256];
6950 long double a = 17;
6952 if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1) return 1;
6953 return (strcmp (s, "(17)(42)") != 0);
6956 return 0;
6958 _ACEOF
6959 if ac_fn_c_try_run "$LINENO"; then :
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6961 $as_echo "yes" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6967 $as_echo "#define NPRINTF_L 1" >>confdefs.h
6970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6971 conftest.$ac_objext conftest.beam conftest.$ac_ext
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5
6978 $as_echo_n "checking if gmp_printf supports \"%td\"... " >&6; }
6979 if test "$cross_compiling" = yes; then :
6980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6982 as_fn_error $? "cannot run test program while cross compiling
6983 See \`config.log' for more details" "$LINENO" 5; }
6984 else
6985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h. */
6988 #include <stdio.h>
6990 #if defined (__cplusplus)
6991 #include <cstddef>
6992 #else
6993 #include <stddef.h>
6994 #endif
6996 #include <gmp.h>
6999 main ()
7002 char s[256];
7003 ptrdiff_t a = 17;
7005 if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1) return 1;
7006 return (strcmp (s, "(17)(42)") != 0);
7009 return 0;
7011 _ACEOF
7012 if ac_fn_c_try_run "$LINENO"; then :
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7014 $as_echo "yes" >&6; }
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7020 $as_echo "#define NPRINTF_T 1" >>confdefs.h
7023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7024 conftest.$ac_objext conftest.beam conftest.$ac_ext
7029 else
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
7033 $as_echo "$as_me: WARNING: ==========================================================" >&2;}
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&5
7035 $as_echo "$as_me: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&2;}
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5
7037 $as_echo "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;}
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above). A cause may be incompatible" >&5
7039 $as_echo "$as_me: WARNING: see the version numbers above). A cause may be incompatible" >&2;}
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GMP versions See 'config.log' for details.." >&5
7041 $as_echo "$as_me: WARNING: GMP versions See 'config.log' for details.." >&2;}
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
7043 $as_echo "$as_me: WARNING: ==========================================================" >&2;}
7046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7047 conftest.$ac_objext conftest.beam conftest.$ac_ext
7052 CPPFLAGS=$kpse_save_CPPFLAGS
7053 LIBS=$kpse_save_LIBS
7056 echo timestamp >config.force
7059 MPFR_TREE=mpfr-3.1.3
7062 ac_config_links="$ac_config_links mparam.h:mpfr-3.1.3/src/mparam_h.in"
7065 ac_config_files="$ac_config_files Makefile include/Makefile"
7068 cat >confcache <<\_ACEOF
7069 # This file is a shell script that caches the results of configure
7070 # tests run on this system so they can be shared between configure
7071 # scripts and configure runs, see configure's option --config-cache.
7072 # It is not useful on other systems. If it contains results you don't
7073 # want to keep, you may remove or edit it.
7075 # config.status only pays attention to the cache file if you give it
7076 # the --recheck option to rerun configure.
7078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7080 # following values.
7082 _ACEOF
7084 # The following way of writing the cache mishandles newlines in values,
7085 # but we know of no workaround that is simple, portable, and efficient.
7086 # So, we kill variables containing newlines.
7087 # Ultrix sh set writes to stderr and can't be redirected directly,
7088 # and sets the high bit in the cache file unless we assign to the vars.
7090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7091 eval ac_val=\$$ac_var
7092 case $ac_val in #(
7093 *${as_nl}*)
7094 case $ac_var in #(
7095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7097 esac
7098 case $ac_var in #(
7099 _ | IFS | as_nl) ;; #(
7100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7101 *) { eval $ac_var=; unset $ac_var;} ;;
7102 esac ;;
7103 esac
7104 done
7106 (set) 2>&1 |
7107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7108 *${as_nl}ac_space=\ *)
7109 # `set' does not quote correctly, so add quotes: double-quote
7110 # substitution turns \\\\ into \\, and sed turns \\ into \.
7111 sed -n \
7112 "s/'/'\\\\''/g;
7113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7114 ;; #(
7116 # `set' quotes correctly as required by POSIX, so do not add quotes.
7117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7119 esac |
7120 sort
7122 sed '
7123 /^ac_cv_env_/b end
7124 t clear
7125 :clear
7126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7127 t end
7128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7129 :end' >>confcache
7130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7131 if test -w "$cache_file"; then
7132 if test "x$cache_file" != "x/dev/null"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7134 $as_echo "$as_me: updating cache $cache_file" >&6;}
7135 if test ! -f "$cache_file" || test -h "$cache_file"; then
7136 cat confcache >"$cache_file"
7137 else
7138 case $cache_file in #(
7139 */* | ?:*)
7140 mv -f confcache "$cache_file"$$ &&
7141 mv -f "$cache_file"$$ "$cache_file" ;; #(
7143 mv -f confcache "$cache_file" ;;
7144 esac
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7149 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7152 rm -f confcache
7154 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7155 # Let make expand exec_prefix.
7156 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7158 DEFS=-DHAVE_CONFIG_H
7160 ac_libobjs=
7161 ac_ltlibobjs=
7163 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7164 # 1. Remove the extension, and $U if already installed.
7165 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7166 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7167 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7168 # will be set to the directory where LIBOBJS objects are built.
7169 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7170 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7171 done
7172 LIBOBJS=$ac_libobjs
7174 LTLIBOBJS=$ac_ltlibobjs
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7178 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7179 if test -n "$am_sleep_pid"; then
7180 # Hide warnings about reused PIDs.
7181 wait $am_sleep_pid 2>/dev/null
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7184 $as_echo "done" >&6; }
7185 if test -n "$EXEEXT"; then
7186 am__EXEEXT_TRUE=
7187 am__EXEEXT_FALSE='#'
7188 else
7189 am__EXEEXT_TRUE='#'
7190 am__EXEEXT_FALSE=
7193 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7194 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7197 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7198 as_fn_error $? "conditional \"AMDEP\" was never defined.
7199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7201 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7202 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7205 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7206 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7209 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
7210 as_fn_error $? "conditional \"build\" was never defined.
7211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7214 : "${CONFIG_STATUS=./config.status}"
7215 ac_write_fail=0
7216 ac_clean_files_save=$ac_clean_files
7217 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7219 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7220 as_write_fail=0
7221 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7222 #! $SHELL
7223 # Generated by $as_me.
7224 # Run this file to recreate the current configuration.
7225 # Compiler output produced by configure, useful for debugging
7226 # configure, is in config.log if it exists.
7228 debug=false
7229 ac_cs_recheck=false
7230 ac_cs_silent=false
7232 SHELL=\${CONFIG_SHELL-$SHELL}
7233 export SHELL
7234 _ASEOF
7235 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7236 ## -------------------- ##
7237 ## M4sh Initialization. ##
7238 ## -------------------- ##
7240 # Be more Bourne compatible
7241 DUALCASE=1; export DUALCASE # for MKS sh
7242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7243 emulate sh
7244 NULLCMD=:
7245 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7246 # is contrary to our usage. Disable this feature.
7247 alias -g '${1+"$@"}'='"$@"'
7248 setopt NO_GLOB_SUBST
7249 else
7250 case `(set -o) 2>/dev/null` in #(
7251 *posix*) :
7252 set -o posix ;; #(
7253 *) :
7255 esac
7259 as_nl='
7261 export as_nl
7262 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7263 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7264 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7265 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7266 # Prefer a ksh shell builtin over an external printf program on Solaris,
7267 # but without wasting forks for bash or zsh.
7268 if test -z "$BASH_VERSION$ZSH_VERSION" \
7269 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7270 as_echo='print -r --'
7271 as_echo_n='print -rn --'
7272 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7273 as_echo='printf %s\n'
7274 as_echo_n='printf %s'
7275 else
7276 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7277 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7278 as_echo_n='/usr/ucb/echo -n'
7279 else
7280 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7281 as_echo_n_body='eval
7282 arg=$1;
7283 case $arg in #(
7284 *"$as_nl"*)
7285 expr "X$arg" : "X\\(.*\\)$as_nl";
7286 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7287 esac;
7288 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7290 export as_echo_n_body
7291 as_echo_n='sh -c $as_echo_n_body as_echo'
7293 export as_echo_body
7294 as_echo='sh -c $as_echo_body as_echo'
7297 # The user is always right.
7298 if test "${PATH_SEPARATOR+set}" != set; then
7299 PATH_SEPARATOR=:
7300 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7301 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7302 PATH_SEPARATOR=';'
7307 # IFS
7308 # We need space, tab and new line, in precisely that order. Quoting is
7309 # there to prevent editors from complaining about space-tab.
7310 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7311 # splitting by setting IFS to empty value.)
7312 IFS=" "" $as_nl"
7314 # Find who we are. Look in the path if we contain no directory separator.
7315 as_myself=
7316 case $0 in #((
7317 *[\\/]* ) as_myself=$0 ;;
7318 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7324 done
7325 IFS=$as_save_IFS
7328 esac
7329 # We did not find ourselves, most probably we were run as `sh COMMAND'
7330 # in which case we are not to be found in the path.
7331 if test "x$as_myself" = x; then
7332 as_myself=$0
7334 if test ! -f "$as_myself"; then
7335 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7336 exit 1
7339 # Unset variables that we do not need and which cause bugs (e.g. in
7340 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7341 # suppresses any "Segmentation fault" message there. '((' could
7342 # trigger a bug in pdksh 5.2.14.
7343 for as_var in BASH_ENV ENV MAIL MAILPATH
7344 do eval test x\${$as_var+set} = xset \
7345 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7346 done
7347 PS1='$ '
7348 PS2='> '
7349 PS4='+ '
7351 # NLS nuisances.
7352 LC_ALL=C
7353 export LC_ALL
7354 LANGUAGE=C
7355 export LANGUAGE
7357 # CDPATH.
7358 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7361 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7362 # ----------------------------------------
7363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7365 # script with STATUS, using 1 if that was 0.
7366 as_fn_error ()
7368 as_status=$1; test $as_status -eq 0 && as_status=1
7369 if test "$4"; then
7370 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7373 $as_echo "$as_me: error: $2" >&2
7374 as_fn_exit $as_status
7375 } # as_fn_error
7378 # as_fn_set_status STATUS
7379 # -----------------------
7380 # Set $? to STATUS, without forking.
7381 as_fn_set_status ()
7383 return $1
7384 } # as_fn_set_status
7386 # as_fn_exit STATUS
7387 # -----------------
7388 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7389 as_fn_exit ()
7391 set +e
7392 as_fn_set_status $1
7393 exit $1
7394 } # as_fn_exit
7396 # as_fn_unset VAR
7397 # ---------------
7398 # Portably unset VAR.
7399 as_fn_unset ()
7401 { eval $1=; unset $1;}
7403 as_unset=as_fn_unset
7404 # as_fn_append VAR VALUE
7405 # ----------------------
7406 # Append the text in VALUE to the end of the definition contained in VAR. Take
7407 # advantage of any shell optimizations that allow amortized linear growth over
7408 # repeated appends, instead of the typical quadratic growth present in naive
7409 # implementations.
7410 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7411 eval 'as_fn_append ()
7413 eval $1+=\$2
7415 else
7416 as_fn_append ()
7418 eval $1=\$$1\$2
7420 fi # as_fn_append
7422 # as_fn_arith ARG...
7423 # ------------------
7424 # Perform arithmetic evaluation on the ARGs, and store the result in the
7425 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7426 # must be portable across $(()) and expr.
7427 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7428 eval 'as_fn_arith ()
7430 as_val=$(( $* ))
7432 else
7433 as_fn_arith ()
7435 as_val=`expr "$@" || test $? -eq 1`
7437 fi # as_fn_arith
7440 if expr a : '\(a\)' >/dev/null 2>&1 &&
7441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7442 as_expr=expr
7443 else
7444 as_expr=false
7447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7448 as_basename=basename
7449 else
7450 as_basename=false
7453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7454 as_dirname=dirname
7455 else
7456 as_dirname=false
7459 as_me=`$as_basename -- "$0" ||
7460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7461 X"$0" : 'X\(//\)$' \| \
7462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7463 $as_echo X/"$0" |
7464 sed '/^.*\/\([^/][^/]*\)\/*$/{
7465 s//\1/
7468 /^X\/\(\/\/\)$/{
7469 s//\1/
7472 /^X\/\(\/\).*/{
7473 s//\1/
7476 s/.*/./; q'`
7478 # Avoid depending upon Character Ranges.
7479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7482 as_cr_digits='0123456789'
7483 as_cr_alnum=$as_cr_Letters$as_cr_digits
7485 ECHO_C= ECHO_N= ECHO_T=
7486 case `echo -n x` in #(((((
7487 -n*)
7488 case `echo 'xy\c'` in
7489 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7490 xy) ECHO_C='\c';;
7491 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7492 ECHO_T=' ';;
7493 esac;;
7495 ECHO_N='-n';;
7496 esac
7498 rm -f conf$$ conf$$.exe conf$$.file
7499 if test -d conf$$.dir; then
7500 rm -f conf$$.dir/conf$$.file
7501 else
7502 rm -f conf$$.dir
7503 mkdir conf$$.dir 2>/dev/null
7505 if (echo >conf$$.file) 2>/dev/null; then
7506 if ln -s conf$$.file conf$$ 2>/dev/null; then
7507 as_ln_s='ln -s'
7508 # ... but there are two gotchas:
7509 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7510 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7511 # In both cases, we have to default to `cp -pR'.
7512 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7513 as_ln_s='cp -pR'
7514 elif ln conf$$.file conf$$ 2>/dev/null; then
7515 as_ln_s=ln
7516 else
7517 as_ln_s='cp -pR'
7519 else
7520 as_ln_s='cp -pR'
7522 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7523 rmdir conf$$.dir 2>/dev/null
7526 # as_fn_mkdir_p
7527 # -------------
7528 # Create "$as_dir" as a directory, including parents if necessary.
7529 as_fn_mkdir_p ()
7532 case $as_dir in #(
7533 -*) as_dir=./$as_dir;;
7534 esac
7535 test -d "$as_dir" || eval $as_mkdir_p || {
7536 as_dirs=
7537 while :; do
7538 case $as_dir in #(
7539 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7540 *) as_qdir=$as_dir;;
7541 esac
7542 as_dirs="'$as_qdir' $as_dirs"
7543 as_dir=`$as_dirname -- "$as_dir" ||
7544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7545 X"$as_dir" : 'X\(//\)[^/]' \| \
7546 X"$as_dir" : 'X\(//\)$' \| \
7547 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7548 $as_echo X"$as_dir" |
7549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7550 s//\1/
7553 /^X\(\/\/\)[^/].*/{
7554 s//\1/
7557 /^X\(\/\/\)$/{
7558 s//\1/
7561 /^X\(\/\).*/{
7562 s//\1/
7565 s/.*/./; q'`
7566 test -d "$as_dir" && break
7567 done
7568 test -z "$as_dirs" || eval "mkdir $as_dirs"
7569 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7572 } # as_fn_mkdir_p
7573 if mkdir -p . 2>/dev/null; then
7574 as_mkdir_p='mkdir -p "$as_dir"'
7575 else
7576 test -d ./-p && rmdir ./-p
7577 as_mkdir_p=false
7581 # as_fn_executable_p FILE
7582 # -----------------------
7583 # Test if FILE is an executable regular file.
7584 as_fn_executable_p ()
7586 test -f "$1" && test -x "$1"
7587 } # as_fn_executable_p
7588 as_test_x='test -x'
7589 as_executable_p=as_fn_executable_p
7591 # Sed expression to map a string onto a valid CPP name.
7592 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7594 # Sed expression to map a string onto a valid variable name.
7595 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7598 exec 6>&1
7599 ## ----------------------------------- ##
7600 ## Main body of $CONFIG_STATUS script. ##
7601 ## ----------------------------------- ##
7602 _ASEOF
7603 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7606 # Save the log message, to keep $0 and so on meaningful, and to
7607 # report actual input values of CONFIG_FILES etc. instead of their
7608 # values after options handling.
7609 ac_log="
7610 This file was extended by mpfr (TeX Live) $as_me 3.1.3, which was
7611 generated by GNU Autoconf 2.69. Invocation command line was
7613 CONFIG_FILES = $CONFIG_FILES
7614 CONFIG_HEADERS = $CONFIG_HEADERS
7615 CONFIG_LINKS = $CONFIG_LINKS
7616 CONFIG_COMMANDS = $CONFIG_COMMANDS
7617 $ $0 $@
7619 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7622 _ACEOF
7624 case $ac_config_files in *"
7625 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7626 esac
7628 case $ac_config_headers in *"
7629 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7630 esac
7633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7634 # Files that config.status was made for.
7635 config_files="$ac_config_files"
7636 config_headers="$ac_config_headers"
7637 config_links="$ac_config_links"
7638 config_commands="$ac_config_commands"
7640 _ACEOF
7642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7643 ac_cs_usage="\
7644 \`$as_me' instantiates files and other configuration actions
7645 from templates according to the current configuration. Unless the files
7646 and actions are specified as TAGs, all are instantiated by default.
7648 Usage: $0 [OPTION]... [TAG]...
7650 -h, --help print this help, then exit
7651 -V, --version print version number and configuration settings, then exit
7652 --config print configuration, then exit
7653 -q, --quiet, --silent
7654 do not print progress messages
7655 -d, --debug don't remove temporary files
7656 --recheck update $as_me by reconfiguring in the same conditions
7657 --file=FILE[:TEMPLATE]
7658 instantiate the configuration file FILE
7659 --header=FILE[:TEMPLATE]
7660 instantiate the configuration header FILE
7662 Configuration files:
7663 $config_files
7665 Configuration headers:
7666 $config_headers
7668 Configuration links:
7669 $config_links
7671 Configuration commands:
7672 $config_commands
7674 Report bugs to <tex-k@tug.org>."
7676 _ACEOF
7677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7678 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7679 ac_cs_version="\\
7680 mpfr (TeX Live) config.status 3.1.3
7681 configured by $0, generated by GNU Autoconf 2.69,
7682 with options \\"\$ac_cs_config\\"
7684 Copyright (C) 2012 Free Software Foundation, Inc.
7685 This config.status script is free software; the Free Software Foundation
7686 gives unlimited permission to copy, distribute and modify it."
7688 ac_pwd='$ac_pwd'
7689 srcdir='$srcdir'
7690 INSTALL='$INSTALL'
7691 MKDIR_P='$MKDIR_P'
7692 AWK='$AWK'
7693 test -n "\$AWK" || AWK=awk
7694 _ACEOF
7696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7697 # The default lists apply if the user does not specify any file.
7698 ac_need_defaults=:
7699 while test $# != 0
7701 case $1 in
7702 --*=?*)
7703 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7704 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7705 ac_shift=:
7707 --*=)
7708 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7709 ac_optarg=
7710 ac_shift=:
7713 ac_option=$1
7714 ac_optarg=$2
7715 ac_shift=shift
7717 esac
7719 case $ac_option in
7720 # Handling of the options.
7721 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7722 ac_cs_recheck=: ;;
7723 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7724 $as_echo "$ac_cs_version"; exit ;;
7725 --config | --confi | --conf | --con | --co | --c )
7726 $as_echo "$ac_cs_config"; exit ;;
7727 --debug | --debu | --deb | --de | --d | -d )
7728 debug=: ;;
7729 --file | --fil | --fi | --f )
7730 $ac_shift
7731 case $ac_optarg in
7732 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7733 '') as_fn_error $? "missing file argument" ;;
7734 esac
7735 as_fn_append CONFIG_FILES " '$ac_optarg'"
7736 ac_need_defaults=false;;
7737 --header | --heade | --head | --hea )
7738 $ac_shift
7739 case $ac_optarg in
7740 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7741 esac
7742 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7743 ac_need_defaults=false;;
7744 --he | --h)
7745 # Conflict between --help and --header
7746 as_fn_error $? "ambiguous option: \`$1'
7747 Try \`$0 --help' for more information.";;
7748 --help | --hel | -h )
7749 $as_echo "$ac_cs_usage"; exit ;;
7750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7751 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7752 ac_cs_silent=: ;;
7754 # This is an error.
7755 -*) as_fn_error $? "unrecognized option: \`$1'
7756 Try \`$0 --help' for more information." ;;
7758 *) as_fn_append ac_config_targets " $1"
7759 ac_need_defaults=false ;;
7761 esac
7762 shift
7763 done
7765 ac_configure_extra_args=
7767 if $ac_cs_silent; then
7768 exec 6>/dev/null
7769 ac_configure_extra_args="$ac_configure_extra_args --silent"
7772 _ACEOF
7773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7774 if \$ac_cs_recheck; then
7775 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7776 shift
7777 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7778 CONFIG_SHELL='$SHELL'
7779 export CONFIG_SHELL
7780 exec "\$@"
7783 _ACEOF
7784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7785 exec 5>>config.log
7787 echo
7788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7789 ## Running $as_me. ##
7790 _ASBOX
7791 $as_echo "$ac_log"
7792 } >&5
7794 _ACEOF
7795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7797 # INIT-COMMANDS
7799 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7801 _ACEOF
7803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7805 # Handling of arguments.
7806 for ac_config_target in $ac_config_targets
7808 case $ac_config_target in
7809 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7810 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7811 "mparam.h") CONFIG_LINKS="$CONFIG_LINKS mparam.h:mpfr-3.1.3/src/mparam_h.in" ;;
7812 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7813 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
7815 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7816 esac
7817 done
7820 # If the user did not use the arguments to specify the items to instantiate,
7821 # then the envvar interface is used. Set only those that are not.
7822 # We use the long form for the default assignment because of an extremely
7823 # bizarre bug on SunOS 4.1.3.
7824 if $ac_need_defaults; then
7825 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7826 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7827 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7828 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7831 # Have a temporary directory for convenience. Make it in the build tree
7832 # simply because there is no reason against having it here, and in addition,
7833 # creating and moving files from /tmp can sometimes cause problems.
7834 # Hook for its removal unless debugging.
7835 # Note that there is a small window in which the directory will not be cleaned:
7836 # after its creation but before its name has been assigned to `$tmp'.
7837 $debug ||
7839 tmp= ac_tmp=
7840 trap 'exit_status=$?
7841 : "${ac_tmp:=$tmp}"
7842 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7844 trap 'as_fn_exit 1' 1 2 13 15
7846 # Create a (secure) tmp directory for tmp files.
7849 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7850 test -d "$tmp"
7851 } ||
7853 tmp=./conf$$-$RANDOM
7854 (umask 077 && mkdir "$tmp")
7855 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7856 ac_tmp=$tmp
7858 # Set up the scripts for CONFIG_FILES section.
7859 # No need to generate them if there are no CONFIG_FILES.
7860 # This happens for instance with `./config.status config.h'.
7861 if test -n "$CONFIG_FILES"; then
7864 ac_cr=`echo X | tr X '\015'`
7865 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7866 # But we know of no other shell where ac_cr would be empty at this
7867 # point, so we can use a bashism as a fallback.
7868 if test "x$ac_cr" = x; then
7869 eval ac_cr=\$\'\\r\'
7871 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7872 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7873 ac_cs_awk_cr='\\r'
7874 else
7875 ac_cs_awk_cr=$ac_cr
7878 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7879 _ACEOF
7883 echo "cat >conf$$subs.awk <<_ACEOF" &&
7884 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7885 echo "_ACEOF"
7886 } >conf$$subs.sh ||
7887 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7888 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7889 ac_delim='%!_!# '
7890 for ac_last_try in false false false false false :; do
7891 . ./conf$$subs.sh ||
7892 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7894 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7895 if test $ac_delim_n = $ac_delim_num; then
7896 break
7897 elif $ac_last_try; then
7898 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7899 else
7900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7902 done
7903 rm -f conf$$subs.sh
7905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7906 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7907 _ACEOF
7908 sed -n '
7910 s/^/S["/; s/!.*/"]=/
7913 s/^[^!]*!//
7914 :repl
7915 t repl
7916 s/'"$ac_delim"'$//
7917 t delim
7920 s/\(.\{148\}\)..*/\1/
7921 t more1
7922 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7925 b repl
7926 :more1
7927 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7930 s/.\{148\}//
7931 t nl
7932 :delim
7934 s/\(.\{148\}\)..*/\1/
7935 t more2
7936 s/["\\]/\\&/g; s/^/"/; s/$/"/
7939 :more2
7940 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7943 s/.\{148\}//
7944 t delim
7945 ' <conf$$subs.awk | sed '
7946 /^[^""]/{
7948 s/\n//
7950 ' >>$CONFIG_STATUS || ac_write_fail=1
7951 rm -f conf$$subs.awk
7952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7953 _ACAWK
7954 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7955 for (key in S) S_is_set[key] = 1
7956 FS = "\a"
7960 line = $ 0
7961 nfields = split(line, field, "@")
7962 substed = 0
7963 len = length(field[1])
7964 for (i = 2; i < nfields; i++) {
7965 key = field[i]
7966 keylen = length(key)
7967 if (S_is_set[key]) {
7968 value = S[key]
7969 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7970 len += length(value) + length(field[++i])
7971 substed = 1
7972 } else
7973 len += 1 + keylen
7976 print line
7979 _ACAWK
7980 _ACEOF
7981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7982 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7983 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7984 else
7986 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7987 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7988 _ACEOF
7990 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7991 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7992 # trailing colons and then remove the whole line if VPATH becomes empty
7993 # (actually we leave an empty line to preserve line numbers).
7994 if test "x$srcdir" = x.; then
7995 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7997 s///
7998 s/^/:/
7999 s/[ ]*$/:/
8000 s/:\$(srcdir):/:/g
8001 s/:\${srcdir}:/:/g
8002 s/:@srcdir@:/:/g
8003 s/^:*//
8004 s/:*$//
8006 s/\(=[ ]*\).*/\1/
8008 s/\n//
8009 s/^[^=]*=[ ]*$//
8013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8014 fi # test -n "$CONFIG_FILES"
8016 # Set up the scripts for CONFIG_HEADERS section.
8017 # No need to generate them if there are no CONFIG_HEADERS.
8018 # This happens for instance with `./config.status Makefile'.
8019 if test -n "$CONFIG_HEADERS"; then
8020 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8021 BEGIN {
8022 _ACEOF
8024 # Transform confdefs.h into an awk script `defines.awk', embedded as
8025 # here-document in config.status, that substitutes the proper values into
8026 # config.h.in to produce config.h.
8028 # Create a delimiter string that does not exist in confdefs.h, to ease
8029 # handling of long lines.
8030 ac_delim='%!_!# '
8031 for ac_last_try in false false :; do
8032 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8033 if test -z "$ac_tt"; then
8034 break
8035 elif $ac_last_try; then
8036 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8037 else
8038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8040 done
8042 # For the awk script, D is an array of macro values keyed by name,
8043 # likewise P contains macro parameters if any. Preserve backslash
8044 # newline sequences.
8046 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8047 sed -n '
8048 s/.\{148\}/&'"$ac_delim"'/g
8049 t rset
8050 :rset
8051 s/^[ ]*#[ ]*define[ ][ ]*/ /
8052 t def
8054 :def
8055 s/\\$//
8056 t bsnl
8057 s/["\\]/\\&/g
8058 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8059 D["\1"]=" \3"/p
8060 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8062 :bsnl
8063 s/["\\]/\\&/g
8064 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8065 D["\1"]=" \3\\\\\\n"\\/p
8066 t cont
8067 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8068 t cont
8070 :cont
8072 s/.\{148\}/&'"$ac_delim"'/g
8073 t clear
8074 :clear
8075 s/\\$//
8076 t bsnlc
8077 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8079 :bsnlc
8080 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8081 b cont
8082 ' <confdefs.h | sed '
8083 s/'"$ac_delim"'/"\\\
8084 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8087 for (key in D) D_is_set[key] = 1
8088 FS = "\a"
8090 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8091 line = \$ 0
8092 split(line, arg, " ")
8093 if (arg[1] == "#") {
8094 defundef = arg[2]
8095 mac1 = arg[3]
8096 } else {
8097 defundef = substr(arg[1], 2)
8098 mac1 = arg[2]
8100 split(mac1, mac2, "(") #)
8101 macro = mac2[1]
8102 prefix = substr(line, 1, index(line, defundef) - 1)
8103 if (D_is_set[macro]) {
8104 # Preserve the white space surrounding the "#".
8105 print prefix "define", macro P[macro] D[macro]
8106 next
8107 } else {
8108 # Replace #undef with comments. This is necessary, for example,
8109 # in the case of _POSIX_SOURCE, which is predefined and required
8110 # on some systems where configure will not decide to define it.
8111 if (defundef == "undef") {
8112 print "/*", prefix defundef, macro, "*/"
8113 next
8117 { print }
8118 _ACAWK
8119 _ACEOF
8120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8121 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8122 fi # test -n "$CONFIG_HEADERS"
8125 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
8126 shift
8127 for ac_tag
8129 case $ac_tag in
8130 :[FHLC]) ac_mode=$ac_tag; continue;;
8131 esac
8132 case $ac_mode$ac_tag in
8133 :[FHL]*:*);;
8134 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8135 :[FH]-) ac_tag=-:-;;
8136 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8137 esac
8138 ac_save_IFS=$IFS
8139 IFS=:
8140 set x $ac_tag
8141 IFS=$ac_save_IFS
8142 shift
8143 ac_file=$1
8144 shift
8146 case $ac_mode in
8147 :L) ac_source=$1;;
8148 :[FH])
8149 ac_file_inputs=
8150 for ac_f
8152 case $ac_f in
8153 -) ac_f="$ac_tmp/stdin";;
8154 *) # Look for the file first in the build tree, then in the source tree
8155 # (if the path is not absolute). The absolute path cannot be DOS-style,
8156 # because $ac_f cannot contain `:'.
8157 test -f "$ac_f" ||
8158 case $ac_f in
8159 [\\/$]*) false;;
8160 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8161 esac ||
8162 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8163 esac
8164 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8165 as_fn_append ac_file_inputs " '$ac_f'"
8166 done
8168 # Let's still pretend it is `configure' which instantiates (i.e., don't
8169 # use $as_me), people would be surprised to read:
8170 # /* config.h. Generated by config.status. */
8171 configure_input='Generated from '`
8172 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8173 `' by configure.'
8174 if test x"$ac_file" != x-; then
8175 configure_input="$ac_file. $configure_input"
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8177 $as_echo "$as_me: creating $ac_file" >&6;}
8179 # Neutralize special characters interpreted by sed in replacement strings.
8180 case $configure_input in #(
8181 *\&* | *\|* | *\\* )
8182 ac_sed_conf_input=`$as_echo "$configure_input" |
8183 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8184 *) ac_sed_conf_input=$configure_input;;
8185 esac
8187 case $ac_tag in
8188 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8190 esac
8192 esac
8194 ac_dir=`$as_dirname -- "$ac_file" ||
8195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8196 X"$ac_file" : 'X\(//\)[^/]' \| \
8197 X"$ac_file" : 'X\(//\)$' \| \
8198 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8199 $as_echo X"$ac_file" |
8200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8201 s//\1/
8204 /^X\(\/\/\)[^/].*/{
8205 s//\1/
8208 /^X\(\/\/\)$/{
8209 s//\1/
8212 /^X\(\/\).*/{
8213 s//\1/
8216 s/.*/./; q'`
8217 as_dir="$ac_dir"; as_fn_mkdir_p
8218 ac_builddir=.
8220 case "$ac_dir" in
8221 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8223 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8224 # A ".." for each directory in $ac_dir_suffix.
8225 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8226 case $ac_top_builddir_sub in
8227 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8228 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8229 esac ;;
8230 esac
8231 ac_abs_top_builddir=$ac_pwd
8232 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8233 # for backward compatibility:
8234 ac_top_builddir=$ac_top_build_prefix
8236 case $srcdir in
8237 .) # We are building in place.
8238 ac_srcdir=.
8239 ac_top_srcdir=$ac_top_builddir_sub
8240 ac_abs_top_srcdir=$ac_pwd ;;
8241 [\\/]* | ?:[\\/]* ) # Absolute name.
8242 ac_srcdir=$srcdir$ac_dir_suffix;
8243 ac_top_srcdir=$srcdir
8244 ac_abs_top_srcdir=$srcdir ;;
8245 *) # Relative name.
8246 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8247 ac_top_srcdir=$ac_top_build_prefix$srcdir
8248 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8249 esac
8250 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8253 case $ac_mode in
8256 # CONFIG_FILE
8259 case $INSTALL in
8260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8261 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8262 esac
8263 ac_MKDIR_P=$MKDIR_P
8264 case $MKDIR_P in
8265 [\\/$]* | ?:[\\/]* ) ;;
8266 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8267 esac
8268 _ACEOF
8270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8271 # If the template does not know about datarootdir, expand it.
8272 # FIXME: This hack should be removed a few years after 2.60.
8273 ac_datarootdir_hack=; ac_datarootdir_seen=
8274 ac_sed_dataroot='
8275 /datarootdir/ {
8279 /@datadir@/p
8280 /@docdir@/p
8281 /@infodir@/p
8282 /@localedir@/p
8283 /@mandir@/p'
8284 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8285 *datarootdir*) ac_datarootdir_seen=yes;;
8286 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8288 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8289 _ACEOF
8290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8291 ac_datarootdir_hack='
8292 s&@datadir@&$datadir&g
8293 s&@docdir@&$docdir&g
8294 s&@infodir@&$infodir&g
8295 s&@localedir@&$localedir&g
8296 s&@mandir@&$mandir&g
8297 s&\\\${datarootdir}&$datarootdir&g' ;;
8298 esac
8299 _ACEOF
8301 # Neutralize VPATH when `$srcdir' = `.'.
8302 # Shell code in configure.ac might set extrasub.
8303 # FIXME: do we really want to maintain this feature?
8304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8305 ac_sed_extra="$ac_vpsub
8306 $extrasub
8307 _ACEOF
8308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8311 s|@configure_input@|$ac_sed_conf_input|;t t
8312 s&@top_builddir@&$ac_top_builddir_sub&;t t
8313 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8314 s&@srcdir@&$ac_srcdir&;t t
8315 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8316 s&@top_srcdir@&$ac_top_srcdir&;t t
8317 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8318 s&@builddir@&$ac_builddir&;t t
8319 s&@abs_builddir@&$ac_abs_builddir&;t t
8320 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8321 s&@INSTALL@&$ac_INSTALL&;t t
8322 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8323 $ac_datarootdir_hack
8325 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8326 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8328 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8329 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8330 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8331 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8333 which seems to be undefined. Please make sure it is defined" >&5
8334 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8335 which seems to be undefined. Please make sure it is defined" >&2;}
8337 rm -f "$ac_tmp/stdin"
8338 case $ac_file in
8339 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8340 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8341 esac \
8342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8346 # CONFIG_HEADER
8348 if test x"$ac_file" != x-; then
8350 $as_echo "/* $configure_input */" \
8351 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8352 } >"$ac_tmp/config.h" \
8353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8354 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8356 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8357 else
8358 rm -f "$ac_file"
8359 mv "$ac_tmp/config.h" "$ac_file" \
8360 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8362 else
8363 $as_echo "/* $configure_input */" \
8364 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8365 || as_fn_error $? "could not create -" "$LINENO" 5
8367 # Compute "$ac_file"'s index in $config_headers.
8368 _am_arg="$ac_file"
8369 _am_stamp_count=1
8370 for _am_header in $config_headers :; do
8371 case $_am_header in
8372 $_am_arg | $_am_arg:* )
8373 break ;;
8375 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8376 esac
8377 done
8378 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8379 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8380 X"$_am_arg" : 'X\(//\)[^/]' \| \
8381 X"$_am_arg" : 'X\(//\)$' \| \
8382 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8383 $as_echo X"$_am_arg" |
8384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8385 s//\1/
8388 /^X\(\/\/\)[^/].*/{
8389 s//\1/
8392 /^X\(\/\/\)$/{
8393 s//\1/
8396 /^X\(\/\).*/{
8397 s//\1/
8400 s/.*/./; q'`/stamp-h$_am_stamp_count
8404 # CONFIG_LINK
8407 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
8409 else
8410 # Prefer the file from the source tree if names are identical.
8411 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
8412 ac_source=$srcdir/$ac_source
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
8416 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
8418 if test ! -r "$ac_source"; then
8419 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
8421 rm -f "$ac_file"
8423 # Try a relative symlink, then a hard link, then a copy.
8424 case $ac_source in
8425 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
8426 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
8427 esac
8428 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
8429 ln "$ac_source" "$ac_file" 2>/dev/null ||
8430 cp -p "$ac_source" "$ac_file" ||
8431 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
8434 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8435 $as_echo "$as_me: executing $ac_file commands" >&6;}
8437 esac
8440 case $ac_file$ac_mode in
8441 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8442 # Older Autoconf quotes --file arguments for eval, but not when files
8443 # are listed without --file. Let's play safe and only enable the eval
8444 # if we detect the quoting.
8445 case $CONFIG_FILES in
8446 *\'*) eval set x "$CONFIG_FILES" ;;
8447 *) set x $CONFIG_FILES ;;
8448 esac
8449 shift
8450 for mf
8452 # Strip MF so we end up with the name of the file.
8453 mf=`echo "$mf" | sed -e 's/:.*$//'`
8454 # Check whether this is an Automake generated Makefile or not.
8455 # We used to match only the files named 'Makefile.in', but
8456 # some people rename them; so instead we look at the file content.
8457 # Grep'ing the first line is not enough: some people post-process
8458 # each Makefile.in and add a new line on top of each file to say so.
8459 # Grep'ing the whole file is not good either: AIX grep has a line
8460 # limit of 2048, but all sed's we know have understand at least 4000.
8461 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8462 dirpart=`$as_dirname -- "$mf" ||
8463 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8464 X"$mf" : 'X\(//\)[^/]' \| \
8465 X"$mf" : 'X\(//\)$' \| \
8466 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8467 $as_echo X"$mf" |
8468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8469 s//\1/
8472 /^X\(\/\/\)[^/].*/{
8473 s//\1/
8476 /^X\(\/\/\)$/{
8477 s//\1/
8480 /^X\(\/\).*/{
8481 s//\1/
8484 s/.*/./; q'`
8485 else
8486 continue
8488 # Extract the definition of DEPDIR, am__include, and am__quote
8489 # from the Makefile without running 'make'.
8490 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8491 test -z "$DEPDIR" && continue
8492 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8493 test -z "$am__include" && continue
8494 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8495 # Find all dependency output files, they are included files with
8496 # $(DEPDIR) in their names. We invoke sed twice because it is the
8497 # simplest approach to changing $(DEPDIR) to its actual value in the
8498 # expansion.
8499 for file in `sed -n "
8500 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8501 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8502 # Make sure the directory exists.
8503 test -f "$dirpart/$file" && continue
8504 fdir=`$as_dirname -- "$file" ||
8505 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8506 X"$file" : 'X\(//\)[^/]' \| \
8507 X"$file" : 'X\(//\)$' \| \
8508 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8509 $as_echo X"$file" |
8510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8511 s//\1/
8514 /^X\(\/\/\)[^/].*/{
8515 s//\1/
8518 /^X\(\/\/\)$/{
8519 s//\1/
8522 /^X\(\/\).*/{
8523 s//\1/
8526 s/.*/./; q'`
8527 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8528 # echo "creating $dirpart/$file"
8529 echo '# dummy' > "$dirpart/$file"
8530 done
8531 done
8535 esac
8536 done # for ac_tag
8539 as_fn_exit 0
8540 _ACEOF
8541 ac_clean_files=$ac_clean_files_save
8543 test $ac_write_fail = 0 ||
8544 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8547 # configure is writing to config.log, and then calls config.status.
8548 # config.status does its own redirection, appending to config.log.
8549 # Unfortunately, on DOS this fails, as config.log is still kept open
8550 # by configure, so config.status won't be able to write to it; its
8551 # output is simply discarded. So we exec the FD to /dev/null,
8552 # effectively closing config.log, so it can be properly (re)opened and
8553 # appended to by config.status. When coming back to configure, we
8554 # need to make the FD available again.
8555 if test "$no_create" != yes; then
8556 ac_cs_success=:
8557 ac_config_status_args=
8558 test "$silent" = yes &&
8559 ac_config_status_args="$ac_config_status_args --quiet"
8560 exec 5>/dev/null
8561 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8562 exec 5>>config.log
8563 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8564 # would make configure fail if this is the last instruction.
8565 $ac_cs_success || as_fn_exit 1
8567 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8569 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}