2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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 :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
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 :
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
240 if test "x$CONFIG_SHELL" != x
; then :
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.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: gcc-bugs@gcc.gnu.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
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 :
401 as_val
=`expr "$@" || test $? -eq 1`
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.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
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
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 ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
546 test -d .
/-p && rmdir .
/-p
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
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`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='cpplib'
582 PACKAGE_TARNAME
='cpplib'
584 PACKAGE_STRING
='cpplib '
585 PACKAGE_BUGREPORT
='gcc-bugs@gcc.gnu.org'
588 ac_unique_file
="ucnid.h"
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars
='LTLIBOBJS
714 program_transform_name
727 enable_option_checking
734 enable_maintainer_mode
736 enable_canonical_system_headers
738 enable_valgrind_annotations
740 ac_precious_vars
='build_alias
754 # Initialize some variables set by options.
756 ac_init_version
=false
757 ac_unrecognized_opts
=
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
768 program_transform_name
=s
,x
,x
,
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir
='${exec_prefix}/bin'
783 sbindir
='${exec_prefix}/sbin'
784 libexecdir
='${exec_prefix}/libexec'
785 datarootdir
='${prefix}/share'
786 datadir
='${datarootdir}'
787 sysconfdir
='${prefix}/etc'
788 sharedstatedir
='${prefix}/com'
789 localstatedir
='${prefix}/var'
790 includedir
='${prefix}/include'
791 oldincludedir
='/usr/include'
792 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
793 infodir
='${datarootdir}/info'
798 libdir
='${exec_prefix}/lib'
799 localedir
='${datarootdir}/locale'
800 mandir
='${datarootdir}/man'
806 # If the previous option needs an argument, assign it.
807 if test -n "$ac_prev"; then
808 eval $ac_prev=\
$ac_option
814 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819 # Accept the important Cygnus configure options, so we can diagnose typos.
821 case $ac_dashdash$ac_option in
825 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
827 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
830 -build |
--build |
--buil |
--bui |
--bu)
831 ac_prev
=build_alias
;;
832 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
833 build_alias
=$ac_optarg ;;
835 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
836 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
837 ac_prev
=cache_file
;;
838 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
839 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
840 cache_file
=$ac_optarg ;;
843 cache_file
=config.cache
;;
845 -datadir |
--datadir |
--datadi |
--datad)
847 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
848 datadir
=$ac_optarg ;;
850 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
851 |
--dataroo |
--dataro |
--datar)
852 ac_prev
=datarootdir
;;
853 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
854 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
855 datarootdir
=$ac_optarg ;;
857 -disable-* |
--disable-*)
858 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
861 as_fn_error $?
"invalid feature name: $ac_useropt"
862 ac_useropt_orig
=$ac_useropt
863 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
868 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
869 ac_unrecognized_sep
=', ';;
871 eval enable_
$ac_useropt=no
;;
873 -docdir |
--docdir |
--docdi |
--doc |
--do)
875 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
878 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
880 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
883 -enable-* |
--enable-*)
884 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
887 as_fn_error $?
"invalid feature name: $ac_useropt"
888 ac_useropt_orig
=$ac_useropt
889 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895 ac_unrecognized_sep
=', ';;
897 eval enable_
$ac_useropt=\
$ac_optarg ;;
899 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
900 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
901 |
--exec |
--exe |
--ex)
902 ac_prev
=exec_prefix
;;
903 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
904 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
905 |
--exec=* |
--exe=* |
--ex=*)
906 exec_prefix
=$ac_optarg ;;
908 -gas |
--gas |
--ga |
--g)
909 # Obsolete; use --with-gas.
912 -help |
--help |
--hel |
--he |
-h)
914 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
915 ac_init_help
=recursive
;;
916 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
917 ac_init_help
=short
;;
919 -host |
--host |
--hos |
--ho)
920 ac_prev
=host_alias
;;
921 -host=* |
--host=* |
--hos=* |
--ho=*)
922 host_alias
=$ac_optarg ;;
924 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
926 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
928 htmldir
=$ac_optarg ;;
930 -includedir |
--includedir |
--includedi |
--included |
--include \
931 |
--includ |
--inclu |
--incl |
--inc)
932 ac_prev
=includedir
;;
933 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
934 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
935 includedir
=$ac_optarg ;;
937 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
939 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
940 infodir
=$ac_optarg ;;
942 -libdir |
--libdir |
--libdi |
--libd)
944 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
947 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
948 |
--libexe |
--libex |
--libe)
949 ac_prev
=libexecdir
;;
950 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
951 |
--libexe=* |
--libex=* |
--libe=*)
952 libexecdir
=$ac_optarg ;;
954 -localedir |
--localedir |
--localedi |
--localed |
--locale)
956 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
957 localedir
=$ac_optarg ;;
959 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
960 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
961 ac_prev
=localstatedir
;;
962 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
963 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
964 localstatedir
=$ac_optarg ;;
966 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
968 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
972 # Obsolete; use --without-fp.
975 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
976 |
--no-cr |
--no-c |
-n)
979 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
980 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
983 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
984 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
985 |
--oldin |
--oldi |
--old |
--ol |
--o)
986 ac_prev
=oldincludedir
;;
987 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
988 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
989 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
990 oldincludedir
=$ac_optarg ;;
992 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
994 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
997 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
998 |
--program-pre |
--program-pr |
--program-p)
999 ac_prev
=program_prefix
;;
1000 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1001 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1002 program_prefix
=$ac_optarg ;;
1004 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1005 |
--program-suf |
--program-su |
--program-s)
1006 ac_prev
=program_suffix
;;
1007 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1008 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1009 program_suffix
=$ac_optarg ;;
1011 -program-transform-name |
--program-transform-name \
1012 |
--program-transform-nam |
--program-transform-na \
1013 |
--program-transform-n |
--program-transform- \
1014 |
--program-transform |
--program-transfor \
1015 |
--program-transfo |
--program-transf \
1016 |
--program-trans |
--program-tran \
1017 |
--progr-tra |
--program-tr |
--program-t)
1018 ac_prev
=program_transform_name
;;
1019 -program-transform-name=* |
--program-transform-name=* \
1020 |
--program-transform-nam=* |
--program-transform-na=* \
1021 |
--program-transform-n=* |
--program-transform-=* \
1022 |
--program-transform=* |
--program-transfor=* \
1023 |
--program-transfo=* |
--program-transf=* \
1024 |
--program-trans=* |
--program-tran=* \
1025 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1026 program_transform_name
=$ac_optarg ;;
1028 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1030 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1031 pdfdir
=$ac_optarg ;;
1033 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1035 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1038 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1039 |
-silent |
--silent |
--silen |
--sile |
--sil)
1042 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1044 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1046 sbindir
=$ac_optarg ;;
1048 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1049 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1050 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1052 ac_prev
=sharedstatedir
;;
1053 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1054 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1055 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1057 sharedstatedir
=$ac_optarg ;;
1059 -site |
--site |
--sit)
1061 -site=* |
--site=* |
--sit=*)
1064 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1066 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1067 srcdir
=$ac_optarg ;;
1069 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1070 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1071 ac_prev
=sysconfdir
;;
1072 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1073 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1074 sysconfdir
=$ac_optarg ;;
1076 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1077 ac_prev
=target_alias
;;
1078 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1079 target_alias
=$ac_optarg ;;
1081 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1084 -version |
--version |
--versio |
--versi |
--vers |
-V)
1085 ac_init_version
=: ;;
1088 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1091 as_fn_error $?
"invalid package name: $ac_useropt"
1092 ac_useropt_orig
=$ac_useropt
1093 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1098 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1099 ac_unrecognized_sep
=', ';;
1101 eval with_
$ac_useropt=\
$ac_optarg ;;
1103 -without-* |
--without-*)
1104 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1107 as_fn_error $?
"invalid package name: $ac_useropt"
1108 ac_useropt_orig
=$ac_useropt
1109 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1114 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1115 ac_unrecognized_sep
=', ';;
1117 eval with_
$ac_useropt=no
;;
1120 # Obsolete; use --with-x.
1123 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1124 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1125 ac_prev
=x_includes
;;
1126 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1127 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1128 x_includes
=$ac_optarg ;;
1130 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1131 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1132 ac_prev
=x_libraries
;;
1133 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1134 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1135 x_libraries
=$ac_optarg ;;
1137 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1138 Try \`$0 --help' for more information"
1142 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 case $ac_envvar in #(
1145 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1146 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1148 eval $ac_envvar=\
$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1155 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1162 if test -n "$ac_prev"; then
1163 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1164 as_fn_error $?
"missing argument to $ac_option"
1167 if test -n "$ac_unrecognized_opts"; then
1168 case $enable_option_checking in
1170 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1171 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175 # Check all directory arguments for consistency.
1176 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val
=\$
$ac_var
1182 # Remove trailing slashes.
1185 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1186 eval $ac_var=\
$ac_val;;
1188 # Be sure to have absolute directory names.
1190 [\\/$
]* | ?
:[\\/]* ) continue;;
1191 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1193 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1201 target
=$target_alias
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x
; then
1205 if test "x$build_alias" = x
; then
1206 cross_compiling
=maybe
1207 elif test "x$build_alias" != "x$host_alias"; then
1213 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1215 test "$silent" = yes && exec 6>/dev
/null
1218 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di
=`ls -di .` &&
1220 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1221 as_fn_error $?
"working directory cannot be determined"
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 as_fn_error $?
"pwd does not report name of working directory"
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228 ac_srcdir_defaulted
=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir
=`$as_dirname -- "$as_myself" ||
1231 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$as_myself" : 'X\(//\)[^/]' \| \
1233 X"$as_myself" : 'X\(//\)$' \| \
1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235 $as_echo X"$as_myself" |
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1258 ac_srcdir_defaulted
=no
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1262 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1264 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1276 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 for ac_var
in $ac_precious_vars; do
1279 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1281 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1292 \`configure' configures cpplib to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking ...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1350 --build=BUILD configure
for building on BUILD
[guessed
]
1351 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1352 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1356 if test -n "$ac_init_help"; then
1357 case $ac_init_help in
1358 short | recursive
) echo "Configuration of cpplib :";;
1363 --disable-option-checking ignore unrecognized
--enable/--with options
1364 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1365 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1366 --disable-largefile omit support
for large files
1367 --enable-werror-always enable -Werror despite compiler version
1368 --disable-rpath do not hardcode runtime library paths
1369 --enable-maintainer-mode enable rules only needed by maintainers
1370 --enable-checking[=LIST
]
1371 enable expensive run-time checks. With LIST
, enable
1372 only specific categories of checks. Categories are
:
1373 yes,no
,all
,none
,release. Flags are
: misc
,valgrind or
1375 --enable-canonical-system-headers
1376 enable or disable system headers canonicalization
1377 --enable-host-shared build
host code as shared libraries
1378 --enable-valgrind-annotations
1379 enable valgrind runtime interaction
1382 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1383 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1384 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1385 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1386 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1387 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1389 Some influential environment variables:
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1393 nonstandard directory <lib dir>
1394 LIBS libraries to pass to the linker, e.g. -l<library>
1395 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
1397 CXX C++ compiler command
1398 CXXFLAGS C++ compiler flags
1401 Use these variables to override the choices made by `configure' or to
help
1402 it to
find libraries and programs with nonstandard names
/locations.
1404 Report bugs to
<gcc-bugs@gcc.gnu.org
>.
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1412 test -d "$ac_dir" ||
1413 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1418 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1420 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1421 # A ".." for each directory in $ac_dir_suffix.
1422 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1423 case $ac_top_builddir_sub in
1424 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1425 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1428 ac_abs_top_builddir
=$ac_pwd
1429 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1430 # for backward compatibility:
1431 ac_top_builddir
=$ac_top_build_prefix
1434 .
) # We are building in place.
1436 ac_top_srcdir
=$ac_top_builddir_sub
1437 ac_abs_top_srcdir
=$ac_pwd ;;
1438 [\\/]* | ?
:[\\/]* ) # Absolute name.
1439 ac_srcdir
=$srcdir$ac_dir_suffix;
1440 ac_top_srcdir
=$srcdir
1441 ac_abs_top_srcdir
=$srcdir ;;
1443 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1445 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1447 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1449 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1450 # Check for guested configure.
1451 if test -f "$ac_srcdir/configure.gnu"; then
1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454 elif test -f "$ac_srcdir/configure"; then
1456 $SHELL "$ac_srcdir/configure" --help=recursive
1458 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1464 test -n "$ac_init_help" && exit $ac_status
1465 if $ac_init_version; then
1468 generated by GNU Autoconf
2.69
1470 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1471 This configure
script is free software
; the Free Software Foundation
1472 gives unlimited permission to copy
, distribute and modify it.
1477 ## ------------------------ ##
1478 ## Autoconf initialization. ##
1479 ## ------------------------ ##
1481 # ac_fn_c_try_compile LINENO
1482 # --------------------------
1483 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1484 ac_fn_c_try_compile
()
1486 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1487 rm -f conftest.
$ac_objext
1488 if { { ac_try
="$ac_compile"
1490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1491 *) ac_try_echo=$ac_try;;
1493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_compile") 2>conftest.err
1497 if test -s conftest.err; then
1498 grep -v '^ *+' conftest.err >conftest.er1
1499 cat conftest.er1 >&5
1500 mv -f conftest.er1 conftest.err
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; } && {
1504 test -z "$ac_c_werror_flag" ||
1505 test ! -s conftest.err
1506 } && test -s conftest.$ac_objext; then :
1509 $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.$ac_ext >&5
1514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1515 as_fn_set_status $ac_retval
1517 } # ac_fn_c_try_compile
1519 # ac_fn_cxx_try_compile LINENO
1520 # ----------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_cxx_try_compile ()
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1529 *) ac_try_echo
=$ac_try;;
1531 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1535 if test -s conftest.err
; then
1536 grep -v '^ *+' conftest.err
>conftest.er1
1537 cat conftest.er1
>&5
1538 mv -f conftest.er1 conftest.err
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_cxx_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.
$ac_objext; then :
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.
$ac_ext >&5
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status
$ac_retval
1555 } # ac_fn_cxx_try_compile
1557 # ac_fn_c_try_cpp LINENO
1558 # ----------------------
1559 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1562 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1563 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } > conftest.i && {
1579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1594 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1595 # -------------------------------------------------------
1596 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1597 # the include files in INCLUDES and setting the cache variable VAR
1599 ac_fn_c_check_header_mongrel ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if eval \${$3+:} false; then :
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610 $as_echo "$ac_res" >&6; }
1612 # Is the header compilable?
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1614 $as_echo_n "checking $2 usability... " >&6; }
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1620 if ac_fn_c_try_compile "$LINENO"; then :
1621 ac_header_compiler=yes
1623 ac_header_compiler=no
1625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1627 $as_echo "$ac_header_compiler" >&6; }
1629 # Is the header present?
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1631 $as_echo_n "checking $2 presence... " >&6; }
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1636 if ac_fn_c_try_cpp "$LINENO"; then :
1637 ac_header_preproc=yes
1639 ac_header_preproc=no
1641 rm -f conftest.err conftest.i conftest.$ac_ext
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1643 $as_echo "$ac_header_preproc" >&6; }
1645 # So? What about this header?
1646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1649 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1651 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1655 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1657 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1659 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1661 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1663 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1664 ( $as_echo "## ----------------------------------- ##
1665 ## Report this to gcc-bugs@gcc.gnu.org ##
1666 ## ----------------------------------- ##"
1667 ) | sed "s/^/$as_me: WARNING: /" >&2
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1675 eval "$3=\$ac_header_compiler"
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 } # ac_fn_c_check_header_mongrel
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1695 *) ac_try_echo
=$ac_try;;
1697 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=$ac_status
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1727 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists and can be compiled using the include files in
1730 # INCLUDES, setting the cache variable VAR accordingly.
1731 ac_fn_c_check_header_compile ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1744 if ac_fn_c_try_compile "$LINENO"; then :
1749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 } # ac_fn_c_check_header_compile
1758 # ac_fn_c_try_link LINENO
1759 # -----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded.
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext conftest$ac_exeext
1765 if { { ac_try="$ac_link"
1767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1768 *) ac_try_echo
=$ac_try;;
1770 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>conftest.err
1774 if test -s conftest.err
; then
1775 grep -v '^ *+' conftest.err
>conftest.er1
1776 cat conftest.er1
>&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest
$ac_exeext && {
1784 test "$cross_compiling" = yes ||
1785 test -x conftest
$ac_exeext
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.
$ac_ext >&5
1794 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796 # interfere with the next link command; also delete a directory that is
1797 # left behind by Apple's compiler. We do this before executing the actions.
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status
$ac_retval
1802 } # ac_fn_c_try_link
1804 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1805 # -------------------------------------------
1806 # Tests whether TYPE exists after having included INCLUDES, setting cache
1807 # variable VAR accordingly.
1808 ac_fn_c_check_type
()
1810 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \
${$3+:} false
; then :
1814 $as_echo_n "(cached) " >&6
1817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1829 if ac_fn_c_try_compile
"$LINENO"; then :
1830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1842 if ac_fn_c_try_compile
"$LINENO"; then :
1847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 } # ac_fn_c_check_type
1858 # ac_fn_c_find_uintX_t LINENO BITS VAR
1859 # ------------------------------------
1860 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1862 ac_fn_c_find_uintX_t
()
1864 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1866 $as_echo_n "checking for uint$2_t... " >&6; }
1867 if eval \
${$3+:} false
; then :
1868 $as_echo_n "(cached) " >&6
1871 # Order is important - never check a type that is potentially smaller
1872 # than half of the expected target width.
1873 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
1874 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1877 $ac_includes_default
1881 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1883 return test_array [0];
1889 if ac_fn_c_try_compile
"$LINENO"; then :
1894 eval "$3=\$ac_type" ;;
1897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1898 if eval test \"x\$
"$3"\" = x
"no"; then :
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } # ac_fn_c_find_uintX_t
1912 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1913 # --------------------------------------------
1914 # Tries to find the compile-time value of EXPR in a program that includes
1915 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1917 ac_fn_c_compute_int
()
1919 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1920 if test "$cross_compiling" = yes; then
1921 # Depending upon the size, compute the lo and hi bounds.
1922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1928 static int test_array [1 - 2 * !(($2) >= 0)];
1930 return test_array [0];
1936 if ac_fn_c_try_compile
"$LINENO"; then :
1939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1945 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1947 return test_array [0];
1953 if ac_fn_c_try_compile
"$LINENO"; then :
1954 ac_hi
=$ac_mid; break
1956 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1957 if test $ac_lo -le $ac_mid; then
1961 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1972 static int test_array [1 - 2 * !(($2) < 0)];
1974 return test_array [0];
1980 if ac_fn_c_try_compile
"$LINENO"; then :
1983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1989 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1991 return test_array [0];
1997 if ac_fn_c_try_compile
"$LINENO"; then :
1998 ac_lo
=$ac_mid; break
2000 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2001 if test $ac_mid -le $ac_hi; then
2005 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2015 # Binary search between lo and hi bounds.
2016 while test "x$ac_lo" != "x$ac_hi"; do
2017 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2024 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2026 return test_array [0];
2032 if ac_fn_c_try_compile
"$LINENO"; then :
2035 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2040 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2047 static long int longval () { return $2; }
2048 static unsigned long int ulongval () { return $2; }
2055 FILE *f = fopen ("conftest.val", "w");
2060 long int i = longval ();
2063 fprintf (f, "%ld", i);
2067 unsigned long int i = ulongval ();
2070 fprintf (f, "%lu", i);
2072 /* Do not output a trailing newline, as this causes \r\n confusion
2073 on some platforms. */
2074 return ferror (f) || fclose (f) != 0;
2080 if ac_fn_c_try_run
"$LINENO"; then :
2081 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2085 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2086 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status
$ac_retval
2093 } # ac_fn_c_compute_int
2095 # ac_fn_c_check_func LINENO FUNC VAR
2096 # ----------------------------------
2097 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2098 ac_fn_c_check_func
()
2100 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \
${$3+:} false
; then :
2104 $as_echo_n "(cached) " >&6
2106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2108 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2110 #define $2 innocuous_$2
2112 /* System header to define __stub macros and hopefully few prototypes,
2113 which can conflict with char $2 (); below.
2114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2115 <limits.h> exists even on freestanding compilers. */
2118 # include <limits.h>
2120 # include <assert.h>
2125 /* Override any GCC internal prototype to avoid an error.
2126 Use char because int might match the return type of a GCC
2127 builtin and then its argument prototype would still apply. */
2132 /* The GNU C library defines this for functions which it implements
2133 to always fail with ENOSYS. Some functions are actually named
2134 something starting with __ and the normal name is an alias. */
2135 #if defined __stub_$2 || defined __stub___$2
2147 if ac_fn_c_try_link
"$LINENO"; then :
2152 rm -f core conftest.err conftest.
$ac_objext \
2153 conftest
$ac_exeext conftest.
$ac_ext
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 $as_echo "$ac_res" >&6; }
2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160 } # ac_fn_c_check_func
2162 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2163 # ---------------------------------------------
2164 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2166 ac_fn_c_check_decl
()
2168 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2169 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2170 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2172 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2173 if eval \
${$3+:} false
; then :
2174 $as_echo_n "(cached) " >&6
2176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2182 #ifndef $as_decl_name
2184 (void) $as_decl_use;
2186 (void) $as_decl_name;
2194 if ac_fn_c_try_compile
"$LINENO"; then :
2199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 } # ac_fn_c_check_decl
2208 # ac_fn_cxx_try_link LINENO
2209 # -------------------------
2210 # Try to link conftest.$ac_ext, and return whether this succeeded.
2211 ac_fn_cxx_try_link
()
2213 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2214 rm -f conftest.
$ac_objext conftest
$ac_exeext
2215 if { { ac_try
="$ac_link"
2217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222 (eval "$ac_link") 2>conftest.err
2224 if test -s conftest.err; then
2225 grep -v '^ *+' conftest.err >conftest.er1
2226 cat conftest.er1 >&5
2227 mv -f conftest.er1 conftest.err
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } && {
2231 test -z "$ac_cxx_werror_flag" ||
2232 test ! -s conftest.err
2233 } && test -s conftest$ac_exeext && {
2234 test "$cross_compiling" = yes ||
2235 test -x conftest$ac_exeext
2239 $as_echo "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2244 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2245 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2246 # interfere with the next link command; also delete a directory that is
2247 # left behind by Apple's compiler. We do this before executing the actions.
2248 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 as_fn_set_status $ac_retval
2252 } # ac_fn_cxx_try_link
2253 cat >config.log <<_ACEOF
2254 This file contains any messages produced by compilers while
2255 running configure, to aid debugging if configure makes a mistake.
2257 It was created by cpplib $as_me , which was
2258 generated by GNU Autoconf 2.69. Invocation command line was
2270 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2271 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2272 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2273 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2274 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2276 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2277 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2279 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2280 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2281 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2282 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2283 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2284 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2285 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir=.
2294 $as_echo "PATH: $as_dir"
2310 # Keep a trace of the command line.
2311 # Strip out --no-create and --no-recursion so they do not pile up.
2312 # Strip out --silent because we don't want to record it for future runs.
2313 # Also quote any args containing shell meta-characters.
2314 # Make two passes to allow for proper duplicate-argument suppression.
2318 ac_must_keep_next=false
2324 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2326 | -silent | --silent | --silen | --sile | --sil)
2329 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2332 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2334 as_fn_append ac_configure_args1 " '$ac_arg'"
2335 if test $ac_must_keep_next = true; then
2336 ac_must_keep_next=false # Got value, back to normal.
2339 *=* | --config-cache | -C | -disable-* | --disable-* \
2340 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2341 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2342 | -with-* | --with-* | -without-* | --without-* | --x)
2343 case "$ac_configure_args0 " in
2344 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2347 -* ) ac_must_keep_next=true ;;
2350 as_fn_append ac_configure_args " '$ac_arg'"
2355 { ac_configure_args0=; unset ac_configure_args0;}
2356 { ac_configure_args1=; unset ac_configure_args1;}
2358 # When interrupted or exit'd, cleanup temporary files, and complete
2359 # config.log. We remove comments because anyway the quotes in there
2360 # would cause problems or look ugly.
2361 # WARNING: Use '\'' to represent an apostrophe within the trap.
2362 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2363 trap 'exit_status=$?
2364 # Save into config.log some information that might help in debugging.
2368 $as_echo "## ---------------- ##
2369 ## Cache variables. ##
2370 ## ---------------- ##"
2372 # The following way of writing the cache mishandles newlines in values,
2374 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2375 eval ac_val=\$$ac_var
2379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2380 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2383 _ | IFS | as_nl) ;; #(
2384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2385 *) { eval $ac_var=; unset $ac_var;} ;;
2390 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2391 *${as_nl}ac_space=\ *)
2393 "s/'\''/'\''\\\\'\'''\''/g;
2394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2404 $as_echo "## ----------------- ##
2405 ## Output variables. ##
2406 ## ----------------- ##"
2408 for ac_var in $ac_subst_vars
2410 eval ac_val=\$$ac_var
2412 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 $as_echo "$ac_var='\''$ac_val'\''"
2418 if test -n "$ac_subst_files"; then
2419 $as_echo "## ------------------- ##
2420 ## File substitutions. ##
2421 ## ------------------- ##"
2423 for ac_var in $ac_subst_files
2425 eval ac_val=\$$ac_var
2427 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429 $as_echo "$ac_var='\''$ac_val'\''"
2434 if test -s confdefs.h; then
2435 $as_echo "## ----------- ##
2442 test "$ac_signal" != 0 &&
2443 $as_echo "$as_me: caught signal $ac_signal"
2444 $as_echo "$as_me: exit $exit_status"
2446 rm -f core *.core core.conftest.* &&
2447 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2450 for ac_signal in 1 2 13 15; do
2451 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2456 rm -f -r conftest* confdefs.h
2458 $as_echo "/* confdefs.h */" > confdefs.h
2460 # Predefined preprocessor variables.
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_NAME "$PACKAGE_NAME"
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_STRING "$PACKAGE_STRING"
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_URL "$PACKAGE_URL"
2487 # Let the site file select an alternate cache file if it wants to.
2488 # Prefer an explicitly selected file to automatically selected ones.
2491 if test -n "$CONFIG_SITE"; then
2492 # We do not want a PATH search for config.site.
2493 case $CONFIG_SITE in #((
2494 -*) ac_site_file1=./$CONFIG_SITE;;
2495 */*) ac_site_file1=$CONFIG_SITE;;
2496 *) ac_site_file1=./$CONFIG_SITE;;
2498 elif test "x$prefix" != xNONE; then
2499 ac_site_file1=$prefix/share/config.site
2500 ac_site_file2=$prefix/etc/config.site
2502 ac_site_file1=$ac_default_prefix/share/config.site
2503 ac_site_file2=$ac_default_prefix/etc/config.site
2505 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2507 test "x$ac_site_file" = xNONE && continue
2508 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2510 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2511 sed 's/^/| /' "$ac_site_file" >&5
2513 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2515 as_fn_error $? "failed to load site
script $ac_site_file
2516 See \
`config.log' for more details" "$LINENO" 5; }
2520 if test -r "$cache_file"; then
2521 # Some versions of bash will fail to source /dev/null (special files
2522 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2523 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2525 $as_echo "$as_me: loading cache $cache_file" >&6;}
2527 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2528 *) . "./$cache_file";;
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2533 $as_echo "$as_me: creating cache $cache_file" >&6;}
2537 # Check that the precious variables saved in the cache have kept the same
2539 ac_cache_corrupted=false
2540 for ac_var in $ac_precious_vars; do
2541 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2542 eval ac_new_set=\$ac_env_${ac_var}_set
2543 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2544 eval ac_new_val=\$ac_env_${ac_var}_value
2545 case $ac_old_set,$ac_new_set in
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2548 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2552 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2556 if test "x$ac_old_val" != "x$ac_new_val"; then
2557 # differences in whitespace do not lead to failure.
2558 ac_old_val_w=`echo x
$ac_old_val`
2559 ac_new_val_w=`echo x
$ac_new_val`
2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2563 ac_cache_corrupted=:
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2566 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567 eval $ac_var=\$ac_old_val
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2575 # Pass precious variables to config.status.
2576 if test "$ac_new_set" = set; then
2578 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2579 *) ac_arg=$ac_var=$ac_new_val ;;
2581 case " $ac_configure_args " in
2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2583 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2587 if $ac_cache_corrupted; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2594 ## -------------------- ##
2595 ## Main body of script. ##
2596 ## -------------------- ##
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2609 if test -f "$ac_dir/install-sh"; then
2611 ac_install_sh="$ac_aux_dir/install-sh -c"
2613 elif test -f "$ac_dir/install.sh"; then
2615 ac_install_sh="$ac_aux_dir/install.sh -c"
2617 elif test -f "$ac_dir/shtool"; then
2619 ac_install_sh="$ac_aux_dir/shtool install -c"
2623 if test -z "$ac_aux_dir"; then
2624 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2636 # Make sure we can run config.sub.
2637 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2638 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2641 $as_echo_n "checking build system type... " >&6; }
2642 if ${ac_cv_build+:} false; then :
2643 $as_echo_n "(cached) " >&6
2645 ac_build_alias=$build_alias
2646 test "x$ac_build_alias" = x &&
2647 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2648 test "x$ac_build_alias" = x &&
2649 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2650 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2651 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2655 $as_echo "$ac_cv_build" >&6; }
2656 case $ac_cv_build in
2658 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2661 ac_save_IFS=$IFS; IFS='-'
2667 # Remember, the first character of IFS is used to create $*,
2668 # except with old shells:
2671 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2675 $as_echo_n "checking host system type... " >&6; }
2676 if ${ac_cv_host+:} false; then :
2677 $as_echo_n "(cached) " >&6
2679 if test "x$host_alias" = x; then
2680 ac_cv_host=$ac_cv_build
2682 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2683 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2688 $as_echo "$ac_cv_host" >&6; }
2691 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2694 ac_save_IFS=$IFS; IFS='-'
2700 # Remember, the first character of IFS is used to create $*,
2701 # except with old shells:
2704 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2708 $as_echo_n "checking target system type... " >&6; }
2709 if ${ac_cv_target+:} false; then :
2710 $as_echo_n "(cached) " >&6
2712 if test "x$target_alias" = x; then
2713 ac_cv_target=$ac_cv_host
2715 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2716 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2721 $as_echo "$ac_cv_target" >&6; }
2722 case $ac_cv_target in
2724 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2726 target=$ac_cv_target
2727 ac_save_IFS=$IFS; IFS='-'
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2737 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2740 # The aliases save the names the user supplied, while $host etc.
2741 # will get canonicalized.
2742 test -n "$target_alias" &&
2743 test "$program_prefix$program_suffix$program_transform_name" = \
2745 program_prefix=${target_alias}-
2748 # Checks for programs.
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2750 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2752 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2753 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2754 $as_echo_n "(cached) " >&6
2756 cat >conftest.make <<\_ACEOF
2759 @echo '@@@%%%=$(MAKE)=@@@%%%'
2761 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2762 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2764 eval ac_cv_prog_make_${ac_make}_set=yes;;
2766 eval ac_cv_prog_make_${ac_make}_set=no;;
2770 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772 $as_echo "yes" >&6; }
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2777 SET_MAKE="MAKE=${MAKE-make}"
2780 # Find a good install program. We prefer a C program (faster),
2781 # so one script is as good as another. But avoid the broken or
2782 # incompatible versions:
2783 # SysV /etc/install, /usr/sbin/install
2784 # SunOS /usr/etc/install
2785 # IRIX /sbin/install
2787 # AmigaOS /C/install, which installs bootblocks on floppy discs
2788 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2789 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2790 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2791 # OS/2's system install, which has a completely different semantic
2792 # ./install, which can be erroneously created by make from ./install.sh.
2793 # Reject install programs that cannot install multiple files.
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2795 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2796 if test -z "$INSTALL"; then
2797 if ${ac_cv_path_install+:} false; then :
2798 $as_echo_n "(cached) " >&6
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 # Account for people who put trailing slashes in PATH elements.
2806 case $as_dir/ in #((
2807 ./ | .// | /[cC]/* | \
2808 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2809 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2812 # OSF1 and SCO ODT 3.0 have their own names for install.
2813 # Don't use installbsd from OSF since it installs stuff as root
2815 for ac_prog in ginstall scoinst install; do
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2818 if test $ac_prog = install &&
2819 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2820 # AIX install. It has an incompatible calling convention.
2822 elif test $ac_prog = install &&
2823 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2824 # program-specific install script used by HP pwplus--don't use.
2827 rm -rf conftest.one conftest.two conftest.dir
2828 echo one > conftest.one
2829 echo two > conftest.two
2831 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2832 test -s conftest.one && test -s conftest.two &&
2833 test -s conftest.dir/conftest.one &&
2834 test -s conftest.dir/conftest.two
2836 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2849 rm -rf conftest.one conftest.two conftest.dir
2852 if test "${ac_cv_path_install+set}" = set; then
2853 INSTALL=$ac_cv_path_install
2855 # As a last resort, use the slow shell script. Don't cache a
2856 # value for INSTALL within a source directory, because that will
2857 # break other packages using the cache if that directory is
2858 # removed, or if the value is a relative name.
2859 INSTALL=$ac_install_sh
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2863 $as_echo "$INSTALL" >&6; }
2865 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2866 # It thinks the first close brace ends the variable substitution.
2867 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2869 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2871 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878 if test -n "$ac_tool_prefix"; then
2879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 if test -n "$CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909 $as_echo "$CC" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2917 if test -z "$ac_cv_prog_CC"; then
2919 # Extract the first word of "gcc", so it can be a program name with args.
2920 set dummy gcc; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2924 $as_echo_n "(cached) " >&6
2926 if test -n "$ac_ct_CC"; then
2927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936 ac_cv_prog_ac_ct_CC="gcc"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949 $as_echo "$ac_ct_CC" >&6; }
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2955 if test "x$ac_ct_CC" = x; then
2958 case $cross_compiling:$ac_tool_warned in
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962 ac_tool_warned=yes ;;
2970 if test -z "$CC"; then
2971 if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}cc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_CC="${ac_tool_prefix}cc"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 if test -n "$CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3011 if test -z "$CC"; then
3012 # Extract the first word of "cc", so it can be a program name with args.
3013 set dummy cc; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if ${ac_cv_prog_CC+:} false; then :
3017 $as_echo_n "(cached) " >&6
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3031 ac_prog_rejected=yes
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 if test $ac_prog_rejected = yes; then
3043 # We found a bogon in the path, so make sure we never use it.
3044 set dummy $ac_cv_prog_CC
3046 if test $# != 0; then
3047 # We chose a different compiler from the bogus one.
3048 # However, it has the same basename, so the bogon will be chosen
3049 # first if we set CC to just the basename; use the full file name.
3051 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3057 if test -n "$CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3067 if test -z "$CC"; then
3068 if test -n "$ac_tool_prefix"; then
3069 for ac_prog in cl.exe
3071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false; then :
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3108 test -n "$CC" && break
3111 if test -z "$CC"; then
3113 for ac_prog in cl.exe
3115 # Extract the first word of "$ac_prog", so it can be a program name with args.
3116 set dummy $ac_prog; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3120 $as_echo_n "(cached) " >&6
3122 if test -n "$ac_ct_CC"; then
3123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_ac_ct_CC="$ac_prog"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3143 if test -n "$ac_ct_CC"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3145 $as_echo "$ac_ct_CC" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3152 test -n "$ac_ct_CC" && break
3155 if test "x$ac_ct_CC" = x; then
3158 case $cross_compiling:$ac_tool_warned in
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3162 ac_tool_warned=yes ;;
3171 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3174 See \
`config.log' for more details" "$LINENO" 5; }
3176 # Provide some information about the compiler.
3177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3180 for ac_option in --version -v -V -qversion; do
3181 { { ac_try="$ac_compiler $ac_option >&5"
3183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3184 *) ac_try_echo
=$ac_try;;
3186 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3190 if test -s conftest.err
; then
3192 ... rest of stderr output deleted ...
3193 10q' conftest.err
>conftest.er1
3194 cat conftest.er1
>&5
3196 rm -f conftest.er1 conftest.err
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }
3201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3212 ac_clean_files_save
=$ac_clean_files
3213 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3214 # Try to create an executable without -o first, disregard a.out.
3215 # It will help us diagnose broken compilers, and finding out an intuition
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3218 $as_echo_n "checking whether the C compiler works... " >&6; }
3219 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3221 # The possible output files:
3222 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3225 for ac_file
in $ac_files
3228 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3229 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3234 if { { ac_try
="$ac_link_default"
3236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_link_default") 2>&5
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; then :
3245 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3246 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3247 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3248 # so that the user can short-circuit this test for compilers unknown to
3250 for ac_file in $ac_files ''
3252 test -f "$ac_file" || continue
3254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3257 # We found the default executable, but exeext='' is most
3261 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3263 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3265 # We set ac_cv_exeext here because the later test for it is not
3266 # safe: cross compilers may not add the suffix if given an `-o'
3267 # argument, so we may need to know it at that point already.
3268 # Even if this section looks crufty: it has the advantage of
3275 test "$ac_cv_exeext" = no && ac_cv_exeext=
3280 if test -z "$ac_file"; then :
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 $as_echo "$as_me: failed program was:" >&5
3284 sed 's
/^
/|
/' conftest.$ac_ext >&5
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3288 as_fn_error 77 "C compiler cannot create executables
3289 See \`config.log
' for more details" "$LINENO" 5; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3295 $as_echo_n "checking for C compiler default output file name... " >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3297 $as_echo "$ac_file" >&6; }
3298 ac_exeext=$ac_cv_exeext
3300 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3301 ac_clean_files=$ac_clean_files_save
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3303 $as_echo_n "checking for suffix of executables... " >&6; }
3304 if { { ac_try="$ac_link"
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link") 2>&5
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3316 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3317 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3319 for ac_file
in conftest.exe conftest conftest.
*; do
3320 test -f "$ac_file" ||
continue
3322 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3323 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3332 See \`config.log' for more details" "$LINENO" 5; }
3334 rm -f conftest conftest
$ac_cv_exeext
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3336 $as_echo "$ac_cv_exeext" >&6; }
3338 rm -f conftest.
$ac_ext
3339 EXEEXT
=$ac_cv_exeext
3341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3347 FILE *f = fopen ("conftest.out", "w");
3348 return ferror (f) || fclose (f) != 0;
3354 ac_clean_files
="$ac_clean_files conftest.out"
3355 # Check that the compiler produces executables we can run. If not, either
3356 # the compiler is broken, or we cross compile.
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3358 $as_echo_n "checking whether we are cross compiling... " >&6; }
3359 if test "$cross_compiling" != yes; then
3360 { { ac_try
="$ac_link"
3362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_link") 2>&5
3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }
3371 if { ac_try='./conftest$ac_cv_exeext'
3372 { { case "(($ac_try" in
3373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3374 *) ac_try_echo
=$ac_try;;
3376 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_try") 2>&5
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; }; then
3384 if test "$cross_compiling" = maybe
; then
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error $?
"cannot run C compiled programs.
3390 If you meant to cross compile, use \`--host'.
3391 See \`config.log' for more details" "$LINENO" 5; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3396 $as_echo "$cross_compiling" >&6; }
3398 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3399 ac_clean_files
=$ac_clean_files_save
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3401 $as_echo_n "checking for suffix of object files... " >&6; }
3402 if ${ac_cv_objext+:} false
; then :
3403 $as_echo_n "(cached) " >&6
3405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3416 rm -f conftest.o conftest.obj
3417 if { { ac_try
="$ac_compile"
3419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_compile") 2>&5
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }; then :
3428 for ac_file in conftest.o conftest.obj conftest.*; do
3429 test -f "$ac_file" || continue;
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3437 $as_echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3443 See \
`config.log' for more details" "$LINENO" 5; }
3445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3448 $as_echo "$ac_cv_objext" >&6; }
3449 OBJEXT=$ac_cv_objext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3452 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3453 if ${ac_cv_c_compiler_gnu+:} false; then :
3454 $as_echo_n "(cached) " >&6
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3470 if ac_fn_c_try_compile "$LINENO"; then :
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3480 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3481 if test $ac_compiler_gnu = yes; then
3486 ac_test_CFLAGS=${CFLAGS+set}
3487 ac_save_CFLAGS=$CFLAGS
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3489 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3490 if ${ac_cv_prog_cc_g+:} false; then :
3491 $as_echo_n "(cached) " >&6
3493 ac_save_c_werror_flag=$ac_c_werror_flag
3494 ac_c_werror_flag=yes
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3508 if ac_fn_c_try_compile "$LINENO"; then :
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3523 if ac_fn_c_try_compile "$LINENO"; then :
3526 ac_c_werror_flag=$ac_save_c_werror_flag
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3539 if ac_fn_c_try_compile "$LINENO"; then :
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3550 $as_echo "$ac_cv_prog_cc_g" >&6; }
3551 if test "$ac_test_CFLAGS" = set; then
3552 CFLAGS=$ac_save_CFLAGS
3553 elif test $ac_cv_prog_cc_g = yes; then
3554 if test "$GCC" = yes; then
3560 if test "$GCC" = yes; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3567 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3568 if ${ac_cv_prog_cc_c89+:} false; then :
3569 $as_echo_n "(cached) " >&6
3571 ac_cv_prog_cc_c89=no
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3578 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3579 struct buf { int x; };
3580 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3581 static char *e (p, i)
3587 static char *f (char * (*g) (char **, int), char **p, ...)
3592 s = g (p, va_arg (v,int));
3597 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3598 function prototypes and stuff, but not '\xHH' hex character constants.
3599 These don't provoke an error unfortunately, instead are silently treated
3600 as 'x'. The following induces an error, until -std is added to get
3601 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3602 array size at least. It's necessary to write '\x00'==0 to get something
3603 that's true only with -std. */
3604 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3606 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3607 inside strings and character constants. */
3609 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3611 int test (int i, double x);
3612 struct s1 {int (*f) (int a);};
3613 struct s2 {int (*f) (double a);};
3614 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3620 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3625 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3626 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3628 CC="$ac_save_CC $ac_arg"
3629 if ac_fn_c_try_compile "$LINENO"; then :
3630 ac_cv_prog_cc_c89=$ac_arg
3632 rm -f core conftest.err conftest.$ac_objext
3633 test "x$ac_cv_prog_cc_c89" != "xno" && break
3635 rm -f conftest.$ac_ext
3640 case "x$ac_cv_prog_cc_c89" in
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3643 $as_echo "none needed" >&6; } ;;
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3646 $as_echo "unsupported" >&6; } ;;
3648 CC="$CC $ac_cv_prog_cc_c89"
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3650 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3652 if test "x$ac_cv_prog_cc_c89" != xno; then :
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 ac_cpp='$CXXCPP $CPPFLAGS'
3664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3667 if test -z "$CXX"; then
3668 if test -n "$CCC"; then
3671 if test -n "$ac_tool_prefix"; then
3672 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_prog_CXX+:} false; then :
3679 $as_echo_n "(cached) " >&6
3681 if test -n "$CXX"; then
3682 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 if test -n "$CXX"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3704 $as_echo "$CXX" >&6; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3711 test -n "$CXX" && break
3714 if test -z "$CXX"; then
3716 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3718 # Extract the first word of "$ac_prog", so it can be a program name with args.
3719 set dummy $ac_prog; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3723 $as_echo_n "(cached) " >&6
3725 if test -n "$ac_ct_CXX"; then
3726 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_ac_ct_CXX="$ac_prog"
3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3746 if test -n "$ac_ct_CXX"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3748 $as_echo "$ac_ct_CXX" >&6; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3755 test -n "$ac_ct_CXX" && break
3758 if test "x$ac_ct_CXX" = x; then
3761 case $cross_compiling:$ac_tool_warned in
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3765 ac_tool_warned=yes ;;
3773 # Provide some information about the compiler.
3774 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3777 for ac_option in --version -v -V -qversion; do
3778 { { ac_try="$ac_compiler $ac_option >&5"
3780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3781 *) ac_try_echo
=$ac_try;;
3783 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3787 if test -s conftest.err
; then
3789 ... rest of stderr output deleted ...
3790 10q' conftest.err
>conftest.er1
3791 cat conftest.er1
>&5
3793 rm -f conftest.er1 conftest.err
3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3799 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3800 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3801 $as_echo_n "(cached) " >&6
3803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3817 if ac_fn_cxx_try_compile
"$LINENO"; then :
3822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3823 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3827 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3828 if test $ac_compiler_gnu = yes; then
3833 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3834 ac_save_CXXFLAGS
=$CXXFLAGS
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3836 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3837 if ${ac_cv_prog_cxx_g+:} false
; then :
3838 $as_echo_n "(cached) " >&6
3840 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3841 ac_cxx_werror_flag
=yes
3844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3855 if ac_fn_cxx_try_compile
"$LINENO"; then :
3856 ac_cv_prog_cxx_g
=yes
3859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3870 if ac_fn_cxx_try_compile
"$LINENO"; then :
3873 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3886 if ac_fn_cxx_try_compile
"$LINENO"; then :
3887 ac_cv_prog_cxx_g
=yes
3889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3894 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3897 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3898 if test "$ac_test_CXXFLAGS" = set; then
3899 CXXFLAGS
=$ac_save_CXXFLAGS
3900 elif test $ac_cv_prog_cxx_g = yes; then
3901 if test "$GXX" = yes; then
3907 if test "$GXX" = yes; then
3914 ac_cpp
='$CPP $CPPFLAGS'
3915 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3921 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_RANLIB+:} false
; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -n "$RANLIB"; then
3928 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir
=.
3935 for ac_exec_ext
in '' $ac_executable_extensions; do
3936 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 RANLIB
=$ac_cv_prog_RANLIB
3948 if test -n "$RANLIB"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3950 $as_echo "$RANLIB" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3958 if test -z "$ac_cv_prog_RANLIB"; then
3959 ac_ct_RANLIB
=$RANLIB
3960 # Extract the first word of "ranlib", so it can be a program name with args.
3961 set dummy ranlib
; ac_word
=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3965 $as_echo_n "(cached) " >&6
3967 if test -n "$ac_ct_RANLIB"; then
3968 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir
=.
3975 for ac_exec_ext
in '' $ac_executable_extensions; do
3976 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3988 if test -n "$ac_ct_RANLIB"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3990 $as_echo "$ac_ct_RANLIB" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3996 if test "x$ac_ct_RANLIB" = x
; then
3999 case $cross_compiling:$ac_tool_warned in
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003 ac_tool_warned
=yes ;;
4005 RANLIB
=$ac_ct_RANLIB
4008 RANLIB
="$ac_cv_prog_RANLIB"
4014 ac_cpp
='$CPP $CPPFLAGS'
4015 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4019 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4020 # On Suns, sometimes $CPP names a directory.
4021 if test -n "$CPP" && test -d "$CPP"; then
4024 if test -z "$CPP"; then
4025 if ${ac_cv_prog_CPP+:} false
; then :
4026 $as_echo_n "(cached) " >&6
4028 # Double quotes because CPP needs to be expanded
4029 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4032 for ac_c_preproc_warn_flag
in '' yes
4034 # Use a header file that comes with gcc, so configuring glibc
4035 # with a fresh cross-compiler works.
4036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4037 # <limits.h> exists even on freestanding compilers.
4038 # On the NeXT, cc -E runs the code through the compiler's parser,
4039 # not just through cpp. "Syntax error" is here to catch this case.
4040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4043 # include <limits.h>
4045 # include <assert.h>
4049 if ac_fn_c_try_cpp
"$LINENO"; then :
4052 # Broken: fails on valid input.
4055 rm -f conftest.err conftest.i conftest.
$ac_ext
4057 # OK, works on sane cases. Now check whether nonexistent headers
4058 # can be detected and how.
4059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #include <ac_nonexistent.h>
4063 if ac_fn_c_try_cpp
"$LINENO"; then :
4064 # Broken: success on invalid input.
4067 # Passes both tests.
4071 rm -f conftest.err conftest.i conftest.
$ac_ext
4074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075 rm -f conftest.i conftest.err conftest.
$ac_ext
4076 if $ac_preproc_ok; then :
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4089 $as_echo "$CPP" >&6; }
4091 for ac_c_preproc_warn_flag
in '' yes
4093 # Use a header file that comes with gcc, so configuring glibc
4094 # with a fresh cross-compiler works.
4095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4096 # <limits.h> exists even on freestanding compilers.
4097 # On the NeXT, cc -E runs the code through the compiler's parser,
4098 # not just through cpp. "Syntax error" is here to catch this case.
4099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4102 # include <limits.h>
4104 # include <assert.h>
4108 if ac_fn_c_try_cpp
"$LINENO"; then :
4111 # Broken: fails on valid input.
4114 rm -f conftest.err conftest.i conftest.
$ac_ext
4116 # OK, works on sane cases. Now check whether nonexistent headers
4117 # can be detected and how.
4118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120 #include <ac_nonexistent.h>
4122 if ac_fn_c_try_cpp
"$LINENO"; then :
4123 # Broken: success on invalid input.
4126 # Passes both tests.
4130 rm -f conftest.err conftest.i conftest.
$ac_ext
4133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4134 rm -f conftest.i conftest.err conftest.
$ac_ext
4135 if $ac_preproc_ok; then :
4138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4140 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4141 See \`config.log' for more details" "$LINENO" 5; }
4145 ac_cpp
='$CPP $CPPFLAGS'
4146 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4152 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4153 if ${ac_cv_path_GREP+:} false
; then :
4154 $as_echo_n "(cached) " >&6
4156 if test -z "$GREP"; then
4157 ac_path_GREP_found
=false
4158 # Loop through the user's path and test for each of PROGNAME-LIST
4159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4160 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4163 test -z "$as_dir" && as_dir
=.
4164 for ac_prog
in grep ggrep
; do
4165 for ac_exec_ext
in '' $ac_executable_extensions; do
4166 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4167 as_fn_executable_p
"$ac_path_GREP" ||
continue
4168 # Check for GNU ac_path_GREP and select it if it is found.
4169 # Check for GNU $ac_path_GREP
4170 case `"$ac_path_GREP" --version 2>&1` in
4172 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4175 $as_echo_n 0123456789 >"conftest.in"
4178 cat "conftest.in" "conftest.in" >"conftest.tmp"
4179 mv "conftest.tmp" "conftest.in"
4180 cp "conftest.in" "conftest.nl"
4181 $as_echo 'GREP' >> "conftest.nl"
4182 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4183 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4184 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4185 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4186 # Best one so far, save it but keep looking for a better one
4187 ac_cv_path_GREP
="$ac_path_GREP"
4188 ac_path_GREP_max
=$ac_count
4190 # 10*(2^10) chars as input seems more than enough
4191 test $ac_count -gt 10 && break
4193 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4196 $ac_path_GREP_found && break 3
4201 if test -z "$ac_cv_path_GREP"; then
4202 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4205 ac_cv_path_GREP
=$GREP
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4210 $as_echo "$ac_cv_path_GREP" >&6; }
4211 GREP
="$ac_cv_path_GREP"
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4215 $as_echo_n "checking for egrep... " >&6; }
4216 if ${ac_cv_path_EGREP+:} false
; then :
4217 $as_echo_n "(cached) " >&6
4219 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4220 then ac_cv_path_EGREP
="$GREP -E"
4222 if test -z "$EGREP"; then
4223 ac_path_EGREP_found
=false
4224 # Loop through the user's path and test for each of PROGNAME-LIST
4225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4226 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4229 test -z "$as_dir" && as_dir
=.
4230 for ac_prog
in egrep; do
4231 for ac_exec_ext
in '' $ac_executable_extensions; do
4232 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4233 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4234 # Check for GNU ac_path_EGREP and select it if it is found.
4235 # Check for GNU $ac_path_EGREP
4236 case `"$ac_path_EGREP" --version 2>&1` in
4238 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4241 $as_echo_n 0123456789 >"conftest.in"
4244 cat "conftest.in" "conftest.in" >"conftest.tmp"
4245 mv "conftest.tmp" "conftest.in"
4246 cp "conftest.in" "conftest.nl"
4247 $as_echo 'EGREP' >> "conftest.nl"
4248 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4249 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4250 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4251 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4252 # Best one so far, save it but keep looking for a better one
4253 ac_cv_path_EGREP
="$ac_path_EGREP"
4254 ac_path_EGREP_max
=$ac_count
4256 # 10*(2^10) chars as input seems more than enough
4257 test $ac_count -gt 10 && break
4259 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4262 $ac_path_EGREP_found && break 3
4267 if test -z "$ac_cv_path_EGREP"; then
4268 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4271 ac_cv_path_EGREP
=$EGREP
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4277 $as_echo "$ac_cv_path_EGREP" >&6; }
4278 EGREP
="$ac_cv_path_EGREP"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4282 $as_echo_n "checking for ANSI C header files... " >&6; }
4283 if ${ac_cv_header_stdc+:} false
; then :
4284 $as_echo_n "(cached) " >&6
4286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4301 if ac_fn_c_try_compile
"$LINENO"; then :
4302 ac_cv_header_stdc
=yes
4304 ac_cv_header_stdc
=no
4306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4308 if test $ac_cv_header_stdc = yes; then
4309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4316 $EGREP "memchr" >/dev
/null
2>&1; then :
4319 ac_cv_header_stdc
=no
4325 if test $ac_cv_header_stdc = yes; then
4326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333 $EGREP "free" >/dev
/null
2>&1; then :
4336 ac_cv_header_stdc
=no
4342 if test $ac_cv_header_stdc = yes; then
4343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4344 if test "$cross_compiling" = yes; then :
4347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4351 #if ((' ' & 0x0FF) == 0x020)
4352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4355 # define ISLOWER(c) \
4356 (('a' <= (c) && (c) <= 'i') \
4357 || ('j' <= (c) && (c) <= 'r') \
4358 || ('s' <= (c) && (c) <= 'z'))
4359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4367 for (i = 0; i < 256; i++)
4368 if (XOR (islower (i), ISLOWER (i))
4369 || toupper (i) != TOUPPER (i))
4374 if ac_fn_c_try_run
"$LINENO"; then :
4377 ac_cv_header_stdc
=no
4379 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4380 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4386 $as_echo "$ac_cv_header_stdc" >&6; }
4387 if test $ac_cv_header_stdc = yes; then
4389 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4393 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4394 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4395 inttypes.h stdint.h unistd.h
4397 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4398 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4400 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4401 cat >>confdefs.h
<<_ACEOF
4402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4411 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4412 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4419 if test "$MINIX" = yes; then
4421 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4424 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4427 $as_echo "#define _MINIX 1" >>confdefs.h
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4433 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4434 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4435 $as_echo_n "(cached) " >&6
4437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4440 # define __EXTENSIONS__ 1
4441 $ac_includes_default
4450 if ac_fn_c_try_compile
"$LINENO"; then :
4451 ac_cv_safe_to_define___extensions__
=yes
4453 ac_cv_safe_to_define___extensions__
=no
4455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4458 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4459 test $ac_cv_safe_to_define___extensions__ = yes &&
4460 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4462 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4464 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4466 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4468 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4471 # Check whether --enable-largefile was given.
4472 if test "${enable_largefile+set}" = set; then :
4473 enableval
=$enable_largefile;
4476 if test "$enable_largefile" != no
; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4479 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4480 if ${ac_cv_sys_largefile_CC+:} false
; then :
4481 $as_echo_n "(cached) " >&6
4483 ac_cv_sys_largefile_CC
=no
4484 if test "$GCC" != yes; then
4487 # IRIX 6.2 and later do not support large files by default,
4488 # so use the C compiler's -n32 option if that helps.
4489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4491 #include <sys/types.h>
4492 /* Check that off_t can represent 2**63 - 1 correctly.
4493 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4494 since some C++ compilers masquerading as C compilers
4495 incorrectly reject 9223372036854775807. */
4496 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4497 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4498 && LARGE_OFF_T % 2147483647 == 1)
4508 if ac_fn_c_try_compile
"$LINENO"; then :
4511 rm -f core conftest.err conftest.
$ac_objext
4513 if ac_fn_c_try_compile
"$LINENO"; then :
4514 ac_cv_sys_largefile_CC
=' -n32'; break
4516 rm -f core conftest.err conftest.
$ac_objext
4520 rm -f conftest.
$ac_ext
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4524 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4525 if test "$ac_cv_sys_largefile_CC" != no
; then
4526 CC
=$CC$ac_cv_sys_largefile_CC
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4530 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4531 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4532 $as_echo_n "(cached) " >&6
4535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 #include <sys/types.h>
4538 /* Check that off_t can represent 2**63 - 1 correctly.
4539 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4540 since some C++ compilers masquerading as C compilers
4541 incorrectly reject 9223372036854775807. */
4542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4544 && LARGE_OFF_T % 2147483647 == 1)
4554 if ac_fn_c_try_compile
"$LINENO"; then :
4555 ac_cv_sys_file_offset_bits
=no
; break
4557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #define _FILE_OFFSET_BITS 64
4561 #include <sys/types.h>
4562 /* Check that off_t can represent 2**63 - 1 correctly.
4563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4564 since some C++ compilers masquerading as C compilers
4565 incorrectly reject 9223372036854775807. */
4566 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4568 && LARGE_OFF_T % 2147483647 == 1)
4578 if ac_fn_c_try_compile
"$LINENO"; then :
4579 ac_cv_sys_file_offset_bits
=64; break
4581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4582 ac_cv_sys_file_offset_bits
=unknown
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4587 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4588 case $ac_cv_sys_file_offset_bits in #(
4591 cat >>confdefs.h
<<_ACEOF
4592 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4597 if test $ac_cv_sys_file_offset_bits = unknown
; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4599 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4600 if ${ac_cv_sys_large_files+:} false
; then :
4601 $as_echo_n "(cached) " >&6
4604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606 #include <sys/types.h>
4607 /* Check that off_t can represent 2**63 - 1 correctly.
4608 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4609 since some C++ compilers masquerading as C compilers
4610 incorrectly reject 9223372036854775807. */
4611 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4612 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4613 && LARGE_OFF_T % 2147483647 == 1)
4623 if ac_fn_c_try_compile
"$LINENO"; then :
4624 ac_cv_sys_large_files
=no
; break
4626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #define _LARGE_FILES 1
4630 #include <sys/types.h>
4631 /* Check that off_t can represent 2**63 - 1 correctly.
4632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4633 since some C++ compilers masquerading as C compilers
4634 incorrectly reject 9223372036854775807. */
4635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4637 && LARGE_OFF_T % 2147483647 == 1)
4647 if ac_fn_c_try_compile
"$LINENO"; then :
4648 ac_cv_sys_large_files
=1; break
4650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4651 ac_cv_sys_large_files
=unknown
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4656 $as_echo "$ac_cv_sys_large_files" >&6; }
4657 case $ac_cv_sys_large_files in #(
4660 cat >>confdefs.h
<<_ACEOF
4661 #define _LARGE_FILES $ac_cv_sys_large_files
4672 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4673 for ac_prog
in aclocal
4675 # Extract the first word of "$ac_prog", so it can be a program name with args.
4676 set dummy
$ac_prog; ac_word
=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_prog_ACLOCAL+:} false
; then :
4680 $as_echo_n "(cached) " >&6
4682 if test -n "$ACLOCAL"; then
4683 ac_cv_prog_ACLOCAL
="$ACLOCAL" # Let the user override the test.
4685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4689 test -z "$as_dir" && as_dir
=.
4690 for ac_exec_ext
in '' $ac_executable_extensions; do
4691 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4692 ac_cv_prog_ACLOCAL
="$ac_prog"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 ACLOCAL
=$ac_cv_prog_ACLOCAL
4703 if test -n "$ACLOCAL"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4705 $as_echo "$ACLOCAL" >&6; }
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4712 test -n "$ACLOCAL" && break
4714 test -n "$ACLOCAL" || ACLOCAL
="$MISSING aclocal"
4716 for ac_prog
in autoconf
4718 # Extract the first word of "$ac_prog", so it can be a program name with args.
4719 set dummy
$ac_prog; ac_word
=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if ${ac_cv_prog_AUTOCONF+:} false
; then :
4723 $as_echo_n "(cached) " >&6
4725 if test -n "$AUTOCONF"; then
4726 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
4728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4732 test -z "$as_dir" && as_dir
=.
4733 for ac_exec_ext
in '' $ac_executable_extensions; do
4734 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_AUTOCONF
="$ac_prog"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 AUTOCONF
=$ac_cv_prog_AUTOCONF
4746 if test -n "$AUTOCONF"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4748 $as_echo "$AUTOCONF" >&6; }
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4755 test -n "$AUTOCONF" && break
4757 test -n "$AUTOCONF" || AUTOCONF
="$MISSING autoconf"
4759 for ac_prog
in autoheader
4761 # Extract the first word of "$ac_prog", so it can be a program name with args.
4762 set dummy
$ac_prog; ac_word
=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_prog_AUTOHEADER+:} false
; then :
4766 $as_echo_n "(cached) " >&6
4768 if test -n "$AUTOHEADER"; then
4769 ac_cv_prog_AUTOHEADER
="$AUTOHEADER" # Let the user override the test.
4771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4775 test -z "$as_dir" && as_dir
=.
4776 for ac_exec_ext
in '' $ac_executable_extensions; do
4777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4778 ac_cv_prog_AUTOHEADER
="$ac_prog"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 AUTOHEADER
=$ac_cv_prog_AUTOHEADER
4789 if test -n "$AUTOHEADER"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4791 $as_echo "$AUTOHEADER" >&6; }
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4798 test -n "$AUTOHEADER" && break
4800 test -n "$AUTOHEADER" || AUTOHEADER
="$MISSING autoheader"
4803 # Figure out what compiler warnings we can enable.
4804 # See config/warnings.m4 for details.
4807 ac_cpp
='$CPP $CPPFLAGS'
4808 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4813 save_CFLAGS
="$CFLAGS"
4814 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings \
4815 -Wmissing-format-attribute; do
4816 # Do the check with the no- prefix removed since gcc silently
4817 # accepts any -Wno-* option on purpose
4818 case $real_option in
4819 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4820 *) option
=$real_option ;;
4822 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4825 $as_echo_n "checking whether $CC supports $option... " >&6; }
4826 if eval \
${$as_acx_Woption+:} false
; then :
4827 $as_echo_n "(cached) " >&6
4830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4841 if ac_fn_c_try_compile
"$LINENO"; then :
4842 eval "$as_acx_Woption=yes"
4844 eval "$as_acx_Woption=no"
4846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4849 eval ac_res
=\$
$as_acx_Woption
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4851 $as_echo "$ac_res" >&6; }
4852 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4853 warn
="$warn${warn:+ }$real_option"
4856 CFLAGS
="$save_CFLAGS"
4858 ac_cpp
='$CPP $CPPFLAGS'
4859 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4865 ac_cpp
='$CPP $CPPFLAGS'
4866 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4871 save_CFLAGS
="$CFLAGS"
4872 for real_option
in -Wstrict-prototypes -Wmissing-prototypes \
4873 -Wold-style-definition -Wc++-compat; do
4874 # Do the check with the no- prefix removed since gcc silently
4875 # accepts any -Wno-* option on purpose
4876 case $real_option in
4877 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4878 *) option
=$real_option ;;
4880 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4883 $as_echo_n "checking whether $CC supports $option... " >&6; }
4884 if eval \
${$as_acx_Woption+:} false
; then :
4885 $as_echo_n "(cached) " >&6
4888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4899 if ac_fn_c_try_compile
"$LINENO"; then :
4900 eval "$as_acx_Woption=yes"
4902 eval "$as_acx_Woption=no"
4904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4907 eval ac_res
=\$
$as_acx_Woption
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4909 $as_echo "$ac_res" >&6; }
4910 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4911 c_warn
="$c_warn${c_warn:+ }$real_option"
4914 CFLAGS
="$save_CFLAGS"
4916 ac_cpp
='$CPP $CPPFLAGS'
4917 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
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
4929 # Do the check with the no- prefix removed from the warning options
4930 # since gcc silently accepts any -Wno-* option on purpose
4931 if test "$GCC" = yes; then :
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
4933 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
4934 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false
; then :
4935 $as_echo_n "(cached) " >&6
4937 save_CFLAGS
="$CFLAGS"
4938 CFLAGS
="-pedantic -Wlong-long"
4939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4950 if ac_fn_c_try_compile
"$LINENO"; then :
4951 acx_cv_prog_cc_pedantic__Wlong_long
=yes
4953 acx_cv_prog_cc_pedantic__Wlong_long
=no
4955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4956 CFLAGS
="$save_CFLAGS"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
4959 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
4960 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
4961 WARN_PEDANTIC
="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4966 ac_cpp
='$CPP $CPPFLAGS'
4967 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4973 # Disable exceptions and RTTI if building with g++
4975 ac_cpp
='$CPP $CPPFLAGS'
4976 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4981 save_CFLAGS
="$CFLAGS"
4982 for real_option
in -fno-exceptions -fno-rtti; do
4983 # Do the check with the no- prefix removed since gcc silently
4984 # accepts any -Wno-* option on purpose
4985 case $real_option in
4986 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4987 *) option
=$real_option ;;
4989 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4992 $as_echo_n "checking whether $CC supports $option... " >&6; }
4993 if eval \
${$as_acx_Woption+:} false
; then :
4994 $as_echo_n "(cached) " >&6
4997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5008 if ac_fn_c_try_compile
"$LINENO"; then :
5009 eval "$as_acx_Woption=yes"
5011 eval "$as_acx_Woption=no"
5013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5016 eval ac_res
=\$
$as_acx_Woption
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5018 $as_echo "$ac_res" >&6; }
5019 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5020 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
5023 CFLAGS
="$save_CFLAGS"
5025 ac_cpp
='$CPP $CPPFLAGS'
5026 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5027 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5028 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5032 # Only enable with --enable-werror-always until existing warnings are
5035 ac_cpp
='$CPP $CPPFLAGS'
5036 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5037 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5038 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5041 # Check whether --enable-werror-always was given.
5042 if test "${enable_werror_always+set}" = set; then :
5043 enableval
=$enable_werror_always;
5045 enable_werror_always
=no
5048 if test $enable_werror_always = yes; then :
5049 WERROR
="$WERROR${WERROR:+ }-Werror"
5053 ac_cpp
='$CPP $CPPFLAGS'
5054 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5060 # Dependency checking.
5061 rm -rf .tst
2>/dev
/null
5062 mkdir .tst
2>/dev
/null
5063 if test -d .tst
; then
5068 rmdir .tst
2>/dev
/null
5070 DEPDIR
="${am__leading_dot}deps"
5072 ac_config_commands
="$ac_config_commands depdir"
5076 ac_cpp
='$CXXCPP $CPPFLAGS'
5077 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5086 if ac_fn_cxx_try_compile
"$LINENO"; then :
5089 as_fn_error $?
"C++ compiler missing or inoperational" "$LINENO" 5
5091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5093 ac_cpp
='$CPP $CPPFLAGS'
5094 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5098 depcc
="$CXX" am_compiler_list
=
5100 am_depcomp
=$ac_aux_dir/depcomp
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5102 $as_echo_n "checking dependency style of $depcc... " >&6; }
5103 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
5104 $as_echo_n "(cached) " >&6
5106 if test -f "$am_depcomp"; then
5107 # We make a subdir and do the tests there. Otherwise we can end up
5108 # making bogus files that we don't know about and never remove. For
5109 # instance it was reported that on HP-UX the gcc test will end up
5110 # making a dummy file named `D' -- because `-MD' means `put the output
5113 # Copy depcomp to subdir because otherwise we won't find it if we're
5114 # using a relative directory.
5115 cp "$am_depcomp" conftest.dir
5117 # We will build objects and dependencies in a subdirectory because
5118 # it helps to detect inapplicable dependency modes. For instance
5119 # both Tru64's cc and ICC support -MD to output dependencies as a
5120 # side effect of compilation, but ICC will put the dependencies in
5121 # the current directory while Tru64 will put them in the object
5125 am_cv_CXX_dependencies_compiler_type
=none
5126 if test "$am_compiler_list" = ""; then
5127 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5129 for depmode
in $am_compiler_list; do
5130 if test $depmode = none
; then break; fi
5132 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5133 # Setup a source with many dependencies, because some compilers
5134 # like to wrap large dependency lists on column 80 (with \), and
5135 # we should not choose a depcomp mode which is confused by this.
5137 # We need to recreate these files for each test, as the compiler may
5138 # overwrite some of them when testing with obscure command lines.
5139 # This happens at least with the AIX C compiler.
5141 for i
in 1 2 3 4 5 6; do
5142 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5143 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5144 # Solaris 8's {/usr,}/bin/sh.
5145 touch sub
/conftst
$i.h
5147 echo "include sub/conftest.Po" > confmf
5149 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5150 # mode. It turns out that the SunPro C++ compiler does not properly
5151 # handle `-M -o', and we need to detect this.
5152 depcmd
="depmode=$depmode \
5153 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5154 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5155 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5156 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5157 if env
$depcmd > conftest.err
2>&1 &&
5158 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5159 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5160 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5161 # icc doesn't choke on unknown options, it will just issue warnings
5162 # or remarks (even with -Werror). So we grep stderr for any message
5163 # that says an option was ignored or not supported.
5164 # When given -MP, icc 7.0 and 7.1 complain thusly:
5165 # icc: Command line warning: ignoring option '-M'; no argument required
5166 # The diagnosis changed in icc 8.0:
5167 # icc: Command line remark: option '-MP' not supported
5168 if (grep 'ignoring option' conftest.err ||
5169 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5170 am_cv_CXX_dependencies_compiler_type
=$depmode
5171 $as_echo "$as_me:$LINENO: success" >&5
5175 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5176 sed -e 's/^/| /' < conftest.err
>&5
5182 am_cv_CXX_dependencies_compiler_type
=none
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5187 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5188 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
5189 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
5190 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5195 # Checks for header files.
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5197 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5198 if ${ac_cv_header_time+:} false
; then :
5199 $as_echo_n "(cached) " >&6
5201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 #include <sys/types.h>
5204 #include <sys/time.h>
5210 if ((struct tm *) 0)
5216 if ac_fn_c_try_compile
"$LINENO"; then :
5217 ac_cv_header_time
=yes
5219 ac_cv_header_time
=no
5221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5224 $as_echo "$ac_cv_header_time" >&6; }
5225 if test $ac_cv_header_time = yes; then
5227 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5232 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5233 if ${gcc_cv_header_string+:} false
; then :
5234 $as_echo_n "(cached) " >&6
5236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5239 #include <strings.h>
5248 if ac_fn_c_try_compile
"$LINENO"; then :
5249 gcc_cv_header_string
=yes
5251 gcc_cv_header_string
=no
5253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5256 $as_echo "$gcc_cv_header_string" >&6; }
5257 if test $gcc_cv_header_string = yes; then
5259 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5264 for ac_header
in locale.h fcntl.h limits.h stddef.h \
5265 stdlib.h
strings.h string.h sys
/file.h unistd.h
5267 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5268 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5269 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5270 cat >>confdefs.h
<<_ACEOF
5271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5279 # Checks for typedefs, structures, and compiler characteristics.
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5281 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5282 if ${ac_cv_c_bigendian+:} false
; then :
5283 $as_echo_n "(cached) " >&6
5285 ac_cv_c_bigendian
=unknown
5286 # See if we're dealing with a universal compiler.
5287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289 #ifndef __APPLE_CC__
5290 not a universal capable compiler
5295 if ac_fn_c_try_compile
"$LINENO"; then :
5297 # Check for potential -arch flags. It is not universal unless
5298 # there are at least two -arch flags with different values.
5301 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5302 if test -n "$ac_prev"; then
5304 i?
86 | x86_64 | ppc | ppc64
)
5305 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5308 ac_cv_c_bigendian
=universal
5314 elif test "x$ac_word" = "x-arch"; then
5319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5320 if test $ac_cv_c_bigendian = unknown
; then
5321 # See if sys/param.h defines the BYTE_ORDER macro.
5322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324 #include <sys/types.h>
5325 #include <sys/param.h>
5330 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5331 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5340 if ac_fn_c_try_compile
"$LINENO"; then :
5341 # It does; now see whether it defined to BIG_ENDIAN or not.
5342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <sys/types.h>
5345 #include <sys/param.h>
5350 #if BYTE_ORDER != BIG_ENDIAN
5358 if ac_fn_c_try_compile
"$LINENO"; then :
5359 ac_cv_c_bigendian
=yes
5361 ac_cv_c_bigendian
=no
5363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5367 if test $ac_cv_c_bigendian = unknown
; then
5368 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5376 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5384 if ac_fn_c_try_compile
"$LINENO"; then :
5385 # It does; now see whether it defined to _BIG_ENDIAN or not.
5386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5401 if ac_fn_c_try_compile
"$LINENO"; then :
5402 ac_cv_c_bigendian
=yes
5404 ac_cv_c_bigendian
=no
5406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5410 if test $ac_cv_c_bigendian = unknown
; then
5411 # Compile a test program.
5412 if test "$cross_compiling" = yes; then :
5413 # Try to guess by grepping values from an object file.
5414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 short int ascii_mm[] =
5417 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5418 short int ascii_ii[] =
5419 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5420 int use_ascii (int i) {
5421 return ascii_mm[i] + ascii_ii[i];
5423 short int ebcdic_ii[] =
5424 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5425 short int ebcdic_mm[] =
5426 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5427 int use_ebcdic (int i) {
5428 return ebcdic_mm[i] + ebcdic_ii[i];
5435 return use_ascii (foo) == use_ebcdic (foo);
5440 if ac_fn_c_try_compile
"$LINENO"; then :
5441 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5442 ac_cv_c_bigendian
=yes
5444 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5445 if test "$ac_cv_c_bigendian" = unknown
; then
5446 ac_cv_c_bigendian
=no
5448 # finding both strings is unlikely to happen, but who knows?
5449 ac_cv_c_bigendian
=unknown
5453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 $ac_includes_default
5462 /* Are we little or big endian? From Harbison&Steele. */
5466 char c[sizeof (long int)];
5469 return u.c[sizeof (long int) - 1] == 1;
5475 if ac_fn_c_try_run
"$LINENO"; then :
5476 ac_cv_c_bigendian
=no
5478 ac_cv_c_bigendian
=yes
5480 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5481 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5487 $as_echo "$ac_cv_c_bigendian" >&6; }
5488 case $ac_cv_c_bigendian in #(
5490 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5496 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5500 as_fn_error $?
"unknown endianness
5501 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5505 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5506 if ${ac_cv_c_const+:} false
; then :
5507 $as_echo_n "(cached) " >&6
5509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5517 /* Ultrix mips cc rejects this sort of thing. */
5518 typedef int charset[2];
5519 const charset cs = { 0, 0 };
5520 /* SunOS 4.1.1 cc rejects this. */
5521 char const *const *pcpcc;
5523 /* NEC SVR4.0.2 mips cc rejects this. */
5524 struct point {int x, y;};
5525 static struct point const zero = {0,0};
5526 /* AIX XL C 1.02.0.0 rejects this.
5527 It does not let you subtract one const X* pointer from another in
5528 an arm of an if-expression whose if-part is not a constant
5530 const char *g = "string";
5531 pcpcc = &g + (g ? g-g : 0);
5532 /* HPUX 7.0 cc rejects these. */
5534 ppc = (char**) pcpcc;
5535 pcpcc = (char const *const *) ppc;
5536 { /* SCO 3.2v4 cc rejects this sort of thing. */
5539 char const *s = 0 ? (char *) 0 : (char const *) 0;
5544 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5546 const int *foo = &x[0];
5549 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5550 typedef const int *iptr;
5554 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5555 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5556 struct s { int j; const int *ap[3]; } bx;
5557 struct s *b = &bx; b->j = 5;
5559 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5563 return !cs[0] && !zero.x;
5570 if ac_fn_c_try_compile
"$LINENO"; then :
5575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5578 $as_echo "$ac_cv_c_const" >&6; }
5579 if test $ac_cv_c_const = no
; then
5581 $as_echo "#define const /**/" >>confdefs.h
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5586 $as_echo_n "checking for inline... " >&6; }
5587 if ${ac_cv_c_inline+:} false
; then :
5588 $as_echo_n "(cached) " >&6
5591 for ac_kw
in inline __inline__ __inline
; do
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5596 static $ac_kw foo_t static_foo () {return 0; }
5597 $ac_kw foo_t foo () {return 0; }
5601 if ac_fn_c_try_compile
"$LINENO"; then :
5602 ac_cv_c_inline
=$ac_kw
5604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5605 test "$ac_cv_c_inline" != no
&& break
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5610 $as_echo "$ac_cv_c_inline" >&6; }
5612 case $ac_cv_c_inline in
5615 case $ac_cv_c_inline in
5617 *) ac_val
=$ac_cv_c_inline;;
5619 cat >>confdefs.h
<<_ACEOF
5621 #define inline $ac_val
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5628 $as_echo_n "checking for obstacks... " >&6; }
5629 if ${ac_cv_func_obstack+:} false
; then :
5630 $as_echo_n "(cached) " >&6
5632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 $ac_includes_default
5635 #include "obstack.h"
5640 #define obstack_chunk_alloc malloc
5641 #define obstack_chunk_free free
5642 obstack_init (&mem);
5643 obstack_free (&mem, 0);
5648 if ac_fn_c_try_link
"$LINENO"; then :
5649 ac_cv_func_obstack
=yes
5651 ac_cv_func_obstack
=no
5653 rm -f core conftest.err conftest.
$ac_objext \
5654 conftest
$ac_exeext conftest.
$ac_ext
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5657 $as_echo "$ac_cv_func_obstack" >&6; }
5658 if test $ac_cv_func_obstack = yes; then
5660 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5663 case " $LIBOBJS " in
5664 *" obstack.$ac_objext "* ) ;;
5665 *) LIBOBJS
="$LIBOBJS obstack.$ac_objext"
5671 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5672 if test "x$ac_cv_type_off_t" = xyes
; then :
5676 cat >>confdefs.h
<<_ACEOF
5677 #define off_t long int
5682 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5683 if test "x$ac_cv_type_size_t" = xyes
; then :
5687 cat >>confdefs.h
<<_ACEOF
5688 #define size_t unsigned int
5693 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5694 if test "x$ac_cv_type_ssize_t" = xyes
; then :
5698 cat >>confdefs.h
<<_ACEOF
5705 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5706 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
5708 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5711 for ac_type
in 'unsigned int' 'unsigned long int' \
5712 'unsigned long long int'; do
5713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 $ac_includes_default
5719 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5721 return test_array [0];
5727 if ac_fn_c_try_compile
"$LINENO"; then :
5729 cat >>confdefs.h
<<_ACEOF
5730 #define uintptr_t $ac_type
5735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5736 test -z "$ac_type" && break
5741 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5742 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
5746 cat >>confdefs.h
<<_ACEOF
5747 #define ptrdiff_t int
5752 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5753 case $ac_cv_c_uint64_t in #(
5757 $as_echo "#define _UINT64_T 1" >>confdefs.h
5760 cat >>confdefs.h
<<_ACEOF
5761 #define uint64_t $ac_cv_c_uint64_t
5766 if test x
"$ac_cv_c_uint64_t" = x
"no"; then
5767 as_fn_error $?
"uint64_t not found" "$LINENO" 5
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5770 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5771 if ${ac_cv_struct_tm+:} false
; then :
5772 $as_echo_n "(cached) " >&6
5774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776 #include <sys/types.h>
5783 int *p = &tm.tm_sec;
5789 if ac_fn_c_try_compile
"$LINENO"; then :
5790 ac_cv_struct_tm
=time.h
5792 ac_cv_struct_tm
=sys
/time.h
5794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5797 $as_echo "$ac_cv_struct_tm" >&6; }
5798 if test $ac_cv_struct_tm = sys
/time.h
; then
5800 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5804 # The cast to long int works around a bug in the HP C Compiler
5805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5807 # This bug is HP SR number 8606223364.
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5809 $as_echo_n "checking size of int... " >&6; }
5810 if ${ac_cv_sizeof_int+:} false
; then :
5811 $as_echo_n "(cached) " >&6
5813 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5816 if test "$ac_cv_type_int" = yes; then
5817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5819 as_fn_error
77 "cannot compute sizeof (int)
5820 See \`config.log' for more details" "$LINENO" 5; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5828 $as_echo "$ac_cv_sizeof_int" >&6; }
5832 cat >>confdefs.h
<<_ACEOF
5833 #define SIZEOF_INT $ac_cv_sizeof_int
5837 # The cast to long int works around a bug in the HP C Compiler
5838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5840 # This bug is HP SR number 8606223364.
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5842 $as_echo_n "checking size of long... " >&6; }
5843 if ${ac_cv_sizeof_long+:} false
; then :
5844 $as_echo_n "(cached) " >&6
5846 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5849 if test "$ac_cv_type_long" = yes; then
5850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 as_fn_error
77 "cannot compute sizeof (long)
5853 See \`config.log' for more details" "$LINENO" 5; }
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5861 $as_echo "$ac_cv_sizeof_long" >&6; }
5865 cat >>confdefs.h
<<_ACEOF
5866 #define SIZEOF_LONG $ac_cv_sizeof_long
5871 for ac_func
in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
5873 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5874 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5875 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5876 cat >>confdefs.h
<<_ACEOF
5877 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5883 ac_fn_c_check_decl
"$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5884 if test "x$ac_cv_have_decl_abort" = xyes
; then :
5890 cat >>confdefs.h
<<_ACEOF
5891 #define HAVE_DECL_ABORT $ac_have_decl
5893 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5894 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
5900 cat >>confdefs.h
<<_ACEOF
5901 #define HAVE_DECL_ASPRINTF $ac_have_decl
5903 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
5904 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
5905 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
5911 cat >>confdefs.h
<<_ACEOF
5912 #define HAVE_DECL_BASENAME $ac_have_decl
5914 ac_fn_c_check_decl
"$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5915 if test "x$ac_cv_have_decl_errno" = xyes
; then :
5921 cat >>confdefs.h
<<_ACEOF
5922 #define HAVE_DECL_ERRNO $ac_have_decl
5924 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
5925 if test "x$ac_cv_have_decl_getopt" = xyes
; then :
5931 cat >>confdefs.h
<<_ACEOF
5932 #define HAVE_DECL_GETOPT $ac_have_decl
5934 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5935 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
5941 cat >>confdefs.h
<<_ACEOF
5942 #define HAVE_DECL_VASPRINTF $ac_have_decl
5945 ac_fn_c_check_decl
"$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5946 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes
; then :
5952 cat >>confdefs.h
<<_ACEOF
5953 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5955 ac_fn_c_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5956 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
; then :
5962 cat >>confdefs.h
<<_ACEOF
5963 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5965 ac_fn_c_check_decl
"$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5966 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes
; then :
5972 cat >>confdefs.h
<<_ACEOF
5973 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5975 ac_fn_c_check_decl
"$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5976 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes
; then :
5982 cat >>confdefs.h
<<_ACEOF
5983 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5985 ac_fn_c_check_decl
"$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5986 if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes
; then :
5992 cat >>confdefs.h
<<_ACEOF
5993 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5995 ac_fn_c_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5996 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
; then :
6002 cat >>confdefs.h
<<_ACEOF
6003 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6005 ac_fn_c_check_decl
"$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6006 if test "x$ac_cv_have_decl_fileno_unlocked" = xyes
; then :
6012 cat >>confdefs.h
<<_ACEOF
6013 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6015 ac_fn_c_check_decl
"$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6016 if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes
; then :
6022 cat >>confdefs.h
<<_ACEOF
6023 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6025 ac_fn_c_check_decl
"$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6026 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes
; then :
6032 cat >>confdefs.h
<<_ACEOF
6033 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6035 ac_fn_c_check_decl
"$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6036 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes
; then :
6042 cat >>confdefs.h
<<_ACEOF
6043 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6045 ac_fn_c_check_decl
"$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6046 if test "x$ac_cv_have_decl_fread_unlocked" = xyes
; then :
6052 cat >>confdefs.h
<<_ACEOF
6053 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6055 ac_fn_c_check_decl
"$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6056 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes
; then :
6062 cat >>confdefs.h
<<_ACEOF
6063 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6065 ac_fn_c_check_decl
"$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6066 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes
; then :
6072 cat >>confdefs.h
<<_ACEOF
6073 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6075 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6076 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
6082 cat >>confdefs.h
<<_ACEOF
6083 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6085 ac_fn_c_check_decl
"$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6086 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes
; then :
6092 cat >>confdefs.h
<<_ACEOF
6093 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6095 ac_fn_c_check_decl
"$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6096 if test "x$ac_cv_have_decl_putc_unlocked" = xyes
; then :
6102 cat >>confdefs.h
<<_ACEOF
6103 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6107 # Checks for library functions.
6108 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6109 # for constant arguments. Useless!
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6111 $as_echo_n "checking for working alloca.h... " >&6; }
6112 if ${ac_cv_working_alloca_h+:} false
; then :
6113 $as_echo_n "(cached) " >&6
6115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6121 char *p = (char *) alloca (2 * sizeof (int));
6127 if ac_fn_c_try_link
"$LINENO"; then :
6128 ac_cv_working_alloca_h
=yes
6130 ac_cv_working_alloca_h
=no
6132 rm -f core conftest.err conftest.
$ac_objext \
6133 conftest
$ac_exeext conftest.
$ac_ext
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6136 $as_echo "$ac_cv_working_alloca_h" >&6; }
6137 if test $ac_cv_working_alloca_h = yes; then
6139 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6144 $as_echo_n "checking for alloca... " >&6; }
6145 if ${ac_cv_func_alloca_works+:} false
; then :
6146 $as_echo_n "(cached) " >&6
6148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6151 # define alloca __builtin_alloca
6154 # include <malloc.h>
6155 # define alloca _alloca
6157 # ifdef HAVE_ALLOCA_H
6158 # include <alloca.h>
6163 # ifndef alloca /* predefined by HP cc +Olibcalls */
6164 void *alloca (size_t);
6174 char *p = (char *) alloca (1);
6180 if ac_fn_c_try_link
"$LINENO"; then :
6181 ac_cv_func_alloca_works
=yes
6183 ac_cv_func_alloca_works
=no
6185 rm -f core conftest.err conftest.
$ac_objext \
6186 conftest
$ac_exeext conftest.
$ac_ext
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6189 $as_echo "$ac_cv_func_alloca_works" >&6; }
6191 if test $ac_cv_func_alloca_works = yes; then
6193 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6196 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6197 # that cause trouble. Some versions do not even contain alloca or
6198 # contain a buggy version. If you still want to use their alloca,
6199 # use ar to extract alloca.o from them instead of compiling alloca.c.
6201 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6203 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6207 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6208 if ${ac_cv_os_cray+:} false
; then :
6209 $as_echo_n "(cached) " >&6
6211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 #if defined CRAY && ! defined CRAY2
6220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6221 $EGREP "webecray" >/dev
/null
2>&1; then :
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6230 $as_echo "$ac_cv_os_cray" >&6; }
6231 if test $ac_cv_os_cray = yes; then
6232 for ac_func
in _getb67 GETB67 getb67
; do
6233 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6234 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6235 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6237 cat >>confdefs.h
<<_ACEOF
6238 #define CRAY_STACKSEG_END $ac_func
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6248 $as_echo_n "checking stack direction for C alloca... " >&6; }
6249 if ${ac_cv_c_stack_direction+:} false
; then :
6250 $as_echo_n "(cached) " >&6
6252 if test "$cross_compiling" = yes; then :
6253 ac_cv_c_stack_direction
=0
6255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 $ac_includes_default
6259 find_stack_direction (int *addr, int depth)
6264 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6265 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6270 main (int argc, char **argv)
6272 return find_stack_direction (0, argc + !argv + 20) < 0;
6275 if ac_fn_c_try_run
"$LINENO"; then :
6276 ac_cv_c_stack_direction
=1
6278 ac_cv_c_stack_direction
=-1
6280 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6281 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6286 $as_echo "$ac_cv_c_stack_direction" >&6; }
6287 cat >>confdefs.h
<<_ACEOF
6288 #define STACK_DIRECTION $ac_cv_c_stack_direction
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6295 $as_echo_n "checking for ANSI C header files... " >&6; }
6296 if ${ac_cv_header_stdc+:} false
; then :
6297 $as_echo_n "(cached) " >&6
6299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6314 if ac_fn_c_try_compile
"$LINENO"; then :
6315 ac_cv_header_stdc
=yes
6317 ac_cv_header_stdc
=no
6319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6321 if test $ac_cv_header_stdc = yes; then
6322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6329 $EGREP "memchr" >/dev
/null
2>&1; then :
6332 ac_cv_header_stdc
=no
6338 if test $ac_cv_header_stdc = yes; then
6339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6346 $EGREP "free" >/dev
/null
2>&1; then :
6349 ac_cv_header_stdc
=no
6355 if test $ac_cv_header_stdc = yes; then
6356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6357 if test "$cross_compiling" = yes; then :
6360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6364 #if ((' ' & 0x0FF) == 0x020)
6365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6368 # define ISLOWER(c) \
6369 (('a' <= (c) && (c) <= 'i') \
6370 || ('j' <= (c) && (c) <= 'r') \
6371 || ('s' <= (c) && (c) <= 'z'))
6372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6380 for (i = 0; i < 256; i++)
6381 if (XOR (islower (i), ISLOWER (i))
6382 || toupper (i) != TOUPPER (i))
6387 if ac_fn_c_try_run
"$LINENO"; then :
6390 ac_cv_header_stdc
=no
6392 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6393 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6399 $as_echo "$ac_cv_header_stdc" >&6; }
6400 if test $ac_cv_header_stdc = yes; then
6402 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6408 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6409 if ${am_cv_langinfo_codeset+:} false
; then :
6410 $as_echo_n "(cached) " >&6
6412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6414 #include <langinfo.h>
6418 char* cs = nl_langinfo(CODESET);
6423 if ac_fn_c_try_link
"$LINENO"; then :
6424 am_cv_langinfo_codeset
=yes
6426 am_cv_langinfo_codeset
=no
6428 rm -f core conftest.err conftest.
$ac_objext \
6429 conftest
$ac_exeext conftest.
$ac_ext
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6433 $as_echo "$am_cv_langinfo_codeset" >&6; }
6434 if test $am_cv_langinfo_codeset = yes; then
6436 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6440 # If we haven't got the data from the intl directory,
6441 # assume NLS is disabled.
6450 if test -f ..
/intl
/config.intl
; then
6451 . ..
/intl
/config.intl
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6454 $as_echo_n "checking whether NLS is requested... " >&6; }
6455 if test x
"$USE_NLS" != xyes
; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6460 $as_echo "yes" >&6; }
6462 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6466 $as_echo_n "checking for catalogs to be installed... " >&6; }
6467 # Look for .po and .gmo files in the source directory.
6470 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6471 # If there aren't any .gmo files the shell will give us the
6472 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6474 case "$cat" in *\
**)
6477 # The quadruple backslash is collapsed to a double backslash
6478 # by the backticks, then collapsed again by the double quotes,
6479 # leaving us with one backslash in the sed expression (right
6480 # before the dot that mustn't act as a wildcard).
6481 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6482 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6483 # The user is allowed to set LINGUAS to a list of languages to
6484 # install catalogs for. If it's empty that means "all of them."
6485 if test "x$LINGUAS" = x
; then
6486 CATALOGS
="$CATALOGS $cat"
6487 XLINGUAS
="$XLINGUAS $lang"
6489 case "$LINGUAS" in *$lang*)
6490 CATALOGS
="$CATALOGS $cat"
6491 XLINGUAS
="$XLINGUAS $lang"
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6498 $as_echo "$LINGUAS" >&6; }
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6512 $as_echo_n "checking for uchar... " >&6; }
6513 if ${gcc_cv_type_uchar+:} false
; then :
6514 $as_echo_n "(cached) " >&6
6516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6519 #include <sys/types.h>
6524 if ((uchar *)0) return 0;
6525 if (sizeof(uchar)) return 0;
6530 if ac_fn_c_try_compile
"$LINENO"; then :
6531 ac_cv_type_uchar
=yes
6535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6538 $as_echo "$gcc_cv_type_uchar" >&6; }
6539 if test $ac_cv_type_uchar = yes; then
6541 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6545 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6546 # iconv() prototype.
6548 ac_cpp
='$CXXCPP $CPPFLAGS'
6549 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6550 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6551 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6554 if test "X$prefix" = "XNONE"; then
6555 acl_final_prefix
="$ac_default_prefix"
6557 acl_final_prefix
="$prefix"
6559 if test "X$exec_prefix" = "XNONE"; then
6560 acl_final_exec_prefix
='${prefix}'
6562 acl_final_exec_prefix
="$exec_prefix"
6564 acl_save_prefix
="$prefix"
6565 prefix
="$acl_final_prefix"
6566 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6567 prefix
="$acl_save_prefix"
6570 # Check whether --with-gnu-ld was given.
6571 if test "${with_gnu_ld+set}" = set; then :
6572 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6577 # Prepare PATH_SEPARATOR.
6578 # The user is always right.
6579 if test "${PATH_SEPARATOR+set}" != set; then
6580 echo "#! /bin/sh" >conf$$.sh
6581 echo "exit 0" >>conf$$.sh
6583 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6591 if test "$GCC" = yes; then
6592 # Check if gcc -print-prog-name=ld gives a path.
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6594 $as_echo_n "checking for ld used by GCC... " >&6; }
6597 # gcc leaves a trailing carriage return which upsets mingw
6598 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6600 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6603 # Accept absolute paths.
6604 [\\/]* |
[A-Za-z
]:[\\/]*)
6605 re_direlt
='/[^/][^/]*/\.\./'
6606 # Canonicalize the path of ld
6607 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6608 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6609 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6611 test -z "$LD" && LD
="$ac_prog"
6614 # If it fails, then pretend we aren't using GCC.
6618 # If it is relative, then search for the first ld in PATH.
6622 elif test "$with_gnu_ld" = yes; then
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6624 $as_echo_n "checking for GNU ld... " >&6; }
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6627 $as_echo_n "checking for non-GNU ld... " >&6; }
6629 if ${acl_cv_path_LD+:} false
; then :
6630 $as_echo_n "(cached) " >&6
6632 if test -z "$LD"; then
6633 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6634 for ac_dir
in $PATH; do
6635 test -z "$ac_dir" && ac_dir
=.
6636 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6637 acl_cv_path_LD
="$ac_dir/$ac_prog"
6638 # Check to see if the program is GNU ld. I'd rather use --version,
6639 # but apparently some GNU ld's only accept -v.
6640 # Break only if it was the GNU/non-GNU ld that we prefer.
6641 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6642 test "$with_gnu_ld" != no
&& break
6644 test "$with_gnu_ld" != yes && break
6650 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6654 LD
="$acl_cv_path_LD"
6655 if test -n "$LD"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6657 $as_echo "$LD" >&6; }
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6662 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6664 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6665 if ${acl_cv_prog_gnu_ld+:} false
; then :
6666 $as_echo_n "(cached) " >&6
6668 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6669 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6670 acl_cv_prog_gnu_ld
=yes
6672 acl_cv_prog_gnu_ld
=no
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6676 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6677 with_gnu_ld
=$acl_cv_prog_gnu_ld
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6682 $as_echo_n "checking for shared library run path origin... " >&6; }
6683 if ${acl_cv_rpath+:} false
; then :
6684 $as_echo_n "(cached) " >&6
6687 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6688 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6695 $as_echo "$acl_cv_rpath" >&6; }
6697 libext
="$acl_cv_libext"
6698 shlibext
="$acl_cv_shlibext"
6699 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6700 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6701 hardcode_direct
="$acl_cv_hardcode_direct"
6702 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6703 # Check whether --enable-rpath was given.
6704 if test "${enable_rpath+set}" = set; then :
6705 enableval
=$enable_rpath; :
6719 acl_save_prefix
="$prefix"
6720 prefix
="$acl_final_prefix"
6721 acl_save_exec_prefix
="$exec_prefix"
6722 exec_prefix
="$acl_final_exec_prefix"
6724 eval additional_includedir
=\"$includedir\"
6725 eval additional_libdir
=\"$libdir\"
6727 exec_prefix
="$acl_save_exec_prefix"
6728 prefix
="$acl_save_prefix"
6731 # Check whether --with-libiconv-prefix was given.
6732 if test "${with_libiconv_prefix+set}" = set; then :
6733 withval
=$with_libiconv_prefix;
6734 if test "X$withval" = "Xno"; then
6737 if test "X$withval" = "X"; then
6739 acl_save_prefix
="$prefix"
6740 prefix
="$acl_final_prefix"
6741 acl_save_exec_prefix
="$exec_prefix"
6742 exec_prefix
="$acl_final_exec_prefix"
6744 eval additional_includedir
=\"$includedir\"
6745 eval additional_libdir
=\"$libdir\"
6747 exec_prefix
="$acl_save_exec_prefix"
6748 prefix
="$acl_save_prefix"
6751 additional_includedir
="$withval/include"
6752 additional_libdir
="$withval/lib"
6759 # Check whether --with-libiconv-type was given.
6760 if test "${with_libiconv_type+set}" = set; then :
6761 withval
=$with_libiconv_type; with_libiconv_type
=$withval
6763 with_libiconv_type
=auto
6766 lib_type
=`eval echo \$with_libiconv_type`
6773 names_already_handled
=
6774 names_next_round
='iconv '
6775 while test -n "$names_next_round"; do
6776 names_this_round
="$names_next_round"
6778 for name
in $names_this_round; do
6780 for n
in $names_already_handled; do
6781 if test "$n" = "$name"; then
6786 if test -z "$already_handled"; then
6787 names_already_handled
="$names_already_handled $name"
6788 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6789 eval value
=\"\
$HAVE_LIB$uppername\"
6790 if test -n "$value"; then
6791 if test "$value" = yes; then
6792 eval value
=\"\
$LIB$uppername\"
6793 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
6794 eval value
=\"\
$LTLIB$uppername\"
6795 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
6804 if test $use_additional = yes; then
6805 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
6806 found_dir
="$additional_libdir"
6807 found_so
="$additional_libdir/lib$name.$shlibext"
6808 if test -f "$additional_libdir/lib$name.la"; then
6809 found_la
="$additional_libdir/lib$name.la"
6811 elif test x
$lib_type != xshared
; then
6812 if test -f "$additional_libdir/lib$name.$libext"; then
6813 found_dir
="$additional_libdir"
6814 found_a
="$additional_libdir/lib$name.$libext"
6815 if test -f "$additional_libdir/lib$name.la"; then
6816 found_la
="$additional_libdir/lib$name.la"
6821 if test "X$found_dir" = "X"; then
6822 for x
in $LDFLAGS $LTLIBICONV; do
6824 acl_save_prefix
="$prefix"
6825 prefix
="$acl_final_prefix"
6826 acl_save_exec_prefix
="$exec_prefix"
6827 exec_prefix
="$acl_final_exec_prefix"
6829 exec_prefix
="$acl_save_exec_prefix"
6830 prefix
="$acl_save_prefix"
6834 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6835 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
6837 found_so
="$dir/lib$name.$shlibext"
6838 if test -f "$dir/lib$name.la"; then
6839 found_la
="$dir/lib$name.la"
6841 elif test x
$lib_type != xshared
; then
6842 if test -f "$dir/lib$name.$libext"; then
6844 found_a
="$dir/lib$name.$libext"
6845 if test -f "$dir/lib$name.la"; then
6846 found_la
="$dir/lib$name.la"
6852 if test "X$found_dir" != "X"; then
6857 if test "X$found_dir" != "X"; then
6858 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6859 if test "X$found_so" != "X"; then
6860 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
6861 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6864 for x
in $ltrpathdirs; do
6865 if test "X$x" = "X$found_dir"; then
6870 if test -z "$haveit"; then
6871 ltrpathdirs
="$ltrpathdirs $found_dir"
6873 if test "$hardcode_direct" = yes; then
6874 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6876 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6877 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6879 for x
in $rpathdirs; do
6880 if test "X$x" = "X$found_dir"; then
6885 if test -z "$haveit"; then
6886 rpathdirs
="$rpathdirs $found_dir"
6890 for x
in $LDFLAGS $LIBICONV; do
6892 acl_save_prefix
="$prefix"
6893 prefix
="$acl_final_prefix"
6894 acl_save_exec_prefix
="$exec_prefix"
6895 exec_prefix
="$acl_final_exec_prefix"
6897 exec_prefix
="$acl_save_exec_prefix"
6898 prefix
="$acl_save_prefix"
6900 if test "X$x" = "X-L$found_dir"; then
6905 if test -z "$haveit"; then
6906 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6908 if test "$hardcode_minus_L" != no
; then
6909 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6911 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
6917 if test "X$found_a" != "X"; then
6918 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
6920 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6923 additional_includedir
=
6924 case "$found_dir" in
6926 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6927 additional_includedir
="$basedir/include"
6930 if test "X$additional_includedir" != "X"; then
6931 if test "X$additional_includedir" != "X/usr/include"; then
6933 if test "X$additional_includedir" = "X/usr/local/include"; then
6934 if test -n "$GCC"; then
6936 linux
*) haveit
=yes;;
6940 if test -z "$haveit"; then
6941 for x
in $CPPFLAGS $INCICONV; do
6943 acl_save_prefix
="$prefix"
6944 prefix
="$acl_final_prefix"
6945 acl_save_exec_prefix
="$exec_prefix"
6946 exec_prefix
="$acl_final_exec_prefix"
6948 exec_prefix
="$acl_save_exec_prefix"
6949 prefix
="$acl_save_prefix"
6951 if test "X$x" = "X-I$additional_includedir"; then
6956 if test -z "$haveit"; then
6957 if test -d "$additional_includedir"; then
6958 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6964 if test -n "$found_la"; then
6965 save_libdir
="$libdir"
6967 */* |
*\\*) .
"$found_la" ;;
6968 *) .
"./$found_la" ;;
6970 libdir
="$save_libdir"
6971 for dep
in $dependency_libs; do
6974 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6975 if test "X$additional_libdir" != "X/usr/lib"; then
6977 if test "X$additional_libdir" = "X/usr/local/lib"; then
6978 if test -n "$GCC"; then
6980 linux
*) haveit
=yes;;
6984 if test -z "$haveit"; then
6986 for x
in $LDFLAGS $LIBICONV; do
6988 acl_save_prefix
="$prefix"
6989 prefix
="$acl_final_prefix"
6990 acl_save_exec_prefix
="$exec_prefix"
6991 exec_prefix
="$acl_final_exec_prefix"
6993 exec_prefix
="$acl_save_exec_prefix"
6994 prefix
="$acl_save_prefix"
6996 if test "X$x" = "X-L$additional_libdir"; then
7001 if test -z "$haveit"; then
7002 if test -d "$additional_libdir"; then
7003 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7007 for x
in $LDFLAGS $LTLIBICONV; do
7009 acl_save_prefix
="$prefix"
7010 prefix
="$acl_final_prefix"
7011 acl_save_exec_prefix
="$exec_prefix"
7012 exec_prefix
="$acl_final_exec_prefix"
7014 exec_prefix
="$acl_save_exec_prefix"
7015 prefix
="$acl_save_prefix"
7017 if test "X$x" = "X-L$additional_libdir"; then
7022 if test -z "$haveit"; then
7023 if test -d "$additional_libdir"; then
7024 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7031 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7032 if test "$enable_rpath" != no
; then
7034 for x
in $rpathdirs; do
7035 if test "X$x" = "X$dir"; then
7040 if test -z "$haveit"; then
7041 rpathdirs
="$rpathdirs $dir"
7044 for x
in $ltrpathdirs; do
7045 if test "X$x" = "X$dir"; then
7050 if test -z "$haveit"; then
7051 ltrpathdirs
="$ltrpathdirs $dir"
7056 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7059 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7062 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7063 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7069 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
7070 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7071 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7073 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7074 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7081 if test "X$rpathdirs" != "X"; then
7082 if test -n "$hardcode_libdir_separator"; then
7084 for found_dir
in $rpathdirs; do
7085 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7087 acl_save_libdir
="$libdir"
7089 eval flag
=\"$hardcode_libdir_flag_spec\"
7090 libdir
="$acl_save_libdir"
7091 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7093 for found_dir
in $rpathdirs; do
7094 acl_save_libdir
="$libdir"
7096 eval flag
=\"$hardcode_libdir_flag_spec\"
7097 libdir
="$acl_save_libdir"
7098 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7102 if test "X$ltrpathdirs" != "X"; then
7103 for found_dir
in $ltrpathdirs; do
7104 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7115 $as_echo_n "checking for iconv... " >&6; }
7116 if ${am_cv_func_iconv+:} false
; then :
7117 $as_echo_n "(cached) " >&6
7120 am_cv_func_iconv
="no, consider installing GNU libiconv"
7122 am_save_CPPFLAGS
="$CPPFLAGS"
7123 CPPFLAGS
="$CPPFLAGS $INCICONV"
7124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7131 iconv_t cd = iconv_open("","");
7132 iconv(cd,NULL,NULL,NULL,NULL);
7138 if ac_fn_cxx_try_link
"$LINENO"; then :
7139 am_cv_func_iconv
=yes
7141 rm -f core conftest.err conftest.
$ac_objext \
7142 conftest
$ac_exeext conftest.
$ac_ext
7143 CPPFLAGS
="$am_save_CPPFLAGS"
7145 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
7146 for _libs
in .libs _libs
; do
7147 am_save_CPPFLAGS
="$CPPFLAGS"
7148 am_save_LIBS
="$LIBS"
7149 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
7150 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7158 iconv_t cd = iconv_open("","");
7159 iconv(cd,NULL,NULL,NULL,NULL);
7165 if ac_fn_cxx_try_link
"$LINENO"; then :
7166 INCICONV
="-I../libiconv/include"
7167 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
7168 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
7170 am_cv_func_iconv
=yes
7172 rm -f core conftest.err conftest.
$ac_objext \
7173 conftest
$ac_exeext conftest.
$ac_ext
7174 CPPFLAGS
="$am_save_CPPFLAGS"
7175 LIBS
="$am_save_LIBS"
7176 if test "$am_cv_func_iconv" = "yes"; then
7182 if test "$am_cv_func_iconv" != yes; then
7183 am_save_CPPFLAGS
="$CPPFLAGS"
7184 am_save_LIBS
="$LIBS"
7185 CPPFLAGS
="$CPPFLAGS $INCICONV"
7186 LIBS
="$LIBS $LIBICONV"
7187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7194 iconv_t cd = iconv_open("","");
7195 iconv(cd,NULL,NULL,NULL,NULL);
7201 if ac_fn_cxx_try_link
"$LINENO"; then :
7203 am_cv_func_iconv
=yes
7205 rm -f core conftest.err conftest.
$ac_objext \
7206 conftest
$ac_exeext conftest.
$ac_ext
7207 CPPFLAGS
="$am_save_CPPFLAGS"
7208 LIBS
="$am_save_LIBS"
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7213 $as_echo "$am_cv_func_iconv" >&6; }
7214 if test "$am_cv_func_iconv" = yes; then
7216 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7219 if test "$am_cv_lib_iconv" = yes; then
7221 for element
in $INCICONV; do
7223 for x
in $CPPFLAGS; do
7225 acl_save_prefix
="$prefix"
7226 prefix
="$acl_final_prefix"
7227 acl_save_exec_prefix
="$exec_prefix"
7228 exec_prefix
="$acl_final_exec_prefix"
7230 exec_prefix
="$acl_save_exec_prefix"
7231 prefix
="$acl_save_prefix"
7233 if test "X$x" = "X$element"; then
7238 if test -z "$haveit"; then
7239 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7244 $as_echo_n "checking how to link with libiconv... " >&6; }
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7246 $as_echo "$LIBICONV" >&6; }
7254 if test "$am_cv_func_iconv" = yes; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7256 $as_echo_n "checking for iconv declaration... " >&6; }
7257 if ${am_cv_proto_iconv+:} false
; then :
7258 $as_echo_n "(cached) " >&6
7261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7270 #if defined(__STDC__) || defined(__cplusplus)
7271 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7284 if ac_fn_cxx_try_compile
"$LINENO"; then :
7285 am_cv_proto_iconv_arg1
=""
7287 am_cv_proto_iconv_arg1
="const"
7289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7290 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7293 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7295 }$am_cv_proto_iconv" >&5
7297 }$am_cv_proto_iconv" >&6; }
7299 cat >>confdefs.h
<<_ACEOF
7300 #define ICONV_CONST $am_cv_proto_iconv_arg1
7306 ac_cpp
='$CPP $CPPFLAGS'
7307 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7312 # More defines and substitutions.
7313 PACKAGE
="$PACKAGE_TARNAME"
7315 cat >>confdefs.h
<<_ACEOF
7316 #define PACKAGE "$PACKAGE"
7321 if test "x$enable_nls" != xno
; then
7322 USED_CATALOGS
='$(CATALOGS)'
7328 # Check whether --enable-maintainer-mode was given.
7329 if test "${enable_maintainer_mode+set}" = set; then :
7330 enableval
=$enable_maintainer_mode;
7332 enable_maintainer_mode
=no
7336 if test "x$enable_maintainer_mode" = xno
; then
7343 # Enable expensive internal checks
7345 if test -f $srcdir/..
/gcc
/DEV-PHASE \
7346 && test x
"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental
; then
7350 # Check whether --enable-checking was given.
7351 if test "${enable_checking+set}" = set; then :
7352 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7355 # Determine the default checks.
7356 if test x
$is_release = x
; then
7357 ac_checking_flags
=yes
7359 ac_checking_flags
=release
7363 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7364 for check
in release
$ac_checking_flags
7367 # these set all the flags to specific states
7368 yes|all
) ac_checking
=1 ; ac_assert_checking
=1 ; ac_valgrind_checking
= ;;
7369 no|none
) ac_checking
= ; ac_assert_checking
= ; ac_valgrind_checking
= ;;
7370 release
) ac_checking
= ; ac_assert_checking
=1 ; ac_valgrind_checking
= ;;
7371 # these enable particular checks
7372 assert
) ac_assert_checking
=1 ;;
7373 misc
) ac_checking
=1 ;;
7374 valgrind
) ac_valgrind_checking
=1 ;;
7381 if test x
$ac_checking != x
; then
7383 $as_echo "#define CHECKING_P 1" >>confdefs.h
7386 $as_echo "#define CHECKING_P 0" >>confdefs.h
7390 if test x
$ac_assert_checking != x
; then
7392 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7396 if test x
$ac_valgrind_checking != x
; then
7398 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7402 # Check whether --enable-canonical-system-headers was given.
7403 if test "${enable_canonical_system_headers+set}" = set; then :
7404 enableval
=$enable_canonical_system_headers;
7406 enable_canonical_system_headers
=yes
7409 if test $enable_canonical_system_headers != no
; then
7411 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7423 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7428 if ac_fn_c_try_compile
"$LINENO"; then :
7430 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7436 # Enable --enable-host-shared.
7437 # Check whether --enable-host-shared was given.
7438 if test "${enable_host_shared+set}" = set; then :
7439 enableval
=$enable_host_shared; PICFLAG
=-fPIC
7446 # Check whether --enable-valgrind-annotations was given.
7447 if test "${enable_valgrind_annotations+set}" = set; then :
7448 enableval
=$enable_valgrind_annotations;
7450 enable_valgrind_annotations
=no
7453 if test x
$enable_valgrind_annotations != xno \
7454 ||
test x
$ac_valgrind_checking != x
; then
7455 if (test $have_valgrind_h = no \
7456 && test $gcc_cv_header_memcheck_h = no \
7457 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7458 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7461 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7467 ac_config_headers
="$ac_config_headers config.h:config.in"
7469 ac_config_files
="$ac_config_files Makefile"
7471 cat >confcache
<<\_ACEOF
7472 # This file is a shell script that caches the results of configure
7473 # tests run on this system so they can be shared between configure
7474 # scripts and configure runs, see configure's option --config-cache.
7475 # It is not useful on other systems. If it contains results you don't
7476 # want to keep, you may remove or edit it.
7478 # config.status only pays attention to the cache file if you give it
7479 # the --recheck option to rerun configure.
7481 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7482 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7487 # The following way of writing the cache mishandles newlines in values,
7488 # but we know of no workaround that is simple, portable, and efficient.
7489 # So, we kill variables containing newlines.
7490 # Ultrix sh set writes to stderr and can't be redirected directly,
7491 # and sets the high bit in the cache file unless we assign to the vars.
7493 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7494 eval ac_val
=\$
$ac_var
7498 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7499 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7502 _ | IFS | as_nl
) ;; #(
7503 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7504 *) { eval $ac_var=; unset $ac_var;} ;;
7510 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7511 *${as_nl}ac_space
=\
*)
7512 # `set' does not quote correctly, so add quotes: double-quote
7513 # substitution turns \\\\ into \\, and sed turns \\ into \.
7516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7519 # `set' quotes correctly as required by POSIX, so do not add quotes.
7520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7529 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7531 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7533 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7534 if test -w "$cache_file"; then
7535 if test "x$cache_file" != "x/dev/null"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7537 $as_echo "$as_me: updating cache $cache_file" >&6;}
7538 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7539 cat confcache
>"$cache_file"
7541 case $cache_file in #(
7543 mv -f confcache
"$cache_file"$$
&&
7544 mv -f "$cache_file"$$
"$cache_file" ;; #(
7546 mv -f confcache
"$cache_file" ;;
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7552 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7557 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7558 # Let make expand exec_prefix.
7559 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7561 DEFS
=-DHAVE_CONFIG_H
7566 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7567 # 1. Remove the extension, and $U if already installed.
7568 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7569 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7570 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7571 # will be set to the directory where LIBOBJS objects are built.
7572 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7573 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7577 LTLIBOBJS
=$ac_ltlibobjs
7582 : "${CONFIG_STATUS=./config.status}"
7584 ac_clean_files_save
=$ac_clean_files
7585 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7587 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7589 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7591 # Generated by $as_me.
7592 # Run this file to recreate the current configuration.
7593 # Compiler output produced by configure, useful for debugging
7594 # configure, is in config.log if it exists.
7600 SHELL=\${CONFIG_SHELL-$SHELL}
7603 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7604 ## -------------------- ##
7605 ## M4sh Initialization. ##
7606 ## -------------------- ##
7608 # Be more Bourne compatible
7609 DUALCASE
=1; export DUALCASE
# for MKS sh
7610 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7613 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7614 # is contrary to our usage. Disable this feature.
7615 alias -g '${1+"$@"}'='"$@"'
7616 setopt NO_GLOB_SUBST
7618 case `(set -o) 2>/dev/null` in #(
7630 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7631 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7633 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7634 # Prefer a ksh shell builtin over an external printf program on Solaris,
7635 # but without wasting forks for bash or zsh.
7636 if test -z "$BASH_VERSION$ZSH_VERSION" \
7637 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7638 as_echo='print
-r --'
7639 as_echo_n='print
-rn --'
7640 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7641 as_echo='printf %s
\n'
7642 as_echo_n='printf %s
'
7644 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7645 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7646 as_echo_n='/usr
/ucb
/echo -n'
7648 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7649 as_echo_n_body='eval
7653 expr "X$arg" : "X\\(.*\\)$as_nl";
7654 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7656 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7658 export as_echo_n_body
7659 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7662 as_echo='sh
-c $as_echo_body as_echo
'
7665 # The user is always right.
7666 if test "${PATH_SEPARATOR+set}" != set; then
7668 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7669 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7676 # We need space, tab and new line, in precisely that order. Quoting is
7677 # there to prevent editors from complaining about space-tab.
7678 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7679 # splitting by setting IFS to empty value.)
7682 # Find who we are. Look in the path if we contain no directory separator.
7685 *[\\/]* ) as_myself=$0 ;;
7686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir=.
7691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7697 # We did not find ourselves, most probably we were run as `sh COMMAND'
7698 # in which case we are not to be found in the path.
7699 if test "x$as_myself" = x
; then
7702 if test ! -f "$as_myself"; then
7703 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7707 # Unset variables that we do not need and which cause bugs (e.g. in
7708 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7709 # suppresses any "Segmentation fault" message there. '((' could
7710 # trigger a bug in pdksh 5.2.14.
7711 for as_var
in BASH_ENV ENV MAIL MAILPATH
7712 do eval test x\
${$as_var+set} = xset \
7713 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7726 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7729 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7730 # ----------------------------------------
7731 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7732 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7733 # script with STATUS, using 1 if that was 0.
7736 as_status
=$1; test $as_status -eq 0 && as_status
=1
7738 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7739 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7741 $as_echo "$as_me: error: $2" >&2
7742 as_fn_exit
$as_status
7746 # as_fn_set_status STATUS
7747 # -----------------------
7748 # Set $? to STATUS, without forking.
7752 } # as_fn_set_status
7756 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7766 # Portably unset VAR.
7769 { eval $1=; unset $1;}
7771 as_unset
=as_fn_unset
7772 # as_fn_append VAR VALUE
7773 # ----------------------
7774 # Append the text in VALUE to the end of the definition contained in VAR. Take
7775 # advantage of any shell optimizations that allow amortized linear growth over
7776 # repeated appends, instead of the typical quadratic growth present in naive
7778 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7779 eval 'as_fn_append ()
7790 # as_fn_arith ARG...
7791 # ------------------
7792 # Perform arithmetic evaluation on the ARGs, and store the result in the
7793 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7794 # must be portable across $(()) and expr.
7795 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7796 eval 'as_fn_arith ()
7803 as_val
=`expr "$@" || test $? -eq 1`
7808 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7809 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7815 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7816 as_basename
=basename
7821 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7827 as_me
=`$as_basename -- "$0" ||
7828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7829 X"$0" : 'X\(//\)$' \| \
7830 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7832 sed '/^.*\/\([^/][^/]*\)\/*$/{
7846 # Avoid depending upon Character Ranges.
7847 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7848 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7849 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7850 as_cr_digits
='0123456789'
7851 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7853 ECHO_C
= ECHO_N
= ECHO_T
=
7854 case `echo -n x` in #(((((
7856 case `echo 'xy\c'` in
7857 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7859 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7866 rm -f conf$$ conf$$.exe conf$$.
file
7867 if test -d conf$$.dir
; then
7868 rm -f conf$$.dir
/conf$$.
file
7871 mkdir conf$$.dir
2>/dev
/null
7873 if (echo >conf$$.
file) 2>/dev
/null
; then
7874 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7876 # ... but there are two gotchas:
7877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7879 # In both cases, we have to default to `cp -pR'.
7880 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7882 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7890 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7891 rmdir conf$$.dir
2>/dev
/null
7896 # Create "$as_dir" as a directory, including parents if necessary.
7901 -*) as_dir
=.
/$as_dir;;
7903 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7907 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7908 *) as_qdir
=$as_dir;;
7910 as_dirs
="'$as_qdir' $as_dirs"
7911 as_dir
=`$as_dirname -- "$as_dir" ||
7912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7913 X"$as_dir" : 'X\(//\)[^/]' \| \
7914 X"$as_dir" : 'X\(//\)$' \| \
7915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7916 $as_echo X"$as_dir" |
7917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7934 test -d "$as_dir" && break
7936 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7937 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7941 if mkdir
-p .
2>/dev
/null
; then
7942 as_mkdir_p
='mkdir -p "$as_dir"'
7944 test -d .
/-p && rmdir .
/-p
7949 # as_fn_executable_p FILE
7950 # -----------------------
7951 # Test if FILE is an executable regular file.
7952 as_fn_executable_p
()
7954 test -f "$1" && test -x "$1"
7955 } # as_fn_executable_p
7957 as_executable_p
=as_fn_executable_p
7959 # Sed expression to map a string onto a valid CPP name.
7960 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7962 # Sed expression to map a string onto a valid variable name.
7963 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7967 ## ----------------------------------- ##
7968 ## Main body of $CONFIG_STATUS script. ##
7969 ## ----------------------------------- ##
7971 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7974 # Save the log message, to keep $0 and so on meaningful, and to
7975 # report actual input values of CONFIG_FILES etc. instead of their
7976 # values after options handling.
7978 This file was extended by cpplib $as_me , which was
7979 generated by GNU Autoconf 2.69. Invocation command line was
7981 CONFIG_FILES = $CONFIG_FILES
7982 CONFIG_HEADERS = $CONFIG_HEADERS
7983 CONFIG_LINKS = $CONFIG_LINKS
7984 CONFIG_COMMANDS = $CONFIG_COMMANDS
7987 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7992 case $ac_config_files in *"
7993 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7996 case $ac_config_headers in *"
7997 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8002 # Files that config.status was made for.
8003 config_files="$ac_config_files"
8004 config_headers="$ac_config_headers"
8005 config_commands="$ac_config_commands"
8009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8011 \`$as_me' instantiates files and other configuration actions
8012 from templates according to the current configuration. Unless the files
8013 and actions are specified as TAGs, all are instantiated by default.
8015 Usage: $0 [OPTION]... [TAG]...
8017 -h, --help print this help, then exit
8018 -V, --version print version number and configuration settings, then exit
8019 --config print configuration, then exit
8020 -q, --quiet, --silent
8021 do not print progress messages
8022 -d, --debug don't remove temporary files
8023 --recheck update $as_me by reconfiguring in the same conditions
8024 --file=FILE[:TEMPLATE]
8025 instantiate the configuration file FILE
8026 --header=FILE[:TEMPLATE]
8027 instantiate the configuration header FILE
8029 Configuration files:
8032 Configuration headers:
8035 Configuration commands:
8038 Report bugs to <gcc-bugs@gcc.gnu.org>."
8041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8042 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8044 cpplib config.status
8045 configured by $0, generated by GNU Autoconf 2.69,
8046 with options \\"\$ac_cs_config\\"
8048 Copyright (C) 2012 Free Software Foundation, Inc.
8049 This config.status script is free software; the Free Software Foundation
8050 gives unlimited permission to copy, distribute and modify it."
8055 test -n "\$AWK" || AWK=awk
8058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8059 # The default lists apply if the user does not specify any file.
8065 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8066 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8070 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8082 # Handling of the options.
8083 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8085 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8086 $as_echo "$ac_cs_version"; exit ;;
8087 --config |
--confi |
--conf |
--con |
--co |
--c )
8088 $as_echo "$ac_cs_config"; exit ;;
8089 --debug |
--debu |
--deb |
--de |
--d |
-d )
8091 --file |
--fil |
--fi |
--f )
8094 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8095 '') as_fn_error $?
"missing file argument" ;;
8097 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8098 ac_need_defaults
=false
;;
8099 --header |
--heade |
--head |
--hea )
8102 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8104 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8105 ac_need_defaults
=false
;;
8107 # Conflict between --help and --header
8108 as_fn_error $?
"ambiguous option: \`$1'
8109 Try \`$0 --help' for more information.";;
8110 --help |
--hel |
-h )
8111 $as_echo "$ac_cs_usage"; exit ;;
8112 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8113 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8117 -*) as_fn_error $?
"unrecognized option: \`$1'
8118 Try \`$0 --help' for more information." ;;
8120 *) as_fn_append ac_config_targets
" $1"
8121 ac_need_defaults
=false
;;
8127 ac_configure_extra_args
=
8129 if $ac_cs_silent; then
8131 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8136 if \$ac_cs_recheck; then
8137 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8139 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8140 CONFIG_SHELL='$SHELL'
8146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8151 ## Running $as_me. ##
8157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8161 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8167 # Handling of arguments.
8168 for ac_config_target
in $ac_config_targets
8170 case $ac_config_target in
8171 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
8172 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8173 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8175 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8180 # If the user did not use the arguments to specify the items to instantiate,
8181 # then the envvar interface is used. Set only those that are not.
8182 # We use the long form for the default assignment because of an extremely
8183 # bizarre bug on SunOS 4.1.3.
8184 if $ac_need_defaults; then
8185 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8186 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8187 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8190 # Have a temporary directory for convenience. Make it in the build tree
8191 # simply because there is no reason against having it here, and in addition,
8192 # creating and moving files from /tmp can sometimes cause problems.
8193 # Hook for its removal unless debugging.
8194 # Note that there is a small window in which the directory will not be cleaned:
8195 # after its creation but before its name has been assigned to `$tmp'.
8199 trap 'exit_status=$?
8201 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8203 trap 'as_fn_exit 1' 1 2 13 15
8205 # Create a (secure) tmp directory for tmp files.
8208 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8212 tmp
=.
/conf$$
-$RANDOM
8213 (umask 077 && mkdir
"$tmp")
8214 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8217 # Set up the scripts for CONFIG_FILES section.
8218 # No need to generate them if there are no CONFIG_FILES.
8219 # This happens for instance with `./config.status config.h'.
8220 if test -n "$CONFIG_FILES"; then
8223 ac_cr
=`echo X | tr X '\015'`
8224 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8225 # But we know of no other shell where ac_cr would be empty at this
8226 # point, so we can use a bashism as a fallback.
8227 if test "x$ac_cr" = x
; then
8228 eval ac_cr
=\$
\'\\r
\'
8230 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8231 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8237 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8242 echo "cat >conf$$subs.awk <<_ACEOF" &&
8243 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8246 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8247 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8249 for ac_last_try in false false false false false :; do
8250 . ./conf$$subs.sh ||
8251 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8253 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8254 if test $ac_delim_n = $ac_delim_num; then
8256 elif $ac_last_try; then
8257 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8259 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8265 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8269 s/^/S["/; s
/!.
*/"]=/
8279 s/\(.\{148\}\)..*/\1/
8281 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8286 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8293 s/\(.\{148\}\)..*/\1/
8295 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8299 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8304 ' <conf$$subs.awk | sed '
8309 ' >>$CONFIG_STATUS || ac_write_fail=1
8310 rm -f conf$$subs.awk
8311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8313 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8314 for (key in S) S_is_set[key] = 1
8320 nfields = split(line, field, "@
")
8322 len = length(field[1])
8323 for (i = 2; i < nfields; i++) {
8325 keylen = length(key)
8326 if (S_is_set[key]) {
8328 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8329 len += length(value) + length(field[++i])
8340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8341 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8342 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8345 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8346 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8349 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8350 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8351 # trailing colons and then remove the whole line if VPATH becomes empty
8352 # (actually we leave an empty line to preserve line numbers).
8353 if test "x
$srcdir" = x.; then
8354 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8373 fi # test -n "$CONFIG_FILES"
8375 # Set up the scripts for CONFIG_HEADERS section.
8376 # No need to generate them if there are no CONFIG_HEADERS.
8377 # This happens for instance with `./config.status Makefile'.
8378 if test -n "$CONFIG_HEADERS"; then
8379 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8383 # Transform confdefs.h into an awk script `defines.awk', embedded as
8384 # here-document in config.status, that substitutes the proper values into
8385 # config.h.in to produce config.h.
8387 # Create a delimiter string that does not exist in confdefs.h, to ease
8388 # handling of long lines.
8390 for ac_last_try in false false :; do
8391 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8392 if test -z "$ac_tt"; then
8394 elif $ac_last_try; then
8395 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8397 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8401 # For the awk script, D is an array of macro values keyed by name,
8402 # likewise P contains macro parameters if any. Preserve backslash
8403 # newline sequences.
8405 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8407 s/.\{148\}/&'"$ac_delim"'/g
8410 s/^[ ]*#[ ]*define[ ][ ]*/ /
8417 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8419 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8423 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8424 D["\
1"]=" \
3\\\\\\n
"\\/p
8426 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8431 s/.\{148\}/&'"$ac_delim"'/g
8436 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8439 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8441 ' <confdefs.h | sed '
8442 s/'"$ac_delim"'/"\\\
8443 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8446 for (key in D) D_is_set[key] = 1
8449 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8451 split(line, arg, " ")
8452 if (arg[1] == "#") {
8456 defundef
= substr
(arg
[1], 2)
8459 split(mac1
, mac2
, "(") #)
8461 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8462 if (D_is_set
[macro
]) {
8463 # Preserve the white space surrounding the "#".
8464 print prefix
"define", macro P
[macro
] D
[macro
]
8467 # Replace #undef with comments. This is necessary, for example,
8468 # in the case of _POSIX_SOURCE, which is predefined and required
8469 # on some systems where configure will not decide to define it.
8470 if (defundef
== "undef") {
8471 print
"/*", prefix defundef
, macro
, "*/"
8479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8480 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8481 fi # test -n "$CONFIG_HEADERS"
8484 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8489 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8491 case $ac_mode$ac_tag in
8493 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8494 :[FH
]-) ac_tag
=-:-;;
8495 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8512 -) ac_f
="$ac_tmp/stdin";;
8513 *) # Look for the file first in the build tree, then in the source tree
8514 # (if the path is not absolute). The absolute path cannot be DOS-style,
8515 # because $ac_f cannot contain `:'.
8519 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8521 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8523 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8524 as_fn_append ac_file_inputs
" '$ac_f'"
8527 # Let's still pretend it is `configure' which instantiates (i.e., don't
8528 # use $as_me), people would be surprised to read:
8529 # /* config.h. Generated by config.status. */
8530 configure_input
='Generated from '`
8531 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8533 if test x
"$ac_file" != x-
; then
8534 configure_input
="$ac_file. $configure_input"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8536 $as_echo "$as_me: creating $ac_file" >&6;}
8538 # Neutralize special characters interpreted by sed in replacement strings.
8539 case $configure_input in #(
8540 *\
&* |
*\|
* |
*\\* )
8541 ac_sed_conf_input
=`$as_echo "$configure_input" |
8542 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8543 *) ac_sed_conf_input
=$configure_input;;
8547 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8548 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8553 ac_dir
=`$as_dirname -- "$ac_file" ||
8554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8555 X"$ac_file" : 'X\(//\)[^/]' \| \
8556 X"$ac_file" : 'X\(//\)$' \| \
8557 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8558 $as_echo X"$ac_file" |
8559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8576 as_dir
="$ac_dir"; as_fn_mkdir_p
8580 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8582 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8583 # A ".." for each directory in $ac_dir_suffix.
8584 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8585 case $ac_top_builddir_sub in
8586 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8587 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8590 ac_abs_top_builddir
=$ac_pwd
8591 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8592 # for backward compatibility:
8593 ac_top_builddir
=$ac_top_build_prefix
8596 .
) # We are building in place.
8598 ac_top_srcdir
=$ac_top_builddir_sub
8599 ac_abs_top_srcdir
=$ac_pwd ;;
8600 [\\/]* | ?
:[\\/]* ) # Absolute name.
8601 ac_srcdir
=$srcdir$ac_dir_suffix;
8602 ac_top_srcdir
=$srcdir
8603 ac_abs_top_srcdir
=$srcdir ;;
8605 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8606 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8607 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8609 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8619 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8620 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8625 # If the template does not know about datarootdir, expand it.
8626 # FIXME: This hack should be removed a few years after 2.60.
8627 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8638 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8639 *datarootdir
*) ac_datarootdir_seen
=yes;;
8640 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8642 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8645 ac_datarootdir_hack='
8646 s&@datadir@&$datadir&g
8647 s&@docdir@&$docdir&g
8648 s&@infodir@&$infodir&g
8649 s&@localedir@&$localedir&g
8650 s&@mandir@&$mandir&g
8651 s&\\\${datarootdir}&$datarootdir&g' ;;
8655 # Neutralize VPATH when `$srcdir' = `.'.
8656 # Shell code in configure.ac might set extrasub.
8657 # FIXME: do we really want to maintain this feature?
8658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8659 ac_sed_extra="$ac_vpsub
8662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8664 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8665 s|@configure_input@|
$ac_sed_conf_input|
;t t
8666 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8667 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8668 s
&@srcdir@
&$ac_srcdir&;t t
8669 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8670 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8671 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8672 s
&@builddir@
&$ac_builddir&;t t
8673 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8674 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8675 s
&@INSTALL@
&$ac_INSTALL&;t t
8676 $ac_datarootdir_hack
8678 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8679 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8681 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8682 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8683 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8684 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8686 which seems to be undefined. Please make sure it is defined" >&5
8687 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8688 which seems to be undefined. Please make sure it is defined" >&2;}
8690 rm -f "$ac_tmp/stdin"
8692 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8693 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8701 if test x"$ac_file" != x-; then
8703 $as_echo "/* $configure_input */" \
8704 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8705 } >"$ac_tmp/config.h" \
8706 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8707 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8709 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8712 mv "$ac_tmp/config.h" "$ac_file" \
8713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8716 $as_echo "/* $configure_input */" \
8717 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8718 || as_fn_error $? "could not create -" "$LINENO" 5
8722 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8723 $as_echo "$as_me: executing $ac_file commands" >&6;}
8728 case $ac_file$ac_mode in
8729 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8730 "config.h":H) echo timestamp > stamp-h1 ;;
8738 ac_clean_files=$ac_clean_files_save
8740 test $ac_write_fail = 0 ||
8741 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8744 # configure is writing to config.log, and then calls config.status.
8745 # config.status does its own redirection, appending to config.log.
8746 # Unfortunately, on DOS this fails, as config.log is still kept open
8747 # by configure, so config.status won't be able to
write to it
; its
8748 # output is simply discarded. So we exec the FD to /dev/null,
8749 # effectively closing config.log, so it can be properly (re)opened and
8750 # appended to by config.status. When coming back to configure, we
8751 # need to make the FD available again.
8752 if test "$no_create" != yes; then
8754 ac_config_status_args
=
8755 test "$silent" = yes &&
8756 ac_config_status_args
="$ac_config_status_args --quiet"
8758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8761 # would make configure fail if this is the last instruction.
8762 $ac_cs_success || as_fn_exit
1
8764 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8766 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}