2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gold 0.1.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
579 PACKAGE_TARNAME
='gold'
580 PACKAGE_VERSION
='0.1'
581 PACKAGE_STRING
='gold 0.1'
585 ac_unique_file
="gold.cc"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='am__EXEEXT_FALSE
626 MAINTAINER_MODE_FALSE
630 HAVE_NO_USE_LINKER_PLUGIN_FALSE
631 HAVE_NO_USE_LINKER_PLUGIN_TRUE
650 WARN_CFLAGS_FOR_BUILD
657 TLS_DESCRIPTORS_FALSE
659 TLS_GNU2_DIALECT_FALSE
660 TLS_GNU2_DIALECT_TRUE
670 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
671 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
674 NATIVE_OR_CROSS_LINKER_FALSE
675 NATIVE_OR_CROSS_LINKER_TRUE
708 DEFAULT_TARGET_MIPS_FALSE
709 DEFAULT_TARGET_MIPS_TRUE
710 DEFAULT_TARGET_TILEGX_FALSE
711 DEFAULT_TARGET_TILEGX_TRUE
712 DEFAULT_TARGET_X86_64_OR_X32_FALSE
713 DEFAULT_TARGET_X86_64_OR_X32_TRUE
714 DEFAULT_TARGET_X32_FALSE
715 DEFAULT_TARGET_X32_TRUE
716 DEFAULT_TARGET_X86_64_FALSE
717 DEFAULT_TARGET_X86_64_TRUE
718 DEFAULT_TARGET_S390_FALSE
719 DEFAULT_TARGET_S390_TRUE
720 DEFAULT_TARGET_SPARC_FALSE
721 DEFAULT_TARGET_SPARC_TRUE
722 DEFAULT_TARGET_POWERPC_FALSE
723 DEFAULT_TARGET_POWERPC_TRUE
724 DEFAULT_TARGET_I386_FALSE
725 DEFAULT_TARGET_I386_TRUE
726 DEFAULT_TARGET_ARM_FALSE
727 DEFAULT_TARGET_ARM_TRUE
728 DEFAULT_TARGET_AARCH64_FALSE
729 DEFAULT_TARGET_AARCH64_TRUE
766 INSTALL_STRIP_PROGRAM
820 program_transform_name
833 enable_option_checking
835 enable_dependency_tracking
841 enable_default_hash_style
845 enable_build_warnings
850 enable_maintainer_mode
852 ac_precious_vars
='build_alias
869 # Initialize some variables set by options.
871 ac_init_version
=false
872 ac_unrecognized_opts
=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
883 program_transform_name
=s
,x
,x
,
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir
='${exec_prefix}/bin'
898 sbindir
='${exec_prefix}/sbin'
899 libexecdir
='${exec_prefix}/libexec'
900 datarootdir
='${prefix}/share'
901 datadir
='${datarootdir}'
902 sysconfdir
='${prefix}/etc'
903 sharedstatedir
='${prefix}/com'
904 localstatedir
='${prefix}/var'
905 includedir
='${prefix}/include'
906 oldincludedir
='/usr/include'
907 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir
='${datarootdir}/info'
913 libdir
='${exec_prefix}/lib'
914 localedir
='${datarootdir}/locale'
915 mandir
='${datarootdir}/man'
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\
$ac_option
929 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
940 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
942 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
945 -build |
--build |
--buil |
--bui |
--bu)
946 ac_prev
=build_alias
;;
947 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
948 build_alias
=$ac_optarg ;;
950 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
951 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
952 ac_prev
=cache_file
;;
953 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
954 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
955 cache_file
=$ac_optarg ;;
958 cache_file
=config.cache
;;
960 -datadir |
--datadir |
--datadi |
--datad)
962 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
963 datadir
=$ac_optarg ;;
965 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
966 |
--dataroo |
--dataro |
--datar)
967 ac_prev
=datarootdir
;;
968 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
969 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
970 datarootdir
=$ac_optarg ;;
972 -disable-* |
--disable-*)
973 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
976 as_fn_error $?
"invalid feature name: $ac_useropt"
977 ac_useropt_orig
=$ac_useropt
978 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
983 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep
=', ';;
986 eval enable_
$ac_useropt=no
;;
988 -docdir |
--docdir |
--docdi |
--doc |
--do)
990 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
993 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
995 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
998 -enable-* |
--enable-*)
999 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1002 as_fn_error $?
"invalid feature name: $ac_useropt"
1003 ac_useropt_orig
=$ac_useropt
1004 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_
$ac_useropt"
1009 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep
=', ';;
1012 eval enable_
$ac_useropt=\
$ac_optarg ;;
1014 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1015 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1016 |
--exec |
--exe |
--ex)
1017 ac_prev
=exec_prefix
;;
1018 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1019 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1020 |
--exec=* |
--exe=* |
--ex=*)
1021 exec_prefix
=$ac_optarg ;;
1023 -gas |
--gas |
--ga |
--g)
1024 # Obsolete; use --with-gas.
1027 -help |
--help |
--hel |
--he |
-h)
1028 ac_init_help
=long
;;
1029 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1030 ac_init_help
=recursive
;;
1031 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1032 ac_init_help
=short
;;
1034 -host |
--host |
--hos |
--ho)
1035 ac_prev
=host_alias
;;
1036 -host=* |
--host=* |
--hos=* |
--ho=*)
1037 host_alias
=$ac_optarg ;;
1039 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1041 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1043 htmldir
=$ac_optarg ;;
1045 -includedir |
--includedir |
--includedi |
--included |
--include \
1046 |
--includ |
--inclu |
--incl |
--inc)
1047 ac_prev
=includedir
;;
1048 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1049 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1050 includedir
=$ac_optarg ;;
1052 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1054 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1055 infodir
=$ac_optarg ;;
1057 -libdir |
--libdir |
--libdi |
--libd)
1059 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1060 libdir
=$ac_optarg ;;
1062 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1063 |
--libexe |
--libex |
--libe)
1064 ac_prev
=libexecdir
;;
1065 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1066 |
--libexe=* |
--libex=* |
--libe=*)
1067 libexecdir
=$ac_optarg ;;
1069 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1070 ac_prev
=localedir
;;
1071 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1072 localedir
=$ac_optarg ;;
1074 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1075 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1076 ac_prev
=localstatedir
;;
1077 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1078 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1079 localstatedir
=$ac_optarg ;;
1081 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1083 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1084 mandir
=$ac_optarg ;;
1086 -nfp |
--nfp |
--nf)
1087 # Obsolete; use --without-fp.
1090 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1091 |
--no-cr |
--no-c |
-n)
1094 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1095 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1098 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1099 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1100 |
--oldin |
--oldi |
--old |
--ol |
--o)
1101 ac_prev
=oldincludedir
;;
1102 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1103 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1104 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1105 oldincludedir
=$ac_optarg ;;
1107 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1109 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1110 prefix
=$ac_optarg ;;
1112 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1113 |
--program-pre |
--program-pr |
--program-p)
1114 ac_prev
=program_prefix
;;
1115 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1116 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1117 program_prefix
=$ac_optarg ;;
1119 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1120 |
--program-suf |
--program-su |
--program-s)
1121 ac_prev
=program_suffix
;;
1122 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1123 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1124 program_suffix
=$ac_optarg ;;
1126 -program-transform-name |
--program-transform-name \
1127 |
--program-transform-nam |
--program-transform-na \
1128 |
--program-transform-n |
--program-transform- \
1129 |
--program-transform |
--program-transfor \
1130 |
--program-transfo |
--program-transf \
1131 |
--program-trans |
--program-tran \
1132 |
--progr-tra |
--program-tr |
--program-t)
1133 ac_prev
=program_transform_name
;;
1134 -program-transform-name=* |
--program-transform-name=* \
1135 |
--program-transform-nam=* |
--program-transform-na=* \
1136 |
--program-transform-n=* |
--program-transform-=* \
1137 |
--program-transform=* |
--program-transfor=* \
1138 |
--program-transfo=* |
--program-transf=* \
1139 |
--program-trans=* |
--program-tran=* \
1140 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1141 program_transform_name
=$ac_optarg ;;
1143 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1145 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1146 pdfdir
=$ac_optarg ;;
1148 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1150 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1153 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1154 |
-silent |
--silent |
--silen |
--sile |
--sil)
1157 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1159 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1161 sbindir
=$ac_optarg ;;
1163 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1164 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1165 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1167 ac_prev
=sharedstatedir
;;
1168 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1169 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1170 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1172 sharedstatedir
=$ac_optarg ;;
1174 -site |
--site |
--sit)
1176 -site=* |
--site=* |
--sit=*)
1179 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1181 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1182 srcdir
=$ac_optarg ;;
1184 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1185 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1186 ac_prev
=sysconfdir
;;
1187 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1188 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1189 sysconfdir
=$ac_optarg ;;
1191 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1192 ac_prev
=target_alias
;;
1193 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1194 target_alias
=$ac_optarg ;;
1196 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1199 -version |
--version |
--versio |
--versi |
--vers |
-V)
1200 ac_init_version
=: ;;
1203 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1206 as_fn_error $?
"invalid package name: $ac_useropt"
1207 ac_useropt_orig
=$ac_useropt
1208 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1213 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep
=', ';;
1216 eval with_
$ac_useropt=\
$ac_optarg ;;
1218 -without-* |
--without-*)
1219 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1222 as_fn_error $?
"invalid package name: $ac_useropt"
1223 ac_useropt_orig
=$ac_useropt
1224 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1229 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep
=', ';;
1232 eval with_
$ac_useropt=no
;;
1235 # Obsolete; use --with-x.
1238 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1239 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1240 ac_prev
=x_includes
;;
1241 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1242 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1243 x_includes
=$ac_optarg ;;
1245 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1246 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1247 ac_prev
=x_libraries
;;
1248 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1249 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1250 x_libraries
=$ac_optarg ;;
1252 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1253 Try \`$0 --help' for more information"
1257 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 case $ac_envvar in #(
1260 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1261 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1263 eval $ac_envvar=\
$ac_optarg
1264 export $ac_envvar ;;
1267 # FIXME: should be removed in autoconf 3.0.
1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277 if test -n "$ac_prev"; then
1278 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1279 as_fn_error $?
"missing argument to $ac_option"
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1285 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 # Check all directory arguments for consistency.
1291 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val
=\$
$ac_var
1297 # Remove trailing slashes.
1300 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\
$ac_val;;
1303 # Be sure to have absolute directory names.
1305 [\\/$
]* | ?
:[\\/]* ) continue;;
1306 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1308 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target
=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x
; then
1320 if test "x$build_alias" = x
; then
1321 cross_compiling
=maybe
1322 elif test "x$build_alias" != "x$host_alias"; then
1328 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1330 test "$silent" = yes && exec 6>/dev
/null
1333 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di
=`ls -di .` &&
1335 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1336 as_fn_error $?
"working directory cannot be determined"
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 as_fn_error $?
"pwd does not report name of working directory"
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted
=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir
=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 $as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1373 ac_srcdir_defaulted
=no
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1377 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1379 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1391 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 for ac_var
in $ac_precious_vars; do
1394 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1396 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1401 # Report the --help message.
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1407 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1414 Defaults for the options are specified in brackets.
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking ...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1438 For better control, use the options below.
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --libdir=DIR object code libraries [EPREFIX/lib]
1448 --includedir=DIR C header files [PREFIX/include]
1449 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1452 --infodir=DIR info documentation [DATAROOTDIR/info]
1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1454 --mandir=DIR man documentation [DATAROOTDIR/man]
1455 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
1465 --program-prefix=PREFIX prepend PREFIX to installed program names
1466 --program-suffix=SUFFIX append SUFFIX to installed program names
1467 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1470 --build=BUILD configure
for building on BUILD
[guessed
]
1471 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1472 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive
) echo "Configuration of gold 0.1:";;
1483 --disable-option-checking ignore unrecognized
--enable/--with options
1484 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1485 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1486 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1487 --disable-silent-rules verbose build output
(undo
: "make V=0")
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
1492 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1493 --enable-plugins Enable support
for plugins
1494 --enable-relro enable -z relro
in ELF linker by default
1495 --enable-targets alternative target configurations
1496 --enable-default-hash-style={sysv
,gnu
,both
}
1497 use this default
hash style
1498 --disable-nls do not use Native Language Support
1499 --enable-werror treat compile warnings as errors
1500 --enable-build-warnings enable build-time compiler warnings
1501 --enable-threads[=ARG
] multi-threaded linking
[ARG
={auto
,yes,no
}]
1502 --enable-maintainer-mode
1503 enable make rules and dependencies not useful
(and
1504 sometimes confusing
) to the casual installer
1507 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1508 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1509 --with-sysroot=DIR search
for usr
/lib et al within DIR
1510 --with-lib-path=dir1
:dir2...
set default LIB_PATH
1511 --with-gold-ldflags=FLAGS additional link flags
for gold
1512 --with-gold-ldadd=LIBS additional libraries
for gold
1513 --with-system-zlib use installed libz
1515 Some influential environment variables
:
1516 CC C compiler
command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1519 nonstandard directory
<lib dir
>
1520 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1521 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1522 you have headers
in a nonstandard directory
<include dir
>
1524 CXX C
++ compiler
command
1525 CXXFLAGS C
++ compiler flags
1526 YACC The
`Yet Another Compiler Compiler' implementation to use.
1527 Defaults to the first program found out of: `bison
-y', `byacc',
1529 YFLAGS The list of arguments that will be passed by default to $YACC.
1530 This script will default YFLAGS to the empty string to avoid a
1531 default value of `-d' given by some make applications.
1532 CXXCPP C++ preprocessor
1534 Use these variables to override the choices made by `configure' or to
help
1535 it to
find libraries and programs with nonstandard names
/locations.
1537 Report bugs to the package provider.
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1551 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1553 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1558 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1561 ac_abs_top_builddir
=$ac_pwd
1562 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir
=$ac_top_build_prefix
1567 .
) # We are building in place.
1569 ac_top_srcdir
=$ac_top_builddir_sub
1570 ac_abs_top_srcdir
=$ac_pwd ;;
1571 [\\/]* | ?
:[\\/]* ) # Absolute name.
1572 ac_srcdir
=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir
=$srcdir
1574 ac_abs_top_srcdir
=$srcdir ;;
1576 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1580 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1601 generated by GNU Autoconf
2.69
1603 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1604 This configure
script is free software
; the Free Software Foundation
1605 gives unlimited permission to copy
, distribute and modify it.
1610 ## ------------------------ ##
1611 ## Autoconf initialization. ##
1612 ## ------------------------ ##
1614 # ac_fn_c_try_compile LINENO
1615 # --------------------------
1616 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_compile
()
1619 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1620 rm -f conftest.
$ac_objext
1621 if { { ac_try
="$ac_compile"
1623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_compile") 2>conftest.err
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest.$ac_objext; then :
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_compile
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_cpp conftest.$ac_ext"
1660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1661 *) ac_try_echo
=$ac_try;;
1663 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667 if test -s conftest.err
; then
1668 grep -v '^ *+' conftest.err
>conftest.er1
1669 cat conftest.er1
>&5
1670 mv -f conftest.er1 conftest.err
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } > conftest.i
&& {
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.
$ac_ext >&5
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status
$ac_retval
1689 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1690 # -------------------------------------------------------
1691 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1692 # the include files in INCLUDES and setting the cache variable VAR
1694 ac_fn_c_check_header_mongrel
()
1696 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1697 if eval \
${$3+:} false
; then :
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \
${$3+:} false
; then :
1701 $as_echo_n "(cached) " >&6
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1707 # Is the header compilable?
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1709 $as_echo_n "checking $2 usability... " >&6; }
1710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1715 if ac_fn_c_try_compile
"$LINENO"; then :
1716 ac_header_compiler
=yes
1718 ac_header_compiler
=no
1720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1722 $as_echo "$ac_header_compiler" >&6; }
1724 # Is the header present?
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1726 $as_echo_n "checking $2 presence... " >&6; }
1727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1731 if ac_fn_c_try_cpp
"$LINENO"; then :
1732 ac_header_preproc
=yes
1734 ac_header_preproc
=no
1736 rm -f conftest.err conftest.i conftest.
$ac_ext
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1738 $as_echo "$ac_header_preproc" >&6; }
1740 # So? What about this header?
1741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1744 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1750 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1752 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1754 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1756 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \
${$3+:} false
; then :
1764 $as_echo_n "(cached) " >&6
1766 eval "$3=\$ac_header_compiler"
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 } # ac_fn_c_check_header_mongrel
1776 # ac_fn_c_try_run LINENO
1777 # ----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1782 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1783 if { { ac_try
="$ac_link"
1785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>&5
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1796 *) ac_try_echo
=$ac_try;;
1798 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.
$ac_ext >&5
1810 ac_retval
=$ac_status
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status
$ac_retval
1818 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1819 # -------------------------------------------------------
1820 # Tests whether HEADER exists and can be compiled using the include files in
1821 # INCLUDES, setting the cache variable VAR accordingly.
1822 ac_fn_c_check_header_compile
()
1824 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \
${$3+:} false
; then :
1828 $as_echo_n "(cached) " >&6
1830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1835 if ac_fn_c_try_compile
"$LINENO"; then :
1840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 } # ac_fn_c_check_header_compile
1849 # ac_fn_c_try_link LINENO
1850 # -----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded.
1854 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1855 rm -f conftest.
$ac_objext conftest
$ac_exeext
1856 if { { ac_try
="$ac_link"
1858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>conftest.err
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest$ac_exeext && {
1875 test "$cross_compiling" = yes ||
1876 test -x conftest$ac_exeext
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1885 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1886 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1887 # interfere with the next link command; also delete a directory that is
1888 # left behind by Apple's compiler. We do this before executing the actions.
1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1893 } # ac_fn_c_try_link
1895 # ac_fn_cxx_try_compile LINENO
1896 # ----------------------------
1897 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_cxx_try_compile ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext
1902 if { { ac_try="$ac_compile"
1904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1905 *) ac_try_echo
=$ac_try;;
1907 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_compile") 2>conftest.err
1911 if test -s conftest.err
; then
1912 grep -v '^ *+' conftest.err
>conftest.er1
1913 cat conftest.er1
>&5
1914 mv -f conftest.er1 conftest.err
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_cxx_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest.
$ac_objext; then :
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.
$ac_ext >&5
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status
$ac_retval
1931 } # ac_fn_cxx_try_compile
1933 # ac_fn_c_check_func LINENO FUNC VAR
1934 # ----------------------------------
1935 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1936 ac_fn_c_check_func
()
1938 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \
${$3+:} false
; then :
1942 $as_echo_n "(cached) " >&6
1944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1948 #define $2 innocuous_$2
1950 /* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char $2 (); below.
1952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1953 <limits.h> exists even on freestanding compilers. */
1956 # include <limits.h>
1958 # include <assert.h>
1963 /* Override any GCC internal prototype to avoid an error.
1964 Use char because int might match the return type of a GCC
1965 builtin and then its argument prototype would still apply. */
1970 /* The GNU C library defines this for functions which it implements
1971 to always fail with ENOSYS. Some functions are actually named
1972 something starting with __ and the normal name is an alias. */
1973 #if defined __stub_$2 || defined __stub___$2
1985 if ac_fn_c_try_link
"$LINENO"; then :
1990 rm -f core conftest.err conftest.
$ac_objext \
1991 conftest
$ac_exeext conftest.
$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_func
2000 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2001 # ---------------------------------------------
2002 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2004 ac_fn_c_check_decl
()
2006 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2007 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2008 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2010 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2011 if eval \
${$3+:} false
; then :
2012 $as_echo_n "(cached) " >&6
2014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2020 #ifndef $as_decl_name
2022 (void) $as_decl_use;
2024 (void) $as_decl_name;
2032 if ac_fn_c_try_compile
"$LINENO"; then :
2037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 } # ac_fn_c_check_decl
2046 # ac_fn_cxx_try_cpp LINENO
2047 # ------------------------
2048 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2049 ac_fn_cxx_try_cpp
()
2051 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2052 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } > conftest.i && {
2068 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2069 test ! -s conftest.err
2073 $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 as_fn_set_status $ac_retval
2081 } # ac_fn_cxx_try_cpp
2083 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2084 # ---------------------------------------------------------
2085 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2086 # the include files in INCLUDES and setting the cache variable VAR
2088 ac_fn_cxx_check_header_mongrel ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if eval \${$3+:} false; then :
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if eval \${$3+:} false; then :
2095 $as_echo_n "(cached) " >&6
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2101 # Is the header compilable?
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2103 $as_echo_n "checking $2 usability... " >&6; }
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2109 if ac_fn_cxx_try_compile "$LINENO"; then :
2110 ac_header_compiler=yes
2112 ac_header_compiler=no
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2116 $as_echo "$ac_header_compiler" >&6; }
2118 # Is the header present?
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2120 $as_echo_n "checking $2 presence... " >&6; }
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2125 if ac_fn_cxx_try_cpp "$LINENO"; then :
2126 ac_header_preproc=yes
2128 ac_header_preproc=no
2130 rm -f conftest.err conftest.i conftest.$ac_ext
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2132 $as_echo "$ac_header_preproc" >&6; }
2134 # So? What about this header?
2135 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2138 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2140 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2144 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2146 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2148 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2150 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2152 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2160 eval "$3=\$ac_header_compiler"
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 } # ac_fn_cxx_check_header_mongrel
2170 # ac_fn_cxx_try_link LINENO
2171 # -------------------------
2172 # Try to link conftest.$ac_ext, and return whether this succeeded.
2173 ac_fn_cxx_try_link ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 rm -f conftest.$ac_objext conftest$ac_exeext
2177 if { { ac_try="$ac_link"
2179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2180 *) ac_try_echo
=$ac_try;;
2182 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184 (eval "$ac_link") 2>conftest.err
2186 if test -s conftest.err
; then
2187 grep -v '^ *+' conftest.err
>conftest.er1
2188 cat conftest.er1
>&5
2189 mv -f conftest.er1 conftest.err
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; } && {
2193 test -z "$ac_cxx_werror_flag" ||
2194 test ! -s conftest.err
2195 } && test -s conftest
$ac_exeext && {
2196 test "$cross_compiling" = yes ||
2197 test -x conftest
$ac_exeext
2201 $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.
$ac_ext >&5
2206 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2207 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2208 # interfere with the next link command; also delete a directory that is
2209 # left behind by Apple's compiler. We do this before executing the actions.
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status
$ac_retval
2214 } # ac_fn_cxx_try_link
2216 # ac_fn_cxx_check_func LINENO FUNC VAR
2217 # ------------------------------------
2218 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2219 ac_fn_cxx_check_func
()
2221 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if eval \
${$3+:} false
; then :
2225 $as_echo_n "(cached) " >&6
2227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2229 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2231 #define $2 innocuous_$2
2233 /* System header to define __stub macros and hopefully few prototypes,
2234 which can conflict with char $2 (); below.
2235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2236 <limits.h> exists even on freestanding compilers. */
2239 # include <limits.h>
2241 # include <assert.h>
2246 /* Override any GCC internal prototype to avoid an error.
2247 Use char because int might match the return type of a GCC
2248 builtin and then its argument prototype would still apply. */
2253 /* The GNU C library defines this for functions which it implements
2254 to always fail with ENOSYS. Some functions are actually named
2255 something starting with __ and the normal name is an alias. */
2256 #if defined __stub_$2 || defined __stub___$2
2268 if ac_fn_cxx_try_link
"$LINENO"; then :
2273 rm -f core conftest.err conftest.
$ac_objext \
2274 conftest
$ac_exeext conftest.
$ac_ext
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281 } # ac_fn_cxx_check_func
2283 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2284 # -----------------------------------------------
2285 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2287 ac_fn_cxx_check_decl
()
2289 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2290 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2291 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2293 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2294 if eval \
${$3+:} false
; then :
2295 $as_echo_n "(cached) " >&6
2297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2303 #ifndef $as_decl_name
2305 (void) $as_decl_use;
2307 (void) $as_decl_name;
2315 if ac_fn_cxx_try_compile
"$LINENO"; then :
2320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324 $as_echo "$ac_res" >&6; }
2325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327 } # ac_fn_cxx_check_decl
2328 cat >config.log
<<_ACEOF
2329 This file contains any messages produced by compilers while
2330 running configure, to aid debugging if configure makes a mistake.
2332 It was created by gold $as_me 0.1, which was
2333 generated by GNU Autoconf 2.69. Invocation command line was
2345 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2346 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2347 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2348 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2349 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2351 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2352 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2354 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2355 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2356 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2357 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2358 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2359 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2360 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2368 test -z "$as_dir" && as_dir
=.
2369 $as_echo "PATH: $as_dir"
2385 # Keep a trace of the command line.
2386 # Strip out --no-create and --no-recursion so they do not pile up.
2387 # Strip out --silent because we don't want to record it for future runs.
2388 # Also quote any args containing shell meta-characters.
2389 # Make two passes to allow for proper duplicate-argument suppression.
2393 ac_must_keep_next
=false
2399 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2400 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2401 |
-silent |
--silent |
--silen |
--sile |
--sil)
2404 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2407 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2409 as_fn_append ac_configure_args1
" '$ac_arg'"
2410 if test $ac_must_keep_next = true
; then
2411 ac_must_keep_next
=false
# Got value, back to normal.
2414 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2415 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2416 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2417 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2418 case "$ac_configure_args0 " in
2419 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2422 -* ) ac_must_keep_next
=true
;;
2425 as_fn_append ac_configure_args
" '$ac_arg'"
2430 { ac_configure_args0
=; unset ac_configure_args0
;}
2431 { ac_configure_args1
=; unset ac_configure_args1
;}
2433 # When interrupted or exit'd, cleanup temporary files, and complete
2434 # config.log. We remove comments because anyway the quotes in there
2435 # would cause problems or look ugly.
2436 # WARNING: Use '\'' to represent an apostrophe within the trap.
2437 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2438 trap 'exit_status=$?
2439 # Save into config.log some information that might help in debugging.
2443 $as_echo "## ---------------- ##
2444 ## Cache variables. ##
2445 ## ---------------- ##"
2447 # The following way of writing the cache mishandles newlines in values,
2449 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2450 eval ac_val=\$$ac_var
2454 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2455 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2458 _ | IFS | as_nl) ;; #(
2459 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2460 *) { eval $ac_var=; unset $ac_var;} ;;
2465 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2466 *${as_nl}ac_space=\ *)
2468 "s/'\''/'\''\\\\'\'''\''/g;
2469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2479 $as_echo "## ----------------- ##
2480 ## Output variables. ##
2481 ## ----------------- ##"
2483 for ac_var in $ac_subst_vars
2485 eval ac_val=\$$ac_var
2487 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489 $as_echo "$ac_var='\''$ac_val'\''"
2493 if test -n "$ac_subst_files"; then
2494 $as_echo "## ------------------- ##
2495 ## File substitutions. ##
2496 ## ------------------- ##"
2498 for ac_var
in $ac_subst_files
2500 eval ac_val
=\$
$ac_var
2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 $as_echo "$ac_var='\''$ac_val'\''"
2509 if test -s confdefs.h; then
2510 $as_echo "## ----------- ##
2517 test "$ac_signal" != 0 &&
2518 $as_echo "$as_me: caught signal $ac_signal"
2519 $as_echo "$as_me: exit $exit_status"
2521 rm -f core *.core core.conftest.* &&
2522 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2525 for ac_signal
in 1 2 13 15; do
2526 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2530 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2531 rm -f -r conftest
* confdefs.h
2533 $as_echo "/* confdefs.h */" > confdefs.h
2535 # Predefined preprocessor variables.
2537 cat >>confdefs.h
<<_ACEOF
2538 #define PACKAGE_NAME "$PACKAGE_NAME"
2541 cat >>confdefs.h
<<_ACEOF
2542 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2545 cat >>confdefs.h
<<_ACEOF
2546 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2549 cat >>confdefs.h
<<_ACEOF
2550 #define PACKAGE_STRING "$PACKAGE_STRING"
2553 cat >>confdefs.h
<<_ACEOF
2554 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2557 cat >>confdefs.h
<<_ACEOF
2558 #define PACKAGE_URL "$PACKAGE_URL"
2562 # Let the site file select an alternate cache file if it wants to.
2563 # Prefer an explicitly selected file to automatically selected ones.
2566 if test -n "$CONFIG_SITE"; then
2567 # We do not want a PATH search for config.site.
2568 case $CONFIG_SITE in #((
2569 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2570 */*) ac_site_file1
=$CONFIG_SITE;;
2571 *) ac_site_file1
=.
/$CONFIG_SITE;;
2573 elif test "x$prefix" != xNONE
; then
2574 ac_site_file1
=$prefix/share
/config.site
2575 ac_site_file2
=$prefix/etc
/config.site
2577 ac_site_file1
=$ac_default_prefix/share
/config.site
2578 ac_site_file2
=$ac_default_prefix/etc
/config.site
2580 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2582 test "x$ac_site_file" = xNONE
&& continue
2583 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2585 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2586 sed 's/^/| /' "$ac_site_file" >&5
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_fn_error $?
"failed to load site script $ac_site_file
2591 See \`config.log' for more details" "$LINENO" 5; }
2595 if test -r "$cache_file"; then
2596 # Some versions of bash will fail to source /dev/null (special files
2597 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2598 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2600 $as_echo "$as_me: loading cache $cache_file" >&6;}
2602 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2603 *) .
"./$cache_file";;
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2608 $as_echo "$as_me: creating cache $cache_file" >&6;}
2612 # Check that the precious variables saved in the cache have kept the same
2614 ac_cache_corrupted
=false
2615 for ac_var
in $ac_precious_vars; do
2616 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2617 eval ac_new_set
=\
$ac_env_${ac_var}_set
2618 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2619 eval ac_new_val
=\
$ac_env_${ac_var}_value
2620 case $ac_old_set,$ac_new_set in
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2623 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2624 ac_cache_corrupted
=: ;;
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2627 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2628 ac_cache_corrupted
=: ;;
2631 if test "x$ac_old_val" != "x$ac_new_val"; then
2632 # differences in whitespace do not lead to failure.
2633 ac_old_val_w
=`echo x $ac_old_val`
2634 ac_new_val_w
=`echo x $ac_new_val`
2635 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2637 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2638 ac_cache_corrupted
=:
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2641 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2642 eval $ac_var=\
$ac_old_val
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2645 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2647 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2650 # Pass precious variables to config.status.
2651 if test "$ac_new_set" = set; then
2653 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2654 *) ac_arg
=$ac_var=$ac_new_val ;;
2656 case " $ac_configure_args " in
2657 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2658 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2662 if $ac_cache_corrupted; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2666 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2667 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2669 ## -------------------- ##
2670 ## Main body of script. ##
2671 ## -------------------- ##
2674 ac_cpp
='$CPP $CPPFLAGS'
2675 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2686 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2687 if test -f "$ac_dir/install-sh"; then
2689 ac_install_sh
="$ac_aux_dir/install-sh -c"
2691 elif test -f "$ac_dir/install.sh"; then
2693 ac_install_sh
="$ac_aux_dir/install.sh -c"
2695 elif test -f "$ac_dir/shtool"; then
2697 ac_install_sh
="$ac_aux_dir/shtool install -c"
2701 if test -z "$ac_aux_dir"; then
2702 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2705 # These three variables are undocumented and unsupported,
2706 # and are intended to be withdrawn in a future Autoconf release.
2707 # They can cause serious problems if a builder's source tree is in a directory
2708 # whose full name contains unusual characters.
2709 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2710 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2711 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2714 # Make sure we can run config.sub.
2715 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2716 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2719 $as_echo_n "checking build system type... " >&6; }
2720 if ${ac_cv_build+:} false
; then :
2721 $as_echo_n "(cached) " >&6
2723 ac_build_alias
=$build_alias
2724 test "x$ac_build_alias" = x
&&
2725 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2726 test "x$ac_build_alias" = x
&&
2727 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2728 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2729 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2733 $as_echo "$ac_cv_build" >&6; }
2734 case $ac_cv_build in
2736 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2739 ac_save_IFS
=$IFS; IFS
='-'
2745 # Remember, the first character of IFS is used to create $*,
2746 # except with old shells:
2749 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2753 $as_echo_n "checking host system type... " >&6; }
2754 if ${ac_cv_host+:} false
; then :
2755 $as_echo_n "(cached) " >&6
2757 if test "x$host_alias" = x
; then
2758 ac_cv_host
=$ac_cv_build
2760 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2761 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2766 $as_echo "$ac_cv_host" >&6; }
2769 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2772 ac_save_IFS
=$IFS; IFS
='-'
2778 # Remember, the first character of IFS is used to create $*,
2779 # except with old shells:
2782 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2786 $as_echo_n "checking target system type... " >&6; }
2787 if ${ac_cv_target+:} false
; then :
2788 $as_echo_n "(cached) " >&6
2790 if test "x$target_alias" = x
; then
2791 ac_cv_target
=$ac_cv_host
2793 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2794 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2799 $as_echo "$ac_cv_target" >&6; }
2800 case $ac_cv_target in
2802 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2804 target
=$ac_cv_target
2805 ac_save_IFS
=$IFS; IFS
='-'
2811 # Remember, the first character of IFS is used to create $*,
2812 # except with old shells:
2815 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2818 # The aliases save the names the user supplied, while $host etc.
2819 # will get canonicalized.
2820 test -n "$target_alias" &&
2821 test "$program_prefix$program_suffix$program_transform_name" = \
2823 program_prefix
=${target_alias}-
2825 am__api_version
='1.15'
2827 # Find a good install program. We prefer a C program (faster),
2828 # so one script is as good as another. But avoid the broken or
2829 # incompatible versions:
2830 # SysV /etc/install, /usr/sbin/install
2831 # SunOS /usr/etc/install
2832 # IRIX /sbin/install
2834 # AmigaOS /C/install, which installs bootblocks on floppy discs
2835 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2836 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2837 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2838 # OS/2's system install, which has a completely different semantic
2839 # ./install, which can be erroneously created by make from ./install.sh.
2840 # Reject install programs that cannot install multiple files.
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2842 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2843 if test -z "$INSTALL"; then
2844 if ${ac_cv_path_install+:} false
; then :
2845 $as_echo_n "(cached) " >&6
2847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir
=.
2852 # Account for people who put trailing slashes in PATH elements.
2853 case $as_dir/ in #((
2854 .
/ | .
// |
/[cC
]/* | \
2855 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2856 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2859 # OSF1 and SCO ODT 3.0 have their own names for install.
2860 # Don't use installbsd from OSF since it installs stuff as root
2862 for ac_prog
in ginstall scoinst
install; do
2863 for ac_exec_ext
in '' $ac_executable_extensions; do
2864 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2865 if test $ac_prog = install &&
2866 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2867 # AIX install. It has an incompatible calling convention.
2869 elif test $ac_prog = install &&
2870 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2871 # program-specific install script used by HP pwplus--don't use.
2874 rm -rf conftest.one conftest.two conftest.dir
2875 echo one
> conftest.one
2876 echo two
> conftest.two
2878 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2879 test -s conftest.one
&& test -s conftest.two
&&
2880 test -s conftest.dir
/conftest.one
&&
2881 test -s conftest.dir
/conftest.two
2883 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2896 rm -rf conftest.one conftest.two conftest.dir
2899 if test "${ac_cv_path_install+set}" = set; then
2900 INSTALL
=$ac_cv_path_install
2902 # As a last resort, use the slow shell script. Don't cache a
2903 # value for INSTALL within a source directory, because that will
2904 # break other packages using the cache if that directory is
2905 # removed, or if the value is a relative name.
2906 INSTALL
=$ac_install_sh
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2910 $as_echo "$INSTALL" >&6; }
2912 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2913 # It thinks the first close brace ends the variable substitution.
2914 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2916 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2918 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2921 $as_echo_n "checking whether build environment is sane... " >&6; }
2922 # Reject unsafe characters in $srcdir or the absolute working directory
2923 # name. Accept space and tab only in the latter.
2927 *[\\\"\
#\$\&\'\`$am_lf]*)
2928 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2931 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2932 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2935 # Do 'set' in a subshell so we don't clobber the current shell's
2936 # arguments. Must try -L first in case configure is actually a
2937 # symlink; some systems play weird games with the mod time of symlinks
2938 # (eg FreeBSD returns the mod time of the symlink's containing
2942 for am_try
in 1 2; do
2943 echo "timestamp, slept: $am_has_slept" > conftest.
file
2944 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2945 if test "$*" = "X"; then
2947 set X
`ls -t "$srcdir/configure" conftest.file`
2949 if test "$*" != "X $srcdir/configure conftest.file" \
2950 && test "$*" != "X conftest.file $srcdir/configure"; then
2952 # If neither matched, then we have a broken ls. This can happen
2953 # if, for instance, CONFIG_SHELL is bash and it inherits a
2954 # broken ls alias from the environment. This has actually
2955 # happened. Such a system could not be considered "sane".
2956 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2957 alias in your environment" "$LINENO" 5
2959 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2966 test "$2" = conftest.
file
2972 as_fn_error $?
"newly created file is older than distributed files!
2973 Check your system clock" "$LINENO" 5
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2976 $as_echo "yes" >&6; }
2977 # If we didn't sleep, we still need to ensure time stamps of config.status and
2978 # generated files are strictly newer.
2980 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2987 test "$program_prefix" != NONE
&&
2988 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2989 # Use a double $ so make ignores it.
2990 test "$program_suffix" != NONE
&&
2991 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2992 # Double any \ or $.
2993 # By default was `s,x,x', remove it if useless.
2994 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2995 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2997 # Expand $ac_aux_dir to an absolute path.
2998 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3000 if test x
"${MISSING+set}" != xset
; then
3003 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3005 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3008 # Use eval to expand $SHELL
3009 if eval "$MISSING --is-lightweight"; then
3010 am_missing_run
="$MISSING "
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3014 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3017 if test x
"${install_sh+set}" != xset
; then
3020 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3022 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3026 # Installed binaries are usually stripped using 'strip' when the user
3027 # run "make install-strip". However 'strip' might not be the right
3028 # tool to use in cross-compilation environments, therefore Automake
3029 # will honor the 'STRIP' environment variable to overrule this program.
3030 if test "$cross_compiling" != no
; then
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3033 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_STRIP+:} false
; then :
3037 $as_echo_n "(cached) " >&6
3039 if test -n "$STRIP"; then
3040 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir
=.
3047 for ac_exec_ext
in '' $ac_executable_extensions; do
3048 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 STRIP
=$ac_cv_prog_STRIP
3060 if test -n "$STRIP"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3062 $as_echo "$STRIP" >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3070 if test -z "$ac_cv_prog_STRIP"; then
3072 # Extract the first word of "strip", so it can be a program name with args.
3073 set dummy strip
; ac_word
=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3077 $as_echo_n "(cached) " >&6
3079 if test -n "$ac_ct_STRIP"; then
3080 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3082 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir
=.
3087 for ac_exec_ext
in '' $ac_executable_extensions; do
3088 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_ac_ct_STRIP
="strip"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3100 if test -n "$ac_ct_STRIP"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3102 $as_echo "$ac_ct_STRIP" >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3108 if test "x$ac_ct_STRIP" = x
; then
3111 case $cross_compiling:$ac_tool_warned in
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3115 ac_tool_warned
=yes ;;
3120 STRIP
="$ac_cv_prog_STRIP"
3124 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3127 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3128 if test -z "$MKDIR_P"; then
3129 if ${ac_cv_path_mkdir+:} false
; then :
3130 $as_echo_n "(cached) " >&6
3132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3133 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3136 test -z "$as_dir" && as_dir
=.
3137 for ac_prog
in mkdir gmkdir
; do
3138 for ac_exec_ext
in '' $ac_executable_extensions; do
3139 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3140 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3141 'mkdir (GNU coreutils) '* | \
3142 'mkdir (coreutils) '* | \
3143 'mkdir (fileutils) '4.1*)
3144 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3154 test -d .
/--version && rmdir .
/--version
3155 if test "${ac_cv_path_mkdir+set}" = set; then
3156 MKDIR_P
="$ac_cv_path_mkdir -p"
3158 # As a last resort, use the slow shell script. Don't cache a
3159 # value for MKDIR_P within a source directory, because that will
3160 # break other packages using the cache if that directory is
3161 # removed, or if the value is a relative name.
3162 MKDIR_P
="$ac_install_sh -d"
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3166 $as_echo "$MKDIR_P" >&6; }
3168 for ac_prog
in gawk mawk nawk
awk
3170 # Extract the first word of "$ac_prog", so it can be a program name with args.
3171 set dummy
$ac_prog; ac_word
=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_AWK+:} false
; then :
3175 $as_echo_n "(cached) " >&6
3177 if test -n "$AWK"; then
3178 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3184 test -z "$as_dir" && as_dir
=.
3185 for ac_exec_ext
in '' $ac_executable_extensions; do
3186 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_AWK
="$ac_prog"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 if test -n "$AWK"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3200 $as_echo "$AWK" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3207 test -n "$AWK" && break
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3211 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3213 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3214 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3215 $as_echo_n "(cached) " >&6
3217 cat >conftest.
make <<\_ACEOF
3220 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3222 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3223 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3225 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3227 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3231 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 $as_echo "yes" >&6; }
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 SET_MAKE
="MAKE=${MAKE-make}"
3241 rm -rf .tst
2>/dev
/null
3242 mkdir .tst
2>/dev
/null
3243 if test -d .tst
; then
3248 rmdir .tst
2>/dev
/null
3250 # Check whether --enable-silent-rules was given.
3251 if test "${enable_silent_rules+set}" = set; then :
3252 enableval
=$enable_silent_rules;
3255 case $enable_silent_rules in # (((
3256 yes) AM_DEFAULT_VERBOSITY
=0;;
3257 no
) AM_DEFAULT_VERBOSITY
=1;;
3258 *) AM_DEFAULT_VERBOSITY
=1;;
3260 am_make
=${MAKE-make}
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3262 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3263 if ${am_cv_make_support_nested_variables+:} false
; then :
3264 $as_echo_n "(cached) " >&6
3266 if $as_echo 'TRUE=$(BAR$(V))
3272 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3273 am_cv_make_support_nested_variables
=yes
3275 am_cv_make_support_nested_variables
=no
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3279 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3280 if test $am_cv_make_support_nested_variables = yes; then
3282 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3284 AM_V
=$AM_DEFAULT_VERBOSITY
3285 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3289 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3291 # is not polluted with repeated "-I."
3292 am__isrc
=' -I$(srcdir)'
3293 # test to see if srcdir already configured
3294 if test -f $srcdir/config.status
; then
3295 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3299 # test whether we have cygpath
3300 if test -z "$CYGPATH_W"; then
3301 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3302 CYGPATH_W
='cygpath -w'
3309 # Define the identity of the package.
3314 cat >>confdefs.h
<<_ACEOF
3315 #define PACKAGE "$PACKAGE"
3319 cat >>confdefs.h
<<_ACEOF
3320 #define VERSION "$VERSION"
3323 # Some tools Automake needs.
3325 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3328 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3331 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3334 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3337 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3339 # For better backward compatibility. To be removed once Automake 1.9.x
3340 # dies out for good. For more background, see:
3341 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3342 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3343 mkdir_p
='$(MKDIR_P)'
3345 # We need awk for the "check" target (and possibly the TAP driver). The
3346 # system "awk" is bad on some platforms.
3347 # Always define AMTAR for backward compatibility. Yes, it's still used
3348 # in the wild :-( We should find a proper way to deprecate it ...
3352 # We'll loop over all known methods to create a tar archive until one works.
3353 _am_tools
='gnutar pax cpio none'
3355 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3362 # POSIX will say in a future version that running "rm -f" with no argument
3363 # is OK; and we want to be able to make that assumption in our Makefile
3364 # recipes. So use an aggressive probe to check that the usage we want is
3365 # actually supported "in the wild" to an acceptable degree.
3366 # See automake bug#10828.
3367 # To make any issue more visible, cause the running configure to be aborted
3368 # by default if the 'rm' program in use doesn't match our expectations; the
3369 # user can still override this though.
3370 if rm -f && rm -fr && rm -rf; then : OK
; else
3374 Your 'rm' program seems unable to run without file operands specified
3375 on the command line, even when the '-f' option is present. This is contrary
3376 to the behaviour of most rm programs out there, and not conforming with
3377 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3379 Please tell bug-automake@gnu.org about your system, including the value
3380 of your $PATH and any error possibly output before this message. This
3381 can help us improve future automake versions.
3384 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3385 echo 'Configuration will proceed anyway, since you have set the' >&2
3386 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3390 Aborting the configuration process, to ensure you take notice of the issue.
3392 You can download and install GNU coreutils to get an 'rm' implementation
3393 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3395 If you want to complete the configuration process using your problematic
3396 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3397 to "yes", and re-run configure.
3400 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3405 ac_config_headers
="$ac_config_headers config.h:config.in"
3408 DEPDIR
="${am__leading_dot}deps"
3410 ac_config_commands
="$ac_config_commands depfiles"
3413 am_make
=${MAKE-make}
3414 cat > confinc
<< 'END'
3416 @
echo this is the am__doit target
3419 # If we don't find an include directive, just comment out the code.
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3421 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3425 # First try GNU make style include.
3426 echo "include confinc" > confmf
3427 # Ignore all kinds of additional output from 'make'.
3428 case `$am_make -s -f confmf 2> /dev/null` in #(
3429 *the\ am__doit\ target
*)
3435 # Now try BSD make style include.
3436 if test "$am__include" = "#"; then
3437 echo '.include "confinc"' > confmf
3438 case `$am_make -s -f confmf 2> /dev/null` in #(
3439 *the\ am__doit\ target
*)
3440 am__include
=.include
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3449 $as_echo "$_am_result" >&6; }
3450 rm -f confinc confmf
3452 # Check whether --enable-dependency-tracking was given.
3453 if test "${enable_dependency_tracking+set}" = set; then :
3454 enableval
=$enable_dependency_tracking;
3457 if test "x$enable_dependency_tracking" != xno
; then
3458 am_depcomp
="$ac_aux_dir/depcomp"
3462 if test "x$enable_dependency_tracking" != xno; then
3472 ac_cpp
='$CPP $CPPFLAGS'
3473 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3476 if test -n "$ac_tool_prefix"; then
3477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3478 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_CC+:} false
; then :
3482 $as_echo_n "(cached) " >&6
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC
="$CC" # Let the user override the test.
3487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3491 test -z "$as_dir" && as_dir
=.
3492 for ac_exec_ext
in '' $ac_executable_extensions; do
3493 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3515 if test -z "$ac_cv_prog_CC"; then
3517 # Extract the first word of "gcc", so it can be a program name with args.
3518 set dummy gcc
; ac_word
=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3522 $as_echo_n "(cached) " >&6
3524 if test -n "$ac_ct_CC"; then
3525 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3531 test -z "$as_dir" && as_dir
=.
3532 for ac_exec_ext
in '' $ac_executable_extensions; do
3533 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3534 ac_cv_prog_ac_ct_CC
="gcc"
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3545 if test -n "$ac_ct_CC"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3547 $as_echo "$ac_ct_CC" >&6; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3553 if test "x$ac_ct_CC" = x
; then
3556 case $cross_compiling:$ac_tool_warned in
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3560 ac_tool_warned
=yes ;;
3568 if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
3570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3571 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if ${ac_cv_prog_CC+:} false
; then :
3575 $as_echo_n "(cached) " >&6
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC
="$CC" # Let the user override the test.
3580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir
=.
3585 for ac_exec_ext
in '' $ac_executable_extensions; do
3586 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 if test -n "$CC"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600 $as_echo "$CC" >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3609 if test -z "$CC"; then
3610 # Extract the first word of "cc", so it can be a program name with args.
3611 set dummy cc
; ac_word
=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if ${ac_cv_prog_CC+:} false
; then :
3615 $as_echo_n "(cached) " >&6
3617 if test -n "$CC"; then
3618 ac_cv_prog_CC
="$CC" # Let the user override the test.
3621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir
=.
3626 for ac_exec_ext
in '' $ac_executable_extensions; do
3627 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3629 ac_prog_rejected
=yes
3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 if test $ac_prog_rejected = yes; then
3641 # We found a bogon in the path, so make sure we never use it.
3642 set dummy
$ac_cv_prog_CC
3644 if test $# != 0; then
3645 # We chose a different compiler from the bogus one.
3646 # However, it has the same basename, so the bogon will be chosen
3647 # first if we set CC to just the basename; use the full file name.
3649 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3655 if test -n "$CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3657 $as_echo "$CC" >&6; }
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3665 if test -z "$CC"; then
3666 if test -n "$ac_tool_prefix"; then
3667 for ac_prog
in cl.exe
3669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3670 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_CC+:} false
; then :
3674 $as_echo_n "(cached) " >&6
3676 if test -n "$CC"; then
3677 ac_cv_prog_CC
="$CC" # Let the user override the test.
3679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3683 test -z "$as_dir" && as_dir
=.
3684 for ac_exec_ext
in '' $ac_executable_extensions; do
3685 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3686 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 if test -n "$CC"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3699 $as_echo "$CC" >&6; }
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3706 test -n "$CC" && break
3709 if test -z "$CC"; then
3711 for ac_prog
in cl.exe
3713 # Extract the first word of "$ac_prog", so it can be a program name with args.
3714 set dummy
$ac_prog; ac_word
=$2
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 $as_echo_n "checking for $ac_word... " >&6; }
3717 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3718 $as_echo_n "(cached) " >&6
3720 if test -n "$ac_ct_CC"; then
3721 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3727 test -z "$as_dir" && as_dir
=.
3728 for ac_exec_ext
in '' $ac_executable_extensions; do
3729 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3730 ac_cv_prog_ac_ct_CC
="$ac_prog"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3741 if test -n "$ac_ct_CC"; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3743 $as_echo "$ac_ct_CC" >&6; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3750 test -n "$ac_ct_CC" && break
3753 if test "x$ac_ct_CC" = x
; then
3756 case $cross_compiling:$ac_tool_warned in
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3760 ac_tool_warned
=yes ;;
3769 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3771 as_fn_error $?
"no acceptable C compiler found in \$PATH
3772 See \`config.log' for more details" "$LINENO" 5; }
3774 # Provide some information about the compiler.
3775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3778 for ac_option
in --version -v -V -qversion; do
3779 { { ac_try
="$ac_compiler $ac_option >&5"
3781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3788 if test -s conftest.err; then
3790 ... rest of stderr output deleted ...
3791 10q' conftest.err >conftest.er1
3792 cat conftest.er1 >&5
3794 rm -f conftest.er1 conftest.err
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3810 ac_clean_files_save=$ac_clean_files
3811 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3812 # Try to create an executable without -o first, disregard a.out.
3813 # It will help us diagnose broken compilers, and finding out an intuition
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3816 $as_echo_n "checking whether the C compiler works... " >&6; }
3817 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3819 # The possible output files:
3820 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3823 for ac_file in $ac_files
3826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3827 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3832 if { { ac_try="$ac_link_default"
3834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3835 *) ac_try_echo
=$ac_try;;
3837 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838 $as_echo "$ac_try_echo"; } >&5
3839 (eval "$ac_link_default") 2>&5
3841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3842 test $ac_status = 0; }; then :
3843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3844 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3845 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3846 # so that the user can short-circuit this test for compilers unknown to
3848 for ac_file
in $ac_files ''
3850 test -f "$ac_file" ||
continue
3852 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3855 # We found the default executable, but exeext='' is most
3859 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3861 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3863 # We set ac_cv_exeext here because the later test for it is not
3864 # safe: cross compilers may not add the suffix if given an `-o'
3865 # argument, so we may need to know it at that point already.
3866 # Even if this section looks crufty: it has the advantage of
3873 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3878 if test -z "$ac_file"; then :
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 $as_echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.
$ac_ext >&5
3884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3886 as_fn_error
77 "C compiler cannot create executables
3887 See \`config.log' for more details" "$LINENO" 5; }
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3890 $as_echo "yes" >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3893 $as_echo_n "checking for C compiler default output file name... " >&6; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3895 $as_echo "$ac_file" >&6; }
3896 ac_exeext
=$ac_cv_exeext
3898 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3899 ac_clean_files
=$ac_clean_files_save
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3901 $as_echo_n "checking for suffix of executables... " >&6; }
3902 if { { ac_try
="$ac_link"
3904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_link") 2>&5
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; then :
3913 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3914 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3915 # work properly (i.e., refer to `conftest.exe'), while it won't with
3917 for ac_file
in conftest.exe conftest conftest.
*; do
3918 test -f "$ac_file" ||
continue
3920 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3921 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3930 See \`config.log' for more details" "$LINENO" 5; }
3932 rm -f conftest conftest
$ac_cv_exeext
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3934 $as_echo "$ac_cv_exeext" >&6; }
3936 rm -f conftest.
$ac_ext
3937 EXEEXT
=$ac_cv_exeext
3939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3945 FILE *f = fopen ("conftest.out", "w");
3946 return ferror (f) || fclose (f) != 0;
3952 ac_clean_files
="$ac_clean_files conftest.out"
3953 # Check that the compiler produces executables we can run. If not, either
3954 # the compiler is broken, or we cross compile.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
3957 if test "$cross_compiling" != yes; then
3958 { { ac_try
="$ac_link"
3960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_link") 2>&5
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }
3969 if { ac_try='./conftest$ac_cv_exeext'
3970 { { case "(($ac_try" in
3971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3972 *) ac_try_echo
=$ac_try;;
3974 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976 (eval "$ac_try") 2>&5
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }; }; then
3982 if test "$cross_compiling" = maybe
; then
3985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 as_fn_error $?
"cannot run C compiled programs.
3988 If you meant to cross compile, use \`--host'.
3989 See \`config.log' for more details" "$LINENO" 5; }
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3994 $as_echo "$cross_compiling" >&6; }
3996 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3997 ac_clean_files
=$ac_clean_files_save
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3999 $as_echo_n "checking for suffix of object files... " >&6; }
4000 if ${ac_cv_objext+:} false
; then :
4001 $as_echo_n "(cached) " >&6
4003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4014 rm -f conftest.o conftest.obj
4015 if { { ac_try
="$ac_compile"
4017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021 $as_echo "$ac_try_echo"; } >&5
4022 (eval "$ac_compile") 2>&5
4024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025 test $ac_status = 0; }; then :
4026 for ac_file in conftest.o conftest.obj conftest.*; do
4027 test -f "$ac_file" || continue;
4029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4035 $as_echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4040 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4041 See \
`config.log' for more details" "$LINENO" 5; }
4043 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4046 $as_echo "$ac_cv_objext" >&6; }
4047 OBJEXT=$ac_cv_objext
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4050 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4051 if ${ac_cv_c_compiler_gnu+:} false; then :
4052 $as_echo_n "(cached) " >&6
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4068 if ac_fn_c_try_compile "$LINENO"; then :
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4078 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4079 if test $ac_compiler_gnu = yes; then
4084 ac_test_CFLAGS=${CFLAGS+set}
4085 ac_save_CFLAGS=$CFLAGS
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4087 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4088 if ${ac_cv_prog_cc_g+:} false; then :
4089 $as_echo_n "(cached) " >&6
4091 ac_save_c_werror_flag=$ac_c_werror_flag
4092 ac_c_werror_flag=yes
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4106 if ac_fn_c_try_compile "$LINENO"; then :
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4121 if ac_fn_c_try_compile "$LINENO"; then :
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4137 if ac_fn_c_try_compile "$LINENO"; then :
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_c_werror_flag=$ac_save_c_werror_flag
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4148 $as_echo "$ac_cv_prog_cc_g" >&6; }
4149 if test "$ac_test_CFLAGS" = set; then
4150 CFLAGS=$ac_save_CFLAGS
4151 elif test $ac_cv_prog_cc_g = yes; then
4152 if test "$GCC" = yes; then
4158 if test "$GCC" = yes; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4165 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4166 if ${ac_cv_prog_cc_c89+:} false; then :
4167 $as_echo_n "(cached) " >&6
4169 ac_cv_prog_cc_c89=no
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4177 struct buf { int x; };
4178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4179 static char *e (p, i)
4185 static char *f (char * (*g) (char **, int), char **p, ...)
4190 s = g (p, va_arg (v,int));
4195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4196 function prototypes and stuff, but not '\xHH' hex character constants.
4197 These don't provoke an error unfortunately, instead are silently treated
4198 as 'x'. The following induces an error, until -std is added to get
4199 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4200 array size at least. It's necessary to write '\x00'==0 to get something
4201 that's true only with -std. */
4202 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4204 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4205 inside strings and character constants. */
4207 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4209 int test (int i, double x);
4210 struct s1 {int (*f) (int a);};
4211 struct s2 {int (*f) (double a);};
4212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4218 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4223 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4224 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4226 CC="$ac_save_CC $ac_arg"
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv_prog_cc_c89=$ac_arg
4230 rm -f core conftest.err conftest.$ac_objext
4231 test "x$ac_cv_prog_cc_c89" != "xno" && break
4233 rm -f conftest.$ac_ext
4238 case "x$ac_cv_prog_cc_c89" in
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241 $as_echo "none needed" >&6; } ;;
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4244 $as_echo "unsupported" >&6; } ;;
4246 CC="$CC $ac_cv_prog_cc_c89"
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4248 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4250 if test "x$ac_cv_prog_cc_c89" != xno; then :
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 ac_cpp='$CPP $CPPFLAGS'
4262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4266 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4267 if ${am_cv_prog_cc_c_o+:} false; then :
4268 $as_echo_n "(cached) " >&6
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4281 # Make sure it works both with $CC and with simple cc.
4282 # Following AC_PROG_CC_C_O, we do the test twice because some
4283 # compilers refuse to overwrite an existing .o file with -o,
4284 # though they will create one.
4285 am_cv_prog_cc_c_o=yes
4287 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4288 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } \
4292 && test -f conftest2.$ac_objext; then
4295 am_cv_prog_cc_c_o=no
4299 rm -f core conftest*
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4303 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4304 if test "$am_cv_prog_cc_c_o" != yes; then
4305 # Losing compiler, so override with the script.
4306 # FIXME: It is wrong to rewrite CC.
4307 # But if we don't then we get into trouble of one sort or another.
4308 # A longer-term fix would be to have automake use am__CC in this case,
4309 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4310 CC="$am_aux_dir/compile $CC"
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 depcc="$CC" am_compiler_list=
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4322 $as_echo_n "checking dependency style of $depcc... " >&6; }
4323 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4324 $as_echo_n "(cached) " >&6
4326 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4327 # We make a subdir and do the tests there. Otherwise we can end up
4328 # making bogus files that we don't know about and never remove. For
4329 # instance it was reported that on HP-UX the gcc test will end up
4330 # making a dummy file named 'D' -- because '-MD' means "put the output
4334 # Copy depcomp to subdir because otherwise we won't find it if we're
4335 # using a relative directory.
4336 cp "$am_depcomp" conftest.dir
4338 # We will build objects and dependencies in a subdirectory because
4339 # it helps to detect inapplicable dependency modes. For instance
4340 # both Tru64's cc and ICC support -MD to output dependencies as a
4341 # side effect of compilation, but ICC will put the dependencies in
4342 # the current directory while Tru64 will put them in the object
4346 am_cv_CC_dependencies_compiler_type=none
4347 if test "$am_compiler_list" = ""; then
4348 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4351 case " $depcc " in #(
4352 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4355 for depmode in $am_compiler_list; do
4356 # Setup a source with many dependencies, because some compilers
4357 # like to wrap large dependency lists on column 80 (with \), and
4358 # we should not choose a depcomp mode which is confused by this.
4360 # We need to recreate these files for each test, as the compiler may
4361 # overwrite some of them when testing with obscure command lines.
4362 # This happens at least with the AIX C compiler.
4364 for i in 1 2 3 4 5 6; do
4365 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4366 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4367 # Solaris 10 /bin/sh.
4368 echo '/* dummy */' > sub/conftst$i.h
4370 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4372 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4373 # mode. It turns out that the SunPro C++ compiler does not properly
4374 # handle '-M -o', and we need to detect this. Also, some Intel
4375 # versions had trouble with output in subdirs.
4376 am__obj=sub/conftest.${OBJEXT-o}
4377 am__minus_obj="-o $am__obj"
4380 # This depmode causes a compiler race in universal mode.
4381 test "$am__universal" = false || continue
4384 # After this tag, mechanisms are not by side-effect, so they'll
4385 # only be used when explicitly requested.
4386 if test "x$enable_dependency_tracking" = xyes; then
4392 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4393 # This compiler won't grok '-c -o', but also, the minuso test has
4394 # not run yet. These depmodes are late enough in the game, and
4395 # so weak that their functioning should not be impacted.
4396 am__obj=conftest.${OBJEXT-o}
4401 if depmode=$depmode \
4402 source=sub/conftest.c object=$am__obj \
4403 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4404 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4405 >/dev/null 2>conftest.err &&
4406 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4408 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4410 # icc doesn't choke on unknown options, it will just issue warnings
4411 # or remarks (even with -Werror). So we grep stderr for any message
4412 # that says an option was ignored or not supported.
4413 # When given -MP, icc 7.0 and 7.1 complain thusly:
4414 # icc: Command line warning: ignoring option '-M'; no argument required
4415 # The diagnosis changed in icc 8.0:
4416 # icc: Command line remark: option '-MP' not supported
4417 if (grep 'ignoring option' conftest.err ||
4418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4419 am_cv_CC_dependencies_compiler_type=$depmode
4428 am_cv_CC_dependencies_compiler_type=none
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4433 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4434 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4437 test "x$enable_dependency_tracking" != xno \
4438 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4440 am__fastdepCC_FALSE='#'
4442 am__fastdepCC_TRUE='#'
4443 am__fastdepCC_FALSE=
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4455 # On Suns, sometimes $CPP names a directory.
4456 if test -n "$CPP" && test -d "$CPP"; then
4459 if test -z "$CPP"; then
4460 if ${ac_cv_prog_CPP+:} false; then :
4461 $as_echo_n "(cached) " >&6
4463 # Double quotes because CPP needs to be expanded
4464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4467 for ac_c_preproc_warn_flag in '' yes
4469 # Use a header file that comes with gcc, so configuring glibc
4470 # with a fresh cross-compiler works.
4471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472 # <limits.h> exists even on freestanding compilers.
4473 # On the NeXT, cc -E runs the code through the compiler's parser,
4474 # not just through cpp. "Syntax error" is here to catch this case.
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4478 # include <limits.h>
4480 # include <assert.h>
4484 if ac_fn_c_try_cpp "$LINENO"; then :
4487 # Broken: fails on valid input.
4490 rm -f conftest.err conftest.i conftest.$ac_ext
4492 # OK, works on sane cases. Now check whether nonexistent headers
4493 # can be detected and how.
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #include <ac_nonexistent.h>
4498 if ac_fn_c_try_cpp "$LINENO"; then :
4499 # Broken: success on invalid input.
4502 # Passes both tests.
4506 rm -f conftest.err conftest.i conftest.$ac_ext
4509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4510 rm -f conftest.i conftest.err conftest.
$ac_ext
4511 if $ac_preproc_ok; then :
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4524 $as_echo "$CPP" >&6; }
4526 for ac_c_preproc_warn_flag
in '' yes
4528 # Use a header file that comes with gcc, so configuring glibc
4529 # with a fresh cross-compiler works.
4530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 # <limits.h> exists even on freestanding compilers.
4532 # On the NeXT, cc -E runs the code through the compiler's parser,
4533 # not just through cpp. "Syntax error" is here to catch this case.
4534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4537 # include <limits.h>
4539 # include <assert.h>
4543 if ac_fn_c_try_cpp
"$LINENO"; then :
4546 # Broken: fails on valid input.
4549 rm -f conftest.err conftest.i conftest.
$ac_ext
4551 # OK, works on sane cases. Now check whether nonexistent headers
4552 # can be detected and how.
4553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #include <ac_nonexistent.h>
4557 if ac_fn_c_try_cpp
"$LINENO"; then :
4558 # Broken: success on invalid input.
4561 # Passes both tests.
4565 rm -f conftest.err conftest.i conftest.
$ac_ext
4568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4569 rm -f conftest.i conftest.err conftest.
$ac_ext
4570 if $ac_preproc_ok; then :
4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4576 See \`config.log' for more details" "$LINENO" 5; }
4580 ac_cpp
='$CPP $CPPFLAGS'
4581 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4587 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4588 if ${ac_cv_path_GREP+:} false
; then :
4589 $as_echo_n "(cached) " >&6
4591 if test -z "$GREP"; then
4592 ac_path_GREP_found
=false
4593 # Loop through the user's path and test for each of PROGNAME-LIST
4594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4595 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4598 test -z "$as_dir" && as_dir
=.
4599 for ac_prog
in grep ggrep
; do
4600 for ac_exec_ext
in '' $ac_executable_extensions; do
4601 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4602 as_fn_executable_p
"$ac_path_GREP" ||
continue
4603 # Check for GNU ac_path_GREP and select it if it is found.
4604 # Check for GNU $ac_path_GREP
4605 case `"$ac_path_GREP" --version 2>&1` in
4607 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4610 $as_echo_n 0123456789 >"conftest.in"
4613 cat "conftest.in" "conftest.in" >"conftest.tmp"
4614 mv "conftest.tmp" "conftest.in"
4615 cp "conftest.in" "conftest.nl"
4616 $as_echo 'GREP' >> "conftest.nl"
4617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4618 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4619 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4620 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4621 # Best one so far, save it but keep looking for a better one
4622 ac_cv_path_GREP
="$ac_path_GREP"
4623 ac_path_GREP_max
=$ac_count
4625 # 10*(2^10) chars as input seems more than enough
4626 test $ac_count -gt 10 && break
4628 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4631 $ac_path_GREP_found && break 3
4636 if test -z "$ac_cv_path_GREP"; then
4637 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4640 ac_cv_path_GREP
=$GREP
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4645 $as_echo "$ac_cv_path_GREP" >&6; }
4646 GREP
="$ac_cv_path_GREP"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4650 $as_echo_n "checking for egrep... " >&6; }
4651 if ${ac_cv_path_EGREP+:} false
; then :
4652 $as_echo_n "(cached) " >&6
4654 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4655 then ac_cv_path_EGREP
="$GREP -E"
4657 if test -z "$EGREP"; then
4658 ac_path_EGREP_found
=false
4659 # Loop through the user's path and test for each of PROGNAME-LIST
4660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4661 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4664 test -z "$as_dir" && as_dir
=.
4665 for ac_prog
in egrep; do
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4668 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4669 # Check for GNU ac_path_EGREP and select it if it is found.
4670 # Check for GNU $ac_path_EGREP
4671 case `"$ac_path_EGREP" --version 2>&1` in
4673 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4676 $as_echo_n 0123456789 >"conftest.in"
4679 cat "conftest.in" "conftest.in" >"conftest.tmp"
4680 mv "conftest.tmp" "conftest.in"
4681 cp "conftest.in" "conftest.nl"
4682 $as_echo 'EGREP' >> "conftest.nl"
4683 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4684 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4685 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4686 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4687 # Best one so far, save it but keep looking for a better one
4688 ac_cv_path_EGREP
="$ac_path_EGREP"
4689 ac_path_EGREP_max
=$ac_count
4691 # 10*(2^10) chars as input seems more than enough
4692 test $ac_count -gt 10 && break
4694 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4697 $ac_path_EGREP_found && break 3
4702 if test -z "$ac_cv_path_EGREP"; then
4703 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4706 ac_cv_path_EGREP
=$EGREP
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4712 $as_echo "$ac_cv_path_EGREP" >&6; }
4713 EGREP
="$ac_cv_path_EGREP"
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4717 $as_echo_n "checking for ANSI C header files... " >&6; }
4718 if ${ac_cv_header_stdc+:} false
; then :
4719 $as_echo_n "(cached) " >&6
4721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4736 if ac_fn_c_try_compile
"$LINENO"; then :
4737 ac_cv_header_stdc
=yes
4739 ac_cv_header_stdc
=no
4741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4743 if test $ac_cv_header_stdc = yes; then
4744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751 $EGREP "memchr" >/dev
/null
2>&1; then :
4754 ac_cv_header_stdc
=no
4760 if test $ac_cv_header_stdc = yes; then
4761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768 $EGREP "free" >/dev
/null
2>&1; then :
4771 ac_cv_header_stdc
=no
4777 if test $ac_cv_header_stdc = yes; then
4778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4779 if test "$cross_compiling" = yes; then :
4782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4786 #if ((' ' & 0x0FF) == 0x020)
4787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4790 # define ISLOWER(c) \
4791 (('a' <= (c) && (c) <= 'i') \
4792 || ('j' <= (c) && (c) <= 'r') \
4793 || ('s' <= (c) && (c) <= 'z'))
4794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4802 for (i = 0; i < 256; i++)
4803 if (XOR (islower (i), ISLOWER (i))
4804 || toupper (i) != TOUPPER (i))
4809 if ac_fn_c_try_run
"$LINENO"; then :
4812 ac_cv_header_stdc
=no
4814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4815 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4821 $as_echo "$ac_cv_header_stdc" >&6; }
4822 if test $ac_cv_header_stdc = yes; then
4824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4828 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4829 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4830 inttypes.h stdint.h unistd.h
4832 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4833 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4835 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4836 cat >>confdefs.h
<<_ACEOF
4837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4846 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4847 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4854 if test "$MINIX" = yes; then
4856 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4859 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4862 $as_echo "#define _MINIX 1" >>confdefs.h
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4868 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4869 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4870 $as_echo_n "(cached) " >&6
4872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4875 # define __EXTENSIONS__ 1
4876 $ac_includes_default
4885 if ac_fn_c_try_compile
"$LINENO"; then :
4886 ac_cv_safe_to_define___extensions__
=yes
4888 ac_cv_safe_to_define___extensions__
=no
4890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4893 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4894 test $ac_cv_safe_to_define___extensions__ = yes &&
4895 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4897 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4899 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4901 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4903 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4911 # Check whether --with-sysroot was given.
4912 if test "${with_sysroot+set}" = set; then :
4913 withval
=$with_sysroot; sysroot
=$withval
4919 if test "$sysroot" = "yes"; then
4920 sysroot
='${exec_prefix}/${target_alias}/sys-root'
4921 elif test "$sysroot" = "no"; then
4925 sysroot_relocatable
=0
4926 if test -n "$sysroot"; then
4928 "${prefix}" |
"${prefix}/"* | \
4929 "${exec_prefix}" |
"${exec_prefix}/"* | \
4930 '${prefix}' |
'${prefix}/'*| \
4931 '${exec_prefix}' |
'${exec_prefix}/'*)
4932 sysroot_relocatable
=1
4938 cat >>confdefs.h
<<_ACEOF
4939 #define TARGET_SYSTEM_ROOT "$sysroot"
4943 cat >>confdefs.h
<<_ACEOF
4944 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
4949 installed_linker
=ld.gold
4950 # Check whether --enable-gold was given.
4951 if test "${enable_gold+set}" = set; then :
4952 enableval
=$enable_gold; case "${enableval}" in
4954 install_as_default
=yes
4957 if test x
${enable_ld} = xno
; then
4958 install_as_default
=yes
4963 install_as_default
=no
4971 for ac_header
in dlfcn.h
4973 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4975 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4976 cat >>confdefs.h
<<_ACEOF
4977 #define HAVE_DLFCN_H 1
4984 for ac_header
in windows.h
4986 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4988 if test "x$ac_cv_header_windows_h" = xyes
; then :
4989 cat >>confdefs.h
<<_ACEOF
4990 #define HAVE_WINDOWS_H 1
4998 # Check whether --enable-plugins was given.
4999 if test "${enable_plugins+set}" = set; then :
5000 enableval
=$enable_plugins; case "${enableval}" in
5003 if test "$maybe_plugins" != "yes" ; then
5004 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5008 plugins
=$maybe_plugins
5012 if test "$plugins" = "yes"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5014 $as_echo_n "checking for library containing dlsym... " >&6; }
5015 if ${ac_cv_search_dlsym+:} false
; then :
5016 $as_echo_n "(cached) " >&6
5018 ac_func_search_save_LIBS
=$LIBS
5019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5022 /* Override any GCC internal prototype to avoid an error.
5023 Use char because int might match the return type of a GCC
5024 builtin and then its argument prototype would still apply. */
5037 for ac_lib
in '' dl
; do
5038 if test -z "$ac_lib"; then
5039 ac_res
="none required"
5042 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5044 if ac_fn_c_try_link
"$LINENO"; then :
5045 ac_cv_search_dlsym
=$ac_res
5047 rm -f core conftest.err conftest.
$ac_objext \
5049 if ${ac_cv_search_dlsym+:} false
; then :
5053 if ${ac_cv_search_dlsym+:} false
; then :
5056 ac_cv_search_dlsym
=no
5059 LIBS
=$ac_func_search_save_LIBS
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5062 $as_echo "$ac_cv_search_dlsym" >&6; }
5063 ac_res
=$ac_cv_search_dlsym
5064 if test "$ac_res" != no
; then :
5065 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5071 if test "$plugins" = "yes"; then
5073 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5076 if test "$plugins" = "yes"; then
5085 # Decide if -z relro should be enabled in ELF linker by default.
5086 ac_default_ld_z_relro
=unset
5087 # Provide a configure time option to override our default.
5088 # Check whether --enable-relro was given.
5089 if test "${enable_relro+set}" = set; then :
5090 enableval
=$enable_relro; case "${enableval}" in
5091 yes) ac_default_ld_z_relro
=1 ;;
5092 no
) ac_default_ld_z_relro
=0 ;;
5095 if test "${ac_default_ld_z_relro}" = unset; then
5096 ac_default_ld_z_relro
=1
5099 cat >>confdefs.h
<<_ACEOF
5100 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5104 # Check whether --enable-targets was given.
5105 if test "${enable_targets+set}" = set; then :
5106 enableval
=$enable_targets; case "${enableval}" in
5108 as_fn_error $?
"--enable-targets option must specify target names or 'all'" "$LINENO" 5
5114 enable_targets
=$enableval
5118 # For now, enable all targets by default
5124 # Canonicalize the enabled targets.
5125 if test -n "$enable_targets"; then
5126 for targ
in `echo $enable_targets | sed -e 's/,/ /g'`; do
5127 result
=`$ac_config_sub $targ 2>/dev/null`
5128 if test -n "$result"; then
5129 canon_targets
="$canon_targets $result"
5131 # Permit unrecognized target names, like "all".
5132 canon_targets
="$canon_targets $targ"
5137 # Decide which "--hash-style" to use by default
5138 # Provide a configure time option to override our default.
5139 # Check whether --enable-default-hash-style was given.
5140 if test "${enable_default_hash_style+set}" = set; then :
5141 enableval
=$enable_default_hash_style; case "${enable_default_hash_style}" in
5142 sysv | gnu | both
) ;;
5143 *) as_fn_error $?
"bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5147 # Enable gnu hash only on GNU targets, but not mips
5148 mips
*-*-*) enable_default_hash_style
=sysv
;;
5149 *-*-gnu* |
*-*-linux* |
*-*-nacl*) enable_default_hash_style
=both
;;
5150 *) enable_default_hash_style
=sysv
;;
5156 cat >>confdefs.h
<<_ACEOF
5157 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5161 # See which specific instantiations we need.
5167 default_osabi
=ELFOSABI_NONE
5172 for targ
in $target $canon_targets; do
5173 if test "$targ" = "all"; then
5180 .
${srcdir}/configure.tgt
5182 if test "$targ_obj" = "UNKNOWN"; then
5183 as_fn_error $?
"\"unsupported target $targ\"" "$LINENO" 5
5185 targetobjs
="$targetobjs ${targ_obj}.\$(OBJEXT)"
5186 if test "$targ_extra_obj" != ""; then
5187 targetobjs
="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5189 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5190 if test "$targ_big_endian" = "true" \
5191 -o "$targ_extra_big_endian" = "true"; then
5194 if test "$targ_big_endian" = "false" \
5195 -o "$targ_extra_big_endian" = "false"; then
5199 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5200 if test "$targ_big_endian" = "true" \
5201 -o "$targ_extra_big_endian" = "true"; then
5204 if test "$targ_big_endian" = "false" \
5205 -o "$targ_extra_big_endian" = "false"; then
5210 if test "$target" = "$targ"; then
5211 default_machine
=$targ_machine
5212 default_size
=$targ_size
5213 default_big_endian
=$targ_big_endian
5214 default_osabi
=$targ_osabi
5216 if test "$targ_obj" = "aarch64"; then
5217 DEFAULT_TARGET_AARCH64_TRUE
=
5218 DEFAULT_TARGET_AARCH64_FALSE
='#'
5220 DEFAULT_TARGET_AARCH64_TRUE
='#'
5221 DEFAULT_TARGET_AARCH64_FALSE
=
5224 if test "$targ_obj" = "arm"; then
5225 DEFAULT_TARGET_ARM_TRUE
=
5226 DEFAULT_TARGET_ARM_FALSE
='#'
5228 DEFAULT_TARGET_ARM_TRUE
='#'
5229 DEFAULT_TARGET_ARM_FALSE
=
5232 if test "$targ_obj" = "i386"; then
5233 DEFAULT_TARGET_I386_TRUE
=
5234 DEFAULT_TARGET_I386_FALSE
='#'
5236 DEFAULT_TARGET_I386_TRUE
='#'
5237 DEFAULT_TARGET_I386_FALSE
=
5240 if test "$targ_obj" = "powerpc"; then
5241 DEFAULT_TARGET_POWERPC_TRUE
=
5242 DEFAULT_TARGET_POWERPC_FALSE
='#'
5244 DEFAULT_TARGET_POWERPC_TRUE
='#'
5245 DEFAULT_TARGET_POWERPC_FALSE
=
5248 if test "$targ_obj" = "sparc"; then
5249 DEFAULT_TARGET_SPARC_TRUE
=
5250 DEFAULT_TARGET_SPARC_FALSE
='#'
5252 DEFAULT_TARGET_SPARC_TRUE
='#'
5253 DEFAULT_TARGET_SPARC_FALSE
=
5256 if test "$targ_obj" = "s390"; then
5257 DEFAULT_TARGET_S390_TRUE
=
5258 DEFAULT_TARGET_S390_FALSE
='#'
5260 DEFAULT_TARGET_S390_TRUE
='#'
5261 DEFAULT_TARGET_S390_FALSE
=
5266 if test "$targ_obj" = "x86_64"; then
5268 x86_64
*-linux-gnux32)
5277 if test "$target_x86_64" = "yes"; then
5278 DEFAULT_TARGET_X86_64_TRUE
=
5279 DEFAULT_TARGET_X86_64_FALSE
='#'
5281 DEFAULT_TARGET_X86_64_TRUE
='#'
5282 DEFAULT_TARGET_X86_64_FALSE
=
5285 if test "$target_x32" = "yes"; then
5286 DEFAULT_TARGET_X32_TRUE
=
5287 DEFAULT_TARGET_X32_FALSE
='#'
5289 DEFAULT_TARGET_X32_TRUE
='#'
5290 DEFAULT_TARGET_X32_FALSE
=
5293 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5294 DEFAULT_TARGET_X86_64_OR_X32_TRUE
=
5295 DEFAULT_TARGET_X86_64_OR_X32_FALSE
='#'
5297 DEFAULT_TARGET_X86_64_OR_X32_TRUE
='#'
5298 DEFAULT_TARGET_X86_64_OR_X32_FALSE
=
5301 if test "$targ_obj" = "tilegx"; then
5302 DEFAULT_TARGET_TILEGX_TRUE
=
5303 DEFAULT_TARGET_TILEGX_FALSE
='#'
5305 DEFAULT_TARGET_TILEGX_TRUE
='#'
5306 DEFAULT_TARGET_TILEGX_FALSE
=
5309 if test "$targ_obj" = "mips"; then
5310 DEFAULT_TARGET_MIPS_TRUE
=
5311 DEFAULT_TARGET_MIPS_FALSE
='#'
5313 DEFAULT_TARGET_MIPS_TRUE
='#'
5314 DEFAULT_TARGET_MIPS_FALSE
=
5317 DEFAULT_TARGET
=${targ_obj}
5324 # Remove any duplicates.
5326 for t
in $targetobjs; do
5334 if test -n "$targ_32_little"; then
5336 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5339 if test -n "$targ_32_big"; then
5341 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5344 if test -n "$targ_64_little"; then
5346 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5349 if test -n "$targ_64_big"; then
5351 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5355 if test -n "$all_targets"; then
5356 TARGETOBJS
='$(ALL_TARGETOBJS)'
5358 TARGETOBJS
="$targetobjs"
5363 cat >>confdefs.h
<<_ACEOF
5364 #define GOLD_DEFAULT_MACHINE $default_machine
5368 cat >>confdefs.h
<<_ACEOF
5369 #define GOLD_DEFAULT_SIZE $default_size
5373 cat >>confdefs.h
<<_ACEOF
5374 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5378 cat >>confdefs.h
<<_ACEOF
5379 #define GOLD_DEFAULT_OSABI $default_osabi
5384 # Check whether --with-lib-path was given.
5385 if test "${with_lib_path+set}" = set; then :
5386 withval
=$with_lib_path; case "$withval" in
5387 yes) LIB_PATH
='"/lib:/usr/lib"' ;;
5388 no
) LIB_PATH
='""' ;;
5389 *) LIB_PATH
='"'"$withval"'"' ;;
5392 LIB_PATH
='"::DEFAULT::"'
5396 cat >>confdefs.h
<<_ACEOF
5397 #define LIB_PATH $LIB_PATH
5400 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5402 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5406 if test -n "$ac_tool_prefix"; then
5407 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5408 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_NM+:} false
; then :
5412 $as_echo_n "(cached) " >&6
5414 if test -n "$NM"; then
5415 ac_cv_prog_NM
="$NM" # Let the user override the test.
5417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir
=.
5422 for ac_exec_ext
in '' $ac_executable_extensions; do
5423 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_NM
="${ac_tool_prefix}nm"
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 if test -n "$NM"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5437 $as_echo "$NM" >&6; }
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5445 if test -z "$ac_cv_prog_NM"; then
5447 # Extract the first word of "nm", so it can be a program name with args.
5448 set dummy nm
; ac_word
=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_ac_ct_NM+:} false
; then :
5452 $as_echo_n "(cached) " >&6
5454 if test -n "$ac_ct_NM"; then
5455 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
5457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5461 test -z "$as_dir" && as_dir
=.
5462 for ac_exec_ext
in '' $ac_executable_extensions; do
5463 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_prog_ac_ct_NM
="nm"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
5475 if test -n "$ac_ct_NM"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5477 $as_echo "$ac_ct_NM" >&6; }
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5483 if test "x$ac_ct_NM" = x
; then
5486 case $cross_compiling:$ac_tool_warned in
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490 ac_tool_warned
=yes ;;
5500 ac_cpp
='$CPP $CPPFLAGS'
5501 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5504 if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5506 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_prog_CC+:} false
; then :
5510 $as_echo_n "(cached) " >&6
5512 if test -n "$CC"; then
5513 ac_cv_prog_CC
="$CC" # Let the user override the test.
5515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5519 test -z "$as_dir" && as_dir
=.
5520 for ac_exec_ext
in '' $ac_executable_extensions; do
5521 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 if test -n "$CC"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5535 $as_echo "$CC" >&6; }
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5543 if test -z "$ac_cv_prog_CC"; then
5545 # Extract the first word of "gcc", so it can be a program name with args.
5546 set dummy gcc
; ac_word
=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5550 $as_echo_n "(cached) " >&6
5552 if test -n "$ac_ct_CC"; then
5553 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5559 test -z "$as_dir" && as_dir
=.
5560 for ac_exec_ext
in '' $ac_executable_extensions; do
5561 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_ac_ct_CC
="gcc"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5573 if test -n "$ac_ct_CC"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5575 $as_echo "$ac_ct_CC" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5581 if test "x$ac_ct_CC" = x
; then
5584 case $cross_compiling:$ac_tool_warned in
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned
=yes ;;
5596 if test -z "$CC"; then
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5599 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_CC+:} false
; then :
5603 $as_echo_n "(cached) " >&6
5605 if test -n "$CC"; then
5606 ac_cv_prog_CC
="$CC" # Let the user override the test.
5608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir
=.
5613 for ac_exec_ext
in '' $ac_executable_extensions; do
5614 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 if test -n "$CC"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5628 $as_echo "$CC" >&6; }
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5637 if test -z "$CC"; then
5638 # Extract the first word of "cc", so it can be a program name with args.
5639 set dummy cc
; ac_word
=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_CC+:} false
; then :
5643 $as_echo_n "(cached) " >&6
5645 if test -n "$CC"; then
5646 ac_cv_prog_CC
="$CC" # Let the user override the test.
5649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir
=.
5654 for ac_exec_ext
in '' $ac_executable_extensions; do
5655 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5657 ac_prog_rejected
=yes
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 if test $ac_prog_rejected = yes; then
5669 # We found a bogon in the path, so make sure we never use it.
5670 set dummy
$ac_cv_prog_CC
5672 if test $# != 0; then
5673 # We chose a different compiler from the bogus one.
5674 # However, it has the same basename, so the bogon will be chosen
5675 # first if we set CC to just the basename; use the full file name.
5677 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5683 if test -n "$CC"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5685 $as_echo "$CC" >&6; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5693 if test -z "$CC"; then
5694 if test -n "$ac_tool_prefix"; then
5695 for ac_prog
in cl.exe
5697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5698 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_CC+:} false
; then :
5702 $as_echo_n "(cached) " >&6
5704 if test -n "$CC"; then
5705 ac_cv_prog_CC
="$CC" # Let the user override the test.
5707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir
=.
5712 for ac_exec_ext
in '' $ac_executable_extensions; do
5713 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5714 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 if test -n "$CC"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5727 $as_echo "$CC" >&6; }
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5734 test -n "$CC" && break
5737 if test -z "$CC"; then
5739 for ac_prog
in cl.exe
5741 # Extract the first word of "$ac_prog", so it can be a program name with args.
5742 set dummy
$ac_prog; ac_word
=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5746 $as_echo_n "(cached) " >&6
5748 if test -n "$ac_ct_CC"; then
5749 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir
=.
5756 for ac_exec_ext
in '' $ac_executable_extensions; do
5757 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_CC
="$ac_prog"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5769 if test -n "$ac_ct_CC"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5771 $as_echo "$ac_ct_CC" >&6; }
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5778 test -n "$ac_ct_CC" && break
5781 if test "x$ac_ct_CC" = x
; then
5784 case $cross_compiling:$ac_tool_warned in
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788 ac_tool_warned
=yes ;;
5797 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5799 as_fn_error $?
"no acceptable C compiler found in \$PATH
5800 See \`config.log' for more details" "$LINENO" 5; }
5802 # Provide some information about the compiler.
5803 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5806 for ac_option
in --version -v -V -qversion; do
5807 { { ac_try
="$ac_compiler $ac_option >&5"
5809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5813 $as_echo "$ac_try_echo"; } >&5
5814 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5816 if test -s conftest.err; then
5818 ... rest of stderr output deleted ...
5819 10q' conftest.err >conftest.er1
5820 cat conftest.er1 >&5
5822 rm -f conftest.er1 conftest.err
5823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5824 test $ac_status = 0; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5828 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5829 if ${ac_cv_c_compiler_gnu+:} false; then :
5830 $as_echo_n "(cached) " >&6
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5846 if ac_fn_c_try_compile "$LINENO"; then :
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5856 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5857 if test $ac_compiler_gnu = yes; then
5862 ac_test_CFLAGS=${CFLAGS+set}
5863 ac_save_CFLAGS=$CFLAGS
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5865 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5866 if ${ac_cv_prog_cc_g+:} false; then :
5867 $as_echo_n "(cached) " >&6
5869 ac_save_c_werror_flag=$ac_c_werror_flag
5870 ac_c_werror_flag=yes
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5884 if ac_fn_c_try_compile "$LINENO"; then :
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5899 if ac_fn_c_try_compile "$LINENO"; then :
5902 ac_c_werror_flag=$ac_save_c_werror_flag
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5915 if ac_fn_c_try_compile "$LINENO"; then :
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923 ac_c_werror_flag=$ac_save_c_werror_flag
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5926 $as_echo "$ac_cv_prog_cc_g" >&6; }
5927 if test "$ac_test_CFLAGS" = set; then
5928 CFLAGS=$ac_save_CFLAGS
5929 elif test $ac_cv_prog_cc_g = yes; then
5930 if test "$GCC" = yes; then
5936 if test "$GCC" = yes; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5943 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5944 if ${ac_cv_prog_cc_c89+:} false; then :
5945 $as_echo_n "(cached) " >&6
5947 ac_cv_prog_cc_c89=no
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5954 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5955 struct buf { int x; };
5956 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5957 static char *e (p, i)
5963 static char *f (char * (*g) (char **, int), char **p, ...)
5968 s = g (p, va_arg (v,int));
5973 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5974 function prototypes and stuff, but not '\xHH' hex character constants.
5975 These don't provoke an error unfortunately, instead are silently treated
5976 as 'x'. The following induces an error, until -std is added to get
5977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5978 array size at least. It's necessary to write '\x00'==0 to get something
5979 that's true only with -std. */
5980 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5982 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5983 inside strings and character constants. */
5985 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5987 int test (int i, double x);
5988 struct s1 {int (*f) (int a);};
5989 struct s2 {int (*f) (double a);};
5990 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5996 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6001 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6004 CC="$ac_save_CC $ac_arg"
6005 if ac_fn_c_try_compile "$LINENO"; then :
6006 ac_cv_prog_cc_c89=$ac_arg
6008 rm -f core conftest.err conftest.$ac_objext
6009 test "x$ac_cv_prog_cc_c89" != "xno" && break
6011 rm -f conftest.$ac_ext
6016 case "x$ac_cv_prog_cc_c89" in
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6019 $as_echo "none needed" >&6; } ;;
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6022 $as_echo "unsupported" >&6; } ;;
6024 CC="$CC $ac_cv_prog_cc_c89"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6026 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6028 if test "x$ac_cv_prog_cc_c89" != xno; then :
6033 ac_cpp='$CPP $CPPFLAGS'
6034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6039 ac_cpp='$CPP $CPPFLAGS'
6040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6044 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6045 if ${am_cv_prog_cc_c_o+:} false; then :
6046 $as_echo_n "(cached) " >&6
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6059 # Make sure it works both with $CC and with simple cc.
6060 # Following AC_PROG_CC_C_O, we do the test twice because some
6061 # compilers refuse to overwrite an existing .o file with -o,
6062 # though they will create one.
6063 am_cv_prog_cc_c_o=yes
6065 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6066 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } \
6070 && test -f conftest2.$ac_objext; then
6073 am_cv_prog_cc_c_o=no
6077 rm -f core conftest*
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6081 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6082 if test "$am_cv_prog_cc_c_o" != yes; then
6083 # Losing compiler, so override with the script.
6084 # FIXME: It is wrong to rewrite CC.
6085 # But if we don't then we get into trouble of one sort or another.
6086 # A longer-term fix would be to have automake use am__CC in this case,
6087 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6088 CC="$am_aux_dir/compile $CC"
6091 ac_cpp='$CPP $CPPFLAGS'
6092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6097 depcc="$CC" am_compiler_list=
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6100 $as_echo_n "checking dependency style of $depcc... " >&6; }
6101 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6102 $as_echo_n "(cached) " >&6
6104 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6105 # We make a subdir and do the tests there. Otherwise we can end up
6106 # making bogus files that we don't know about and never remove. For
6107 # instance it was reported that on HP-UX the gcc test will end up
6108 # making a dummy file named 'D' -- because '-MD' means "put the output
6112 # Copy depcomp to subdir because otherwise we won't find it if we're
6113 # using a relative directory.
6114 cp "$am_depcomp" conftest.dir
6116 # We will build objects and dependencies in a subdirectory because
6117 # it helps to detect inapplicable dependency modes. For instance
6118 # both Tru64's cc and ICC support -MD to output dependencies as a
6119 # side effect of compilation, but ICC will put the dependencies in
6120 # the current directory while Tru64 will put them in the object
6124 am_cv_CC_dependencies_compiler_type=none
6125 if test "$am_compiler_list" = ""; then
6126 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6129 case " $depcc " in #(
6130 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6133 for depmode in $am_compiler_list; do
6134 # Setup a source with many dependencies, because some compilers
6135 # like to wrap large dependency lists on column 80 (with \), and
6136 # we should not choose a depcomp mode which is confused by this.
6138 # We need to recreate these files for each test, as the compiler may
6139 # overwrite some of them when testing with obscure command lines.
6140 # This happens at least with the AIX C compiler.
6142 for i in 1 2 3 4 5 6; do
6143 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6144 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6145 # Solaris 10 /bin/sh.
6146 echo '/* dummy */' > sub/conftst$i.h
6148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6150 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6151 # mode. It turns out that the SunPro C++ compiler does not properly
6152 # handle '-M -o', and we need to detect this. Also, some Intel
6153 # versions had trouble with output in subdirs.
6154 am__obj=sub/conftest.${OBJEXT-o}
6155 am__minus_obj="-o $am__obj"
6158 # This depmode causes a compiler race in universal mode.
6159 test "$am__universal" = false || continue
6162 # After this tag, mechanisms are not by side-effect, so they'll
6163 # only be used when explicitly requested.
6164 if test "x$enable_dependency_tracking" = xyes; then
6170 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6171 # This compiler won't grok '-c -o', but also, the minuso test has
6172 # not run yet. These depmodes are late enough in the game, and
6173 # so weak that their functioning should not be impacted.
6174 am__obj=conftest.${OBJEXT-o}
6179 if depmode=$depmode \
6180 source=sub/conftest.c object=$am__obj \
6181 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6182 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6183 >/dev/null 2>conftest.err &&
6184 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6185 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6186 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6187 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6188 # icc doesn't choke on unknown options, it will just issue warnings
6189 # or remarks (even with -Werror). So we grep stderr for any message
6190 # that says an option was ignored or not supported.
6191 # When given -MP, icc 7.0 and 7.1 complain thusly:
6192 # icc: Command line warning: ignoring option '-M'; no argument required
6193 # The diagnosis changed in icc 8.0:
6194 # icc: Command line remark: option '-MP' not supported
6195 if (grep 'ignoring option' conftest.err ||
6196 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6197 am_cv_CC_dependencies_compiler_type=$depmode
6206 am_cv_CC_dependencies_compiler_type=none
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6211 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6212 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6215 test "x$enable_dependency_tracking" != xno \
6216 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6218 am__fastdepCC_FALSE='#'
6220 am__fastdepCC_TRUE='#'
6221 am__fastdepCC_FALSE=
6226 ac_cpp='$CXXCPP $CPPFLAGS'
6227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6230 if test -z "$CXX"; then
6231 if test -n "$CCC"; then
6234 if test -n "$ac_tool_prefix"; then
6235 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_CXX+:} false; then :
6242 $as_echo_n "(cached) " >&6
6244 if test -n "$CXX"; then
6245 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 if test -n "$CXX"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6267 $as_echo "$CXX" >&6; }
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6274 test -n "$CXX" && break
6277 if test -z "$CXX"; then
6279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6281 # Extract the first word of "$ac_prog", so it can be a program name with args.
6282 set dummy $ac_prog; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 if test -n "$ac_ct_CXX"; then
6289 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_ac_ct_CXX="$ac_prog"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6309 if test -n "$ac_ct_CXX"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6311 $as_echo "$ac_ct_CXX" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6318 test -n "$ac_ct_CXX" && break
6321 if test "x$ac_ct_CXX" = x; then
6324 case $cross_compiling:$ac_tool_warned in
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6336 # Provide some information about the compiler.
6337 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6340 for ac_option in --version -v -V -qversion; do
6341 { { ac_try="$ac_compiler $ac_option >&5"
6343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6344 *) ac_try_echo
=$ac_try;;
6346 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6347 $as_echo "$ac_try_echo"; } >&5
6348 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6350 if test -s conftest.err
; then
6352 ... rest of stderr output deleted ...
6353 10q' conftest.err
>conftest.er1
6354 cat conftest.er1
>&5
6356 rm -f conftest.er1 conftest.err
6357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358 test $ac_status = 0; }
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6362 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6363 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
6364 $as_echo_n "(cached) " >&6
6366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6380 if ac_fn_cxx_try_compile
"$LINENO"; then :
6385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6386 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6390 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6391 if test $ac_compiler_gnu = yes; then
6396 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6397 ac_save_CXXFLAGS
=$CXXFLAGS
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6399 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6400 if ${ac_cv_prog_cxx_g+:} false
; then :
6401 $as_echo_n "(cached) " >&6
6403 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6404 ac_cxx_werror_flag
=yes
6407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6418 if ac_fn_cxx_try_compile
"$LINENO"; then :
6419 ac_cv_prog_cxx_g
=yes
6422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6433 if ac_fn_cxx_try_compile
"$LINENO"; then :
6436 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6449 if ac_fn_cxx_try_compile
"$LINENO"; then :
6450 ac_cv_prog_cxx_g
=yes
6452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6457 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6460 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6461 if test "$ac_test_CXXFLAGS" = set; then
6462 CXXFLAGS
=$ac_save_CXXFLAGS
6463 elif test $ac_cv_prog_cxx_g = yes; then
6464 if test "$GXX" = yes; then
6470 if test "$GXX" = yes; then
6477 ac_cpp
='$CPP $CPPFLAGS'
6478 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6482 depcc
="$CXX" am_compiler_list
=
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6485 $as_echo_n "checking dependency style of $depcc... " >&6; }
6486 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
6487 $as_echo_n "(cached) " >&6
6489 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6490 # We make a subdir and do the tests there. Otherwise we can end up
6491 # making bogus files that we don't know about and never remove. For
6492 # instance it was reported that on HP-UX the gcc test will end up
6493 # making a dummy file named 'D' -- because '-MD' means "put the output
6497 # Copy depcomp to subdir because otherwise we won't find it if we're
6498 # using a relative directory.
6499 cp "$am_depcomp" conftest.dir
6501 # We will build objects and dependencies in a subdirectory because
6502 # it helps to detect inapplicable dependency modes. For instance
6503 # both Tru64's cc and ICC support -MD to output dependencies as a
6504 # side effect of compilation, but ICC will put the dependencies in
6505 # the current directory while Tru64 will put them in the object
6509 am_cv_CXX_dependencies_compiler_type
=none
6510 if test "$am_compiler_list" = ""; then
6511 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6514 case " $depcc " in #(
6515 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
6518 for depmode
in $am_compiler_list; do
6519 # Setup a source with many dependencies, because some compilers
6520 # like to wrap large dependency lists on column 80 (with \), and
6521 # we should not choose a depcomp mode which is confused by this.
6523 # We need to recreate these files for each test, as the compiler may
6524 # overwrite some of them when testing with obscure command lines.
6525 # This happens at least with the AIX C compiler.
6527 for i
in 1 2 3 4 5 6; do
6528 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6529 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6530 # Solaris 10 /bin/sh.
6531 echo '/* dummy */' > sub
/conftst
$i.h
6533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6535 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6536 # mode. It turns out that the SunPro C++ compiler does not properly
6537 # handle '-M -o', and we need to detect this. Also, some Intel
6538 # versions had trouble with output in subdirs.
6539 am__obj
=sub
/conftest.
${OBJEXT-o}
6540 am__minus_obj
="-o $am__obj"
6543 # This depmode causes a compiler race in universal mode.
6544 test "$am__universal" = false ||
continue
6547 # After this tag, mechanisms are not by side-effect, so they'll
6548 # only be used when explicitly requested.
6549 if test "x$enable_dependency_tracking" = xyes
; then
6555 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
6556 # This compiler won't grok '-c -o', but also, the minuso test has
6557 # not run yet. These depmodes are late enough in the game, and
6558 # so weak that their functioning should not be impacted.
6559 am__obj
=conftest.
${OBJEXT-o}
6564 if depmode
=$depmode \
6565 source=sub
/conftest.c object
=$am__obj \
6566 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6567 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
6568 >/dev
/null
2>conftest.err
&&
6569 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6570 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6571 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
6572 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6573 # icc doesn't choke on unknown options, it will just issue warnings
6574 # or remarks (even with -Werror). So we grep stderr for any message
6575 # that says an option was ignored or not supported.
6576 # When given -MP, icc 7.0 and 7.1 complain thusly:
6577 # icc: Command line warning: ignoring option '-M'; no argument required
6578 # The diagnosis changed in icc 8.0:
6579 # icc: Command line remark: option '-MP' not supported
6580 if (grep 'ignoring option' conftest.err ||
6581 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6582 am_cv_CXX_dependencies_compiler_type
=$depmode
6591 am_cv_CXX_dependencies_compiler_type
=none
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6596 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6597 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
6600 test "x$enable_dependency_tracking" != xno \
6601 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
6602 am__fastdepCXX_TRUE
=
6603 am__fastdepCXX_FALSE
='#'
6605 am__fastdepCXX_TRUE
='#'
6606 am__fastdepCXX_FALSE
=
6610 for ac_prog
in 'bison -y' byacc
6612 # Extract the first word of "$ac_prog", so it can be a program name with args.
6613 set dummy
$ac_prog; ac_word
=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_YACC+:} false
; then :
6617 $as_echo_n "(cached) " >&6
6619 if test -n "$YACC"; then
6620 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6626 test -z "$as_dir" && as_dir
=.
6627 for ac_exec_ext
in '' $ac_executable_extensions; do
6628 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_YACC
="$ac_prog"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 YACC
=$ac_cv_prog_YACC
6640 if test -n "$YACC"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6642 $as_echo "$YACC" >&6; }
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6649 test -n "$YACC" && break
6651 test -n "$YACC" || YACC
="yacc"
6653 if test -n "$ac_tool_prefix"; then
6654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6655 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_RANLIB+:} false
; then :
6659 $as_echo_n "(cached) " >&6
6661 if test -n "$RANLIB"; then
6662 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir
=.
6669 for ac_exec_ext
in '' $ac_executable_extensions; do
6670 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6671 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 RANLIB
=$ac_cv_prog_RANLIB
6682 if test -n "$RANLIB"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6684 $as_echo "$RANLIB" >&6; }
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6692 if test -z "$ac_cv_prog_RANLIB"; then
6693 ac_ct_RANLIB
=$RANLIB
6694 # Extract the first word of "ranlib", so it can be a program name with args.
6695 set dummy ranlib
; ac_word
=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6699 $as_echo_n "(cached) " >&6
6701 if test -n "$ac_ct_RANLIB"; then
6702 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir
=.
6709 for ac_exec_ext
in '' $ac_executable_extensions; do
6710 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6711 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6722 if test -n "$ac_ct_RANLIB"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6724 $as_echo "$ac_ct_RANLIB" >&6; }
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6730 if test "x$ac_ct_RANLIB" = x
; then
6733 case $cross_compiling:$ac_tool_warned in
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737 ac_tool_warned
=yes ;;
6739 RANLIB
=$ac_ct_RANLIB
6742 RANLIB
="$ac_cv_prog_RANLIB"
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6747 $as_echo_n "checking whether ln -s works... " >&6; }
6749 if test "$LN_S" = "ln -s"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6751 $as_echo "yes" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6754 $as_echo "no, using $LN_S" >&6; }
6760 # If we haven't got the data from the intl directory,
6761 # assume NLS is disabled.
6770 if test -f ..
/intl
/config.intl
; then
6771 . ..
/intl
/config.intl
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6774 $as_echo_n "checking whether NLS is requested... " >&6; }
6775 if test x
"$USE_NLS" != xyes
; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6780 $as_echo "yes" >&6; }
6782 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6786 $as_echo_n "checking for catalogs to be installed... " >&6; }
6787 # Look for .po and .gmo files in the source directory.
6790 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6791 # If there aren't any .gmo files the shell will give us the
6792 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6794 case "$cat" in *\
**)
6797 # The quadruple backslash is collapsed to a double backslash
6798 # by the backticks, then collapsed again by the double quotes,
6799 # leaving us with one backslash in the sed expression (right
6800 # before the dot that mustn't act as a wildcard).
6801 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6802 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6803 # The user is allowed to set LINGUAS to a list of languages to
6804 # install catalogs for. If it's empty that means "all of them."
6805 if test "x$LINGUAS" = x
; then
6806 CATALOGS
="$CATALOGS $cat"
6807 XLINGUAS
="$XLINGUAS $lang"
6809 case "$LINGUAS" in *$lang*)
6810 CATALOGS
="$CATALOGS $cat"
6811 XLINGUAS
="$XLINGUAS $lang"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6818 $as_echo "$LINGUAS" >&6; }
6832 if test -n "$ac_aux_dir"; then
6833 case "$ac_aux_dir" in
6834 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
6835 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6838 if test -z "$MKINSTALLDIRS"; then
6839 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6845 $as_echo_n "checking whether NLS is requested... " >&6; }
6846 # Check whether --enable-nls was given.
6847 if test "${enable_nls+set}" = set; then :
6848 enableval
=$enable_nls; USE_NLS
=$enableval
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6854 $as_echo "$USE_NLS" >&6; }
6861 # Prepare PATH_SEPARATOR.
6862 # The user is always right.
6863 if test "${PATH_SEPARATOR+set}" != set; then
6864 echo "#! /bin/sh" >conf$$.sh
6865 echo "exit 0" >>conf$$.sh
6867 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6875 # Find out how to test for executable files. Don't use a zero-byte file,
6876 # as systems may use methods other than mode bits to determine executability.
6877 cat >conf$$.
file <<_ASEOF
6881 chmod +x conf$$.
file
6882 if test -x conf$$.
file >/dev
/null
2>&1; then
6883 ac_executable_p
="test -x"
6885 ac_executable_p
="test -f"
6889 # Extract the first word of "msgfmt", so it can be a program name with args.
6890 set dummy msgfmt
; ac_word
=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_path_MSGFMT+:} false
; then :
6894 $as_echo_n "(cached) " >&6
6898 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6901 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6902 for ac_dir
in $PATH; do
6904 test -z "$ac_dir" && ac_dir
=.
6905 for ac_exec_ext
in '' $ac_executable_extensions; do
6906 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6907 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
6908 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6909 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
6916 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6920 MSGFMT
="$ac_cv_path_MSGFMT"
6921 if test "$MSGFMT" != ":"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6923 $as_echo "$MSGFMT" >&6; }
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6929 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6930 set dummy gmsgfmt
; ac_word
=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_path_GMSGFMT+:} false
; then :
6934 $as_echo_n "(cached) " >&6
6938 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir
=.
6946 for ac_exec_ext
in '' $ac_executable_extensions; do
6947 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6960 GMSGFMT
=$ac_cv_path_GMSGFMT
6961 if test -n "$GMSGFMT"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6963 $as_echo "$GMSGFMT" >&6; }
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6972 # Prepare PATH_SEPARATOR.
6973 # The user is always right.
6974 if test "${PATH_SEPARATOR+set}" != set; then
6975 echo "#! /bin/sh" >conf$$.sh
6976 echo "exit 0" >>conf$$.sh
6978 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6986 # Find out how to test for executable files. Don't use a zero-byte file,
6987 # as systems may use methods other than mode bits to determine executability.
6988 cat >conf$$.
file <<_ASEOF
6992 chmod +x conf$$.
file
6993 if test -x conf$$.
file >/dev
/null
2>&1; then
6994 ac_executable_p
="test -x"
6996 ac_executable_p
="test -f"
7000 # Extract the first word of "xgettext", so it can be a program name with args.
7001 set dummy xgettext
; ac_word
=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_path_XGETTEXT+:} false
; then :
7005 $as_echo_n "(cached) " >&6
7009 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7012 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7013 for ac_dir
in $PATH; do
7015 test -z "$ac_dir" && ac_dir
=.
7016 for ac_exec_ext
in '' $ac_executable_extensions; do
7017 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7018 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
7019 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
7020 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
7027 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7031 XGETTEXT
="$ac_cv_path_XGETTEXT"
7032 if test "$XGETTEXT" != ":"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7034 $as_echo "$XGETTEXT" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7043 # Prepare PATH_SEPARATOR.
7044 # The user is always right.
7045 if test "${PATH_SEPARATOR+set}" != set; then
7046 echo "#! /bin/sh" >conf$$.sh
7047 echo "exit 0" >>conf$$.sh
7049 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7057 # Find out how to test for executable files. Don't use a zero-byte file,
7058 # as systems may use methods other than mode bits to determine executability.
7059 cat >conf$$.
file <<_ASEOF
7063 chmod +x conf$$.
file
7064 if test -x conf$$.
file >/dev
/null
2>&1; then
7065 ac_executable_p
="test -x"
7067 ac_executable_p
="test -f"
7071 # Extract the first word of "msgmerge", so it can be a program name with args.
7072 set dummy msgmerge
; ac_word
=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_path_MSGMERGE+:} false
; then :
7076 $as_echo_n "(cached) " >&6
7080 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
7083 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7084 for ac_dir
in $PATH; do
7086 test -z "$ac_dir" && ac_dir
=.
7087 for ac_exec_ext
in '' $ac_executable_extensions; do
7088 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7089 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
7090 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
7097 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
7101 MSGMERGE
="$ac_cv_path_MSGMERGE"
7102 if test "$MSGMERGE" != ":"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7104 $as_echo "$MSGMERGE" >&6; }
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7111 if test "$GMSGFMT" != ":"; then
7112 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
7113 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
7116 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7118 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7123 if test "$XGETTEXT" != ":"; then
7124 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
7125 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7129 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7135 ac_config_commands
="$ac_config_commands default-1"
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7140 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7141 if ${ac_cv_c_bigendian+:} false
; then :
7142 $as_echo_n "(cached) " >&6
7144 ac_cv_c_bigendian
=unknown
7145 # See if we're dealing with a universal compiler.
7146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7148 #ifndef __APPLE_CC__
7149 not a universal capable compiler
7154 if ac_fn_c_try_compile
"$LINENO"; then :
7156 # Check for potential -arch flags. It is not universal unless
7157 # there are at least two -arch flags with different values.
7160 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7161 if test -n "$ac_prev"; then
7163 i?
86 | x86_64 | ppc | ppc64
)
7164 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7167 ac_cv_c_bigendian
=universal
7173 elif test "x$ac_word" = "x-arch"; then
7178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7179 if test $ac_cv_c_bigendian = unknown
; then
7180 # See if sys/param.h defines the BYTE_ORDER macro.
7181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7183 #include <sys/types.h>
7184 #include <sys/param.h>
7189 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7190 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7199 if ac_fn_c_try_compile
"$LINENO"; then :
7200 # It does; now see whether it defined to BIG_ENDIAN or not.
7201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 #include <sys/types.h>
7204 #include <sys/param.h>
7209 #if BYTE_ORDER != BIG_ENDIAN
7217 if ac_fn_c_try_compile
"$LINENO"; then :
7218 ac_cv_c_bigendian
=yes
7220 ac_cv_c_bigendian
=no
7222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7226 if test $ac_cv_c_bigendian = unknown
; then
7227 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7235 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7243 if ac_fn_c_try_compile
"$LINENO"; then :
7244 # It does; now see whether it defined to _BIG_ENDIAN or not.
7245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7260 if ac_fn_c_try_compile
"$LINENO"; then :
7261 ac_cv_c_bigendian
=yes
7263 ac_cv_c_bigendian
=no
7265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7269 if test $ac_cv_c_bigendian = unknown
; then
7270 # Compile a test program.
7271 if test "$cross_compiling" = yes; then :
7272 # Try to guess by grepping values from an object file.
7273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7275 short int ascii_mm[] =
7276 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7277 short int ascii_ii[] =
7278 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7279 int use_ascii (int i) {
7280 return ascii_mm[i] + ascii_ii[i];
7282 short int ebcdic_ii[] =
7283 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7284 short int ebcdic_mm[] =
7285 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7286 int use_ebcdic (int i) {
7287 return ebcdic_mm[i] + ebcdic_ii[i];
7294 return use_ascii (foo) == use_ebcdic (foo);
7299 if ac_fn_c_try_compile
"$LINENO"; then :
7300 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7301 ac_cv_c_bigendian
=yes
7303 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7304 if test "$ac_cv_c_bigendian" = unknown
; then
7305 ac_cv_c_bigendian
=no
7307 # finding both strings is unlikely to happen, but who knows?
7308 ac_cv_c_bigendian
=unknown
7312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 $ac_includes_default
7321 /* Are we little or big endian? From Harbison&Steele. */
7325 char c[sizeof (long int)];
7328 return u.c[sizeof (long int) - 1] == 1;
7334 if ac_fn_c_try_run
"$LINENO"; then :
7335 ac_cv_c_bigendian
=no
7337 ac_cv_c_bigendian
=yes
7339 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7340 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7346 $as_echo "$ac_cv_c_bigendian" >&6; }
7347 case $ac_cv_c_bigendian in #(
7349 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7355 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7359 as_fn_error $?
"unknown endianness
7360 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7366 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
7368 NATIVE_LINKER_FALSE
='#'
7370 NATIVE_LINKER_TRUE
='#'
7371 NATIVE_LINKER_FALSE
=
7374 if test "$GCC" = yes; then
7383 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
7384 NATIVE_OR_CROSS_LINKER_TRUE
=
7385 NATIVE_OR_CROSS_LINKER_FALSE
='#'
7387 NATIVE_OR_CROSS_LINKER_TRUE
='#'
7388 NATIVE_OR_CROSS_LINKER_FALSE
=
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
7393 $as_echo_n "checking whether static linking works... " >&6; }
7394 if ${gold_cv_lib_static+:} false
; then :
7395 $as_echo_n "(cached) " >&6
7397 LDFLAGS_hold
=$LDFLAGS
7398 LDFLAGS
="$LDFLAGS -static"
7399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7411 if ac_fn_c_try_link
"$LINENO"; then :
7412 gold_cv_lib_static
=yes
7414 gold_cv_lib_static
=no
7416 rm -f core conftest.err conftest.
$ac_objext \
7417 conftest
$ac_exeext conftest.
$ac_ext
7418 LDFLAGS
=$LDFLAGS_hold
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
7421 $as_echo "$gold_cv_lib_static" >&6; }
7422 if test "$gold_cv_lib_static" = "yes"; then
7424 HAVE_STATIC_FALSE
='#'
7426 HAVE_STATIC_TRUE
='#'
7439 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
=
7440 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
='#'
7442 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
='#'
7443 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
=
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
7448 $as_echo_n "checking for gcc >= 4.1... " >&6; }
7449 if ${gold_cv_prog_gcc41+:} false
; then :
7450 $as_echo_n "(cached) " >&6
7452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7455 #if !defined __GNUC__
7457 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
7462 if ac_fn_c_try_compile
"$LINENO"; then :
7463 gold_cv_prog_gcc41
=yes
7465 gold_cv_prog_gcc41
=no
7467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
7470 $as_echo "$gold_cv_prog_gcc41" >&6; }
7472 save_CFLAGS
="$CFLAGS"
7473 CFLAGS
="$CFLAGS -mcmodel=medium"
7474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7478 if ac_fn_c_try_compile
"$LINENO"; then :
7479 have_mcmodel_medium
=yes
7481 have_mcmodel_medium
=no
7483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7484 CFLAGS
="$save_CFLAGS"
7485 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
7486 MCMODEL_MEDIUM_TRUE
=
7487 MCMODEL_MEDIUM_FALSE
='#'
7489 MCMODEL_MEDIUM_TRUE
='#'
7490 MCMODEL_MEDIUM_FALSE
=
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
7495 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
7496 if ${gold_cv_merge_constants+:} false
; then :
7497 $as_echo_n "(cached) " >&6
7500 save_CFLAGS
="$CFLAGS"
7501 CFLAGS
="$CFLAGS -fmerge-constants"
7502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504 const char *s = "foo";
7506 if ac_fn_c_try_compile
"$LINENO"; then :
7507 gold_cv_merge_constants
=yes
7509 gold_cv_merge_constants
=no
7511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7512 CFLAGS
="$save_CFLAGS"
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
7515 $as_echo "$gold_cv_merge_constants" >&6; }
7517 if test "$gold_cv_merge_constants" = yes; then :
7518 MERGE_CONSTANTS_FLAG
=-fmerge-constants
7520 MERGE_CONSTANTS_FLAG
=
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
7524 $as_echo_n "checking for thread support... " >&6; }
7525 if ${gold_cv_c_thread+:} false
; then :
7526 $as_echo_n "(cached) " >&6
7528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7532 if ac_fn_c_try_compile
"$LINENO"; then :
7533 gold_cv_c_thread
=yes
7537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
7540 $as_echo "$gold_cv_c_thread" >&6; }
7542 if test "$gold_cv_c_thread" = "yes"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
7552 $as_echo_n "checking for glibc >= 2.4... " >&6; }
7553 if ${gold_cv_lib_glibc24+:} false
; then :
7554 $as_echo_n "(cached) " >&6
7556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7559 #include <features.h>
7560 #if !defined __GLIBC__
7562 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
7567 if ac_fn_c_try_compile
"$LINENO"; then :
7568 gold_cv_lib_glibc24
=yes
7570 gold_cv_lib_glibc24
=no
7572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
7575 $as_echo "$gold_cv_lib_glibc24" >&6; }
7577 if test "$gold_cv_lib_glibc24" = "yes"; then
7579 STATIC_TLS_FALSE
='#'
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
7587 $as_echo_n "checking for omp support... " >&6; }
7588 if ${gold_cv_c_threadprivate+:} false
; then :
7589 $as_echo_n "(cached) " >&6
7591 save_CFLAGS
="$CFLAGS"
7592 CFLAGS
="$CFLAGS -fopenmp"
7593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7598 #pragma omp threadprivate (i)
7601 if ac_fn_c_try_compile
"$LINENO"; then :
7602 gold_cv_c_threadprivate
=yes
7604 gold_cv_c_threadprivate
=no
7606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7607 CFLAGS
="$save_CFLAGS"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
7610 $as_echo "$gold_cv_c_threadprivate" >&6; }
7611 if test "$gold_cv_c_threadprivate" = "yes"; then
7613 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
7616 if test "$gold_cv_c_threadprivate" = "yes"; then
7618 OMP_SUPPORT_FALSE
='#'
7620 OMP_SUPPORT_TRUE
='#'
7625 save_CFLAGS
="$CFLAGS"
7626 CFLAGS
="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
7627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7637 if ac_fn_c_try_compile
"$LINENO"; then :
7642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7643 CFLAGS
="$save_CFLAGS"
7644 if test "$have_tls_gnu2" = "yes"; then
7645 TLS_GNU2_DIALECT_TRUE
=
7646 TLS_GNU2_DIALECT_FALSE
='#'
7648 TLS_GNU2_DIALECT_TRUE
='#'
7649 TLS_GNU2_DIALECT_FALSE
=
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
7654 $as_echo_n "checking for glibc >= 2.9... " >&6; }
7655 if ${gold_cv_lib_glibc29+:} false
; then :
7656 $as_echo_n "(cached) " >&6
7658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7661 #include <features.h>
7662 #if !defined __GLIBC__
7664 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
7669 if ac_fn_c_try_compile
"$LINENO"; then :
7670 gold_cv_lib_glibc29
=yes
7672 gold_cv_lib_glibc29
=no
7674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
7677 $as_echo "$gold_cv_lib_glibc29" >&6; }
7679 if test "$gold_cv_lib_glibc29" = "yes"; then
7680 TLS_DESCRIPTORS_TRUE
=
7681 TLS_DESCRIPTORS_FALSE
='#'
7683 TLS_DESCRIPTORS_TRUE
='#'
7684 TLS_DESCRIPTORS_FALSE
=
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
7689 $as_echo_n "checking for -frandom-seed support... " >&6; }
7690 if ${gold_cv_c_random_seed+:} false
; then :
7691 $as_echo_n "(cached) " >&6
7693 save_CFLAGS
="$CFLAGS"
7694 CFLAGS
="$CFLAGS -frandom-seed=foo"
7695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7699 if ac_fn_c_try_compile
"$LINENO"; then :
7700 gold_cv_c_random_seed
=yes
7702 gold_cv_c_random_seed
=no
7704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7705 CFLAGS
="$save_CFLAGS"
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
7708 $as_echo "$gold_cv_c_random_seed" >&6; }
7709 if test "$gold_cv_c_random_seed" = "yes"; then
7710 # In Makefile, '$@' will be expanded to be the name of the file
7711 # being built, providing a unique seed for each file.
7712 RANDOM_SEED_CFLAGS
=-frandom-seed=\$@
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
7717 $as_echo_n "checking for glibc ifunc support... " >&6; }
7718 if ${gold_cv_lib_glibc_ifunc+:} false
; then :
7719 $as_echo_n "(cached) " >&6
7721 save_LDFLAGS
="$LDFLAGS"
7722 LDFLAGS
="$LDFLAGS -static"
7723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7726 #include <features.h>
7727 #if !defined __GLIBC__
7729 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
7732 void func (void) { }
7734 __asm__(".type invoke, %gnu_indirect_function");
7735 typedef void (*funcptr) (void);
7736 funcptr dispatch (void) __asm__ ("invoke");
7737 funcptr dispatch (void) { return &func; }
7747 if ac_fn_c_try_link
"$LINENO"; then :
7749 if ${NM} conftest
$EXEEXT |
grep "__rela\?_iplt_start" >/dev
/null
2>&1; then
7750 gold_cv_lib_glibc_ifunc
=both
7752 gold_cv_lib_glibc_ifunc
=dyn
7755 gold_cv_lib_glibc_ifunc
=no
7757 rm -f core conftest.err conftest.
$ac_objext \
7758 conftest
$ac_exeext conftest.
$ac_ext
7759 LDFLAGS
="$save_LDFLAGS"
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
7762 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
7764 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
7772 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
7774 IFUNC_STATIC_FALSE
='#'
7776 IFUNC_STATIC_TRUE
='#'
7782 # Set the 'development' global.
7783 .
$srcdir/..
/bfd
/development.sh
7785 # Set acp_cpp_for_build variable
7786 ac_cpp_for_build
="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
7788 # Default set of GCC warnings to enable.
7789 GCC_WARN_CFLAGS
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7790 GCC_WARN_CFLAGS_FOR_BUILD
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7792 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7798 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
7801 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wshadow"
7806 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7812 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
7815 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wstack-usage=262144"
7820 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
7821 WARN_WRITE_STRINGS
=""
7822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7827 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
7830 WARN_WRITE_STRINGS
="-Wwrite-strings"
7835 # Verify CC_FOR_BUILD to be compatible with warning flags
7837 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7842 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7843 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
7846 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
7851 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7856 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7857 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
7860 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
7865 # Check whether --enable-werror was given.
7866 if test "${enable_werror+set}" = set; then :
7867 enableval
=$enable_werror; case "${enableval}" in
7868 yes | y
) ERROR_ON_WARNING
="yes" ;;
7869 no | n
) ERROR_ON_WARNING
="no" ;;
7870 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7875 # Disable -Wformat by default when using gcc on mingw
7878 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
7879 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wno-format"
7880 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
7886 # Enable -Werror by default when using gcc. Turn it off for releases.
7887 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true
; then
7888 ERROR_ON_WARNING
=yes
7892 if test "${ERROR_ON_WARNING}" = yes ; then
7893 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Werror"
7894 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
7895 NO_WERROR
="-Wno-error"
7898 if test "${GCC}" = yes ; then
7899 WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
7900 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}"
7903 # Check whether --enable-build-warnings was given.
7904 if test "${enable_build_warnings+set}" = set; then :
7905 enableval
=$enable_build_warnings; case "${enableval}" in
7906 yes) WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
7907 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}";;
7908 no
) if test "${GCC}" = yes ; then
7910 WARN_CFLAGS_FOR_BUILD
="-w"
7912 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7913 WARN_CFLAGS
="${GCC_WARN_CFLAGS} ${t}"
7914 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
7915 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7916 WARN_CFLAGS
="${t} ${GCC_WARN_CFLAGS}"
7917 WARN_CFLAGS_FOR_BUILD
="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
7918 *) WARN_CFLAGS
=`echo "${enableval}" | sed -e "s/,/ /g"`
7919 WARN_CFLAGS_FOR_BUILD
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7924 if test x
"$silent" != x
"yes" && test x
"$WARN_CFLAGS" != x
""; then
7925 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
7934 WARN_CXXFLAGS
=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
7938 # Check whether --with-gold-ldflags was given.
7939 if test "${with_gold_ldflags+set}" = set; then :
7940 withval
=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7943 GOLD_LDFLAGS
=$withval
7952 # Check whether --with-gold-ldadd was given.
7953 if test "${with_gold_ldadd+set}" = set; then :
7954 withval
=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
7965 LFS_CFLAGS
="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
7968 for ac_header
in sys
/mman.h
7970 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
7971 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
7972 cat >>confdefs.h
<<_ACEOF
7973 #define HAVE_SYS_MMAN_H 1
7980 for ac_func
in chsize mmap link
7982 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7983 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7984 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7985 cat >>confdefs.h
<<_ACEOF
7986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7992 ac_fn_c_check_func
"$LINENO" "pread" "ac_cv_func_pread"
7993 if test "x$ac_cv_func_pread" = xyes
; then :
7994 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
7997 case " $LIBOBJS " in
7998 *" pread.$ac_objext "* ) ;;
7999 *) LIBOBJS
="$LIBOBJS pread.$ac_objext"
8005 ac_fn_c_check_func
"$LINENO" "ftruncate" "ac_cv_func_ftruncate"
8006 if test "x$ac_cv_func_ftruncate" = xyes
; then :
8007 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
8010 case " $LIBOBJS " in
8011 *" ftruncate.$ac_objext "* ) ;;
8012 *) LIBOBJS
="$LIBOBJS ftruncate.$ac_objext"
8018 ac_fn_c_check_func
"$LINENO" "ffsll" "ac_cv_func_ffsll"
8019 if test "x$ac_cv_func_ffsll" = xyes
; then :
8020 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
8023 case " $LIBOBJS " in
8024 *" ffsll.$ac_objext "* ) ;;
8025 *) LIBOBJS
="$LIBOBJS ffsll.$ac_objext"
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
8034 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
8035 if ${gold_cv_lib_mremap_maymove+:} false
; then :
8036 $as_echo_n "(cached) " >&6
8038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8042 #include <sys/mman.h>
8043 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
8053 if ac_fn_c_try_link
"$LINENO"; then :
8054 gold_cv_lib_mremap_maymove
=yes
8056 gold_cv_lib_mremap_maymove
=no
8058 rm -f core conftest.err conftest.
$ac_objext \
8059 conftest
$ac_exeext conftest.
$ac_ext
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
8062 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
8063 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
8065 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
8068 case " $LIBOBJS " in
8069 *" mremap.$ac_objext "* ) ;;
8070 *) LIBOBJS
="$LIBOBJS mremap.$ac_objext"
8076 # Link in zlib if we can. This allows us to write compressed sections.
8078 # Use the system's zlib library.
8079 zlibdir
="-L\$(top_builddir)/../zlib"
8080 zlibinc
="-I\$(top_srcdir)/../zlib"
8082 # Check whether --with-system-zlib was given.
8083 if test "${with_system_zlib+set}" = set; then :
8084 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8095 # Check whether --enable-threads was given.
8096 if test "${enable_threads+set}" = set; then :
8097 enableval
=$enable_threads; case "${enableval}" in
8098 yes |
"") threads
=yes ;;
8100 auto
) threads
=auto
;;
8108 if test "$threads" = "yes"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8110 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8111 if ${ac_cv_path_SED+:} false
; then :
8112 $as_echo_n "(cached) " >&6
8114 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
8115 for ac_i
in 1 2 3 4 5 6 7; do
8116 ac_script
="$ac_script$as_nl$ac_script"
8118 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
8119 { ac_script
=; unset ac_script
;}
8120 if test -z "$SED"; then
8121 ac_path_SED_found
=false
8122 # Loop through the user's path and test for each of PROGNAME-LIST
8123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8127 test -z "$as_dir" && as_dir
=.
8128 for ac_prog
in sed gsed
; do
8129 for ac_exec_ext
in '' $ac_executable_extensions; do
8130 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
8131 as_fn_executable_p
"$ac_path_SED" ||
continue
8132 # Check for GNU ac_path_SED and select it if it is found.
8133 # Check for GNU $ac_path_SED
8134 case `"$ac_path_SED" --version 2>&1` in
8136 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
8139 $as_echo_n 0123456789 >"conftest.in"
8142 cat "conftest.in" "conftest.in" >"conftest.tmp"
8143 mv "conftest.tmp" "conftest.in"
8144 cp "conftest.in" "conftest.nl"
8145 $as_echo '' >> "conftest.nl"
8146 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
8147 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
8148 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
8149 if test $ac_count -gt ${ac_path_SED_max-0}; then
8150 # Best one so far, save it but keep looking for a better one
8151 ac_cv_path_SED
="$ac_path_SED"
8152 ac_path_SED_max
=$ac_count
8154 # 10*(2^10) chars as input seems more than enough
8155 test $ac_count -gt 10 && break
8157 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
8160 $ac_path_SED_found && break 3
8165 if test -z "$ac_cv_path_SED"; then
8166 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8174 $as_echo "$ac_cv_path_SED" >&6; }
8175 SED
="$ac_cv_path_SED"
8183 ac_cpp
='$CPP $CPPFLAGS'
8184 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8185 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8186 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8190 # We used to check for pthread.h first, but this fails if pthread.h
8191 # requires special compiler flags (e.g. on Tru64 or Sequent).
8192 # It gets checked for in the link test anyway.
8194 # First of all, check if the user has set any of the PTHREAD_LIBS,
8195 # etcetera environment variables, and if threads linking works using
8197 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8198 ax_pthread_save_CC
="$CC"
8199 ax_pthread_save_CFLAGS
="$CFLAGS"
8200 ax_pthread_save_LIBS
="$LIBS"
8201 if test "x$PTHREAD_CC" != "x"; then :
8204 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8205 LIBS
="$PTHREAD_LIBS $LIBS"
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8207 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h. */
8211 /* Override any GCC internal prototype to avoid an error.
8212 Use char because int might match the return type of a GCC
8213 builtin and then its argument prototype would still apply. */
8217 char pthread_join ();
8221 return pthread_join ();
8226 if ac_fn_c_try_link
"$LINENO"; then :
8229 rm -f core conftest.err conftest.
$ac_objext \
8230 conftest
$ac_exeext conftest.
$ac_ext
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8232 $as_echo "$ax_pthread_ok" >&6; }
8233 if test "x$ax_pthread_ok" = "xno"; then
8237 CC
="$ax_pthread_save_CC"
8238 CFLAGS
="$ax_pthread_save_CFLAGS"
8239 LIBS
="$ax_pthread_save_LIBS"
8242 # We must check for the threads library under a number of different
8243 # names; the ordering is very important because some systems
8244 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8245 # libraries is broken (non-POSIX).
8247 # Create a list of thread flags to try. Items starting with a "-" are
8248 # C compiler flags, and other items are library names, except for "none"
8249 # which indicates that we try without any flags at all, and "pthread-config"
8250 # which is a program returning the flags for the Pth emulation library.
8252 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8254 # The ordering *is* (sometimes) important. Some notes on the
8255 # individual items follow:
8257 # pthreads: AIX (must check this before -lpthread)
8258 # none: in case threads are in libc; should be tried before -Kthread and
8259 # other compiler flags to prevent continual compiler warnings
8260 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8261 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8262 # (Note: HP C rejects this with "bad form for `-t' option")
8263 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8264 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8265 # doesn't hurt to check since this sometimes defines pthreads and
8266 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8267 # is present but should not be used directly; and before -mthreads,
8268 # because the compiler interprets this as "-mt" + "-hreads")
8269 # -mthreads: Mingw32/gcc, Lynx/gcc
8270 # pthread: Linux, etcetera
8271 # --thread-safe: KAI C++
8272 # pthread-config: use pthread-config program (for GNU Pth library)
8278 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8279 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8281 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
8286 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8287 # multi-threading and also sets -lpthread."
8289 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
8294 # IBM z/OS requires a feature-test macro to be defined in order to
8295 # enable POSIX threads at all, so give the user a hint if this is
8296 # not set. (We don't define these ourselves, as they can affect
8297 # other portions of the system API in unpredictable ways.)
8299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8302 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8303 AX_PTHREAD_ZOS_MISSING
8307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8308 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8310 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8318 # On Solaris (at least, for some versions), libc contains stubbed
8319 # (non-functional) versions of the pthreads routines, so link-based
8320 # tests will erroneously succeed. (N.B.: The stubs are missing
8321 # pthread_cleanup_push, or rather a function called by this macro,
8322 # so we could check for that, but who knows whether they'll stub
8323 # that too in a future libc.) So we'll check first for the
8324 # standard Solaris way of linking pthreads (-mt -lpthread).
8326 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
8330 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8332 if test "x$GCC" = "xyes"; then :
8333 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
8336 # The presence of a feature test macro requesting re-entrant function
8337 # definitions is, on some systems, a strong hint that pthreads support is
8341 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
8342 ax_pthread_check_macro
="_REENTRANT"
8346 ax_pthread_check_macro
="_THREAD_SAFE"
8350 ax_pthread_check_macro
="--"
8353 if test "x$ax_pthread_check_macro" = "x--"; then :
8354 ax_pthread_check_cond
=0
8356 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
8359 # Are we compiling with Clang?
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8362 $as_echo_n "checking whether $CC is Clang... " >&6; }
8363 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
8364 $as_echo_n "(cached) " >&6
8366 ax_cv_PTHREAD_CLANG
=no
8367 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8368 if test "x$GCC" = "xyes"; then
8369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8371 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8372 # if defined(__clang__) && defined(__llvm__)
8373 AX_PTHREAD_CC_IS_CLANG
8377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8378 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
8379 ax_cv_PTHREAD_CLANG
=yes
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8387 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8388 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
8390 ax_pthread_clang_warning
=no
8392 # Clang needs special handling, because older versions handle the -pthread
8393 # option in a rather... idiosyncratic way
8395 if test "x$ax_pthread_clang" = "xyes"; then
8397 # Clang takes -pthread; it has never supported any other flag
8399 # (Note 1: This will need to be revisited if a system that Clang
8400 # supports has POSIX threads in a separate library. This tends not
8401 # to be the way of modern systems, but it's conceivable.)
8403 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8404 # to get POSIX threads support; the API is always present and
8405 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8406 # -pthread does define _REENTRANT, and while the Darwin headers
8407 # ignore this macro, third-party headers might not.)
8409 PTHREAD_CFLAGS
="-pthread"
8414 # However, older versions of Clang make a point of warning the user
8415 # that, in an invocation where only linking and no compilation is
8416 # taking place, the -pthread option has no effect ("argument unused
8417 # during compilation"). They expect -pthread to be passed in only
8418 # when source code is being compiled.
8420 # Problem is, this is at odds with the way Automake and most other
8421 # C build frameworks function, which is that the same flags used in
8422 # compilation (CFLAGS) are also used in linking. Many systems
8423 # supported by AX_PTHREAD require exactly this for POSIX threads
8424 # support, and in fact it is often not straightforward to specify a
8425 # flag that is used only in the compilation phase and not in
8426 # linking. Such a scenario is extremely rare in practice.
8428 # Even though use of the -pthread flag in linking would only print
8429 # a warning, this can be a nuisance for well-run software projects
8430 # that build with -Werror. So if the active version of Clang has
8431 # this misfeature, we search for an option to squash it.
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8434 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8435 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
8436 $as_echo_n "(cached) " >&6
8438 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
8439 # Create an alternate version of $ac_link that compiles and
8440 # links in two steps (.c -> .o, .o -> exe) instead of one
8441 # (.c -> exe), because the warning occurs only in the second
8443 ax_pthread_save_ac_link
="$ac_link"
8444 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8445 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8446 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8447 ax_pthread_save_CFLAGS
="$CFLAGS"
8448 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
8449 if test "x$ax_pthread_try" = "xunknown"; then :
8452 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8453 ac_link
="$ax_pthread_save_ac_link"
8454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456 int main(void){return 0;}
8458 if ac_fn_c_try_link
"$LINENO"; then :
8459 ac_link
="$ax_pthread_2step_ac_link"
8460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 int main(void){return 0;}
8464 if ac_fn_c_try_link
"$LINENO"; then :
8467 rm -f core conftest.err conftest.
$ac_objext \
8468 conftest
$ac_exeext conftest.
$ac_ext
8471 rm -f core conftest.err conftest.
$ac_objext \
8472 conftest
$ac_exeext conftest.
$ac_ext
8474 ac_link
="$ax_pthread_save_ac_link"
8475 CFLAGS
="$ax_pthread_save_CFLAGS"
8476 if test "x$ax_pthread_try" = "x"; then :
8479 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8483 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8485 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8487 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8490 fi # $ax_pthread_clang = yes
8492 if test "x$ax_pthread_ok" = "xno"; then
8493 for ax_pthread_try_flag
in $ax_pthread_flags; do
8495 case $ax_pthread_try_flag in
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8498 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8503 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8504 PTHREAD_CFLAGS
="-mt"
8505 PTHREAD_LIBS
="-lpthread"
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8510 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8511 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
8515 # Extract the first word of "pthread-config", so it can be a program name with args.
8516 set dummy pthread-config
; ac_word
=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
8520 $as_echo_n "(cached) " >&6
8522 if test -n "$ax_pthread_config"; then
8523 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
8525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8529 test -z "$as_dir" && as_dir
=.
8530 for ac_exec_ext
in '' $ac_executable_extensions; do
8531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_ax_pthread_config
="yes"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
8543 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
8544 if test -n "$ax_pthread_config"; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8546 $as_echo "$ax_pthread_config" >&6; }
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549 $as_echo "no" >&6; }
8553 if test "x$ax_pthread_config" = "xno"; then :
8556 PTHREAD_CFLAGS
="`pthread-config --cflags`"
8557 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8562 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8563 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
8567 ax_pthread_save_CFLAGS
="$CFLAGS"
8568 ax_pthread_save_LIBS
="$LIBS"
8569 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8570 LIBS
="$PTHREAD_LIBS $LIBS"
8572 # Check for various functions. We must include pthread.h,
8573 # since some functions may be macros. (On the Sequent, we
8574 # need a special flag -Kthread to make this header compile.)
8575 # We check for pthread_join because it is in -lpthread on IRIX
8576 # while pthread_create is in libc. We check for pthread_attr_init
8577 # due to DEC craziness with -lpthreads. We check for
8578 # pthread_cleanup_push because it is one of the few pthread
8579 # functions on Solaris that doesn't have a non-functional libc stub.
8580 # We try pthread_create on general principles.
8582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8584 #include <pthread.h>
8585 # if $ax_pthread_check_cond
8586 # error "$ax_pthread_check_macro must be defined"
8588 static void routine(void *a) { a = 0; }
8589 static void *start_routine(void *a) { return a; }
8593 pthread_t th; pthread_attr_t attr;
8594 pthread_create(&th, 0, start_routine, 0);
8595 pthread_join(th, 0);
8596 pthread_attr_init(&attr);
8597 pthread_cleanup_push(routine, 0);
8598 pthread_cleanup_pop(0) /* ; */
8603 if ac_fn_c_try_link
"$LINENO"; then :
8606 rm -f core conftest.err conftest.
$ac_objext \
8607 conftest
$ac_exeext conftest.
$ac_ext
8609 CFLAGS
="$ax_pthread_save_CFLAGS"
8610 LIBS
="$ax_pthread_save_LIBS"
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8613 $as_echo "$ax_pthread_ok" >&6; }
8614 if test "x$ax_pthread_ok" = "xyes"; then :
8623 # Various other checks:
8624 if test "x$ax_pthread_ok" = "xyes"; then
8625 ax_pthread_save_CFLAGS
="$CFLAGS"
8626 ax_pthread_save_LIBS
="$LIBS"
8627 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8628 LIBS
="$PTHREAD_LIBS $LIBS"
8630 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8632 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8633 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
8634 $as_echo_n "(cached) " >&6
8636 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
8637 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
8638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8640 #include <pthread.h>
8644 int attr = $ax_pthread_attr; return attr /* ; */
8649 if ac_fn_c_try_link
"$LINENO"; then :
8650 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
8652 rm -f core conftest.err conftest.
$ac_objext \
8653 conftest
$ac_exeext conftest.
$ac_ext
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8658 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8659 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8660 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8661 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8663 cat >>confdefs.h
<<_ACEOF
8664 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8667 ax_pthread_joinable_attr_defined
=yes
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8672 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8673 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
8674 $as_echo_n "(cached) " >&6
8676 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
8679 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8685 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8686 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8687 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8688 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8689 ax_pthread_special_flags_added
=yes
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8693 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8694 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
8695 $as_echo_n "(cached) " >&6
8697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699 #include <pthread.h>
8703 int i = PTHREAD_PRIO_INHERIT;
8708 if ac_fn_c_try_link
"$LINENO"; then :
8709 ax_cv_PTHREAD_PRIO_INHERIT
=yes
8711 ax_cv_PTHREAD_PRIO_INHERIT
=no
8713 rm -f core conftest.err conftest.
$ac_objext \
8714 conftest
$ac_exeext conftest.
$ac_ext
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8718 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8719 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8720 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8722 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8724 ax_pthread_prio_inherit_defined
=yes
8728 CFLAGS
="$ax_pthread_save_CFLAGS"
8729 LIBS
="$ax_pthread_save_LIBS"
8731 # More AIX lossage: compile with *_r variant
8732 if test "x$GCC" != "xyes"; then
8736 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
8737 #handle absolute path differently from PATH based program lookup
8740 if as_fn_executable_p
${CC}_r
; then :
8741 PTHREAD_CC
="${CC}_r"
8744 for ac_prog
in ${CC}_r
8746 # Extract the first word of "$ac_prog", so it can be a program name with args.
8747 set dummy
$ac_prog; ac_word
=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
8751 $as_echo_n "(cached) " >&6
8753 if test -n "$PTHREAD_CC"; then
8754 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
8756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8760 test -z "$as_dir" && as_dir
=.
8761 for ac_exec_ext
in '' $ac_executable_extensions; do
8762 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_PTHREAD_CC
="$ac_prog"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
8774 if test -n "$PTHREAD_CC"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8776 $as_echo "$PTHREAD_CC" >&6; }
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8783 test -n "$PTHREAD_CC" && break
8785 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8796 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8802 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8803 if test "x$ax_pthread_ok" = "xyes"; then
8808 as_fn_error $?
"pthread not found" "$LINENO" 5
8811 ac_cpp
='$CPP $CPPFLAGS'
8812 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8813 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8814 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8817 elif test "$threads" = "auto"; then
8823 ac_cpp
='$CPP $CPPFLAGS'
8824 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8825 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8826 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8830 # We used to check for pthread.h first, but this fails if pthread.h
8831 # requires special compiler flags (e.g. on Tru64 or Sequent).
8832 # It gets checked for in the link test anyway.
8834 # First of all, check if the user has set any of the PTHREAD_LIBS,
8835 # etcetera environment variables, and if threads linking works using
8837 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8838 ax_pthread_save_CC
="$CC"
8839 ax_pthread_save_CFLAGS
="$CFLAGS"
8840 ax_pthread_save_LIBS
="$LIBS"
8841 if test "x$PTHREAD_CC" != "x"; then :
8844 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8845 LIBS
="$PTHREAD_LIBS $LIBS"
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8847 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8851 /* Override any GCC internal prototype to avoid an error.
8852 Use char because int might match the return type of a GCC
8853 builtin and then its argument prototype would still apply. */
8857 char pthread_join ();
8861 return pthread_join ();
8866 if ac_fn_c_try_link
"$LINENO"; then :
8869 rm -f core conftest.err conftest.
$ac_objext \
8870 conftest
$ac_exeext conftest.
$ac_ext
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8872 $as_echo "$ax_pthread_ok" >&6; }
8873 if test "x$ax_pthread_ok" = "xno"; then
8877 CC
="$ax_pthread_save_CC"
8878 CFLAGS
="$ax_pthread_save_CFLAGS"
8879 LIBS
="$ax_pthread_save_LIBS"
8882 # We must check for the threads library under a number of different
8883 # names; the ordering is very important because some systems
8884 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8885 # libraries is broken (non-POSIX).
8887 # Create a list of thread flags to try. Items starting with a "-" are
8888 # C compiler flags, and other items are library names, except for "none"
8889 # which indicates that we try without any flags at all, and "pthread-config"
8890 # which is a program returning the flags for the Pth emulation library.
8892 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8894 # The ordering *is* (sometimes) important. Some notes on the
8895 # individual items follow:
8897 # pthreads: AIX (must check this before -lpthread)
8898 # none: in case threads are in libc; should be tried before -Kthread and
8899 # other compiler flags to prevent continual compiler warnings
8900 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8901 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8902 # (Note: HP C rejects this with "bad form for `-t' option")
8903 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8904 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8905 # doesn't hurt to check since this sometimes defines pthreads and
8906 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8907 # is present but should not be used directly; and before -mthreads,
8908 # because the compiler interprets this as "-mt" + "-hreads")
8909 # -mthreads: Mingw32/gcc, Lynx/gcc
8910 # pthread: Linux, etcetera
8911 # --thread-safe: KAI C++
8912 # pthread-config: use pthread-config program (for GNU Pth library)
8918 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8919 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8921 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
8926 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8927 # multi-threading and also sets -lpthread."
8929 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
8934 # IBM z/OS requires a feature-test macro to be defined in order to
8935 # enable POSIX threads at all, so give the user a hint if this is
8936 # not set. (We don't define these ourselves, as they can affect
8937 # other portions of the system API in unpredictable ways.)
8939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8942 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8943 AX_PTHREAD_ZOS_MISSING
8947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8948 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8950 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8958 # On Solaris (at least, for some versions), libc contains stubbed
8959 # (non-functional) versions of the pthreads routines, so link-based
8960 # tests will erroneously succeed. (N.B.: The stubs are missing
8961 # pthread_cleanup_push, or rather a function called by this macro,
8962 # so we could check for that, but who knows whether they'll stub
8963 # that too in a future libc.) So we'll check first for the
8964 # standard Solaris way of linking pthreads (-mt -lpthread).
8966 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
8970 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8972 if test "x$GCC" = "xyes"; then :
8973 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
8976 # The presence of a feature test macro requesting re-entrant function
8977 # definitions is, on some systems, a strong hint that pthreads support is
8981 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
8982 ax_pthread_check_macro
="_REENTRANT"
8986 ax_pthread_check_macro
="_THREAD_SAFE"
8990 ax_pthread_check_macro
="--"
8993 if test "x$ax_pthread_check_macro" = "x--"; then :
8994 ax_pthread_check_cond
=0
8996 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
8999 # Are we compiling with Clang?
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9002 $as_echo_n "checking whether $CC is Clang... " >&6; }
9003 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
9004 $as_echo_n "(cached) " >&6
9006 ax_cv_PTHREAD_CLANG
=no
9007 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9008 if test "x$GCC" = "xyes"; then
9009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9012 # if defined(__clang__) && defined(__llvm__)
9013 AX_PTHREAD_CC_IS_CLANG
9017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9018 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
9019 ax_cv_PTHREAD_CLANG
=yes
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9027 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9028 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
9030 ax_pthread_clang_warning
=no
9032 # Clang needs special handling, because older versions handle the -pthread
9033 # option in a rather... idiosyncratic way
9035 if test "x$ax_pthread_clang" = "xyes"; then
9037 # Clang takes -pthread; it has never supported any other flag
9039 # (Note 1: This will need to be revisited if a system that Clang
9040 # supports has POSIX threads in a separate library. This tends not
9041 # to be the way of modern systems, but it's conceivable.)
9043 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9044 # to get POSIX threads support; the API is always present and
9045 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9046 # -pthread does define _REENTRANT, and while the Darwin headers
9047 # ignore this macro, third-party headers might not.)
9049 PTHREAD_CFLAGS
="-pthread"
9054 # However, older versions of Clang make a point of warning the user
9055 # that, in an invocation where only linking and no compilation is
9056 # taking place, the -pthread option has no effect ("argument unused
9057 # during compilation"). They expect -pthread to be passed in only
9058 # when source code is being compiled.
9060 # Problem is, this is at odds with the way Automake and most other
9061 # C build frameworks function, which is that the same flags used in
9062 # compilation (CFLAGS) are also used in linking. Many systems
9063 # supported by AX_PTHREAD require exactly this for POSIX threads
9064 # support, and in fact it is often not straightforward to specify a
9065 # flag that is used only in the compilation phase and not in
9066 # linking. Such a scenario is extremely rare in practice.
9068 # Even though use of the -pthread flag in linking would only print
9069 # a warning, this can be a nuisance for well-run software projects
9070 # that build with -Werror. So if the active version of Clang has
9071 # this misfeature, we search for an option to squash it.
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9074 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9075 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
9076 $as_echo_n "(cached) " >&6
9078 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
9079 # Create an alternate version of $ac_link that compiles and
9080 # links in two steps (.c -> .o, .o -> exe) instead of one
9081 # (.c -> exe), because the warning occurs only in the second
9083 ax_pthread_save_ac_link
="$ac_link"
9084 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9085 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9086 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9087 ax_pthread_save_CFLAGS
="$CFLAGS"
9088 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
9089 if test "x$ax_pthread_try" = "xunknown"; then :
9092 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9093 ac_link
="$ax_pthread_save_ac_link"
9094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 int main(void){return 0;}
9098 if ac_fn_c_try_link
"$LINENO"; then :
9099 ac_link
="$ax_pthread_2step_ac_link"
9100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 int main(void){return 0;}
9104 if ac_fn_c_try_link
"$LINENO"; then :
9107 rm -f core conftest.err conftest.
$ac_objext \
9108 conftest
$ac_exeext conftest.
$ac_ext
9111 rm -f core conftest.err conftest.
$ac_objext \
9112 conftest
$ac_exeext conftest.
$ac_ext
9114 ac_link
="$ax_pthread_save_ac_link"
9115 CFLAGS
="$ax_pthread_save_CFLAGS"
9116 if test "x$ax_pthread_try" = "x"; then :
9119 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9123 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9125 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9127 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9130 fi # $ax_pthread_clang = yes
9132 if test "x$ax_pthread_ok" = "xno"; then
9133 for ax_pthread_try_flag
in $ax_pthread_flags; do
9135 case $ax_pthread_try_flag in
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9138 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9143 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9144 PTHREAD_CFLAGS
="-mt"
9145 PTHREAD_LIBS
="-lpthread"
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9150 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9151 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
9155 # Extract the first word of "pthread-config", so it can be a program name with args.
9156 set dummy pthread-config
; ac_word
=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
9160 $as_echo_n "(cached) " >&6
9162 if test -n "$ax_pthread_config"; then
9163 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
9165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9169 test -z "$as_dir" && as_dir
=.
9170 for ac_exec_ext
in '' $ac_executable_extensions; do
9171 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9172 ac_cv_prog_ax_pthread_config
="yes"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9180 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
9183 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
9184 if test -n "$ax_pthread_config"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9186 $as_echo "$ax_pthread_config" >&6; }
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9193 if test "x$ax_pthread_config" = "xno"; then :
9196 PTHREAD_CFLAGS
="`pthread-config --cflags`"
9197 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9202 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9203 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
9207 ax_pthread_save_CFLAGS
="$CFLAGS"
9208 ax_pthread_save_LIBS
="$LIBS"
9209 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9210 LIBS
="$PTHREAD_LIBS $LIBS"
9212 # Check for various functions. We must include pthread.h,
9213 # since some functions may be macros. (On the Sequent, we
9214 # need a special flag -Kthread to make this header compile.)
9215 # We check for pthread_join because it is in -lpthread on IRIX
9216 # while pthread_create is in libc. We check for pthread_attr_init
9217 # due to DEC craziness with -lpthreads. We check for
9218 # pthread_cleanup_push because it is one of the few pthread
9219 # functions on Solaris that doesn't have a non-functional libc stub.
9220 # We try pthread_create on general principles.
9222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224 #include <pthread.h>
9225 # if $ax_pthread_check_cond
9226 # error "$ax_pthread_check_macro must be defined"
9228 static void routine(void *a) { a = 0; }
9229 static void *start_routine(void *a) { return a; }
9233 pthread_t th; pthread_attr_t attr;
9234 pthread_create(&th, 0, start_routine, 0);
9235 pthread_join(th, 0);
9236 pthread_attr_init(&attr);
9237 pthread_cleanup_push(routine, 0);
9238 pthread_cleanup_pop(0) /* ; */
9243 if ac_fn_c_try_link
"$LINENO"; then :
9246 rm -f core conftest.err conftest.
$ac_objext \
9247 conftest
$ac_exeext conftest.
$ac_ext
9249 CFLAGS
="$ax_pthread_save_CFLAGS"
9250 LIBS
="$ax_pthread_save_LIBS"
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9253 $as_echo "$ax_pthread_ok" >&6; }
9254 if test "x$ax_pthread_ok" = "xyes"; then :
9263 # Various other checks:
9264 if test "x$ax_pthread_ok" = "xyes"; then
9265 ax_pthread_save_CFLAGS
="$CFLAGS"
9266 ax_pthread_save_LIBS
="$LIBS"
9267 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9268 LIBS
="$PTHREAD_LIBS $LIBS"
9270 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9272 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9273 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
9274 $as_echo_n "(cached) " >&6
9276 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
9277 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
9278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280 #include <pthread.h>
9284 int attr = $ax_pthread_attr; return attr /* ; */
9289 if ac_fn_c_try_link
"$LINENO"; then :
9290 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
9292 rm -f core conftest.err conftest.
$ac_objext \
9293 conftest
$ac_exeext conftest.
$ac_ext
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9298 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9299 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9300 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9301 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9303 cat >>confdefs.h
<<_ACEOF
9304 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9307 ax_pthread_joinable_attr_defined
=yes
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9312 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9313 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
9314 $as_echo_n "(cached) " >&6
9316 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
9319 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9325 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9326 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9327 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9328 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9329 ax_pthread_special_flags_added
=yes
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9333 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9334 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
9335 $as_echo_n "(cached) " >&6
9337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9339 #include <pthread.h>
9343 int i = PTHREAD_PRIO_INHERIT;
9348 if ac_fn_c_try_link
"$LINENO"; then :
9349 ax_cv_PTHREAD_PRIO_INHERIT
=yes
9351 ax_cv_PTHREAD_PRIO_INHERIT
=no
9353 rm -f core conftest.err conftest.
$ac_objext \
9354 conftest
$ac_exeext conftest.
$ac_ext
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9358 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9359 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9360 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9362 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9364 ax_pthread_prio_inherit_defined
=yes
9368 CFLAGS
="$ax_pthread_save_CFLAGS"
9369 LIBS
="$ax_pthread_save_LIBS"
9371 # More AIX lossage: compile with *_r variant
9372 if test "x$GCC" != "xyes"; then
9376 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
9377 #handle absolute path differently from PATH based program lookup
9380 if as_fn_executable_p
${CC}_r
; then :
9381 PTHREAD_CC
="${CC}_r"
9384 for ac_prog
in ${CC}_r
9386 # Extract the first word of "$ac_prog", so it can be a program name with args.
9387 set dummy
$ac_prog; ac_word
=$2
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389 $as_echo_n "checking for $ac_word... " >&6; }
9390 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
9391 $as_echo_n "(cached) " >&6
9393 if test -n "$PTHREAD_CC"; then
9394 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
9396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9400 test -z "$as_dir" && as_dir
=.
9401 for ac_exec_ext
in '' $ac_executable_extensions; do
9402 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9403 ac_cv_prog_PTHREAD_CC
="$ac_prog"
9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
9414 if test -n "$PTHREAD_CC"; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9416 $as_echo "$PTHREAD_CC" >&6; }
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9423 test -n "$PTHREAD_CC" && break
9425 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9436 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9442 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9443 if test "x$ax_pthread_ok" = "xyes"; then
9451 ac_cpp
='$CPP $CPPFLAGS'
9452 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9453 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9454 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9459 if test "$threads" = "yes"; then
9461 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
9464 if test "$threads" = "yes"; then
9473 ac_fn_c_check_decl
"$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
9474 if test "x$ac_cv_have_decl_basename" = xyes
; then :
9480 cat >>confdefs.h
<<_ACEOF
9481 #define HAVE_DECL_BASENAME $ac_have_decl
9483 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9484 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
9490 cat >>confdefs.h
<<_ACEOF
9491 #define HAVE_DECL_FFS $ac_have_decl
9493 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9494 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
9500 cat >>confdefs.h
<<_ACEOF
9501 #define HAVE_DECL_ASPRINTF $ac_have_decl
9503 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9504 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
9510 cat >>confdefs.h
<<_ACEOF
9511 #define HAVE_DECL_VASPRINTF $ac_have_decl
9513 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9514 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
9520 cat >>confdefs.h
<<_ACEOF
9521 #define HAVE_DECL_SNPRINTF $ac_have_decl
9523 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9524 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
9530 cat >>confdefs.h
<<_ACEOF
9531 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9533 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
9534 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
9540 cat >>confdefs.h
<<_ACEOF
9541 #define HAVE_DECL_STRVERSCMP $ac_have_decl
9545 save_CFLAGS
="$CFLAGS"
9546 CFLAGS
="$CFLAGS -Werror -gpubnames"
9547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9551 if ac_fn_c_try_compile
"$LINENO"; then :
9556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9557 CFLAGS
="$save_CFLAGS"
9558 if test "$have_pubnames" = "yes"; then
9560 HAVE_PUBNAMES_FALSE
='#'
9562 HAVE_PUBNAMES_TRUE
='#'
9563 HAVE_PUBNAMES_FALSE
=
9567 save_CFLAGS
="$CFLAGS"
9568 CFLAGS
="$CFLAGS -Werror -fno-use-linker-plugin"
9569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9573 if ac_fn_c_try_compile
"$LINENO"; then :
9574 have_no_use_linker_plugin
=yes
9576 have_no_use_linker_plugin
=no
9578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9579 CFLAGS
="$save_CFLAGS"
9580 if test "$have_no_use_linker_plugin" = "yes"; then
9581 HAVE_NO_USE_LINKER_PLUGIN_TRUE
=
9582 HAVE_NO_USE_LINKER_PLUGIN_FALSE
='#'
9584 HAVE_NO_USE_LINKER_PLUGIN_TRUE
='#'
9585 HAVE_NO_USE_LINKER_PLUGIN_FALSE
=
9590 ac_cpp
='$CXXCPP $CPPFLAGS'
9591 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9592 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9593 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9598 ac_cpp
='$CXXCPP $CPPFLAGS'
9599 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9600 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9601 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9603 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9604 if test -z "$CXXCPP"; then
9605 if ${ac_cv_prog_CXXCPP+:} false
; then :
9606 $as_echo_n "(cached) " >&6
9608 # Double quotes because CXXCPP needs to be expanded
9609 for CXXCPP
in "$CXX -E" "/lib/cpp"
9612 for ac_cxx_preproc_warn_flag
in '' yes
9614 # Use a header file that comes with gcc, so configuring glibc
9615 # with a fresh cross-compiler works.
9616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9617 # <limits.h> exists even on freestanding compilers.
9618 # On the NeXT, cc -E runs the code through the compiler's parser,
9619 # not just through cpp. "Syntax error" is here to catch this case.
9620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9623 # include <limits.h>
9625 # include <assert.h>
9629 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9632 # Broken: fails on valid input.
9635 rm -f conftest.err conftest.i conftest.
$ac_ext
9637 # OK, works on sane cases. Now check whether nonexistent headers
9638 # can be detected and how.
9639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9641 #include <ac_nonexistent.h>
9643 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9644 # Broken: success on invalid input.
9647 # Passes both tests.
9651 rm -f conftest.err conftest.i conftest.
$ac_ext
9654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9655 rm -f conftest.i conftest.err conftest.
$ac_ext
9656 if $ac_preproc_ok; then :
9661 ac_cv_prog_CXXCPP
=$CXXCPP
9664 CXXCPP
=$ac_cv_prog_CXXCPP
9666 ac_cv_prog_CXXCPP
=$CXXCPP
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9669 $as_echo "$CXXCPP" >&6; }
9671 for ac_cxx_preproc_warn_flag
in '' yes
9673 # Use a header file that comes with gcc, so configuring glibc
9674 # with a fresh cross-compiler works.
9675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676 # <limits.h> exists even on freestanding compilers.
9677 # On the NeXT, cc -E runs the code through the compiler's parser,
9678 # not just through cpp. "Syntax error" is here to catch this case.
9679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9682 # include <limits.h>
9684 # include <assert.h>
9688 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9691 # Broken: fails on valid input.
9694 rm -f conftest.err conftest.i conftest.
$ac_ext
9696 # OK, works on sane cases. Now check whether nonexistent headers
9697 # can be detected and how.
9698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9700 #include <ac_nonexistent.h>
9702 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9703 # Broken: success on invalid input.
9706 # Passes both tests.
9710 rm -f conftest.err conftest.i conftest.
$ac_ext
9713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9714 rm -f conftest.i conftest.err conftest.
$ac_ext
9715 if $ac_preproc_ok; then :
9718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9720 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
9721 See \`config.log' for more details" "$LINENO" 5; }
9725 ac_cpp
='$CXXCPP $CPPFLAGS'
9726 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9727 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9728 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9731 for ac_header
in unordered_set unordered_map
9733 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9734 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9735 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9736 cat >>confdefs.h
<<_ACEOF
9737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9744 for ac_header
in tr1/unordered_set
tr1/unordered_map
9746 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9747 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9748 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9749 cat >>confdefs.h
<<_ACEOF
9750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9757 for ac_header
in ext
/hash_map ext
/hash_set
9759 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9760 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9761 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9762 cat >>confdefs.h
<<_ACEOF
9763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9770 for ac_header
in byteswap.h
9772 ac_fn_cxx_check_header_mongrel
"$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
9773 if test "x$ac_cv_header_byteswap_h" = xyes
; then :
9774 cat >>confdefs.h
<<_ACEOF
9775 #define HAVE_BYTESWAP_H 1
9783 for ac_header
in windows.h
9785 ac_fn_cxx_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9786 if test "x$ac_cv_header_windows_h" = xyes
; then :
9787 cat >>confdefs.h
<<_ACEOF
9788 #define HAVE_WINDOWS_H 1
9795 for ac_header
in dlfcn.h
9797 ac_fn_cxx_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9798 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
9799 cat >>confdefs.h
<<_ACEOF
9800 #define HAVE_DLFCN_H 1
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9808 $as_echo_n "checking for library containing dlopen... " >&6; }
9809 if ${ac_cv_search_dlopen+:} false
; then :
9810 $as_echo_n "(cached) " >&6
9812 ac_func_search_save_LIBS
=$LIBS
9813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9816 /* Override any GCC internal prototype to avoid an error.
9817 Use char because int might match the return type of a GCC
9818 builtin and then its argument prototype would still apply. */
9831 for ac_lib
in '' dl dld
; do
9832 if test -z "$ac_lib"; then
9833 ac_res
="none required"
9836 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9838 if ac_fn_cxx_try_link
"$LINENO"; then :
9839 ac_cv_search_dlopen
=$ac_res
9841 rm -f core conftest.err conftest.
$ac_objext \
9843 if ${ac_cv_search_dlopen+:} false
; then :
9847 if ${ac_cv_search_dlopen+:} false
; then :
9850 ac_cv_search_dlopen
=no
9853 LIBS
=$ac_func_search_save_LIBS
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9856 $as_echo "$ac_cv_search_dlopen" >&6; }
9857 ac_res
=$ac_cv_search_dlopen
9858 if test "$ac_res" != no
; then :
9859 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9863 case "$ac_cv_search_dlopen" in
9864 no
*) DLOPEN_LIBS
="";;
9865 *) DLOPEN_LIBS
="$ac_cv_search_dlopen";;
9869 for ac_func
in mallinfo posix_fallocate fallocate readv sysconf
times mkdtemp
9871 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9872 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9873 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9874 cat >>confdefs.h
<<_ACEOF
9875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9881 ac_fn_cxx_check_decl
"$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
9882 if test "x$ac_cv_have_decl_basename" = xyes
; then :
9888 cat >>confdefs.h
<<_ACEOF
9889 #define HAVE_DECL_BASENAME $ac_have_decl
9891 ac_fn_cxx_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9892 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
9898 cat >>confdefs.h
<<_ACEOF
9899 #define HAVE_DECL_FFS $ac_have_decl
9901 ac_fn_cxx_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9902 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
9908 cat >>confdefs.h
<<_ACEOF
9909 #define HAVE_DECL_ASPRINTF $ac_have_decl
9911 ac_fn_cxx_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9912 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
9918 cat >>confdefs.h
<<_ACEOF
9919 #define HAVE_DECL_VASPRINTF $ac_have_decl
9921 ac_fn_cxx_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9922 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
9928 cat >>confdefs.h
<<_ACEOF
9929 #define HAVE_DECL_SNPRINTF $ac_have_decl
9931 ac_fn_cxx_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9932 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
9938 cat >>confdefs.h
<<_ACEOF
9939 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9941 ac_fn_cxx_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
9942 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
9948 cat >>confdefs.h
<<_ACEOF
9949 #define HAVE_DECL_STRVERSCMP $ac_have_decl
9951 ac_fn_cxx_check_decl
"$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
9952 if test "x$ac_cv_have_decl_strndup" = xyes
; then :
9958 cat >>confdefs.h
<<_ACEOF
9959 #define HAVE_DECL_STRNDUP $ac_have_decl
9961 ac_fn_cxx_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9962 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
9968 cat >>confdefs.h
<<_ACEOF
9969 #define HAVE_DECL_MEMMEM $ac_have_decl
9973 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
9974 # at link time with some versions of GCC.
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
9976 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
9977 if ${gold_cv_unordered_map_rehash+:} false
; then :
9978 $as_echo_n "(cached) " >&6
9980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h. */
9983 #include <tr1/unordered_map>
9984 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
9994 if ac_fn_cxx_try_link
"$LINENO"; then :
9995 gold_cv_unordered_map_rehash
=yes
9997 gold_cv_unordered_map_rehash
=no
9999 rm -f core conftest.err conftest.
$ac_objext \
10000 conftest
$ac_exeext conftest.
$ac_ext
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
10003 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
10004 if test "$gold_cv_unordered_map_rehash" = "yes"; then
10006 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
10010 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
10011 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
10013 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
10014 if ${gold_cv_hash_off_t+:} false
; then :
10015 $as_echo_n "(cached) " >&6
10017 CXXFLAGS_hold
=$CXXFLAGS
10018 CXXFLAGS
="$CXXFLAGS $LFS_CFLAGS"
10019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h. */
10022 #include <sys/types.h>
10023 #include <tr1/unordered_map>
10024 std::tr1::hash<off_t> h;
10027 if ac_fn_cxx_try_compile
"$LINENO"; then :
10028 gold_cv_hash_off_t
=yes
10030 gold_cv_hash_off_t
=no
10032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10033 CXXFLAGS
=$CXXFLAGS_hold
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
10036 $as_echo "$gold_cv_hash_off_t" >&6; }
10037 if test "$gold_cv_hash_off_t" = "yes"; then
10039 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
10043 # gcc 4.3.0 doesn't recognize the printf attribute on a template
10044 # function. Check for that. This is gcc bug 35546. This test can
10045 # probably be removed after the bug has been fixed for a while.
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
10047 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
10048 if ${gold_cv_template_attribute+:} false
; then :
10049 $as_echo_n "(cached) " >&6
10051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10054 template<typename T> extern void foo(const char*, ...)
10055 __attribute__ ((__format__ (__printf__, 1, 2)));
10056 template<typename T> void foo(const char* format, ...) {}
10057 void bar() { foo<int>("%s\n", "foo"); }
10060 if ac_fn_cxx_try_compile
"$LINENO"; then :
10061 gold_cv_template_attribute
=yes
10063 gold_cv_template_attribute
=no
10065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
10068 $as_echo "$gold_cv_template_attribute" >&6; }
10069 if test "$gold_cv_template_attribute" = "yes"; then
10071 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
10076 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
10077 if ${gold_cv_stat_st_mtim+:} false
; then :
10078 $as_echo_n "(cached) " >&6
10080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10083 #include <sys/stat.h>
10084 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
10094 if ac_fn_cxx_try_compile
"$LINENO"; then :
10095 gold_cv_stat_st_mtim
=yes
10097 gold_cv_stat_st_mtim
=no
10099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
10102 $as_echo "$gold_cv_stat_st_mtim" >&6; }
10103 if test "$gold_cv_stat_st_mtim" = "yes"; then
10105 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
10110 ac_cpp
='$CPP $CPPFLAGS'
10111 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10112 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10113 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10116 for ac_header
in locale.h
10118 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
10119 if test "x$ac_cv_header_locale_h" = xyes
; then :
10120 cat >>confdefs.h
<<_ACEOF
10121 #define HAVE_LOCALE_H 1
10128 for ac_func
in setlocale
10130 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
10131 if test "x$ac_cv_func_setlocale" = xyes
; then :
10132 cat >>confdefs.h
<<_ACEOF
10133 #define HAVE_SETLOCALE 1
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10141 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10142 if ${am_cv_val_LC_MESSAGES+:} false
; then :
10143 $as_echo_n "(cached) " >&6
10145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10147 #include <locale.h>
10156 if ac_fn_c_try_link
"$LINENO"; then :
10157 am_cv_val_LC_MESSAGES
=yes
10159 am_cv_val_LC_MESSAGES
=no
10161 rm -f core conftest.err conftest.
$ac_objext \
10162 conftest
$ac_exeext conftest.
$ac_ext
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10165 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10166 if test $am_cv_val_LC_MESSAGES = yes; then
10168 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10175 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10176 # Check whether --enable-maintainer-mode was given.
10177 if test "${enable_maintainer_mode+set}" = set; then :
10178 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
10180 USE_MAINTAINER_MODE
=no
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10184 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10185 if test $USE_MAINTAINER_MODE = yes; then
10186 MAINTAINER_MODE_TRUE
=
10187 MAINTAINER_MODE_FALSE
='#'
10189 MAINTAINER_MODE_TRUE
='#'
10190 MAINTAINER_MODE_FALSE
=
10193 MAINT
=$MAINTAINER_MODE_TRUE
10197 ac_config_files
="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
10199 cat >confcache
<<\_ACEOF
10200 # This file is a shell script that caches the results of configure
10201 # tests run on this system so they can be shared between configure
10202 # scripts and configure runs, see configure's option --config-cache.
10203 # It is not useful on other systems. If it contains results you don't
10204 # want to keep, you may remove or edit it.
10206 # config.status only pays attention to the cache file if you give it
10207 # the --recheck option to rerun configure.
10209 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10210 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10211 # following values.
10215 # The following way of writing the cache mishandles newlines in values,
10216 # but we know of no workaround that is simple, portable, and efficient.
10217 # So, we kill variables containing newlines.
10218 # Ultrix sh set writes to stderr and can't be redirected directly,
10219 # and sets the high bit in the cache file unless we assign to the vars.
10221 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10222 eval ac_val
=\$
$ac_var
10226 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10230 _ | IFS | as_nl
) ;; #(
10231 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10232 *) { eval $ac_var=; unset $ac_var;} ;;
10238 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10239 *${as_nl}ac_space
=\
*)
10240 # `set' does not quote correctly, so add quotes: double-quote
10241 # substitution turns \\\\ into \\, and sed turns \\ into \.
10244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10247 # `set' quotes correctly as required by POSIX, so do not add quotes.
10248 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10259 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10261 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10262 if test -w "$cache_file"; then
10263 if test "x$cache_file" != "x/dev/null"; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10265 $as_echo "$as_me: updating cache $cache_file" >&6;}
10266 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10267 cat confcache
>"$cache_file"
10269 case $cache_file in #(
10271 mv -f confcache
"$cache_file"$$
&&
10272 mv -f "$cache_file"$$
"$cache_file" ;; #(
10274 mv -f confcache
"$cache_file" ;;
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10280 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10285 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10286 # Let make expand exec_prefix.
10287 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10289 DEFS
=-DHAVE_CONFIG_H
10293 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10294 # 1. Remove the extension, and $U if already installed.
10295 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10296 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10297 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10298 # will be set to the directory where LIBOBJS objects are built.
10299 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10300 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10302 LIBOBJS
=$ac_libobjs
10304 LTLIBOBJS
=$ac_ltlibobjs
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10308 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10309 if test -n "$am_sleep_pid"; then
10310 # Hide warnings about reused PIDs.
10311 wait $am_sleep_pid 2>/dev
/null
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10314 $as_echo "done" >&6; }
10315 if test -n "$EXEEXT"; then
10317 am__EXEEXT_FALSE
='#'
10319 am__EXEEXT_TRUE
='#'
10323 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10324 as_fn_error $?
"conditional \"AMDEP\" was never defined.
10325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10327 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10328 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
10329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10331 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
10332 as_fn_error $?
"conditional \"PLUGINS\" was never defined.
10333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10335 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
10336 as_fn_error $?
"conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
10337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10339 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
10340 as_fn_error $?
"conditional \"DEFAULT_TARGET_ARM\" was never defined.
10341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10343 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
10344 as_fn_error $?
"conditional \"DEFAULT_TARGET_I386\" was never defined.
10345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10347 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
10348 as_fn_error $?
"conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
10349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10351 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
10352 as_fn_error $?
"conditional \"DEFAULT_TARGET_SPARC\" was never defined.
10353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10355 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
10356 as_fn_error $?
"conditional \"DEFAULT_TARGET_S390\" was never defined.
10357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10359 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
10360 as_fn_error $?
"conditional \"DEFAULT_TARGET_X86_64\" was never defined.
10361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10363 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
10364 as_fn_error $?
"conditional \"DEFAULT_TARGET_X32\" was never defined.
10365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10367 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
10368 as_fn_error $?
"conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
10369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10371 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
10372 as_fn_error $?
"conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
10373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10375 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
10376 as_fn_error $?
"conditional \"DEFAULT_TARGET_MIPS\" was never defined.
10377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10379 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10380 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
10381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10383 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10384 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
10385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10388 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
10389 as_fn_error $?
"conditional \"NATIVE_LINKER\" was never defined.
10390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10392 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
10393 as_fn_error $?
"conditional \"GCC\" was never defined.
10394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10396 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
10397 as_fn_error $?
"conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
10398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10400 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
10401 as_fn_error $?
"conditional \"HAVE_STATIC\" was never defined.
10402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10404 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
10405 as_fn_error $?
"conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
10406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10408 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
10409 as_fn_error $?
"conditional \"MCMODEL_MEDIUM\" was never defined.
10410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10412 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
10413 as_fn_error $?
"conditional \"TLS\" was never defined.
10414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10416 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
10417 as_fn_error $?
"conditional \"STATIC_TLS\" was never defined.
10418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10420 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
10421 as_fn_error $?
"conditional \"OMP_SUPPORT\" was never defined.
10422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10424 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
10425 as_fn_error $?
"conditional \"TLS_GNU2_DIALECT\" was never defined.
10426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10428 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
10429 as_fn_error $?
"conditional \"TLS_DESCRIPTORS\" was never defined.
10430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10432 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
10433 as_fn_error $?
"conditional \"IFUNC\" was never defined.
10434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10436 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
10437 as_fn_error $?
"conditional \"IFUNC_STATIC\" was never defined.
10438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10440 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
10441 as_fn_error $?
"conditional \"THREADS\" was never defined.
10442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10444 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
10445 as_fn_error $?
"conditional \"HAVE_PUBNAMES\" was never defined.
10446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10448 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
10449 as_fn_error $?
"conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
10450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10452 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10453 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
10454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10457 : "${CONFIG_STATUS=./config.status}"
10459 ac_clean_files_save
=$ac_clean_files
10460 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10462 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10464 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10466 # Generated by $as_me.
10467 # Run this file to recreate the current configuration.
10468 # Compiler output produced by configure, useful for debugging
10469 # configure, is in config.log if it exists.
10472 ac_cs_recheck=false
10475 SHELL=\${CONFIG_SHELL-$SHELL}
10478 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10479 ## -------------------- ##
10480 ## M4sh Initialization. ##
10481 ## -------------------- ##
10483 # Be more Bourne compatible
10484 DUALCASE
=1; export DUALCASE
# for MKS sh
10485 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10488 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10489 # is contrary to our usage. Disable this feature.
10490 alias -g '${1+"$@"}'='"$@"'
10491 setopt NO_GLOB_SUBST
10493 case `(set -o) 2>/dev/null` in #(
10505 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10506 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10507 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10508 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10509 # Prefer a ksh shell builtin over an external printf program on Solaris,
10510 # but without wasting forks for bash or zsh.
10511 if test -z "$BASH_VERSION$ZSH_VERSION" \
10512 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10513 as_echo='print
-r --'
10514 as_echo_n='print
-rn --'
10515 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10516 as_echo='printf %s
\n'
10517 as_echo_n='printf %s
'
10519 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10520 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10521 as_echo_n='/usr
/ucb
/echo -n'
10523 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10524 as_echo_n_body='eval
10528 expr "X$arg" : "X\\(.*\\)$as_nl";
10529 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10531 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10533 export as_echo_n_body
10534 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10536 export as_echo_body
10537 as_echo='sh
-c $as_echo_body as_echo
'
10540 # The user is always right.
10541 if test "${PATH_SEPARATOR+set}" != set; then
10543 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10544 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10551 # We need space, tab and new line, in precisely that order. Quoting is
10552 # there to prevent editors from complaining about space-tab.
10553 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10554 # splitting by setting IFS to empty value.)
10557 # Find who we are. Look in the path if we contain no directory separator.
10560 *[\\/]* ) as_myself=$0 ;;
10561 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10565 test -z "$as_dir" && as_dir=.
10566 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10572 # We did not find ourselves, most probably we were run as `sh COMMAND'
10573 # in which case we are not to be found in the path.
10574 if test "x$as_myself" = x
; then
10577 if test ! -f "$as_myself"; then
10578 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10582 # Unset variables that we do not need and which cause bugs (e.g. in
10583 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10584 # suppresses any "Segmentation fault" message there. '((' could
10585 # trigger a bug in pdksh 5.2.14.
10586 for as_var
in BASH_ENV ENV MAIL MAILPATH
10587 do eval test x\
${$as_var+set} = xset \
10588 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10601 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10604 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10605 # ----------------------------------------
10606 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10607 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10608 # script with STATUS, using 1 if that was 0.
10611 as_status
=$1; test $as_status -eq 0 && as_status
=1
10613 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10614 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10616 $as_echo "$as_me: error: $2" >&2
10617 as_fn_exit
$as_status
10621 # as_fn_set_status STATUS
10622 # -----------------------
10623 # Set $? to STATUS, without forking.
10624 as_fn_set_status
()
10627 } # as_fn_set_status
10629 # as_fn_exit STATUS
10630 # -----------------
10631 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10635 as_fn_set_status
$1
10641 # Portably unset VAR.
10644 { eval $1=; unset $1;}
10646 as_unset
=as_fn_unset
10647 # as_fn_append VAR VALUE
10648 # ----------------------
10649 # Append the text in VALUE to the end of the definition contained in VAR. Take
10650 # advantage of any shell optimizations that allow amortized linear growth over
10651 # repeated appends, instead of the typical quadratic growth present in naive
10653 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10654 eval 'as_fn_append ()
10665 # as_fn_arith ARG...
10666 # ------------------
10667 # Perform arithmetic evaluation on the ARGs, and store the result in the
10668 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10669 # must be portable across $(()) and expr.
10670 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10671 eval 'as_fn_arith ()
10678 as_val
=`expr "$@" || test $? -eq 1`
10683 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10684 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10690 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10691 as_basename
=basename
10696 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10702 as_me
=`$as_basename -- "$0" ||
10703 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10704 X"$0" : 'X\(//\)$' \| \
10705 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10707 sed '/^.*\/\([^/][^/]*\)\/*$/{
10721 # Avoid depending upon Character Ranges.
10722 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10723 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10724 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10725 as_cr_digits
='0123456789'
10726 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10728 ECHO_C
= ECHO_N
= ECHO_T
=
10729 case `echo -n x` in #(((((
10731 case `echo 'xy\c'` in
10732 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10734 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10741 rm -f conf$$ conf$$.exe conf$$.
file
10742 if test -d conf$$.dir
; then
10743 rm -f conf$$.dir
/conf$$.
file
10746 mkdir conf$$.dir
2>/dev
/null
10748 if (echo >conf$$.
file) 2>/dev
/null
; then
10749 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10751 # ... but there are two gotchas:
10752 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10753 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10754 # In both cases, we have to default to `cp -pR'.
10755 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10757 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10765 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10766 rmdir conf$$.dir
2>/dev
/null
10771 # Create "$as_dir" as a directory, including parents if necessary.
10776 -*) as_dir
=.
/$as_dir;;
10778 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10782 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10783 *) as_qdir
=$as_dir;;
10785 as_dirs
="'$as_qdir' $as_dirs"
10786 as_dir
=`$as_dirname -- "$as_dir" ||
10787 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10788 X"$as_dir" : 'X\(//\)[^/]' \| \
10789 X"$as_dir" : 'X\(//\)$' \| \
10790 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10791 $as_echo X"$as_dir" |
10792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10796 /^X\(\/\/\)[^/].*/{
10809 test -d "$as_dir" && break
10811 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10812 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10816 if mkdir
-p .
2>/dev
/null
; then
10817 as_mkdir_p
='mkdir -p "$as_dir"'
10819 test -d .
/-p && rmdir .
/-p
10824 # as_fn_executable_p FILE
10825 # -----------------------
10826 # Test if FILE is an executable regular file.
10827 as_fn_executable_p
()
10829 test -f "$1" && test -x "$1"
10830 } # as_fn_executable_p
10831 as_test_x
='test -x'
10832 as_executable_p
=as_fn_executable_p
10834 # Sed expression to map a string onto a valid CPP name.
10835 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10837 # Sed expression to map a string onto a valid variable name.
10838 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10842 ## ----------------------------------- ##
10843 ## Main body of $CONFIG_STATUS script. ##
10844 ## ----------------------------------- ##
10846 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10849 # Save the log message, to keep $0 and so on meaningful, and to
10850 # report actual input values of CONFIG_FILES etc. instead of their
10851 # values after options handling.
10853 This file was extended by gold $as_me 0.1, which was
10854 generated by GNU Autoconf 2.69. Invocation command line was
10856 CONFIG_FILES = $CONFIG_FILES
10857 CONFIG_HEADERS = $CONFIG_HEADERS
10858 CONFIG_LINKS = $CONFIG_LINKS
10859 CONFIG_COMMANDS = $CONFIG_COMMANDS
10862 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10867 case $ac_config_files in *"
10868 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10871 case $ac_config_headers in *"
10872 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10877 # Files that config.status was made for.
10878 config_files="$ac_config_files"
10879 config_headers="$ac_config_headers"
10880 config_commands="$ac_config_commands"
10884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10886 \`$as_me' instantiates files and other configuration actions
10887 from templates according to the current configuration. Unless the files
10888 and actions are specified as TAGs, all are instantiated by default.
10890 Usage: $0 [OPTION]... [TAG]...
10892 -h, --help print this help, then exit
10893 -V, --version print version number and configuration settings, then exit
10894 --config print configuration, then exit
10895 -q, --quiet, --silent
10896 do not print progress messages
10897 -d, --debug don't remove temporary files
10898 --recheck update $as_me by reconfiguring in the same conditions
10899 --file=FILE[:TEMPLATE]
10900 instantiate the configuration file FILE
10901 --header=FILE[:TEMPLATE]
10902 instantiate the configuration header FILE
10904 Configuration files:
10907 Configuration headers:
10910 Configuration commands:
10913 Report bugs to the package provider."
10916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10917 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10919 gold config.status 0.1
10920 configured by $0, generated by GNU Autoconf 2.69,
10921 with options \\"\$ac_cs_config\\"
10923 Copyright (C) 2012 Free Software Foundation, Inc.
10924 This config.status script is free software; the Free Software Foundation
10925 gives unlimited permission to copy, distribute and modify it."
10932 test -n "\$AWK" || AWK=awk
10935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10936 # The default lists apply if the user does not specify any file.
10942 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10943 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10947 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10959 # Handling of the options.
10960 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10962 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10963 $as_echo "$ac_cs_version"; exit ;;
10964 --config |
--confi |
--conf |
--con |
--co |
--c )
10965 $as_echo "$ac_cs_config"; exit ;;
10966 --debug |
--debu |
--deb |
--de |
--d |
-d )
10968 --file |
--fil |
--fi |
--f )
10971 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10972 '') as_fn_error $?
"missing file argument" ;;
10974 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10975 ac_need_defaults
=false
;;
10976 --header |
--heade |
--head |
--hea )
10979 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10981 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10982 ac_need_defaults
=false
;;
10984 # Conflict between --help and --header
10985 as_fn_error $?
"ambiguous option: \`$1'
10986 Try \`$0 --help' for more information.";;
10987 --help |
--hel |
-h )
10988 $as_echo "$ac_cs_usage"; exit ;;
10989 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10990 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10993 # This is an error.
10994 -*) as_fn_error $?
"unrecognized option: \`$1'
10995 Try \`$0 --help' for more information." ;;
10997 *) as_fn_append ac_config_targets
" $1"
10998 ac_need_defaults
=false
;;
11004 ac_configure_extra_args
=
11006 if $ac_cs_silent; then
11008 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11013 if \$ac_cs_recheck; then
11014 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11016 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11017 CONFIG_SHELL='$SHELL'
11018 export CONFIG_SHELL
11023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11028 ## Running $as_me. ##
11034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11038 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11039 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11040 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11042 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11043 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11044 LINGUAS="${LINGUAS-%UNSET%}"
11049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11051 # Handling of arguments.
11052 for ac_config_target
in $ac_config_targets
11054 case $ac_config_target in
11055 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11056 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
11057 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
11058 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11059 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
11060 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11062 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11067 # If the user did not use the arguments to specify the items to instantiate,
11068 # then the envvar interface is used. Set only those that are not.
11069 # We use the long form for the default assignment because of an extremely
11070 # bizarre bug on SunOS 4.1.3.
11071 if $ac_need_defaults; then
11072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11074 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11077 # Have a temporary directory for convenience. Make it in the build tree
11078 # simply because there is no reason against having it here, and in addition,
11079 # creating and moving files from /tmp can sometimes cause problems.
11080 # Hook for its removal unless debugging.
11081 # Note that there is a small window in which the directory will not be cleaned:
11082 # after its creation but before its name has been assigned to `$tmp'.
11086 trap 'exit_status=$?
11087 : "${ac_tmp:=$tmp}"
11088 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11090 trap 'as_fn_exit 1' 1 2 13 15
11092 # Create a (secure) tmp directory for tmp files.
11095 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11099 tmp
=.
/conf$$
-$RANDOM
11100 (umask 077 && mkdir
"$tmp")
11101 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11104 # Set up the scripts for CONFIG_FILES section.
11105 # No need to generate them if there are no CONFIG_FILES.
11106 # This happens for instance with `./config.status config.h'.
11107 if test -n "$CONFIG_FILES"; then
11110 ac_cr
=`echo X | tr X '\015'`
11111 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11112 # But we know of no other shell where ac_cr would be empty at this
11113 # point, so we can use a bashism as a fallback.
11114 if test "x$ac_cr" = x
; then
11115 eval ac_cr
=\$
\'\\r
\'
11117 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11118 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11121 ac_cs_awk_cr
=$ac_cr
11124 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11129 echo "cat >conf$$subs.awk <<_ACEOF" &&
11130 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11132 } >conf$$subs.sh ||
11133 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11134 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11136 for ac_last_try in false false false false false :; do
11137 . ./conf$$subs.sh ||
11138 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11140 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11141 if test $ac_delim_n = $ac_delim_num; then
11143 elif $ac_last_try; then
11144 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11146 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11149 rm -f conf$$subs.sh
11151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11152 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11156 s/^/S["/; s
/!.
*/"]=/
11166 s/\(.\{148\}\)..*/\1/
11168 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11173 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11180 s/\(.\{148\}\)..*/\1/
11182 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11186 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11191 ' <conf$$subs.awk | sed '
11196 ' >>$CONFIG_STATUS || ac_write_fail=1
11197 rm -f conf$$subs.awk
11198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11200 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11201 for (key in S) S_is_set[key] = 1
11207 nfields = split(line, field, "@
")
11209 len = length(field[1])
11210 for (i = 2; i < nfields; i++) {
11212 keylen = length(key)
11213 if (S_is_set[key]) {
11215 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11216 len += length(value) + length(field[++i])
11227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11228 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11229 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11232 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11233 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11236 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11237 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11238 # trailing colons and then remove the whole line if VPATH becomes empty
11239 # (actually we leave an empty line to preserve line numbers).
11240 if test "x
$srcdir" = x.; then
11241 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11260 fi # test -n "$CONFIG_FILES"
11262 # Set up the scripts for CONFIG_HEADERS section.
11263 # No need to generate them if there are no CONFIG_HEADERS.
11264 # This happens for instance with `./config.status Makefile'.
11265 if test -n "$CONFIG_HEADERS"; then
11266 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11270 # Transform confdefs.h into an awk script `defines.awk', embedded as
11271 # here-document in config.status, that substitutes the proper values into
11272 # config.h.in to produce config.h.
11274 # Create a delimiter string that does not exist in confdefs.h, to ease
11275 # handling of long lines.
11277 for ac_last_try in false false :; do
11278 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11279 if test -z "$ac_tt"; then
11281 elif $ac_last_try; then
11282 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11284 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11288 # For the awk script, D is an array of macro values keyed by name,
11289 # likewise P contains macro parameters if any. Preserve backslash
11290 # newline sequences.
11292 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11294 s/.\{148\}/&'"$ac_delim"'/g
11297 s/^[ ]*#[ ]*define[ ][ ]*/ /
11304 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11306 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11310 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11311 D["\
1"]=" \
3\\\\\\n
"\\/p
11313 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11318 s/.\{148\}/&'"$ac_delim"'/g
11323 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11326 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11328 ' <confdefs.h | sed '
11329 s/'"$ac_delim"'/"\\\
11330 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11333 for (key in D) D_is_set[key] = 1
11336 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11338 split(line, arg, " ")
11339 if (arg[1] == "#") {
11343 defundef
= substr
(arg
[1], 2)
11346 split(mac1
, mac2
, "(") #)
11348 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11349 if (D_is_set
[macro
]) {
11350 # Preserve the white space surrounding the "#".
11351 print prefix
"define", macro P
[macro
] D
[macro
]
11354 # Replace #undef with comments. This is necessary, for example,
11355 # in the case of _POSIX_SOURCE, which is predefined and required
11356 # on some systems where configure will not decide to define it.
11357 if (defundef
== "undef") {
11358 print
"/*", prefix defundef
, macro
, "*/"
11366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11367 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11368 fi # test -n "$CONFIG_HEADERS"
11371 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11376 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11378 case $ac_mode$ac_tag in
11380 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11381 :[FH
]-) ac_tag
=-:-;;
11382 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11399 -) ac_f
="$ac_tmp/stdin";;
11400 *) # Look for the file first in the build tree, then in the source tree
11401 # (if the path is not absolute). The absolute path cannot be DOS-style,
11402 # because $ac_f cannot contain `:'.
11406 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11408 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11410 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11411 as_fn_append ac_file_inputs
" '$ac_f'"
11414 # Let's still pretend it is `configure' which instantiates (i.e., don't
11415 # use $as_me), people would be surprised to read:
11416 # /* config.h. Generated by config.status. */
11417 configure_input
='Generated from '`
11418 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11420 if test x
"$ac_file" != x-
; then
11421 configure_input
="$ac_file. $configure_input"
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11423 $as_echo "$as_me: creating $ac_file" >&6;}
11425 # Neutralize special characters interpreted by sed in replacement strings.
11426 case $configure_input in #(
11427 *\
&* |
*\|
* |
*\\* )
11428 ac_sed_conf_input
=`$as_echo "$configure_input" |
11429 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11430 *) ac_sed_conf_input
=$configure_input;;
11434 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11435 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11440 ac_dir
=`$as_dirname -- "$ac_file" ||
11441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11442 X"$ac_file" : 'X\(//\)[^/]' \| \
11443 X"$ac_file" : 'X\(//\)$' \| \
11444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11445 $as_echo X"$ac_file" |
11446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11450 /^X\(\/\/\)[^/].*/{
11463 as_dir
="$ac_dir"; as_fn_mkdir_p
11467 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11469 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11470 # A ".." for each directory in $ac_dir_suffix.
11471 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11472 case $ac_top_builddir_sub in
11473 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11474 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11477 ac_abs_top_builddir
=$ac_pwd
11478 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11479 # for backward compatibility:
11480 ac_top_builddir
=$ac_top_build_prefix
11483 .
) # We are building in place.
11485 ac_top_srcdir
=$ac_top_builddir_sub
11486 ac_abs_top_srcdir
=$ac_pwd ;;
11487 [\\/]* | ?
:[\\/]* ) # Absolute name.
11488 ac_srcdir
=$srcdir$ac_dir_suffix;
11489 ac_top_srcdir
=$srcdir
11490 ac_abs_top_srcdir
=$srcdir ;;
11491 *) # Relative name.
11492 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11493 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11494 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11496 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11506 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11507 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11509 ac_MKDIR_P
=$MKDIR_P
11511 [\\/$
]* | ?
:[\\/]* ) ;;
11512 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
11516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11517 # If the template does not know about datarootdir, expand it.
11518 # FIXME: This hack should be removed a few years after 2.60.
11519 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11530 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11531 *datarootdir
*) ac_datarootdir_seen
=yes;;
11532 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11534 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11537 ac_datarootdir_hack='
11538 s&@datadir@&$datadir&g
11539 s&@docdir@&$docdir&g
11540 s&@infodir@&$infodir&g
11541 s&@localedir@&$localedir&g
11542 s&@mandir@&$mandir&g
11543 s&\\\${datarootdir}&$datarootdir&g' ;;
11547 # Neutralize VPATH when `$srcdir' = `.'.
11548 # Shell code in configure.ac might set extrasub.
11549 # FIXME: do we really want to maintain this feature?
11550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11551 ac_sed_extra="$ac_vpsub
11554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11556 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11557 s|@configure_input@|
$ac_sed_conf_input|
;t t
11558 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11559 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11560 s
&@srcdir@
&$ac_srcdir&;t t
11561 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11562 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11563 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11564 s
&@builddir@
&$ac_builddir&;t t
11565 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11566 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11567 s
&@INSTALL@
&$ac_INSTALL&;t t
11568 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
11569 $ac_datarootdir_hack
11571 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11572 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11574 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11575 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11576 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11577 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11579 which seems to be undefined. Please make sure it is defined" >&5
11580 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11581 which seems to be undefined. Please make sure it is defined" >&2;}
11583 rm -f "$ac_tmp/stdin"
11585 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11586 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11594 if test x"$ac_file" != x-; then
11596 $as_echo "/* $configure_input */" \
11597 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11598 } >"$ac_tmp/config.h" \
11599 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11600 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11602 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11605 mv "$ac_tmp/config.h" "$ac_file" \
11606 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11609 $as_echo "/* $configure_input */" \
11610 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11611 || as_fn_error $? "could not create -" "$LINENO" 5
11613 # Compute "$ac_file"'s index
in $config_headers.
11616 for _am_header
in $config_headers :; do
11617 case $_am_header in
11618 $_am_arg |
$_am_arg:* )
11621 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
11624 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11625 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11626 X"$_am_arg" : 'X\(//\)[^/]' \| \
11627 X"$_am_arg" : 'X\(//\)$' \| \
11628 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11629 $as_echo X"$_am_arg" |
11630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11634 /^X\(\/\/\)[^/].*/{
11646 s/.*/./; q'`/stamp-h
$_am_stamp_count
11649 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11650 $as_echo "$as_me: executing $ac_file commands" >&6;}
11655 case $ac_file$ac_mode in
11656 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
11657 # Older Autoconf quotes --file arguments for eval, but not when files
11658 # are listed without --file. Let's play safe and only enable the eval
11659 # if we detect the quoting.
11660 case $CONFIG_FILES in
11661 *\'*) eval set x
"$CONFIG_FILES" ;;
11662 *) set x
$CONFIG_FILES ;;
11667 # Strip MF so we end up with the name of the file.
11668 mf
=`echo "$mf" | sed -e 's/:.*$//'`
11669 # Check whether this is an Automake generated Makefile or not.
11670 # We used to match only the files named 'Makefile.in', but
11671 # some people rename them; so instead we look at the file content.
11672 # Grep'ing the first line is not enough: some people post-process
11673 # each Makefile.in and add a new line on top of each file to say so.
11674 # Grep'ing the whole file is not good either: AIX grep has a line
11675 # limit of 2048, but all sed's we know have understand at least 4000.
11676 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
11677 dirpart
=`$as_dirname -- "$mf" ||
11678 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11679 X"$mf" : 'X\(//\)[^/]' \| \
11680 X"$mf" : 'X\(//\)$' \| \
11681 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11687 /^X\(\/\/\)[^/].*/{
11703 # Extract the definition of DEPDIR, am__include, and am__quote
11704 # from the Makefile without running 'make'.
11705 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
11706 test -z "$DEPDIR" && continue
11707 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
11708 test -z "$am__include" && continue
11709 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
11710 # Find all dependency output files, they are included files with
11711 # $(DEPDIR) in their names. We invoke sed twice because it is the
11712 # simplest approach to changing $(DEPDIR) to its actual value in the
11714 for file in `sed -n "
11715 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11716 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11717 # Make sure the directory exists.
11718 test -f "$dirpart/$file" && continue
11719 fdir
=`$as_dirname -- "$file" ||
11720 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11721 X"$file" : 'X\(//\)[^/]' \| \
11722 X"$file" : 'X\(//\)$' \| \
11723 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11724 $as_echo X"$file" |
11725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11729 /^X\(\/\/\)[^/].*/{
11742 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
11743 # echo "creating $dirpart/$file"
11744 echo '# dummy' > "$dirpart/$file"
11750 for ac_file
in $CONFIG_FILES; do
11751 # Support "outfile[:infile[:infile...]]"
11753 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11755 # PO directories have a Makefile.in generated from Makefile.in.in.
11756 case "$ac_file" in */Makefile.
in)
11757 # Adjust a relative srcdir.
11758 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11759 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
11760 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11761 # In autoconf-2.13 it is called $ac_given_srcdir.
11762 # In autoconf-2.50 it is called $srcdir.
11763 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
11764 case "$ac_given_srcdir" in
11765 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
11766 /*) top_srcdir
="$ac_given_srcdir" ;;
11767 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11769 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11770 rm -f "$ac_dir/POTFILES"
11771 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
11772 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11773 POMAKEFILEDEPS
="POTFILES.in"
11774 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
11775 # on $ac_dir but don't depend on user-specified configuration
11777 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11778 # The LINGUAS file contains the set of available languages.
11779 if test -n "$OBSOLETE_ALL_LINGUAS"; then
11780 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
11782 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11783 # Hide the ALL_LINGUAS assigment from automake.
11784 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11785 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
11787 # The set of available languages was given in configure.ac.
11788 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11790 case "$ac_given_srcdir" in
11792 *) srcdirpre
='$(srcdir)/' ;;
11798 for lang
in $ALL_LINGUAS; do
11799 POFILES
="$POFILES $srcdirpre$lang.po"
11800 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
11801 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
11802 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
11804 # CATALOGS depends on both $ac_dir and the user's LINGUAS
11805 # environment variable.
11807 if test -n "$ALL_LINGUAS"; then
11808 for presentlang
in $ALL_LINGUAS; do
11810 if test "%UNSET%" != "$LINGUAS"; then
11811 desiredlanguages
="$LINGUAS"
11813 desiredlanguages
="$ALL_LINGUAS"
11815 for desiredlang
in $desiredlanguages; do
11816 # Use the presentlang catalog if desiredlang is
11817 # a. equal to presentlang, or
11818 # b. a variant of presentlang (because in this case,
11819 # presentlang can be used as a fallback for messages
11820 # which are not translated in the desiredlang catalog).
11821 case "$desiredlang" in
11822 "$presentlang"*) useit
=yes;;
11825 if test $useit = yes; then
11826 INST_LINGUAS
="$INST_LINGUAS $presentlang"
11831 if test -n "$INST_LINGUAS"; then
11832 for lang
in $INST_LINGUAS; do
11833 CATALOGS
="$CATALOGS $lang.gmo"
11836 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
11837 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11838 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
11839 if test -f "$f"; then
11841 *.orig |
*.bak |
*~
) ;;
11842 *) cat "$f" >> "$ac_dir/Makefile" ;;
11857 ac_clean_files
=$ac_clean_files_save
11859 test $ac_write_fail = 0 ||
11860 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
11863 # configure is writing to config.log, and then calls config.status.
11864 # config.status does its own redirection, appending to config.log.
11865 # Unfortunately, on DOS this fails, as config.log is still kept open
11866 # by configure, so config.status won't be able to write to it; its
11867 # output is simply discarded. So we exec the FD to /dev/null,
11868 # effectively closing config.log, so it can be properly (re)opened and
11869 # appended to by config.status. When coming back to configure, we
11870 # need to make the FD available again.
11871 if test "$no_create" != yes; then
11873 ac_config_status_args
=
11874 test "$silent" = yes &&
11875 ac_config_status_args
="$ac_config_status_args --quiet"
11877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11880 # would make configure fail if this is the last instruction.
11881 $ac_cs_success || as_fn_exit
1
11883 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11885 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}