2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Valgrind 3.6.0.SVN.
5 # Report bugs to <valgrind-users@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: valgrind-users@lists.sourceforge.net about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
553 PACKAGE_NAME='Valgrind'
554 PACKAGE_TARNAME='valgrind'
555 PACKAGE_VERSION='3.6.0.SVN'
556 PACKAGE_STRING='Valgrind 3.6.0.SVN'
557 PACKAGE_BUGREPORT='valgrind-users@lists.sourceforge.net'
560 ac_unique_file="coregrind/m_main.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
598 ac_subst_vars='am__EXEEXT_FALSE
601 HAVE_BUILTIN_ATOMIC_FALSE
602 HAVE_BUILTIN_ATOMIC_TRUE
605 HAVE_BOOST_1_35_FALSE
609 HAVE_QTCORE_QATOMICINT_FALSE
610 HAVE_QTCORE_QATOMICINT_TRUE
616 BUILD_MPIWRAP_SEC_FALSE
617 BUILD_MPIWRAP_SEC_TRUE
618 BUILD_MPIWRAP_PRI_FALSE
619 BUILD_MPIWRAP_PRI_TRUE
621 HAVE_PTHREAD_SPINLOCK_FALSE
622 HAVE_PTHREAD_SPINLOCK_TRUE
623 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE
624 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE
625 HAVE_PTHREAD_BARRIER_FALSE
626 HAVE_PTHREAD_BARRIER_TRUE
628 BUILD_SSSE3_TESTS_FALSE
629 BUILD_SSSE3_TESTS_TRUE
630 BUILD_SSE3_TESTS_FALSE
631 BUILD_SSE3_TESTS_TRUE
632 FLAG_UNLIMITED_INLINE_UNIT_GROWTH
633 FLAG_FNO_STACK_PROTECTOR
635 FLAG_W_NO_UNINITIALIZED
636 FLAG_W_NO_FORMAT_ZERO_LENGTH
638 PREFERRED_STACK_BOUNDARY
645 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE
646 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE
657 VGCONF_HAVE_PLATFORM_SEC_FALSE
658 VGCONF_HAVE_PLATFORM_SEC_TRUE
659 VGCONF_OS_IS_L4RE_FALSE
660 VGCONF_OS_IS_L4RE_TRUE
661 VGCONF_OS_IS_DARWIN_FALSE
662 VGCONF_OS_IS_DARWIN_TRUE
663 VGCONF_OS_IS_AIX5_FALSE
664 VGCONF_OS_IS_AIX5_TRUE
665 VGCONF_OS_IS_LINUX_FALSE
666 VGCONF_OS_IS_LINUX_TRUE
667 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE
668 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE
669 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE
670 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE
671 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE
672 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE
673 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE
674 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE
675 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE
676 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE
677 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE
678 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE
679 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE
680 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE
681 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE
682 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE
683 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE
684 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE
685 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE
686 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE
687 VGCONF_ARCHS_INCLUDE_ARM_FALSE
688 VGCONF_ARCHS_INCLUDE_ARM_TRUE
689 VGCONF_ARCHS_INCLUDE_PPC64_FALSE
690 VGCONF_ARCHS_INCLUDE_PPC64_TRUE
691 VGCONF_ARCHS_INCLUDE_PPC32_FALSE
692 VGCONF_ARCHS_INCLUDE_PPC32_TRUE
693 VGCONF_ARCHS_INCLUDE_AMD64_FALSE
694 VGCONF_ARCHS_INCLUDE_AMD64_TRUE
695 VGCONF_ARCHS_INCLUDE_X86_FALSE
696 VGCONF_ARCHS_INCLUDE_X86_TRUE
697 VGCONF_PLATFORM_SEC_CAPS
698 VGCONF_PLATFORM_PRI_CAPS
711 am__fastdepCCAS_FALSE
745 MAINTAINER_MODE_FALSE
755 INSTALL_STRIP_PROGRAM
797 program_transform_name
810 enable_option_checking
811 enable_maintainer_mode
812 enable_dependency_tracking
819 ac_precious_vars='build_alias
839 # Initialize some variables set by options.
841 ac_init_version=false
842 ac_unrecognized_opts=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
853 program_transform_name=s,x,x,
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
899 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
955 eval enable_$ac_useropt=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
981 eval enable_$ac_useropt=\$ac_optarg ;;
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
996 -help | --help | --hel | --he | -h)
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 htmldir=$ac_optarg ;;
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1026 -libdir | --libdir | --libdi | --libd)
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1117 -psdir | --psdir | --psdi | --psd | --ps)
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 sbindir=$ac_optarg ;;
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 sharedstatedir=$ac_optarg ;;
1143 -site | --site | --sit)
1145 -site=* | --site=* | --sit=*)
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval with_$ac_useropt=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1201 eval with_$ac_useropt=no ;;
1204 # Obsolete; use --with-x.
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1221 -*) as_fn_error "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information."
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error "missing argument to $ac_option"
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1254 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1272 # Be sure to have absolute directory names.
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1285 target=$target_alias
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1292 If a cross compiler is detected then cross compile mode will be used." >&2
1293 elif test "x$build_alias" != "x$host_alias"; then
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301 test "$silent" = yes && exec 6>/dev/null
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error "pwd does not report name of working directory"
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1344 ac_srcdir_defaulted=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures Valgrind 3.6.0.SVN to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/valgrind]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of Valgrind 3.6.0.SVN:";;
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-maintainer-mode enable make rules and dependencies not useful
1457 (and sometimes confusing) to the casual installer
1458 --disable-dependency-tracking speeds up one-time build
1459 --enable-dependency-tracking do not reject slow dependency extractors
1460 --enable-only64bit do a 64-bit only build
1461 --enable-only32bit do a 32-bit only build
1462 --enable-inner enables self-hosting
1463 --enable-tls platform supports TLS
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-mpicc= Specify name of MPI2-ised C compiler
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 LIBS libraries to pass to the linker, e.g. -l<library>
1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1479 CXX C++ compiler command
1480 CXXFLAGS C++ compiler flags
1482 CCAS assembler compiler command (defaults to CC)
1483 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1484 PKG_CONFIG path to pkg-config utility
1486 C compiler flags for QTCORE, overriding pkg-config
1487 QTCORE_LIBS linker flags for QTCORE, overriding pkg-config
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to <valgrind-users@lists.sourceforge.net>.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1522 .) # We are building in place.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1555 Valgrind configure 3.6.0.SVN
1556 generated by GNU Autoconf 2.65
1558 Copyright (C) 2009 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 as_fn_set_status $ac_retval
1605 } # ac_fn_c_try_compile
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } >/dev/null && {
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 as_fn_set_status $ac_retval
1644 # ac_fn_cxx_try_compile LINENO
1645 # ----------------------------
1646 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_cxx_try_compile ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext
1651 if { { ac_try="$ac_compile"
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_compile") 2>conftest.err
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_cxx_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest.$ac_objext; then :
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678 as_fn_set_status $ac_retval
1680 } # ac_fn_cxx_try_compile
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest$ac_exeext
1689 if { { ac_try="$ac_link"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>conftest.err
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest$ac_exeext && {
1708 test "$cross_compiling" = yes ||
1709 $as_test_x conftest$ac_exeext
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720 # interfere with the next link command; also delete a directory that is
1721 # left behind by Apple's compiler. We do this before executing the actions.
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 as_fn_set_status $ac_retval
1726 } # ac_fn_c_try_link
1728 # ac_fn_c_try_run LINENO
1729 # ----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1731 # that executables *can* be run.
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_link"
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>&5
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746 { { case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_try") 2>&5
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; }; }; then :
1758 $as_echo "$as_me: program exited with status $ac_status" >&5
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1762 ac_retval=$ac_status
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 as_fn_set_status $ac_retval
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1775 ac_fn_c_check_header_mongrel ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1788 # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_header_compiler=yes
1799 ac_header_compiler=no
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813 ac_header_preproc=yes
1815 ac_header_preproc=no
1817 rm -f conftest.err conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1821 # So? What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 ## --------------------------------------------------- ##
1842 ## Report this to valgrind-users@lists.sourceforge.net ##
1843 ## --------------------------------------------------- ##
1845 ) | sed "s/^/$as_me: WARNING: /" >&2
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1851 $as_echo_n "(cached) " >&6
1853 eval "$3=\$ac_header_compiler"
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 } # ac_fn_c_check_header_mongrel
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1880 if ac_fn_c_try_compile "$LINENO"; then :
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 } # ac_fn_c_check_header_compile
1894 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1895 # -------------------------------------------
1896 # Tests whether TYPE exists after having included INCLUDES, setting cache
1897 # variable VAR accordingly.
1898 ac_fn_c_check_type ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 $as_echo_n "(cached) " >&6
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1932 if ac_fn_c_try_compile "$LINENO"; then :
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 } # ac_fn_c_check_type
1948 # ac_fn_c_check_func LINENO FUNC VAR
1949 # ----------------------------------
1950 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1951 ac_fn_c_check_func ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1957 $as_echo_n "(cached) " >&6
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1961 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1963 #define $2 innocuous_$2
1965 /* System header to define __stub macros and hopefully few prototypes,
1966 which can conflict with char $2 (); below.
1967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1968 <limits.h> exists even on freestanding compilers. */
1971 # include <limits.h>
1973 # include <assert.h>
1978 /* Override any GCC internal prototype to avoid an error.
1979 Use char because int might match the return type of a GCC
1980 builtin and then its argument prototype would still apply. */
1985 /* The GNU C library defines this for functions which it implements
1986 to always fail with ENOSYS. Some functions are actually named
1987 something starting with __ and the normal name is an alias. */
1988 #if defined __stub_$2 || defined __stub___$2
2000 if ac_fn_c_try_link "$LINENO"; then :
2005 rm -f core conftest.err conftest.$ac_objext \
2006 conftest$ac_exeext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 } # ac_fn_c_check_func
2015 # ac_fn_cxx_try_link LINENO
2016 # -------------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_cxx_try_link ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 rm -f conftest.$ac_objext conftest$ac_exeext
2022 if { { ac_try="$ac_link"
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>conftest.err
2031 if test -s conftest.err; then
2032 grep -v '^ *+' conftest.err >conftest.er1
2033 cat conftest.er1 >&5
2034 mv -f conftest.er1 conftest.err
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && {
2038 test -z "$ac_cxx_werror_flag" ||
2039 test ! -s conftest.err
2040 } && test -s conftest$ac_exeext && {
2041 test "$cross_compiling" = yes ||
2042 $as_test_x conftest$ac_exeext
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2051 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2052 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2053 # interfere with the next link command; also delete a directory that is
2054 # left behind by Apple's compiler. We do this before executing the actions.
2055 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 as_fn_set_status $ac_retval
2059 } # ac_fn_cxx_try_link
2060 cat >config.log <<_ACEOF
2061 This file contains any messages produced by compilers while
2062 running configure, to aid debugging if configure makes a mistake.
2064 It was created by Valgrind $as_me 3.6.0.SVN, which was
2065 generated by GNU Autoconf 2.65. Invocation command line was
2077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2089 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 test -z "$as_dir" && as_dir=.
2101 $as_echo "PATH: $as_dir"
2117 # Keep a trace of the command line.
2118 # Strip out --no-create and --no-recursion so they do not pile up.
2119 # Strip out --silent because we don't want to record it for future runs.
2120 # Also quote any args containing shell meta-characters.
2121 # Make two passes to allow for proper duplicate-argument suppression.
2125 ac_must_keep_next=false
2131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2133 | -silent | --silent | --silen | --sile | --sil)
2136 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2139 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2141 as_fn_append ac_configure_args1 " '$ac_arg'"
2142 if test $ac_must_keep_next = true; then
2143 ac_must_keep_next=false # Got value, back to normal.
2146 *=* | --config-cache | -C | -disable-* | --disable-* \
2147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2149 | -with-* | --with-* | -without-* | --without-* | --x)
2150 case "$ac_configure_args0 " in
2151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2154 -* ) ac_must_keep_next=true ;;
2157 as_fn_append ac_configure_args " '$ac_arg'"
2162 { ac_configure_args0=; unset ac_configure_args0;}
2163 { ac_configure_args1=; unset ac_configure_args1;}
2165 # When interrupted or exit'd, cleanup temporary files, and complete
2166 # config.log. We remove comments because anyway the quotes in there
2167 # would cause problems or look ugly.
2168 # WARNING: Use '\'' to represent an apostrophe within the trap.
2169 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2170 trap 'exit_status=$?
2171 # Save into config.log some information that might help in debugging.
2176 ## ---------------- ##
2177 ## Cache variables. ##
2178 ## ---------------- ##
2181 # The following way of writing the cache mishandles newlines in values,
2183 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2184 eval ac_val=\$$ac_var
2188 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2189 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2192 _ | IFS | as_nl) ;; #(
2193 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2194 *) { eval $ac_var=; unset $ac_var;} ;;
2199 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2200 *${as_nl}ac_space=\ *)
2202 "s/'\''/'\''\\\\'\'''\''/g;
2203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2214 ## ----------------- ##
2215 ## Output variables. ##
2216 ## ----------------- ##
2219 for ac_var in $ac_subst_vars
2221 eval ac_val=\$$ac_var
2223 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 $as_echo "$ac_var='\''$ac_val'\''"
2229 if test -n "$ac_subst_files"; then
2231 ## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##
2236 for ac_var in $ac_subst_files
2238 eval ac_val=\$$ac_var
2240 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242 $as_echo "$ac_var='\''$ac_val'\''"
2247 if test -s confdefs.h; then
2257 test "$ac_signal" != 0 &&
2258 $as_echo "$as_me: caught signal $ac_signal"
2259 $as_echo "$as_me: exit $exit_status"
2261 rm -f core *.core core.conftest.* &&
2262 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2265 for ac_signal in 1 2 13 15; do
2266 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2270 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2271 rm -f -r conftest* confdefs.h
2273 $as_echo "/* confdefs.h */" > confdefs.h
2275 # Predefined preprocessor variables.
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_NAME "$PACKAGE_NAME"
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_STRING "$PACKAGE_STRING"
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_URL "$PACKAGE_URL"
2302 # Let the site file select an alternate cache file if it wants to.
2303 # Prefer an explicitly selected file to automatically selected ones.
2306 if test -n "$CONFIG_SITE"; then
2307 ac_site_file1=$CONFIG_SITE
2308 elif test "x$prefix" != xNONE; then
2309 ac_site_file1=$prefix/share/config.site
2310 ac_site_file2=$prefix/etc/config.site
2312 ac_site_file1=$ac_default_prefix/share/config.site
2313 ac_site_file2=$ac_default_prefix/etc/config.site
2315 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2317 test "x$ac_site_file" = xNONE && continue
2318 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2320 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2321 sed 's/^/| /' "$ac_site_file" >&5
2326 if test -r "$cache_file"; then
2327 # Some versions of bash will fail to source /dev/null (special files
2328 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2329 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2333 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334 *) . "./$cache_file";;
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2343 as_fn_append ac_header_list " stdlib.h"
2344 as_fn_append ac_header_list " unistd.h"
2345 as_fn_append ac_header_list " sys/param.h"
2346 # Check that the precious variables saved in the cache have kept the same
2348 ac_cache_corrupted=false
2349 for ac_var in $ac_precious_vars; do
2350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2351 eval ac_new_set=\$ac_env_${ac_var}_set
2352 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2353 eval ac_new_val=\$ac_env_${ac_var}_value
2354 case $ac_old_set,$ac_new_set in
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2358 ac_cache_corrupted=: ;;
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2361 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2362 ac_cache_corrupted=: ;;
2365 if test "x$ac_old_val" != "x$ac_new_val"; then
2366 # differences in whitespace do not lead to failure.
2367 ac_old_val_w=`echo x $ac_old_val`
2368 ac_new_val_w=`echo x $ac_new_val`
2369 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2371 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2372 ac_cache_corrupted=:
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2375 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2376 eval $ac_var=\$ac_old_val
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2379 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2381 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2384 # Pass precious variables to config.status.
2385 if test "$ac_new_set" = set; then
2387 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 *) ac_arg=$ac_var=$ac_new_val ;;
2390 case " $ac_configure_args " in
2391 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2392 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2396 if $ac_cache_corrupted; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2400 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2401 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2403 ## -------------------- ##
2404 ## Main body of script. ##
2405 ## -------------------- ##
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415 ac_config_headers="$ac_config_headers config.h"
2417 am__api_version='1.11'
2420 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2421 for ac_t in install-sh install.sh shtool; do
2422 if test -f "$ac_dir/$ac_t"; then
2424 ac_install_sh="$ac_aux_dir/$ac_t -c"
2429 if test -z "$ac_aux_dir"; then
2430 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2433 # These three variables are undocumented and unsupported,
2434 # and are intended to be withdrawn in a future Autoconf release.
2435 # They can cause serious problems if a builder's source tree is in a directory
2436 # whose full name contains unusual characters.
2437 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2438 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2439 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2442 # Find a good install program. We prefer a C program (faster),
2443 # so one script is as good as another. But avoid the broken or
2444 # incompatible versions:
2445 # SysV /etc/install, /usr/sbin/install
2446 # SunOS /usr/etc/install
2447 # IRIX /sbin/install
2449 # AmigaOS /C/install, which installs bootblocks on floppy discs
2450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2453 # OS/2's system install, which has a completely different semantic
2454 # ./install, which can be erroneously created by make from ./install.sh.
2455 # Reject install programs that cannot install multiple files.
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2457 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2458 if test -z "$INSTALL"; then
2459 if test "${ac_cv_path_install+set}" = set; then :
2460 $as_echo_n "(cached) " >&6
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 # Account for people who put trailing slashes in PATH elements.
2468 case $as_dir/ in #((
2469 ./ | .// | /[cC]/* | \
2470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2471 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2474 # OSF1 and SCO ODT 3.0 have their own names for install.
2475 # Don't use installbsd from OSF since it installs stuff as root
2477 for ac_prog in ginstall scoinst install; do
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2480 if test $ac_prog = install &&
2481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482 # AIX install. It has an incompatible calling convention.
2484 elif test $ac_prog = install &&
2485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # program-specific install script used by HP pwplus--don't use.
2489 rm -rf conftest.one conftest.two conftest.dir
2490 echo one > conftest.one
2491 echo two > conftest.two
2493 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2494 test -s conftest.one && test -s conftest.two &&
2495 test -s conftest.dir/conftest.one &&
2496 test -s conftest.dir/conftest.two
2498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2511 rm -rf conftest.one conftest.two conftest.dir
2514 if test "${ac_cv_path_install+set}" = set; then
2515 INSTALL=$ac_cv_path_install
2517 # As a last resort, use the slow shell script. Don't cache a
2518 # value for INSTALL within a source directory, because that will
2519 # break other packages using the cache if that directory is
2520 # removed, or if the value is a relative name.
2521 INSTALL=$ac_install_sh
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2525 $as_echo "$INSTALL" >&6; }
2527 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2528 # It thinks the first close brace ends the variable substitution.
2529 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2531 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2533 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2536 $as_echo_n "checking whether build environment is sane... " >&6; }
2539 echo timestamp > conftest.file
2540 # Reject unsafe characters in $srcdir or the absolute working directory
2541 # name. Accept space and tab only in the latter.
2545 *[\\\"\#\$\&\'\`$am_lf]*)
2546 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2549 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2550 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2553 # Do `set' in a subshell so we don't clobber the current shell's
2554 # arguments. Must try -L first in case configure is actually a
2555 # symlink; some systems play weird games with the mod time of symlinks
2556 # (eg FreeBSD returns the mod time of the symlink's containing
2559 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2560 if test "$*" = "X"; then
2562 set X `ls -t "$srcdir/configure" conftest.file`
2565 if test "$*" != "X $srcdir/configure conftest.file" \
2566 && test "$*" != "X conftest.file $srcdir/configure"; then
2568 # If neither matched, then we have a broken ls. This can happen
2569 # if, for instance, CONFIG_SHELL is bash and it inherits a
2570 # broken ls alias from the environment. This has actually
2571 # happened. Such a system could not be considered "sane".
2572 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2573 alias in your environment" "$LINENO" 5
2576 test "$2" = conftest.file
2582 as_fn_error "newly created file is older than distributed files!
2583 Check your system clock" "$LINENO" 5
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2586 $as_echo "yes" >&6; }
2587 test "$program_prefix" != NONE &&
2588 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2589 # Use a double $ so make ignores it.
2590 test "$program_suffix" != NONE &&
2591 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2592 # Double any \ or $.
2593 # By default was `s,x,x', remove it if useless.
2594 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2595 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2597 # expand $ac_aux_dir to an absolute path
2598 am_aux_dir=`cd $ac_aux_dir && pwd`
2600 if test x"${MISSING+set}" != xset; then
2603 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2605 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2608 # Use eval to expand $SHELL
2609 if eval "$MISSING --run true"; then
2610 am_missing_run="$MISSING --run "
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2614 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2617 if test x"${install_sh}" != xset; then
2620 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2622 install_sh="\${SHELL} $am_aux_dir/install-sh"
2626 # Installed binaries are usually stripped using `strip' when the user
2627 # run `make install-strip'. However `strip' might not be the right
2628 # tool to use in cross-compilation environments, therefore Automake
2629 # will honor the `STRIP' environment variable to overrule this program.
2630 if test "$cross_compiling" != no; then
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}strip; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if test "${ac_cv_prog_STRIP+set}" = set; then :
2637 $as_echo_n "(cached) " >&6
2639 if test -n "$STRIP"; then
2640 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 STRIP=$ac_cv_prog_STRIP
2660 if test -n "$STRIP"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2662 $as_echo "$STRIP" >&6; }
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2670 if test -z "$ac_cv_prog_STRIP"; then
2672 # Extract the first word of "strip", so it can be a program name with args.
2673 set dummy strip; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
2679 if test -n "$ac_ct_STRIP"; then
2680 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 ac_cv_prog_ac_ct_STRIP="strip"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2700 if test -n "$ac_ct_STRIP"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2702 $as_echo "$ac_ct_STRIP" >&6; }
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2708 if test "x$ac_ct_STRIP" = x; then
2711 case $cross_compiling:$ac_tool_warned in
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715 ac_tool_warned=yes ;;
2720 STRIP="$ac_cv_prog_STRIP"
2724 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2727 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2728 if test -z "$MKDIR_P"; then
2729 if test "${ac_cv_path_mkdir+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2736 test -z "$as_dir" && as_dir=.
2737 for ac_prog in mkdir gmkdir; do
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2740 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2741 'mkdir (GNU coreutils) '* | \
2742 'mkdir (coreutils) '* | \
2743 'mkdir (fileutils) '4.1*)
2744 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2754 test -d ./--version && rmdir ./--version
2755 if test "${ac_cv_path_mkdir+set}" = set; then
2756 MKDIR_P="$ac_cv_path_mkdir -p"
2758 # As a last resort, use the slow shell script. Don't cache a
2759 # value for MKDIR_P within a source directory, because that will
2760 # break other packages using the cache if that directory is
2761 # removed, or if the value is a relative name.
2762 MKDIR_P="$ac_install_sh -d"
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2766 $as_echo "$MKDIR_P" >&6; }
2770 [\\/$]* | ?:[\\/]*) ;;
2771 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2774 for ac_prog in gawk mawk nawk awk
2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
2777 set dummy $ac_prog; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if test "${ac_cv_prog_AWK+set}" = set; then :
2781 $as_echo_n "(cached) " >&6
2783 if test -n "$AWK"; then
2784 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_AWK="$ac_prog"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 if test -n "$AWK"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2806 $as_echo "$AWK" >&6; }
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2813 test -n "$AWK" && break
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2817 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2819 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2820 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2821 $as_echo_n "(cached) " >&6
2823 cat >conftest.make <<\_ACEOF
2826 @echo '@@@%%%=$(MAKE)=@@@%%%'
2828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2829 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2831 eval ac_cv_prog_make_${ac_make}_set=yes;;
2833 eval ac_cv_prog_make_${ac_make}_set=no;;
2837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2839 $as_echo "yes" >&6; }
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 SET_MAKE="MAKE=${MAKE-make}"
2847 rm -rf .tst 2>/dev/null
2848 mkdir .tst 2>/dev/null
2849 if test -d .tst; then
2854 rmdir .tst 2>/dev/null
2856 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2857 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2858 # is not polluted with repeated "-I."
2859 am__isrc=' -I$(srcdir)'
2860 # test to see if srcdir already configured
2861 if test -f $srcdir/config.status; then
2862 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2866 # test whether we have cygpath
2867 if test -z "$CYGPATH_W"; then
2868 if (cygpath --version) >/dev/null 2>/dev/null; then
2869 CYGPATH_W='cygpath -w'
2876 # Define the identity of the package.
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE "$PACKAGE"
2886 cat >>confdefs.h <<_ACEOF
2887 #define VERSION "$VERSION"
2890 # Some tools Automake needs.
2892 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2895 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2898 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2901 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2904 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2906 # We need awk for the "check" target. The system "awk" is bad on
2908 # Always define AMTAR for backward compatibility.
2910 AMTAR=${AMTAR-"${am_missing_run}tar"}
2912 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2921 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2922 # Check whether --enable-maintainer-mode was given.
2923 if test "${enable_maintainer_mode+set}" = set; then :
2924 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2926 USE_MAINTAINER_MODE=no
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2930 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2931 if test $USE_MAINTAINER_MODE = yes; then
2932 MAINTAINER_MODE_TRUE=
2933 MAINTAINER_MODE_FALSE='#'
2935 MAINTAINER_MODE_TRUE='#'
2936 MAINTAINER_MODE_FALSE=
2939 MAINT=$MAINTAINER_MODE_TRUE
2943 #----------------------------------------------------------------------------
2944 # Checks for various programs.
2945 #----------------------------------------------------------------------------
2946 CFLAGS="-Wno-long-long"
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2949 $as_echo_n "checking whether ln -s works... " >&6; }
2951 if test "$LN_S" = "ln -s"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2953 $as_echo "yes" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2956 $as_echo "no, using $LN_S" >&6; }
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964 if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_CC+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2972 if test -n "$CC"; then
2973 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 if test -n "$CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995 $as_echo "$CC" >&6; }
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3003 if test -z "$ac_cv_prog_CC"; then
3005 # Extract the first word of "gcc", so it can be a program name with args.
3006 set dummy gcc; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3012 if test -n "$ac_ct_CC"; then
3013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_ac_ct_CC="gcc"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035 $as_echo "$ac_ct_CC" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3041 if test "x$ac_ct_CC" = x; then
3044 case $cross_compiling:$ac_tool_warned in
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048 ac_tool_warned=yes ;;
3056 if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
3058 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}cc; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_CC+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3065 if test -n "$CC"; then
3066 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_CC="${ac_tool_prefix}cc"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 if test -n "$CC"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3088 $as_echo "$CC" >&6; }
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3097 if test -z "$CC"; then
3098 # Extract the first word of "cc", so it can be a program name with args.
3099 set dummy cc; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if test "${ac_cv_prog_CC+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3105 if test -n "$CC"; then
3106 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3117 ac_prog_rejected=yes
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 if test $ac_prog_rejected = yes; then
3129 # We found a bogon in the path, so make sure we never use it.
3130 set dummy $ac_cv_prog_CC
3132 if test $# != 0; then
3133 # We chose a different compiler from the bogus one.
3134 # However, it has the same basename, so the bogon will be chosen
3135 # first if we set CC to just the basename; use the full file name.
3137 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3143 if test -n "$CC"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3153 if test -z "$CC"; then
3154 if test -n "$ac_tool_prefix"; then
3155 for ac_prog in cl.exe
3157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if test "${ac_cv_prog_CC+set}" = set; then :
3162 $as_echo_n "(cached) " >&6
3164 if test -n "$CC"; then
3165 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 if test -n "$CC"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187 $as_echo "$CC" >&6; }
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3194 test -n "$CC" && break
3197 if test -z "$CC"; then
3199 for ac_prog in cl.exe
3201 # Extract the first word of "$ac_prog", so it can be a program name with args.
3202 set dummy $ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3208 if test -n "$ac_ct_CC"; then
3209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_ac_ct_CC="$ac_prog"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229 if test -n "$ac_ct_CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3231 $as_echo "$ac_ct_CC" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3238 test -n "$ac_ct_CC" && break
3241 if test "x$ac_ct_CC" = x; then
3244 case $cross_compiling:$ac_tool_warned in
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3248 ac_tool_warned=yes ;;
3257 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error "no acceptable C compiler found in \$PATH
3260 See \`config.log' for more details." "$LINENO" 5; }
3262 # Provide some information about the compiler.
3263 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3266 for ac_option in --version -v -V -qversion; do
3267 { { ac_try="$ac_compiler $ac_option >&5"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3276 if test -s conftest.err; then
3278 ... rest of stderr output deleted ...
3279 10q' conftest.err >conftest.er1
3280 cat conftest.er1 >&5
3282 rm -f conftest.er1 conftest.err
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3298 ac_clean_files_save=$ac_clean_files
3299 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3300 # Try to create an executable without -o first, disregard a.out.
3301 # It will help us diagnose broken compilers, and finding out an intuition
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3304 $as_echo_n "checking whether the C compiler works... " >&6; }
3305 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3307 # The possible output files:
3308 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3311 for ac_file in $ac_files
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3315 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3320 if { { ac_try="$ac_link_default"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_link_default") 2>&5
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }; then :
3331 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3332 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3333 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3334 # so that the user can short-circuit this test for compilers unknown to
3336 for ac_file in $ac_files ''
3338 test -f "$ac_file" || continue
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3343 # We found the default executable, but exeext='' is most
3347 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3349 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351 # We set ac_cv_exeext here because the later test for it is not
3352 # safe: cross compilers may not add the suffix if given an `-o'
3353 # argument, so we may need to know it at that point already.
3354 # Even if this section looks crufty: it has the advantage of
3361 test "$ac_cv_exeext" = no && ac_cv_exeext=
3366 if test -z "$ac_file"; then :
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 $as_echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 { as_fn_set_status 77
3375 as_fn_error "C compiler cannot create executables
3376 See \`config.log' for more details." "$LINENO" 5; }; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3379 $as_echo "yes" >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3382 $as_echo_n "checking for C compiler default output file name... " >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3384 $as_echo "$ac_file" >&6; }
3385 ac_exeext=$ac_cv_exeext
3387 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3388 ac_clean_files=$ac_clean_files_save
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3390 $as_echo_n "checking for suffix of executables... " >&6; }
3391 if { { ac_try="$ac_link"
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_link") 2>&5
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }; then :
3402 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3403 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3404 # work properly (i.e., refer to `conftest.exe'), while it won't with
3406 for ac_file in conftest.exe conftest conftest.*; do
3407 test -f "$ac_file" || continue
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error "cannot compute suffix of executables: cannot compile and link
3419 See \`config.log' for more details." "$LINENO" 5; }
3421 rm -f conftest conftest$ac_cv_exeext
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3423 $as_echo "$ac_cv_exeext" >&6; }
3425 rm -f conftest.$ac_ext
3426 EXEEXT=$ac_cv_exeext
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3434 FILE *f = fopen ("conftest.out", "w");
3435 return ferror (f) || fclose (f) != 0;
3441 ac_clean_files="$ac_clean_files conftest.out"
3442 # Check that the compiler produces executables we can run. If not, either
3443 # the compiler is broken, or we cross compile.
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3445 $as_echo_n "checking whether we are cross compiling... " >&6; }
3446 if test "$cross_compiling" != yes; then
3447 { { ac_try="$ac_link"
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_link") 2>&5
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }
3458 if { ac_try='./conftest$ac_cv_exeext'
3459 { { case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_try") 2>&5
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }; }; then
3471 if test "$cross_compiling" = maybe; then
3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error "cannot run C compiled programs.
3477 If you meant to cross compile, use \`--host'.
3478 See \`config.log' for more details." "$LINENO" 5; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3483 $as_echo "$cross_compiling" >&6; }
3485 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3486 ac_clean_files=$ac_clean_files_save
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3488 $as_echo_n "checking for suffix of object files... " >&6; }
3489 if test "${ac_cv_objext+set}" = set; then :
3490 $as_echo_n "(cached) " >&6
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3503 rm -f conftest.o conftest.obj
3504 if { { ac_try="$ac_compile"
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_compile") 2>&5
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 for ac_file in conftest.o conftest.obj conftest.*; do
3516 test -f "$ac_file" || continue;
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3524 $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error "cannot compute suffix of object files: cannot compile
3530 See \`config.log' for more details." "$LINENO" 5; }
3532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3535 $as_echo "$ac_cv_objext" >&6; }
3536 OBJEXT=$ac_cv_objext
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3539 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3540 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3541 $as_echo_n "(cached) " >&6
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3557 if ac_fn_c_try_compile "$LINENO"; then :
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3567 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3568 if test $ac_compiler_gnu = yes; then
3573 ac_test_CFLAGS=${CFLAGS+set}
3574 ac_save_CFLAGS=$CFLAGS
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3576 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3577 if test "${ac_cv_prog_cc_g+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3580 ac_save_c_werror_flag=$ac_c_werror_flag
3581 ac_c_werror_flag=yes
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3595 if ac_fn_c_try_compile "$LINENO"; then :
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3610 if ac_fn_c_try_compile "$LINENO"; then :
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3626 if ac_fn_c_try_compile "$LINENO"; then :
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_c_werror_flag=$ac_save_c_werror_flag
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3637 $as_echo "$ac_cv_prog_cc_g" >&6; }
3638 if test "$ac_test_CFLAGS" = set; then
3639 CFLAGS=$ac_save_CFLAGS
3640 elif test $ac_cv_prog_cc_g = yes; then
3641 if test "$GCC" = yes; then
3647 if test "$GCC" = yes; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3654 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3655 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3658 ac_cv_prog_cc_c89=no
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3664 #include <sys/types.h>
3665 #include <sys/stat.h>
3666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3667 struct buf { int x; };
3668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3669 static char *e (p, i)
3675 static char *f (char * (*g) (char **, int), char **p, ...)
3680 s = g (p, va_arg (v,int));
3685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3686 function prototypes and stuff, but not '\xHH' hex character constants.
3687 These don't provoke an error unfortunately, instead are silently treated
3688 as 'x'. The following induces an error, until -std is added to get
3689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3690 array size at least. It's necessary to write '\x00'==0 to get something
3691 that's true only with -std. */
3692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3695 inside strings and character constants. */
3697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3699 int test (int i, double x);
3700 struct s1 {int (*f) (int a);};
3701 struct s2 {int (*f) (double a);};
3702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716 CC="$ac_save_CC $ac_arg"
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_cv_prog_cc_c89=$ac_arg
3720 rm -f core conftest.err conftest.$ac_objext
3721 test "x$ac_cv_prog_cc_c89" != "xno" && break
3723 rm -f conftest.$ac_ext
3728 case "x$ac_cv_prog_cc_c89" in
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3731 $as_echo "none needed" >&6; } ;;
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3734 $as_echo "unsupported" >&6; } ;;
3736 CC="$CC $ac_cv_prog_cc_c89"
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3738 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3740 if test "x$ac_cv_prog_cc_c89" != xno; then :
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749 DEPDIR="${am__leading_dot}deps"
3751 ac_config_commands="$ac_config_commands depfiles"
3754 am_make=${MAKE-make}
3755 cat > confinc << 'END'
3757 @echo this is the am__doit target
3760 # If we don't find an include directive, just comment out the code.
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3762 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3766 # First try GNU make style include.
3767 echo "include confinc" > confmf
3768 # Ignore all kinds of additional output from `make'.
3769 case `$am_make -s -f confmf 2> /dev/null` in #(
3770 *the\ am__doit\ target*)
3776 # Now try BSD make style include.
3777 if test "$am__include" = "#"; then
3778 echo '.include "confinc"' > confmf
3779 case `$am_make -s -f confmf 2> /dev/null` in #(
3780 *the\ am__doit\ target*)
3781 am__include=.include
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3790 $as_echo "$_am_result" >&6; }
3791 rm -f confinc confmf
3793 # Check whether --enable-dependency-tracking was given.
3794 if test "${enable_dependency_tracking+set}" = set; then :
3795 enableval=$enable_dependency_tracking;
3798 if test "x$enable_dependency_tracking" != xno; then
3799 am_depcomp="$ac_aux_dir/depcomp"
3802 if test "x$enable_dependency_tracking" != xno; then
3812 depcc="$CC" am_compiler_list=
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3815 $as_echo_n "checking dependency style of $depcc... " >&6; }
3816 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3817 $as_echo_n "(cached) " >&6
3819 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3820 # We make a subdir and do the tests there. Otherwise we can end up
3821 # making bogus files that we don't know about and never remove. For
3822 # instance it was reported that on HP-UX the gcc test will end up
3823 # making a dummy file named `D' -- because `-MD' means `put the output
3826 # Copy depcomp to subdir because otherwise we won't find it if we're
3827 # using a relative directory.
3828 cp "$am_depcomp" conftest.dir
3830 # We will build objects and dependencies in a subdirectory because
3831 # it helps to detect inapplicable dependency modes. For instance
3832 # both Tru64's cc and ICC support -MD to output dependencies as a
3833 # side effect of compilation, but ICC will put the dependencies in
3834 # the current directory while Tru64 will put them in the object
3838 am_cv_CC_dependencies_compiler_type=none
3839 if test "$am_compiler_list" = ""; then
3840 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3843 case " $depcc " in #(
3844 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3847 for depmode in $am_compiler_list; do
3848 # Setup a source with many dependencies, because some compilers
3849 # like to wrap large dependency lists on column 80 (with \), and
3850 # we should not choose a depcomp mode which is confused by this.
3852 # We need to recreate these files for each test, as the compiler may
3853 # overwrite some of them when testing with obscure command lines.
3854 # This happens at least with the AIX C compiler.
3856 for i in 1 2 3 4 5 6; do
3857 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3858 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3859 # Solaris 8's {/usr,}/bin/sh.
3860 touch sub/conftst$i.h
3862 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3864 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3865 # mode. It turns out that the SunPro C++ compiler does not properly
3866 # handle `-M -o', and we need to detect this. Also, some Intel
3867 # versions had trouble with output in subdirs
3868 am__obj=sub/conftest.${OBJEXT-o}
3869 am__minus_obj="-o $am__obj"
3872 # This depmode causes a compiler race in universal mode.
3873 test "$am__universal" = false || continue
3876 # after this tag, mechanisms are not by side-effect, so they'll
3877 # only be used when explicitly requested
3878 if test "x$enable_dependency_tracking" = xyes; then
3884 msvisualcpp | msvcmsys)
3885 # This compiler won't grok `-c -o', but also, the minuso test has
3886 # not run yet. These depmodes are late enough in the game, and
3887 # so weak that their functioning should not be impacted.
3888 am__obj=conftest.${OBJEXT-o}
3893 if depmode=$depmode \
3894 source=sub/conftest.c object=$am__obj \
3895 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3896 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3897 >/dev/null 2>conftest.err &&
3898 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3899 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3900 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3901 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3902 # icc doesn't choke on unknown options, it will just issue warnings
3903 # or remarks (even with -Werror). So we grep stderr for any message
3904 # that says an option was ignored or not supported.
3905 # When given -MP, icc 7.0 and 7.1 complain thusly:
3906 # icc: Command line warning: ignoring option '-M'; no argument required
3907 # The diagnosis changed in icc 8.0:
3908 # icc: Command line remark: option '-MP' not supported
3909 if (grep 'ignoring option' conftest.err ||
3910 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3911 am_cv_CC_dependencies_compiler_type=$depmode
3920 am_cv_CC_dependencies_compiler_type=none
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3925 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3926 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3929 test "x$enable_dependency_tracking" != xno \
3930 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3932 am__fastdepCC_FALSE='#'
3934 am__fastdepCC_TRUE='#'
3935 am__fastdepCC_FALSE=
3939 if test "x$CC" != xcc; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3941 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3944 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3946 set dummy $CC; ac_cc=`$as_echo "$2" |
3947 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3948 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3949 $as_echo_n "(cached) " >&6
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3962 # Make sure it works both with $CC and with simple cc.
3963 # We do the test twice because some compilers refuse to overwrite an
3964 # existing .o file with -o, though they will create one.
3965 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3967 if { { case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973 (eval "$ac_try") 2>&5
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; } &&
3977 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 $as_echo "$ac_try_echo"; } >&5
3983 (eval "$ac_try") 2>&5
3985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986 test $ac_status = 0; };
3988 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3989 if test "x$CC" != xcc; then
3990 # Test first that cc exists at all.
3991 if { ac_try='cc -c conftest.$ac_ext >&5'
3992 { { case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 $as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_try") 2>&5
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }; }; then
4002 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4004 if { { case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_try") 2>&5
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; } &&
4014 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4019 $as_echo "$ac_try_echo"; } >&5
4020 (eval "$ac_try") 2>&5
4022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4023 test $ac_status = 0; };
4028 # cc exists but doesn't like -o.
4029 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4034 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4036 rm -f core conftest*
4039 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4041 $as_echo "yes" >&6; }
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4046 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4050 # FIXME: we rely on the cache variable name because
4051 # there is no other way.
4053 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4054 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4055 if test "$am_t" != yes; then
4056 # Losing compiler, so override with the script.
4057 # FIXME: It is wrong to rewrite CC.
4058 # But if we don't then we get into trouble of one sort or another.
4059 # A longer-term fix would be to have automake use am__CC in this case,
4060 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4061 CC="$am_aux_dir/compile $CC"
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4072 # On Suns, sometimes $CPP names a directory.
4073 if test -n "$CPP" && test -d "$CPP"; then
4076 if test -z "$CPP"; then
4077 if test "${ac_cv_prog_CPP+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4080 # Double quotes because CPP needs to be expanded
4081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4084 for ac_c_preproc_warn_flag in '' yes
4086 # Use a header file that comes with gcc, so configuring glibc
4087 # with a fresh cross-compiler works.
4088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4089 # <limits.h> exists even on freestanding compilers.
4090 # On the NeXT, cc -E runs the code through the compiler's parser,
4091 # not just through cpp. "Syntax error" is here to catch this case.
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4095 # include <limits.h>
4097 # include <assert.h>
4101 if ac_fn_c_try_cpp "$LINENO"; then :
4104 # Broken: fails on valid input.
4107 rm -f conftest.err conftest.$ac_ext
4109 # OK, works on sane cases. Now check whether nonexistent headers
4110 # can be detected and how.
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #include <ac_nonexistent.h>
4115 if ac_fn_c_try_cpp "$LINENO"; then :
4116 # Broken: success on invalid input.
4119 # Passes both tests.
4123 rm -f conftest.err conftest.$ac_ext
4126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127 rm -f conftest.err conftest.$ac_ext
4128 if $ac_preproc_ok; then :
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4141 $as_echo "$CPP" >&6; }
4143 for ac_c_preproc_warn_flag in '' yes
4145 # Use a header file that comes with gcc, so configuring glibc
4146 # with a fresh cross-compiler works.
4147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4148 # <limits.h> exists even on freestanding compilers.
4149 # On the NeXT, cc -E runs the code through the compiler's parser,
4150 # not just through cpp. "Syntax error" is here to catch this case.
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4154 # include <limits.h>
4156 # include <assert.h>
4160 if ac_fn_c_try_cpp "$LINENO"; then :
4163 # Broken: fails on valid input.
4166 rm -f conftest.err conftest.$ac_ext
4168 # OK, works on sane cases. Now check whether nonexistent headers
4169 # can be detected and how.
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #include <ac_nonexistent.h>
4174 if ac_fn_c_try_cpp "$LINENO"; then :
4175 # Broken: success on invalid input.
4178 # Passes both tests.
4182 rm -f conftest.err conftest.$ac_ext
4185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4186 rm -f conftest.err conftest.$ac_ext
4187 if $ac_preproc_ok; then :
4190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4193 See \`config.log' for more details." "$LINENO" 5; }
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203 ac_cpp='$CXXCPP $CPPFLAGS'
4204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4207 if test -z "$CXX"; then
4208 if test -n "$CCC"; then
4211 if test -n "$ac_tool_prefix"; then
4212 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if test "${ac_cv_prog_CXX+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
4221 if test -n "$CXX"; then
4222 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 if test -n "$CXX"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4244 $as_echo "$CXX" >&6; }
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4251 test -n "$CXX" && break
4254 if test -z "$CXX"; then
4256 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4263 $as_echo_n "(cached) " >&6
4265 if test -n "$ac_ct_CXX"; then
4266 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 ac_cv_prog_ac_ct_CXX="$ac_prog"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4286 if test -n "$ac_ct_CXX"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4288 $as_echo "$ac_ct_CXX" >&6; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4295 test -n "$ac_ct_CXX" && break
4298 if test "x$ac_ct_CXX" = x; then
4301 case $cross_compiling:$ac_tool_warned in
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned=yes ;;
4313 # Provide some information about the compiler.
4314 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4317 for ac_option in --version -v -V -qversion; do
4318 { { ac_try="$ac_compiler $ac_option >&5"
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4327 if test -s conftest.err; then
4329 ... rest of stderr output deleted ...
4330 10q' conftest.err >conftest.er1
4331 cat conftest.er1 >&5
4333 rm -f conftest.er1 conftest.err
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; }
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4339 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4340 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4357 if ac_fn_cxx_try_compile "$LINENO"; then :
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4367 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4368 if test $ac_compiler_gnu = yes; then
4373 ac_test_CXXFLAGS=${CXXFLAGS+set}
4374 ac_save_CXXFLAGS=$CXXFLAGS
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4376 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4377 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4380 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4381 ac_cxx_werror_flag=yes
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4395 if ac_fn_cxx_try_compile "$LINENO"; then :
4396 ac_cv_prog_cxx_g=yes
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4410 if ac_fn_cxx_try_compile "$LINENO"; then :
4413 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4426 if ac_fn_cxx_try_compile "$LINENO"; then :
4427 ac_cv_prog_cxx_g=yes
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4437 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4438 if test "$ac_test_CXXFLAGS" = set; then
4439 CXXFLAGS=$ac_save_CXXFLAGS
4440 elif test $ac_cv_prog_cxx_g = yes; then
4441 if test "$GXX" = yes; then
4447 if test "$GXX" = yes; then
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459 depcc="$CXX" am_compiler_list=
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4462 $as_echo_n "checking dependency style of $depcc... " >&6; }
4463 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4466 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4467 # We make a subdir and do the tests there. Otherwise we can end up
4468 # making bogus files that we don't know about and never remove. For
4469 # instance it was reported that on HP-UX the gcc test will end up
4470 # making a dummy file named `D' -- because `-MD' means `put the output
4473 # Copy depcomp to subdir because otherwise we won't find it if we're
4474 # using a relative directory.
4475 cp "$am_depcomp" conftest.dir
4477 # We will build objects and dependencies in a subdirectory because
4478 # it helps to detect inapplicable dependency modes. For instance
4479 # both Tru64's cc and ICC support -MD to output dependencies as a
4480 # side effect of compilation, but ICC will put the dependencies in
4481 # the current directory while Tru64 will put them in the object
4485 am_cv_CXX_dependencies_compiler_type=none
4486 if test "$am_compiler_list" = ""; then
4487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4490 case " $depcc " in #(
4491 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4494 for depmode in $am_compiler_list; do
4495 # Setup a source with many dependencies, because some compilers
4496 # like to wrap large dependency lists on column 80 (with \), and
4497 # we should not choose a depcomp mode which is confused by this.
4499 # We need to recreate these files for each test, as the compiler may
4500 # overwrite some of them when testing with obscure command lines.
4501 # This happens at least with the AIX C compiler.
4503 for i in 1 2 3 4 5 6; do
4504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4505 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4506 # Solaris 8's {/usr,}/bin/sh.
4507 touch sub/conftst$i.h
4509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4511 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4512 # mode. It turns out that the SunPro C++ compiler does not properly
4513 # handle `-M -o', and we need to detect this. Also, some Intel
4514 # versions had trouble with output in subdirs
4515 am__obj=sub/conftest.${OBJEXT-o}
4516 am__minus_obj="-o $am__obj"
4519 # This depmode causes a compiler race in universal mode.
4520 test "$am__universal" = false || continue
4523 # after this tag, mechanisms are not by side-effect, so they'll
4524 # only be used when explicitly requested
4525 if test "x$enable_dependency_tracking" = xyes; then
4531 msvisualcpp | msvcmsys)
4532 # This compiler won't grok `-c -o', but also, the minuso test has
4533 # not run yet. These depmodes are late enough in the game, and
4534 # so weak that their functioning should not be impacted.
4535 am__obj=conftest.${OBJEXT-o}
4540 if depmode=$depmode \
4541 source=sub/conftest.c object=$am__obj \
4542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4543 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4544 >/dev/null 2>conftest.err &&
4545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4547 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4549 # icc doesn't choke on unknown options, it will just issue warnings
4550 # or remarks (even with -Werror). So we grep stderr for any message
4551 # that says an option was ignored or not supported.
4552 # When given -MP, icc 7.0 and 7.1 complain thusly:
4553 # icc: Command line warning: ignoring option '-M'; no argument required
4554 # The diagnosis changed in icc 8.0:
4555 # icc: Command line remark: option '-MP' not supported
4556 if (grep 'ignoring option' conftest.err ||
4557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4558 am_cv_CXX_dependencies_compiler_type=$depmode
4567 am_cv_CXX_dependencies_compiler_type=none
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4572 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4573 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4576 test "x$enable_dependency_tracking" != xno \
4577 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4578 am__fastdepCXX_TRUE=
4579 am__fastdepCXX_FALSE='#'
4581 am__fastdepCXX_TRUE='#'
4582 am__fastdepCXX_FALSE=
4586 # AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with
4587 # autoconf 2.59). If we ever have any Objective-C code in the Valgrind code
4588 # base (eg. most likely as Darwin-specific tests) we'll need one of the
4590 # - put AC_PROG_OBJC in a Darwin-specific part of this file
4591 # - Use AC_PROG_OBJC here and up the minimum autoconf version
4592 # - Use the following, which is apparently equivalent:
4593 # m4_ifdef([AC_PROG_OBJC],
4595 # [AC_CHECK_TOOL([OBJC], [gcc])
4597 # AC_SUBST([OBJCFLAGS])
4599 if test -n "$ac_tool_prefix"; then
4600 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4601 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4607 if test -n "$RANLIB"; then
4608 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 RANLIB=$ac_cv_prog_RANLIB
4628 if test -n "$RANLIB"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4630 $as_echo "$RANLIB" >&6; }
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4638 if test -z "$ac_cv_prog_RANLIB"; then
4639 ac_ct_RANLIB=$RANLIB
4640 # Extract the first word of "ranlib", so it can be a program name with args.
4641 set dummy ranlib; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4647 if test -n "$ac_ct_RANLIB"; then
4648 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_prog_ac_ct_RANLIB="ranlib"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4668 if test -n "$ac_ct_RANLIB"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4670 $as_echo "$ac_ct_RANLIB" >&6; }
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4676 if test "x$ac_ct_RANLIB" = x; then
4679 case $cross_compiling:$ac_tool_warned in
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683 ac_tool_warned=yes ;;
4685 RANLIB=$ac_ct_RANLIB
4688 RANLIB="$ac_cv_prog_RANLIB"
4692 # If no AR variable was specified, look up the name of the archiver. Otherwise
4693 # do not touch the AR variable.
4694 if test "x$AR" = "x"; then
4695 for ac_prog in `echo $LD | sed 's/ld$/ar/'` "ar"
4697 # Extract the first word of "$ac_prog", so it can be a program name with args.
4698 set dummy $ac_prog; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_path_AR+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4706 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 if test -n "$AR"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4730 $as_echo "$AR" >&6; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4737 test -n "$AR" && break
4739 test -n "$AR" || AR="ar"
4744 # Check for the compiler support
4745 if test "${GCC}" != "yes" ; then
4746 as_fn_error "Valgrind relies on GCC to be compiled" "$LINENO" 5
4749 # figure out where perl lives
4750 # Extract the first word of "perl", so it can be a program name with args.
4751 set dummy perl; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_path_PERL+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4759 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 PERL=$ac_cv_path_PERL
4781 if test -n "$PERL"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4783 $as_echo "$PERL" >&6; }
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4791 # figure out where gdb lives
4792 # Extract the first word of "gdb", so it can be a program name with args.
4793 set dummy gdb; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_path_GDB+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4801 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time""
4824 if test -n "$GDB"; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
4826 $as_echo "$GDB" >&6; }
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4834 cat >>confdefs.h <<_ACEOF
4835 #define GDB_PATH "$GDB"
4839 # some older automake's don't have it so try something on our own
4840 # By default we simply use the C compiler to build assembly code.
4842 test "${CCAS+set}" = set || CCAS=$CC
4843 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4847 depcc="$CCAS" am_compiler_list=
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4850 $as_echo_n "checking dependency style of $depcc... " >&6; }
4851 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4855 # We make a subdir and do the tests there. Otherwise we can end up
4856 # making bogus files that we don't know about and never remove. For
4857 # instance it was reported that on HP-UX the gcc test will end up
4858 # making a dummy file named `D' -- because `-MD' means `put the output
4861 # Copy depcomp to subdir because otherwise we won't find it if we're
4862 # using a relative directory.
4863 cp "$am_depcomp" conftest.dir
4865 # We will build objects and dependencies in a subdirectory because
4866 # it helps to detect inapplicable dependency modes. For instance
4867 # both Tru64's cc and ICC support -MD to output dependencies as a
4868 # side effect of compilation, but ICC will put the dependencies in
4869 # the current directory while Tru64 will put them in the object
4873 am_cv_CCAS_dependencies_compiler_type=none
4874 if test "$am_compiler_list" = ""; then
4875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4880 for depmode in $am_compiler_list; do
4881 # Setup a source with many dependencies, because some compilers
4882 # like to wrap large dependency lists on column 80 (with \), and
4883 # we should not choose a depcomp mode which is confused by this.
4885 # We need to recreate these files for each test, as the compiler may
4886 # overwrite some of them when testing with obscure command lines.
4887 # This happens at least with the AIX C compiler.
4889 for i in 1 2 3 4 5 6; do
4890 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4891 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4892 # Solaris 8's {/usr,}/bin/sh.
4893 touch sub/conftst$i.h
4895 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4897 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4898 # mode. It turns out that the SunPro C++ compiler does not properly
4899 # handle `-M -o', and we need to detect this. Also, some Intel
4900 # versions had trouble with output in subdirs
4901 am__obj=sub/conftest.${OBJEXT-o}
4902 am__minus_obj="-o $am__obj"
4905 # This depmode causes a compiler race in universal mode.
4906 test "$am__universal" = false || continue
4909 # after this tag, mechanisms are not by side-effect, so they'll
4910 # only be used when explicitly requested
4911 if test "x$enable_dependency_tracking" = xyes; then
4917 msvisualcpp | msvcmsys)
4918 # This compiler won't grok `-c -o', but also, the minuso test has
4919 # not run yet. These depmodes are late enough in the game, and
4920 # so weak that their functioning should not be impacted.
4921 am__obj=conftest.${OBJEXT-o}
4926 if depmode=$depmode \
4927 source=sub/conftest.c object=$am__obj \
4928 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4929 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4930 >/dev/null 2>conftest.err &&
4931 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4932 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4933 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4934 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4935 # icc doesn't choke on unknown options, it will just issue warnings
4936 # or remarks (even with -Werror). So we grep stderr for any message
4937 # that says an option was ignored or not supported.
4938 # When given -MP, icc 7.0 and 7.1 complain thusly:
4939 # icc: Command line warning: ignoring option '-M'; no argument required
4940 # The diagnosis changed in icc 8.0:
4941 # icc: Command line remark: option '-MP' not supported
4942 if (grep 'ignoring option' conftest.err ||
4943 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4944 am_cv_CCAS_dependencies_compiler_type=$depmode
4953 am_cv_CCAS_dependencies_compiler_type=none
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4958 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4959 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4962 test "x$enable_dependency_tracking" != xno \
4963 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4964 am__fastdepCCAS_TRUE=
4965 am__fastdepCCAS_FALSE='#'
4967 am__fastdepCCAS_TRUE='#'
4968 am__fastdepCCAS_FALSE=
4974 # Check if 'diff' supports -u (universal diffs) and use it if possible.
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5
4977 $as_echo_n "checking for diff -u... " >&6; }
4980 # Comparing two identical files results in 0, unless -u isn't supported (as
4982 tmpfile="tmp-xxx-yyy-zzz"
4984 if diff -u $tmpfile $tmpfile ; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4986 $as_echo "yes" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4996 # We don't want gcc < 3.0
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5
4998 $as_echo_n "checking for a supported version of gcc... " >&6; }
5000 gcc_version=`${CC} --version | head -n 1 | sed 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
5002 case "${gcc_version}" in
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${gcc_version})" >&5
5005 $as_echo "no (${gcc_version})" >&6; }
5006 as_fn_error "please use a recent (>= gcc-3.0) version of gcc" "$LINENO" 5
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5
5010 $as_echo "ok (${gcc_version})" >&6; }
5014 #----------------------------------------------------------------------------
5015 # Arch/OS/platform tests.
5016 #----------------------------------------------------------------------------
5017 # We create a number of arch/OS/platform-related variables. We prefix them
5018 # all with "VGCONF_" which indicates that they are defined at
5019 # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_*
5020 # variables used when compiling C files.
5022 # Make sure we can run config.sub.
5023 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5024 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5027 $as_echo_n "checking build system type... " >&6; }
5028 if test "${ac_cv_build+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5031 ac_build_alias=$build_alias
5032 test "x$ac_build_alias" = x &&
5033 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5034 test "x$ac_build_alias" = x &&
5035 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5036 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5037 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5041 $as_echo "$ac_cv_build" >&6; }
5042 case $ac_cv_build in
5044 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5047 ac_save_IFS=$IFS; IFS='-'
5053 # Remember, the first character of IFS is used to create $*,
5054 # except with old shells:
5057 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5061 $as_echo_n "checking host system type... " >&6; }
5062 if test "${ac_cv_host+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5065 if test "x$host_alias" = x; then
5066 ac_cv_host=$ac_cv_build
5068 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5069 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5074 $as_echo "$ac_cv_host" >&6; }
5077 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5080 ac_save_IFS=$IFS; IFS='-'
5086 # Remember, the first character of IFS is used to create $*,
5087 # except with old shells:
5090 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5
5095 $as_echo_n "checking for a supported CPU... " >&6; }
5097 # ARCH_MAX reflects the most that this CPU can do: for example if it
5098 # is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32.
5099 # Ditto for amd64. It is used for more configuration below, but is not used
5100 # outside this file.
5101 case "${host_cpu}" in
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5104 $as_echo "ok (${host_cpu})" >&6; }
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5110 $as_echo "ok (${host_cpu})" >&6; }
5115 # This value can only happen on Linux, not on AIX
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5117 $as_echo "ok (${host_cpu})" >&6; }
5122 # Complexity. 'powerpc' on AIX implies a 64-bit capable CPU.
5123 # Whereas in Linux that means only a 32-bit capable CPU.
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5125 $as_echo "ok (${host_cpu})" >&6; }
5126 case "${host_os}" in
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
5138 $as_echo "ok (${host_cpu})" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
5144 $as_echo "no (${host_cpu})" >&6; }
5145 as_fn_error "Unsupported host architecture. Sorry" "$LINENO" 5
5149 #----------------------------------------------------------------------------
5151 # Sometimes it's convenient to subvert the bi-arch build system and
5152 # just have a single build even though the underlying platform is
5153 # capable of both. Hence handle --enable-only64bit and
5154 # --enable-only32bit. Complain if both are issued :-)
5155 # [Actually, if either of these options are used, I think both get built,
5156 # but only one gets installed. So if you use an in-place build, both can be
5159 # Check if a 64-bit only build has been requested
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5
5161 $as_echo_n "checking for a 64-bit only build... " >&6; }
5162 if test "${vg_cv_only64bit+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5165 # Check whether --enable-only64bit was given.
5166 if test "${enable_only64bit+set}" = set; then :
5167 enableval=$enable_only64bit; vg_cv_only64bit=$enableval
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5
5174 $as_echo "$vg_cv_only64bit" >&6; }
5176 # Check if a 32-bit only build has been requested
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5
5178 $as_echo_n "checking for a 32-bit only build... " >&6; }
5179 if test "${vg_cv_only32bit+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5182 # Check whether --enable-only32bit was given.
5183 if test "${enable_only32bit+set}" = set; then :
5184 enableval=$enable_only32bit; vg_cv_only32bit=$enableval
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5
5191 $as_echo "$vg_cv_only32bit" >&6; }
5194 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5195 as_fn_error "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5
5198 #----------------------------------------------------------------------------
5200 # VGCONF_OS is the primary build OS, eg. "linux". It is passed in to
5201 # compilation of many C files via -VGO_$(VGCONF_OS) and
5202 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5
5204 $as_echo_n "checking for a supported OS... " >&6; }
5210 case "${host_os}" in
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5213 $as_echo "ok (${host_os})" >&6; }
5216 # Ok, this is linux. Check the kernel version
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5218 $as_echo_n "checking for the kernel version... " >&6; }
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
5225 $as_echo "2.6 family (${kernel})" >&6; }
5227 $as_echo "#define KERNEL_2_6 1" >>confdefs.h
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family (${kernel})" >&5
5233 $as_echo "2.4 family (${kernel})" >&6; }
5235 $as_echo "#define KERNEL_2_4 1" >>confdefs.h
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5241 $as_echo "unsupported (${kernel})" >&6; }
5242 as_fn_error "Valgrind works on kernels 2.4, 2.6" "$LINENO" 5
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5250 $as_echo "ok (${host_os})" >&6; }
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5255 $as_echo "ok (${host_os})" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5260 $as_echo "ok (${host_os})" >&6; }
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5266 $as_echo "ok (${host_os})" >&6; }
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5272 $as_echo "ok (${host_os})" >&6; }
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5
5278 $as_echo "ok (${host_os})" >&6; }
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5
5282 $as_echo_n "checking for the kernel version... " >&6; }
5285 # Nb: for Darwin we set DEFAULT_SUPP here. That's because Darwin
5286 # has only one relevant version, the OS version. The `uname` check
5287 # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS
5288 # X 10.5.6, and "Darwin 10.x" would presumably be Mac OS X 10.6.x
5289 # Snow Leopard and darwin10.supp), and we don't know of an macros
5290 # similar to __GLIBC__ to get that info.
5292 # XXX: `uname -r` won't do the right thing for cross-compiles, but
5293 # that's not a problem yet.
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5
5297 $as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; }
5298 DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}"
5299 DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}"
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5
5303 $as_echo "unsupported (${kernel})" >&6; }
5304 as_fn_error "Valgrind works on Darwin 9.x (Mac OS X 10.5)" "$LINENO" 5
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5
5311 $as_echo "no (${host_os})" >&6; }
5312 as_fn_error "Valgrind is operating system specific. Sorry. Please consider doing a port." "$LINENO" 5
5316 #----------------------------------------------------------------------------
5318 # If we are building on a 64 bit platform test to see if the system
5319 # supports building 32 bit programs and disable 32 bit support if it
5320 # does not support building 32 bit programs
5322 case "$ARCH_MAX-$VGCONF_OS" in
5323 amd64-linux|ppc64-linux)
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5
5325 $as_echo_n "checking for 32 bit build support... " >&6; }
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5342 if ac_fn_c_try_link "$LINENO"; then :
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5345 $as_echo "yes" >&6; }
5349 vg_cv_only64bit="yes"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5354 rm -f core conftest.err conftest.$ac_objext \
5355 conftest$ac_exeext conftest.$ac_ext
5356 CFLAGS=$safe_CFLAGS;;
5359 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
5360 as_fn_error "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5
5363 #----------------------------------------------------------------------------
5365 # VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64". By
5366 # default it's the same as ARCH_MAX. But if, say, we do a build on an amd64
5367 # machine, but --enable-only32bit has been requested, then ARCH_MAX (see
5368 # above) will be "amd64" since that reflects the most that this cpu can do,
5369 # but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the
5370 # arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS). It is
5371 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and
5372 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS).
5375 # VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86".
5376 # It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC)
5377 # and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target.
5378 # It is empty if there is no secondary target.
5381 # VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX".
5382 # The entire system, including regression and performance tests, will be
5383 # built for this target. The "_CAPS" indicates that the name is in capital
5384 # letters, and it also uses '_' rather than '-' as a separator, because it's
5385 # used to create various Makefile variables, which are all in caps by
5386 # convention and cannot contain '-' characters. This is in contrast to
5387 # VGCONF_ARCH_PRI and VGCONF_OS which are not in caps.
5390 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one.
5391 # Valgrind and tools will also be built for this target, but not the
5392 # regression or performance tests.
5394 # By default, the primary arch is the same as the "max" arch, as commented
5395 # above (at the definition of ARCH_MAX). We may choose to downgrade it in
5396 # the big case statement just below here, in the case where we're building
5397 # on a 64 bit machine but have been requested only to do a 32 bit build.
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5
5401 $as_echo_n "checking for a supported CPU/OS combination... " >&6; }
5403 case "$ARCH_MAX-$VGCONF_OS" in
5405 VGCONF_ARCH_PRI="x86"
5407 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5408 VGCONF_PLATFORM_SEC_CAPS=""
5409 valt_load_address_normal="0x38000000"
5410 valt_load_address_inner="0x28000000"
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5412 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5415 if test x$vg_cv_only64bit = xyes; then
5416 VGCONF_ARCH_PRI="amd64"
5418 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5419 VGCONF_PLATFORM_SEC_CAPS=""
5420 elif test x$vg_cv_only32bit = xyes; then
5421 VGCONF_ARCH_PRI="x86"
5423 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX"
5424 VGCONF_PLATFORM_SEC_CAPS=""
5426 VGCONF_ARCH_PRI="amd64"
5427 VGCONF_ARCH_SEC="x86"
5428 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX"
5429 VGCONF_PLATFORM_SEC_CAPS="X86_LINUX"
5431 valt_load_address_normal="0x38000000"
5432 valt_load_address_inner="0x28000000"
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5434 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5437 VGCONF_ARCH_PRI="ppc32"
5439 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5440 VGCONF_PLATFORM_SEC_CAPS=""
5441 valt_load_address_normal="0x38000000"
5442 valt_load_address_inner="0x28000000"
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5444 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5447 if test x$vg_cv_only64bit = xyes; then
5448 VGCONF_ARCH_PRI="ppc64"
5450 VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5451 VGCONF_PLATFORM_SEC_CAPS=""
5452 elif test x$vg_cv_only32bit = xyes; then
5453 VGCONF_ARCH_PRI="ppc32"
5455 VGCONF_PLATFORM_PRI_CAPS="PPC32_AIX5"
5456 VGCONF_PLATFORM_SEC_CAPS=""
5458 VGCONF_ARCH_PRI="ppc64"
5459 VGCONF_ARCH_SEC="ppc32"
5460 VGCONF_PLATFORM_PRI_CAPS="PPC64_AIX5"
5461 VGCONF_PLATFORM_SEC_CAPS="PPC32_AIX5"
5463 valt_load_address_normal="0x38000000"
5464 valt_load_address_inner="0x28000000"
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5466 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5469 if test x$vg_cv_only64bit = xyes; then
5470 VGCONF_ARCH_PRI="ppc64"
5472 VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5473 VGCONF_PLATFORM_SEC_CAPS=""
5474 elif test x$vg_cv_only32bit = xyes; then
5475 VGCONF_ARCH_PRI="ppc32"
5477 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX"
5478 VGCONF_PLATFORM_SEC_CAPS=""
5480 VGCONF_ARCH_PRI="ppc64"
5481 VGCONF_ARCH_SEC="ppc32"
5482 VGCONF_PLATFORM_PRI_CAPS="PPC64_LINUX"
5483 VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX"
5485 valt_load_address_normal="0x38000000"
5486 valt_load_address_inner="0x28000000"
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5488 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5491 VGCONF_ARCH_PRI="x86"
5493 VGCONF_PLATFORM_PRI_CAPS="X86_L4RE"
5494 VGCONF_PLATFORM_SEC_CAPS=""
5495 valt_load_address_normal="0x38000000"
5496 valt_load_address_inner="0x28000000"
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5498 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5501 VGCONF_ARCH_PRI="x86"
5503 VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5504 VGCONF_PLATFORM_SEC_CAPS=""
5505 valt_load_address_normal="0x0"
5506 valt_load_address_inner="0x0"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5508 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5511 if test x$vg_cv_only64bit = xyes; then
5512 VGCONF_ARCH_PRI="amd64"
5514 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5515 VGCONF_PLATFORM_SEC_CAPS=""
5516 elif test x$vg_cv_only32bit = xyes; then
5517 VGCONF_ARCH_PRI="x86"
5519 VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN"
5520 VGCONF_PLATFORM_SEC_CAPS=""
5521 VGCONF_ARCH_PRI_CAPS="x86"
5523 VGCONF_ARCH_PRI="amd64"
5524 VGCONF_ARCH_SEC="x86"
5525 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN"
5526 VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN"
5528 valt_load_address_normal="0x0"
5529 valt_load_address_inner="0x0"
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5
5531 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5534 VGCONF_ARCH_PRI="arm"
5535 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX"
5536 VGCONF_PLATFORM_SEC_CAPS=""
5537 valt_load_address_normal="0x38000000"
5538 valt_load_address_inner="0x28000000"
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5
5540 $as_echo "ok (${host_cpu}-${host_os})" >&6; }
5543 VGCONF_ARCH_PRI="unknown"
5544 VGCONF_ARCH_SEC="unknown"
5545 VGCONF_PLATFORM_PRI_CAPS="UNKNOWN"
5546 VGCONF_PLATFORM_SEC_CAPS="UNKNOWN"
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5
5548 $as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; }
5549 as_fn_error "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5
5553 #----------------------------------------------------------------------------
5555 # Set up VGCONF_ARCHS_INCLUDE_<arch>. Either one or two of these become
5557 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5558 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
5559 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5560 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then
5561 VGCONF_ARCHS_INCLUDE_X86_TRUE=
5562 VGCONF_ARCHS_INCLUDE_X86_FALSE='#'
5564 VGCONF_ARCHS_INCLUDE_X86_TRUE='#'
5565 VGCONF_ARCHS_INCLUDE_X86_FALSE=
5568 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5569 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then
5570 VGCONF_ARCHS_INCLUDE_AMD64_TRUE=
5571 VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#'
5573 VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#'
5574 VGCONF_ARCHS_INCLUDE_AMD64_FALSE=
5577 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5578 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \
5579 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5580 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
5581 VGCONF_ARCHS_INCLUDE_PPC32_TRUE=
5582 VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#'
5584 VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#'
5585 VGCONF_ARCHS_INCLUDE_PPC32_FALSE=
5588 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5589 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
5590 VGCONF_ARCHS_INCLUDE_PPC64_TRUE=
5591 VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#'
5593 VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#'
5594 VGCONF_ARCHS_INCLUDE_PPC64_FALSE=
5597 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5598 VGCONF_ARCHS_INCLUDE_ARM_TRUE=
5599 VGCONF_ARCHS_INCLUDE_ARM_FALSE='#'
5601 VGCONF_ARCHS_INCLUDE_ARM_TRUE='#'
5602 VGCONF_ARCHS_INCLUDE_ARM_FALSE=
5606 # Set up VGCONF_PLATFORMS_INCLUDE_<platform>. Either one or two of these
5608 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5609 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then
5610 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE=
5611 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#'
5613 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#'
5614 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE=
5617 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then
5618 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE=
5619 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#'
5621 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#'
5622 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE=
5625 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5626 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then
5627 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE=
5628 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#'
5630 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#'
5631 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE=
5634 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX; then
5635 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE=
5636 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE='#'
5638 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE='#'
5639 VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE=
5642 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX; then
5643 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE=
5644 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#'
5646 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#'
5647 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE=
5651 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5652 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5; then
5653 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE=
5654 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE='#'
5656 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE='#'
5657 VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE=
5660 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5661 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE=
5662 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE='#'
5664 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE='#'
5665 VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE=
5669 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5670 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then
5671 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE=
5672 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#'
5674 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#'
5675 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE=
5678 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5679 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE=
5680 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#'
5682 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#'
5683 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE=
5686 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5687 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE=
5688 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE='#'
5690 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE='#'
5691 VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE=
5696 # Similarly, set up VGCONF_OF_IS_<os>. Exactly one of these becomes defined.
5697 # Relies on the assumption that the primary and secondary targets are
5698 # for the same OS, so therefore only necessary to test the primary.
5699 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
5700 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
5701 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \
5702 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \
5703 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX ; then
5704 VGCONF_OS_IS_LINUX_TRUE=
5705 VGCONF_OS_IS_LINUX_FALSE='#'
5707 VGCONF_OS_IS_LINUX_TRUE='#'
5708 VGCONF_OS_IS_LINUX_FALSE=
5711 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
5712 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5; then
5713 VGCONF_OS_IS_AIX5_TRUE=
5714 VGCONF_OS_IS_AIX5_FALSE='#'
5716 VGCONF_OS_IS_AIX5_TRUE='#'
5717 VGCONF_OS_IS_AIX5_FALSE=
5720 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \
5721 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then
5722 VGCONF_OS_IS_DARWIN_TRUE=
5723 VGCONF_OS_IS_DARWIN_FALSE='#'
5725 VGCONF_OS_IS_DARWIN_TRUE='#'
5726 VGCONF_OS_IS_DARWIN_FALSE=
5729 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_L4RE; then
5730 VGCONF_OS_IS_L4RE_TRUE=
5731 VGCONF_OS_IS_L4RE_FALSE='#'
5733 VGCONF_OS_IS_L4RE_TRUE='#'
5734 VGCONF_OS_IS_L4RE_FALSE=
5739 # Sometimes, in the Makefile.am files, it's useful to know whether or not
5740 # there is a secondary target.
5741 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then
5742 VGCONF_HAVE_PLATFORM_SEC_TRUE=
5743 VGCONF_HAVE_PLATFORM_SEC_FALSE='#'
5745 VGCONF_HAVE_PLATFORM_SEC_TRUE='#'
5746 VGCONF_HAVE_PLATFORM_SEC_FALSE=
5751 #----------------------------------------------------------------------------
5753 #----------------------------------------------------------------------------
5755 # Check if this should be built as an inner Valgrind, to be run within
5756 # another Valgrind. Choose the load address accordingly.
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5
5759 $as_echo_n "checking for use as an inner Valgrind... " >&6; }
5760 if test "${vg_cv_inner+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5763 # Check whether --enable-inner was given.
5764 if test "${enable_inner+set}" = set; then :
5765 enableval=$enable_inner; vg_cv_inner=$enableval
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5
5772 $as_echo "$vg_cv_inner" >&6; }
5773 if test "$vg_cv_inner" = yes; then
5775 $as_echo "#define ENABLE_INNER 1" >>confdefs.h
5777 VALT_LOAD_ADDRESS=$valt_load_address_inner
5779 VALT_LOAD_ADDRESS=$valt_load_address_normal
5783 #----------------------------------------------------------------------------
5784 # Libc and suppressions
5785 #----------------------------------------------------------------------------
5786 # This variable will collect the suppression files to be used.
5788 # This variable holds generated suppression files (such as the one used for
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5796 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5797 if test "${ac_cv_path_GREP+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5800 if test -z "$GREP"; then
5801 ac_path_GREP_found=false
5802 # Loop through the user's path and test for each of PROGNAME-LIST
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5807 test -z "$as_dir" && as_dir=.
5808 for ac_prog in grep ggrep; do
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5811 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5812 # Check for GNU ac_path_GREP and select it if it is found.
5813 # Check for GNU $ac_path_GREP
5814 case `"$ac_path_GREP" --version 2>&1` in
5816 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5819 $as_echo_n 0123456789 >"conftest.in"
5822 cat "conftest.in" "conftest.in" >"conftest.tmp"
5823 mv "conftest.tmp" "conftest.in"
5824 cp "conftest.in" "conftest.nl"
5825 $as_echo 'GREP' >> "conftest.nl"
5826 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5828 as_fn_arith $ac_count + 1 && ac_count=$as_val
5829 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5830 # Best one so far, save it but keep looking for a better one
5831 ac_cv_path_GREP="$ac_path_GREP"
5832 ac_path_GREP_max=$ac_count
5834 # 10*(2^10) chars as input seems more than enough
5835 test $ac_count -gt 10 && break
5837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5840 $ac_path_GREP_found && break 3
5845 if test -z "$ac_cv_path_GREP"; then
5846 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5849 ac_cv_path_GREP=$GREP
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5854 $as_echo "$ac_cv_path_GREP" >&6; }
5855 GREP="$ac_cv_path_GREP"
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5859 $as_echo_n "checking for egrep... " >&6; }
5860 if test "${ac_cv_path_EGREP+set}" = set; then :
5861 $as_echo_n "(cached) " >&6
5863 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5864 then ac_cv_path_EGREP="$GREP -E"
5866 if test -z "$EGREP"; then
5867 ac_path_EGREP_found=false
5868 # Loop through the user's path and test for each of PROGNAME-LIST
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5873 test -z "$as_dir" && as_dir=.
5874 for ac_prog in egrep; do
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5877 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5878 # Check for GNU ac_path_EGREP and select it if it is found.
5879 # Check for GNU $ac_path_EGREP
5880 case `"$ac_path_EGREP" --version 2>&1` in
5882 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5885 $as_echo_n 0123456789 >"conftest.in"
5888 cat "conftest.in" "conftest.in" >"conftest.tmp"
5889 mv "conftest.tmp" "conftest.in"
5890 cp "conftest.in" "conftest.nl"
5891 $as_echo 'EGREP' >> "conftest.nl"
5892 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5894 as_fn_arith $ac_count + 1 && ac_count=$as_val
5895 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5896 # Best one so far, save it but keep looking for a better one
5897 ac_cv_path_EGREP="$ac_path_EGREP"
5898 ac_path_EGREP_max=$ac_count
5900 # 10*(2^10) chars as input seems more than enough
5901 test $ac_count -gt 10 && break
5903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5906 $ac_path_EGREP_found && break 3
5911 if test -z "$ac_cv_path_EGREP"; then
5912 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5915 ac_cv_path_EGREP=$EGREP
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5921 $as_echo "$ac_cv_path_EGREP" >&6; }
5922 EGREP="$ac_cv_path_EGREP"
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5928 #include <features.h>
5929 #ifdef __GNU_LIBRARY__
5930 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2)
5936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5937 $EGREP "GLIBC_22" >/dev/null 2>&1; then :
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5946 #include <features.h>
5947 #ifdef __GNU_LIBRARY__
5948 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 3)
5954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5955 $EGREP "GLIBC_23" >/dev/null 2>&1; then :
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5964 #include <features.h>
5965 #ifdef __GNU_LIBRARY__
5966 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 4)
5972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5973 $EGREP "GLIBC_24" >/dev/null 2>&1; then :
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5982 #include <features.h>
5983 #ifdef __GNU_LIBRARY__
5984 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 5)
5990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5991 $EGREP "GLIBC_25" >/dev/null 2>&1; then :
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6000 #include <features.h>
6001 #ifdef __GNU_LIBRARY__
6002 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 6)
6008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6009 $EGREP "GLIBC_26" >/dev/null 2>&1; then :
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6018 #include <features.h>
6019 #ifdef __GNU_LIBRARY__
6020 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 7)
6026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027 $EGREP "GLIBC_27" >/dev/null 2>&1; then :
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6036 #include <features.h>
6037 #ifdef __GNU_LIBRARY__
6038 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 8)
6044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6045 $EGREP "GLIBC_28" >/dev/null 2>&1; then :
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6054 #include <features.h>
6055 #ifdef __GNU_LIBRARY__
6056 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 9)
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063 $EGREP "GLIBC_29" >/dev/null 2>&1; then :
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6072 #include <features.h>
6073 #ifdef __GNU_LIBRARY__
6074 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 10)
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081 $EGREP "GLIBC_210" >/dev/null 2>&1; then :
6082 GLIBC_VERSION="2.10"
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6090 #include <features.h>
6091 #ifdef __GNU_LIBRARY__
6092 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 11)
6098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6099 $EGREP "GLIBC_211" >/dev/null 2>&1; then :
6100 GLIBC_VERSION="2.11"
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6108 #include <standards.h>
6109 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
6114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6115 $EGREP "AIX5_LIBC" >/dev/null 2>&1; then :
6116 GLIBC_VERSION="aix5"
6121 # not really a version check
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6125 #include <sys/cdefs.h>
6126 #if defined(__DARWIN_VERS_1050)
6131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6132 $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then :
6133 GLIBC_VERSION="darwin"
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GLIBC_VERSION version" >&5
6139 $as_echo_n "checking the GLIBC_VERSION version... " >&6; }
6141 case "${GLIBC_VERSION}" in
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.2 family" >&5
6144 $as_echo "2.2 family" >&6; }
6146 $as_echo "#define GLIBC_2_2 1" >>confdefs.h
6148 DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
6149 DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
6150 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.3 family" >&5
6155 $as_echo "2.3 family" >&6; }
6157 $as_echo "#define GLIBC_2_3 1" >>confdefs.h
6159 DEFAULT_SUPP="glibc-2.3.supp ${DEFAULT_SUPP}"
6160 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6161 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.4 family" >&5
6166 $as_echo "2.4 family" >&6; }
6168 $as_echo "#define GLIBC_2_4 1" >>confdefs.h
6170 DEFAULT_SUPP="glibc-2.4.supp ${DEFAULT_SUPP}"
6171 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6172 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.5 family" >&5
6177 $as_echo "2.5 family" >&6; }
6179 $as_echo "#define GLIBC_2_5 1" >>confdefs.h
6181 DEFAULT_SUPP="glibc-2.5.supp ${DEFAULT_SUPP}"
6182 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6183 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family" >&5
6187 $as_echo "2.6 family" >&6; }
6189 $as_echo "#define GLIBC_2_6 1" >>confdefs.h
6191 DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
6192 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6193 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.7 family" >&5
6197 $as_echo "2.7 family" >&6; }
6199 $as_echo "#define GLIBC_2_7 1" >>confdefs.h
6201 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6202 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6203 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.8 family" >&5
6207 $as_echo "2.8 family" >&6; }
6209 $as_echo "#define GLIBC_2_8 1" >>confdefs.h
6211 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6212 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6213 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.9 family" >&5
6217 $as_echo "2.9 family" >&6; }
6219 $as_echo "#define GLIBC_2_9 1" >>confdefs.h
6221 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6222 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6223 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.10 family" >&5
6227 $as_echo "2.10 family" >&6; }
6229 $as_echo "#define GLIBC_2_10 1" >>confdefs.h
6231 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6232 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6233 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.11 family" >&5
6237 $as_echo "2.11 family" >&6; }
6239 $as_echo "#define GLIBC_2_11 1" >>confdefs.h
6241 GENERATED_SUPP="glibc-2.X.supp ${GENERATED_SUPP}"
6242 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
6243 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX 5.1 or 5.2 or 5.3" >&5
6247 $as_echo "AIX 5.1 or 5.2 or 5.3" >&6; }
6249 $as_echo "#define AIX5_LIBC 1" >>confdefs.h
6251 DEFAULT_SUPP="aix5libc.supp ${DEFAULT_SUPP}"
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
6255 $as_echo "Darwin" >&6; }
6257 $as_echo "#define DARWIN_LIBC 1" >>confdefs.h
6259 # DEFAULT_SUPP set by kernel version check above.
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version" >&5
6264 $as_echo "unsupported version" >&6; }
6265 as_fn_error "Valgrind requires glibc version 2.2 - 2.11" "$LINENO" 5
6266 as_fn_error "or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION" "$LINENO" 5
6267 as_fn_error "or Darwin libc" "$LINENO" 5
6274 # Add default suppressions for the X client libraries. Make no
6275 # attempt to detect whether such libraries are installed on the
6276 # build machine (or even if any X facilities are present); just
6277 # add the suppressions antidisirregardless.
6278 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}"
6279 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}"
6281 # Add glibc and X11 suppressions for exp-ptrcheck
6282 DEFAULT_SUPP="exp-ptrcheck.supp ${DEFAULT_SUPP}"
6285 #----------------------------------------------------------------------------
6286 # Checking for various library functions and other definitions
6287 #----------------------------------------------------------------------------
6289 # Check for CLOCK_MONOTONIC
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5
6292 $as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6304 clock_gettime(CLOCK_MONOTONIC, &t);
6311 if ac_fn_c_try_compile "$LINENO"; then :
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6314 $as_echo "yes" >&6; }
6316 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 # Check for PTHREAD_MUTEX_ADAPTIVE_NP
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
6331 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6337 #include <pthread.h>
6343 return (PTHREAD_MUTEX_ADAPTIVE_NP);
6349 if ac_fn_c_try_compile "$LINENO"; then :
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6352 $as_echo "yes" >&6; }
6354 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 # Check for PTHREAD_MUTEX_ERRORCHECK_NP
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
6369 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6375 #include <pthread.h>
6381 return (PTHREAD_MUTEX_ERRORCHECK_NP);
6387 if ac_fn_c_try_compile "$LINENO"; then :
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6390 $as_echo "yes" >&6; }
6392 $as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 # Check for PTHREAD_MUTEX_RECURSIVE_NP
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5
6407 $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; }
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6413 #include <pthread.h>
6419 return (PTHREAD_MUTEX_RECURSIVE_NP);
6425 if ac_fn_c_try_compile "$LINENO"; then :
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6428 $as_echo "yes" >&6; }
6430 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 # Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5
6445 $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; }
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6451 #include <pthread.h>
6457 pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
6464 if ac_fn_c_try_compile "$LINENO"; then :
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6467 $as_echo "yes" >&6; }
6469 $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 # Check whether pthread_mutex_t has a member called __m_kind.
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__m_kind" >&5
6484 $as_echo_n "checking for pthread_mutex_t::__m_kind... " >&6; }
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6489 #include <pthread.h>
6502 if ac_fn_c_try_compile "$LINENO"; then :
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6505 $as_echo "yes" >&6; }
6507 $as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 # Check whether pthread_mutex_t has a member called __data.__kind.
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t::__data.__kind" >&5
6522 $as_echo_n "checking for pthread_mutex_t::__data.__kind... " >&6; }
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6527 #include <pthread.h>
6534 return m.__data.__kind;
6540 if ac_fn_c_try_compile "$LINENO"; then :
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6543 $as_echo "yes" >&6; }
6545 $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 # does this compiler support -maltivec and does it have the include file
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec" >&5
6561 $as_echo_n "checking for Altivec... " >&6; }
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6569 #include <altivec.h>
6575 vector unsigned int v;
6581 if ac_fn_c_try_compile "$LINENO"; then :
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6585 $as_echo "yes" >&6; }
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 if test x$ac_have_altivec = xyes; then
6599 HAS_ALTIVEC_FALSE='#'
6601 HAS_ALTIVEC_TRUE='#'
6605 if test x$ac_have_altivec = xyes; then
6606 HAVE_ALTIVEC_H_TRUE=
6607 HAVE_ALTIVEC_H_FALSE='#'
6609 HAVE_ALTIVEC_H_TRUE='#'
6610 HAVE_ALTIVEC_H_FALSE=
6615 # Check for pthread_create@GLIBC2.0
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create@GLIBC2.0()" >&5
6617 $as_echo_n "checking for pthread_create@GLIBC2.0()... " >&6; }
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6624 extern int pthread_create_glibc_2_0(void*, const void*,
6625 void *(*)(void*), void*);
6626 __asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0");
6634 * Apparently on PowerPC linking this program succeeds and generates an
6635 * executable with the undefined symbol pthread_create@GLIBC_2.0.
6637 #error This test does not work properly on PowerPC.
6639 pthread_create_glibc_2_0(0, 0, 0, 0);
6647 if ac_fn_c_try_link "$LINENO"; then :
6649 ac_have_pthread_create_glibc_2_0=yes
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6651 $as_echo "yes" >&6; }
6653 $as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h
6658 ac_have_pthread_create_glibc_2_0=no
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6663 rm -f core conftest.err conftest.$ac_objext \
6664 conftest$ac_exeext conftest.$ac_ext
6667 if test x$ac_have_pthread_create_glibc_2_0 = xyes; then
6668 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE=
6669 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#'
6671 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#'
6672 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE=
6677 # Check for eventfd_t, eventfd() and eventfd_read()
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5
6679 $as_echo_n "checking for eventfd()... " >&6; }
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6684 #include <sys/eventfd.h>
6694 eventfd_read(fd, &ev);
6701 if ac_fn_c_try_link "$LINENO"; then :
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6704 $as_echo "yes" >&6; }
6706 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
6709 $as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6718 rm -f core conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6722 #----------------------------------------------------------------------------
6723 # Checking for supported compiler flags.
6724 #----------------------------------------------------------------------------
6726 # does this compiler support -m32 ?
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5
6728 $as_echo_n "checking if gcc accepts -m32... " >&6; }
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6746 if ac_fn_c_try_compile "$LINENO"; then :
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6750 $as_echo "yes" >&6; }
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 # does this compiler support -maix32 ?
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix32" >&5
6767 $as_echo_n "checking if gcc accepts -maix32... " >&6; }
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6785 if ac_fn_c_try_compile "$LINENO"; then :
6787 FLAG_MAIX32="-maix32"
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6789 $as_echo "yes" >&6; }
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 # does this compiler support -m64 ?
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5
6806 $as_echo_n "checking if gcc accepts -m64... " >&6; }
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6824 if ac_fn_c_try_compile "$LINENO"; then :
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6828 $as_echo "yes" >&6; }
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 # does this compiler support -maix64 ?
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -maix64" >&5
6845 $as_echo_n "checking if gcc accepts -maix64... " >&6; }
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6863 if ac_fn_c_try_compile "$LINENO"; then :
6865 FLAG_MAIX64="-maix64"
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6867 $as_echo "yes" >&6; }
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882 # does this compiler support -mmmx ?
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5
6884 $as_echo_n "checking if gcc accepts -mmmx... " >&6; }
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6902 if ac_fn_c_try_compile "$LINENO"; then :
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6906 $as_echo "yes" >&6; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 # does this compiler support -msse ?
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5
6923 $as_echo_n "checking if gcc accepts -msse... " >&6; }
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6941 if ac_fn_c_try_compile "$LINENO"; then :
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6945 $as_echo "yes" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 # does this compiler support -mpreferred-stack-boundary=2 ?
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary" >&5
6962 $as_echo_n "checking if gcc accepts -mpreferred-stack-boundary... " >&6; }
6965 CFLAGS="-mpreferred-stack-boundary=2"
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6980 if ac_fn_c_try_compile "$LINENO"; then :
6982 PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6984 $as_echo "yes" >&6; }
6988 PREFERRED_STACK_BOUNDARY=""
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6999 # does this compiler support -Wno-pointer-sign ?
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-pointer-sign" >&5
7001 $as_echo_n "checking if gcc accepts -Wno-pointer-sign... " >&6; }
7004 CFLAGS="-Wno-pointer-sign"
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7019 if ac_fn_c_try_compile "$LINENO"; then :
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7023 $as_echo "yes" >&6; }
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 if test x$no_pointer_sign = xyes; then
7036 CFLAGS="$CFLAGS -Wno-pointer-sign"
7040 # does this compiler support -Wno-empty-body ?
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-empty-body" >&5
7043 $as_echo_n "checking if gcc accepts -Wno-empty-body... " >&6; }
7046 CFLAGS="-Wno-empty-body"
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7061 if ac_fn_c_try_compile "$LINENO"; then :
7063 FLAG_W_NO_EMPTY_BODY=-Wno-empty-body
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7066 $as_echo "yes" >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 # does this compiler support -Wno-format-zero-length ?
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-format-zero-length" >&5
7082 $as_echo_n "checking if gcc accepts -Wno-format-zero-length... " >&6; }
7085 CFLAGS="-Wno-format-zero-length"
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7100 if ac_fn_c_try_compile "$LINENO"; then :
7102 FLAG_W_NO_FORMAT_ZERO_LENGTH=-Wno-format-zero-length
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7105 $as_echo "yes" >&6; }
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118 # does this compiler support -Wno-uninitialized ?
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wno-uninitialized" >&5
7121 $as_echo_n "checking if gcc accepts -Wno-uninitialized... " >&6; }
7124 CFLAGS="-Wno-uninitialized"
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7139 if ac_fn_c_try_compile "$LINENO"; then :
7141 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 $as_echo "yes" >&6; }
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 # does this compiler support -Wextra or the older -W ?
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5
7160 $as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; }
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7178 if ac_fn_c_try_compile "$LINENO"; then :
7180 FLAG_W_EXTRA=-Wextra
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5
7183 $as_echo "-Wextra" >&6; }
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7201 if ac_fn_c_try_compile "$LINENO"; then :
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5
7206 $as_echo "-W" >&6; }
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
7212 $as_echo "not supported" >&6; }
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 # does this compiler support -fno-stack-protector ?
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5
7224 $as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; }
7227 CFLAGS="-fno-stack-protector"
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7242 if ac_fn_c_try_compile "$LINENO"; then :
7244 no_stack_protector=yes
7245 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7247 $as_echo "yes" >&6; }
7251 no_stack_protector=no
7252 FLAG_FNO_STACK_PROTECTOR=""
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262 if test x$no_stack_protector = xyes; then
7263 CFLAGS="$CFLAGS -fno-stack-protector"
7267 # does this compiler support --param inline-unit-growth=... ?
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5
7270 $as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; }
7273 CFLAGS="--param inline-unit-growth=900"
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7288 if ac_fn_c_try_compile "$LINENO"; then :
7290 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900"
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7293 $as_echo "yes" >&6; }
7297 FLAG_UNLIMITED_INLINE_UNIT_GROWTH=""
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 # does the ppc assembler support "mtocrf" et al?
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5
7309 $as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; }
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7318 __asm__ __volatile__("mtocrf 4,0");
7319 __asm__ __volatile__("mfocrf 0,4");
7325 if ac_fn_c_try_compile "$LINENO"; then :
7327 ac_have_as_ppc_mftocrf=yes
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7329 $as_echo "yes" >&6; }
7333 ac_have_as_ppc_mftocrf=no
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 if test x$ac_have_as_ppc_mftocrf = xyes ; then
7341 $as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h
7346 # does the x86/amd64 assembler understand SSE3 instructions?
7347 # Note, this doesn't generate a C-level symbol. It generates a
7348 # automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5
7350 $as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; }
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7359 do { long long int x;
7360 __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); }
7367 if ac_fn_c_try_compile "$LINENO"; then :
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7371 $as_echo "yes" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 if test x$ac_have_as_sse3 = xyes; then
7383 BUILD_SSE3_TESTS_TRUE=
7384 BUILD_SSE3_TESTS_FALSE='#'
7386 BUILD_SSE3_TESTS_TRUE='#'
7387 BUILD_SSE3_TESTS_FALSE=
7392 # Ditto for SSSE3 instructions (note extra S)
7393 # Note, this doesn't generate a C-level symbol. It generates a
7394 # automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5
7396 $as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; }
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7405 do { long long int x;
7406 __asm__ __volatile__(
7407 "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); }
7414 if ac_fn_c_try_compile "$LINENO"; then :
7416 ac_have_as_ssse3=yes
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7418 $as_echo "yes" >&6; }
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 if test x$ac_have_as_ssse3 = xyes; then
7430 BUILD_SSSE3_TESTS_TRUE=
7431 BUILD_SSSE3_TESTS_FALSE='#'
7433 BUILD_SSSE3_TESTS_TRUE='#'
7434 BUILD_SSSE3_TESTS_FALSE=
7439 # Check for TLS support in the compiler and linker
7440 if test "x${cross_compiling}" = "xno"; then
7441 # Native compilation: check whether running a program using TLS succeeds.
7442 # Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs
7443 # succeeds but running programs using TLS fails.
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7445 $as_echo_n "checking for TLS support... " >&6; }
7446 if test "${vg_cv_tls+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7449 # Check whether --enable-tls was given.
7450 if test "${enable_tls+set}" = set; then :
7451 enableval=$enable_tls; vg_cv_tls=$enableval
7453 if test "$cross_compiling" = yes; then :
7454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7456 as_fn_error "cannot run test program while cross compiling
7457 See \`config.log' for more details." "$LINENO" 5; }
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 static __thread int foo;
7470 if ac_fn_c_try_run "$LINENO"; then :
7475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7476 conftest.$ac_objext conftest.beam conftest.$ac_ext
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7483 $as_echo "$vg_cv_tls" >&6; }
7485 # Cross-compiling: check whether linking a program using TLS succeeds.
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
7487 $as_echo_n "checking for TLS support... " >&6; }
7488 if test "${vg_cv_tls+set}" = set; then :
7489 $as_echo_n "(cached) " >&6
7491 # Check whether --enable-tls was given.
7492 if test "${enable_tls+set}" = set; then :
7493 enableval=$enable_tls; vg_cv_tls=$enableval
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 static __thread int foo;
7506 if ac_fn_c_try_link "$LINENO"; then :
7511 rm -f core conftest.err conftest.$ac_objext \
7512 conftest$ac_exeext conftest.$ac_ext
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5
7517 $as_echo "$vg_cv_tls" >&6; }
7520 if test "$vg_cv_tls" = yes; then
7522 $as_echo "#define HAVE_TLS 1" >>confdefs.h
7527 #----------------------------------------------------------------------------
7528 # Checks for C header files.
7529 #----------------------------------------------------------------------------
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7532 $as_echo_n "checking for ANSI C header files... " >&6; }
7533 if test "${ac_cv_header_stdc+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7551 if ac_fn_c_try_compile "$LINENO"; then :
7552 ac_cv_header_stdc=yes
7554 ac_cv_header_stdc=no
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 if test $ac_cv_header_stdc = yes; then
7559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7566 $EGREP "memchr" >/dev/null 2>&1; then :
7569 ac_cv_header_stdc=no
7575 if test $ac_cv_header_stdc = yes; then
7576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7583 $EGREP "free" >/dev/null 2>&1; then :
7586 ac_cv_header_stdc=no
7592 if test $ac_cv_header_stdc = yes; then
7593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7594 if test "$cross_compiling" = yes; then :
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7601 #if ((' ' & 0x0FF) == 0x020)
7602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7605 # define ISLOWER(c) \
7606 (('a' <= (c) && (c) <= 'i') \
7607 || ('j' <= (c) && (c) <= 'r') \
7608 || ('s' <= (c) && (c) <= 'z'))
7609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7617 for (i = 0; i < 256; i++)
7618 if (XOR (islower (i), ISLOWER (i))
7619 || toupper (i) != TOUPPER (i))
7624 if ac_fn_c_try_run "$LINENO"; then :
7627 ac_cv_header_stdc=no
7629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7630 conftest.$ac_objext conftest.beam conftest.$ac_ext
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7636 $as_echo "$ac_cv_header_stdc" >&6; }
7637 if test $ac_cv_header_stdc = yes; then
7639 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7643 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7644 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7645 inttypes.h stdint.h unistd.h
7647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7648 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7650 eval as_val=\$$as_ac_Header
7651 if test "x$as_val" = x""yes; then :
7652 cat >>confdefs.h <<_ACEOF
7653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7679 eval as_val=\$$as_ac_Header
7680 if test "x$as_val" = x""yes; then :
7681 cat >>confdefs.h <<_ACEOF
7682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7690 #----------------------------------------------------------------------------
7691 # Checks for typedefs, structures, and compiler characteristics.
7692 #----------------------------------------------------------------------------
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7694 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7695 if test "${ac_cv_type_uid_t+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7700 #include <sys/types.h>
7703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7704 $EGREP "uid_t" >/dev/null 2>&1; then :
7705 ac_cv_type_uid_t=yes
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7713 $as_echo "$ac_cv_type_uid_t" >&6; }
7714 if test $ac_cv_type_uid_t = no; then
7716 $as_echo "#define uid_t int" >>confdefs.h
7719 $as_echo "#define gid_t int" >>confdefs.h
7723 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7724 if test "x$ac_cv_type_off_t" = x""yes; then :
7728 cat >>confdefs.h <<_ACEOF
7729 #define off_t long int
7734 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7735 if test "x$ac_cv_type_size_t" = x""yes; then :
7739 cat >>confdefs.h <<_ACEOF
7740 #define size_t unsigned int
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7746 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7747 if test "${ac_cv_header_time+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7752 #include <sys/types.h>
7753 #include <sys/time.h>
7759 if ((struct tm *) 0)
7765 if ac_fn_c_try_compile "$LINENO"; then :
7766 ac_cv_header_time=yes
7768 ac_cv_header_time=no
7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7773 $as_echo "$ac_cv_header_time" >&6; }
7774 if test $ac_cv_header_time = yes; then
7776 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7782 #----------------------------------------------------------------------------
7783 # Checks for library functions.
7784 #----------------------------------------------------------------------------
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7786 $as_echo_n "checking for working memcmp... " >&6; }
7787 if test "${ac_cv_func_memcmp_working+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7790 if test "$cross_compiling" = yes; then :
7791 ac_cv_func_memcmp_working=no
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7795 $ac_includes_default
7800 /* Some versions of memcmp are not 8-bit clean. */
7801 char c0 = '\100', c1 = '\200', c2 = '\201';
7802 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7805 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7806 or more and with at least one buffer not starting on a 4-byte boundary.
7807 William Lewis provided this test program. */
7812 for (i = 0; i < 4; i++)
7816 strcpy (a, "--------01111111");
7817 strcpy (b, "--------10000000");
7818 if (memcmp (a, b, 16) >= 0)
7828 if ac_fn_c_try_run "$LINENO"; then :
7829 ac_cv_func_memcmp_working=yes
7831 ac_cv_func_memcmp_working=no
7833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7834 conftest.$ac_objext conftest.beam conftest.$ac_ext
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
7839 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7840 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7841 *" memcmp.$ac_objext "* ) ;;
7842 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7850 for ac_header in $ac_header_list
7852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7853 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7855 eval as_val=\$$as_ac_Header
7856 if test "x$as_val" = x""yes; then :
7857 cat >>confdefs.h <<_ACEOF
7858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7872 for ac_func in getpagesize
7874 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7875 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7876 cat >>confdefs.h <<_ACEOF
7877 #define HAVE_GETPAGESIZE 1
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7884 $as_echo_n "checking for working mmap... " >&6; }
7885 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7888 if test "$cross_compiling" = yes; then :
7889 ac_cv_func_mmap_fixed_mapped=no
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 $ac_includes_default
7894 /* malloc might have been renamed as rpl_malloc. */
7897 /* Thanks to Mike Haertel and Jim Avera for this test.
7898 Here is a matrix of mmap possibilities:
7899 mmap private not fixed
7900 mmap private fixed at somewhere currently unmapped
7901 mmap private fixed at somewhere already mapped
7902 mmap shared not fixed
7903 mmap shared fixed at somewhere currently unmapped
7904 mmap shared fixed at somewhere already mapped
7905 For private mappings, we should verify that changes cannot be read()
7906 back from the file, nor mmap's back from the file at a different
7907 address. (There have been systems where private was not correctly
7908 implemented like the infamous i386 svr4.0, and systems where the
7909 VM page cache was not coherent with the file system buffer cache
7910 like early versions of FreeBSD and possibly contemporary NetBSD.)
7911 For shared mappings, we should conversely verify that changes get
7912 propagated back to all the places they're supposed to be.
7914 Grep wants private fixed already mapped.
7915 The main things grep needs to know about mmap are:
7916 * does it exist and is it safe to write into the mmap'd area
7917 * how to use it (BSD variants) */
7920 #include <sys/mman.h>
7922 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7926 /* This mess was copied from the GNU getpagesize.h. */
7927 #ifndef HAVE_GETPAGESIZE
7928 # ifdef _SC_PAGESIZE
7929 # define getpagesize() sysconf(_SC_PAGESIZE)
7930 # else /* no _SC_PAGESIZE */
7931 # ifdef HAVE_SYS_PARAM_H
7932 # include <sys/param.h>
7933 # ifdef EXEC_PAGESIZE
7934 # define getpagesize() EXEC_PAGESIZE
7935 # else /* no EXEC_PAGESIZE */
7937 # define getpagesize() NBPG * CLSIZE
7940 # endif /* no CLSIZE */
7941 # else /* no NBPG */
7943 # define getpagesize() NBPC
7944 # else /* no NBPC */
7946 # define getpagesize() PAGESIZE
7947 # endif /* PAGESIZE */
7948 # endif /* no NBPC */
7949 # endif /* no NBPG */
7950 # endif /* no EXEC_PAGESIZE */
7951 # else /* no HAVE_SYS_PARAM_H */
7952 # define getpagesize() 8192 /* punt totally */
7953 # endif /* no HAVE_SYS_PARAM_H */
7954 # endif /* no _SC_PAGESIZE */
7956 #endif /* no HAVE_GETPAGESIZE */
7961 char *data, *data2, *data3;
7966 pagesize = getpagesize ();
7968 /* First, make a file with some known garbage in it. */
7969 data = (char *) malloc (pagesize);
7972 for (i = 0; i < pagesize; ++i)
7973 *(data + i) = rand ();
7975 fd = creat ("conftest.mmap", 0600);
7978 if (write (fd, data, pagesize) != pagesize)
7982 /* Next, check that the tail of a page is zero-filled. File must have
7983 non-zero length, otherwise we risk SIGBUS for entire page. */
7984 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7988 if (write (fd2, cdata2, 1) != 1)
7990 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7991 if (data2 == MAP_FAILED)
7993 for (i = 0; i < pagesize; ++i)
7997 if (munmap (data2, pagesize))
8000 /* Next, try to mmap the file at a fixed address which already has
8001 something else allocated at it. If we can, also make sure that
8002 we see the same garbage. */
8003 fd = open ("conftest.mmap", O_RDWR);
8006 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8007 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8009 for (i = 0; i < pagesize; ++i)
8010 if (*(data + i) != *(data2 + i))
8013 /* Finally, make sure that changes to the mapped area do not
8014 percolate back to the file as seen by read(). (This is a bug on
8015 some variants of i386 svr4.0.) */
8016 for (i = 0; i < pagesize; ++i)
8017 *(data2 + i) = *(data2 + i) + 1;
8018 data3 = (char *) malloc (pagesize);
8021 if (read (fd, data3, pagesize) != pagesize)
8023 for (i = 0; i < pagesize; ++i)
8024 if (*(data + i) != *(data3 + i))
8030 if ac_fn_c_try_run "$LINENO"; then :
8031 ac_cv_func_mmap_fixed_mapped=yes
8033 ac_cv_func_mmap_fixed_mapped=no
8035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8036 conftest.$ac_objext conftest.beam conftest.$ac_ext
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8041 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8042 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8044 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8047 rm -f conftest.mmap conftest.txt
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8050 $as_echo_n "checking return type of signal handlers... " >&6; }
8051 if test "${ac_cv_type_signal+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8056 #include <sys/types.h>
8062 return *(signal (0, 0)) (0) == 1;
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068 ac_cv_type_signal=int
8070 ac_cv_type_signal=void
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8075 $as_echo "$ac_cv_type_signal" >&6; }
8077 cat >>confdefs.h <<_ACEOF
8078 #define RETSIGTYPE $ac_cv_type_signal
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
8084 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8085 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
8088 ac_check_lib_save_LIBS=$LIBS
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8093 /* Override any GCC internal prototype to avoid an error.
8094 Use char because int might match the return type of a GCC
8095 builtin and then its argument prototype would still apply. */
8099 char clock_gettime ();
8103 return clock_gettime ();
8108 if ac_fn_c_try_link "$LINENO"; then :
8109 ac_cv_lib_rt_clock_gettime=yes
8111 ac_cv_lib_rt_clock_gettime=no
8113 rm -f core conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext conftest.$ac_ext
8115 LIBS=$ac_check_lib_save_LIBS
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
8118 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8119 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
8120 cat >>confdefs.h <<_ACEOF
8121 #define HAVE_LIBRT 1
8141 pthread_barrier_init \
8142 pthread_condattr_setclock \
8143 pthread_mutex_timedlock \
8144 pthread_rwlock_timedrdlock \
8145 pthread_rwlock_timedwrlock \
8161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8162 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8163 eval as_val=\$$as_ac_var
8164 if test "x$as_val" = x""yes; then :
8165 cat >>confdefs.h <<_ACEOF
8166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8173 # AC_CHECK_LIB adds any library found to the variable LIBS, and links these
8174 # libraries with any shared object and/or executable. This is NOT what we
8175 # want for e.g. vgpreload_core-x86-linux.so
8178 if test x$ac_cv_func_pthread_barrier_init = xyes; then
8179 HAVE_PTHREAD_BARRIER_TRUE=
8180 HAVE_PTHREAD_BARRIER_FALSE='#'
8182 HAVE_PTHREAD_BARRIER_TRUE='#'
8183 HAVE_PTHREAD_BARRIER_FALSE=
8186 if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then
8187 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE=
8188 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#'
8190 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#'
8191 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE=
8194 if test x$ac_cv_func_pthread_spin_lock = xyes; then
8195 HAVE_PTHREAD_SPINLOCK_TRUE=
8196 HAVE_PTHREAD_SPINLOCK_FALSE='#'
8198 HAVE_PTHREAD_SPINLOCK_TRUE='#'
8199 HAVE_PTHREAD_SPINLOCK_FALSE=
8204 #----------------------------------------------------------------------------
8206 #----------------------------------------------------------------------------
8207 # Do we have a useable MPI setup on the primary and/or secondary targets?
8208 # On Linux, by default, assumes mpicc and -m32/-m64
8209 # On AIX, by default, assumes mpxlc and -q32/-q64
8210 # Note: this is a kludge in that it assumes the specified mpicc
8211 # understands -m32/-m64/-q32/-q64 regardless of what is specified using
8214 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 \
8215 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8220 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
8221 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX ; then
8222 mflag_primary=$FLAG_M32
8223 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \
8224 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX ; then
8225 mflag_primary=$FLAG_M64
8226 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_AIX5 ; then
8228 elif test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_AIX5 ; then
8233 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \
8234 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then
8235 mflag_secondary=$FLAG_M32
8236 elif test x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_AIX5 ; then
8237 mflag_secondary=-q32
8242 # Check whether --with-mpicc was given.
8243 if test "${with_mpicc+set}" = set; then :
8244 withval=$with_mpicc; MPI_CC=$withval
8250 ## See if MPI_CC works for the primary target
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5
8253 $as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8255 saved_CFLAGS=$CFLAGS
8257 CFLAGS=$mflag_primary
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8268 int r = MPI_Init(NULL,NULL);
8269 r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8276 if ac_fn_c_try_link "$LINENO"; then :
8278 ac_have_mpi2_pri=yes
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8280 $as_echo "yes, $MPI_CC" >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8289 rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8292 CFLAGS=$saved_CFLAGS
8293 if test x$ac_have_mpi2_pri = xyes; then
8294 BUILD_MPIWRAP_PRI_TRUE=
8295 BUILD_MPIWRAP_PRI_FALSE='#'
8297 BUILD_MPIWRAP_PRI_TRUE='#'
8298 BUILD_MPIWRAP_PRI_FALSE=
8302 ## See if MPI_CC works for the secondary target. Complication: what if
8303 ## there is no secondary target? We need this to then fail.
8304 ## Kludge this by making MPI_CC something which will surely fail in
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5
8308 $as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; }
8310 saved_CFLAGS=$CFLAGS
8311 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then
8312 CC="$MPI_CC this will surely fail"
8316 CFLAGS=$mflag_secondary
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8327 int r = MPI_Init(NULL,NULL);
8328 r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
8335 if ac_fn_c_try_link "$LINENO"; then :
8337 ac_have_mpi2_sec=yes
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5
8339 $as_echo "yes, $MPI_CC" >&6; }
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8348 rm -f core conftest.err conftest.$ac_objext \
8349 conftest$ac_exeext conftest.$ac_ext
8351 CFLAGS=$saved_CFLAGS
8352 if test x$ac_have_mpi2_sec = xyes; then
8353 BUILD_MPIWRAP_SEC_TRUE=
8354 BUILD_MPIWRAP_SEC_FALSE='#'
8356 BUILD_MPIWRAP_SEC_TRUE='#'
8357 BUILD_MPIWRAP_SEC_FALSE=
8362 #----------------------------------------------------------------------------
8363 # Other library checks
8364 #----------------------------------------------------------------------------
8365 # There now follow some tests for QtCore, Boost, and OpenMP. These
8366 # tests are present because Drd has some regression tests that use
8367 # these packages. All regression test programs all compiled only
8368 # for the primary target. And so it is important that the configure
8369 # checks that follow, use the correct -m32 or -m64 flag for the
8370 # primary target (called $mflag_primary). Otherwise, we can end up
8371 # in a situation (eg) where, on amd64-linux, the test for Boost checks
8372 # for usable 64-bit Boost facilities, but because we are doing a 32-bit
8373 # only build (meaning, the primary target is x86-linux), the build
8374 # of the regtest programs that use Boost fails, because they are
8375 # build as 32-bit (IN THIS EXAMPLE).
8377 # Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES
8378 # NEEDED BY THE REGRESSION TEST PROGRAMS.
8381 # The test below verifies whether the QtCore package been installed.
8382 # This test works as follows:
8383 # - If pkg-config was not installed at the time autogen.sh was run,
8384 # the definition of the PKG_CHECK_EXISTS() macro will not be found by
8385 # autogen.sh. Augogen.sh will generate a configure script that prints
8386 # a warning about pkg-config and proceeds as if Qt4 has not been installed.
8387 # - If pkg-config was installed at the time autogen.sh was run,
8388 # the generated configure script will try to detect the presence of the
8389 # Qt4 QtCore library by looking up compile and linker flags in the file
8391 # - pkg-config settings can be overridden via the configure variables
8392 # QTCORE_CFLAGS and QTCORE_LIBS (added by the pkg-config m4 macro's to the
8393 # configure script -- see also ./configure --help).
8394 # - The QTCORE_CFLAGS and QTCORE_LIBS configure variables can be used even if
8395 # the pkg-config executable is not present on the system on which the
8396 # configure script is run.
8400 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8401 if test -n "$ac_tool_prefix"; then
8402 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8403 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8433 if test -n "$PKG_CONFIG"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8435 $as_echo "$PKG_CONFIG" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8443 if test -z "$ac_cv_path_PKG_CONFIG"; then
8444 ac_pt_PKG_CONFIG=$PKG_CONFIG
8445 # Extract the first word of "pkg-config", so it can be a program name with args.
8446 set dummy pkg-config; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8452 case $ac_pt_PKG_CONFIG in
8454 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8475 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8476 if test -n "$ac_pt_PKG_CONFIG"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8478 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8484 if test "x$ac_pt_PKG_CONFIG" = x; then
8487 case $cross_compiling:$ac_tool_warned in
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8491 ac_tool_warned=yes ;;
8493 PKG_CONFIG=$ac_pt_PKG_CONFIG
8496 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8500 if test -n "$PKG_CONFIG"; then
8501 _pkg_min_version=0.9.0
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8503 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8504 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8506 $as_echo "yes" >&6; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8515 if test -n "$PKG_CONFIG" && \
8516 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8517 ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8520 test $ac_status = 0; }; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTCORE" >&5
8525 $as_echo_n "checking for QTCORE... " >&6; }
8527 if test -n "$PKG_CONFIG"; then
8528 if test -n "$QTCORE_CFLAGS"; then
8529 pkg_cv_QTCORE_CFLAGS="$QTCORE_CFLAGS"
8531 if test -n "$PKG_CONFIG" && \
8532 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8533 ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8536 test $ac_status = 0; }; then
8537 pkg_cv_QTCORE_CFLAGS=`$PKG_CONFIG --cflags "QtCore" 2>/dev/null`
8545 if test -n "$PKG_CONFIG"; then
8546 if test -n "$QTCORE_LIBS"; then
8547 pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
8549 if test -n "$PKG_CONFIG" && \
8550 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore\""; } >&5
8551 ($PKG_CONFIG --exists --print-errors "QtCore") 2>&5
8553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554 test $ac_status = 0; }; then
8555 pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs "QtCore" 2>/dev/null`
8566 if test $pkg_failed = yes; then
8568 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8569 _pkg_short_errors_supported=yes
8571 _pkg_short_errors_supported=no
8573 if test $_pkg_short_errors_supported = yes; then
8574 QTCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtCore"`
8576 QTCORE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore"`
8578 # Put the nasty error message in config.log where it belongs
8579 echo "$QTCORE_PKG_ERRORS" >&5
8581 as_fn_error "Package requirements (QtCore) were not met:
8585 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8586 installed software in a non-standard prefix.
8588 Alternatively, you may set the environment variables QTCORE_CFLAGS
8589 and QTCORE_LIBS to avoid the need to call pkg-config.
8590 See the pkg-config man page for more details.
8592 elif test $pkg_failed = untried; then
8593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8595 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
8596 is in your PATH or set the PKG_CONFIG environment variable to the full
8599 Alternatively, you may set the environment variables QTCORE_CFLAGS
8600 and QTCORE_LIBS to avoid the need to call pkg-config.
8601 See the pkg-config man page for more details.
8603 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8604 See \`config.log' for more details." "$LINENO" 5; }
8606 QTCORE_CFLAGS=$pkg_cv_QTCORE_CFLAGS
8607 QTCORE_LIBS=$pkg_cv_QTCORE_LIBS
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8609 $as_echo "yes" >&6; }
8612 # Paranoia: don't trust the result reported by pkg-config, but when
8613 # pkg-config reports that QtCore has been found, verify whether linking
8614 # programs with QtCore succeeds.
8616 ac_cpp='$CXXCPP $CPPFLAGS'
8617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8621 safe_CXXFLAGS="${CXXFLAGS}"
8622 CXXFLAGS="${QTCORE_CFLAGS} ${QTCORE_LIBS} $mflag_primary"
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8634 if ac_fn_cxx_try_link "$LINENO"; then :
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Although pkg-config detected Qt4, linking Qt4 programs fails. Skipping Qt4." >&5
8639 $as_echo "$as_me: WARNING: Although pkg-config detected Qt4, linking Qt4 programs fails. Skipping Qt4." >&2;}
8644 rm -f core conftest.err conftest.$ac_objext \
8645 conftest$ac_exeext conftest.$ac_ext
8646 CXXFLAGS="${safe_CXXFLAGS}"
8656 if test x$ac_have_qtcore = xyes; then
8658 HAVE_QTCORE_FALSE='#'
8660 HAVE_QTCORE_TRUE='#'
8666 # Test for QMutex::tryLock(int), which has been introduced in Qt 4.3.
8667 # See also http://doc.trolltech.com/4.3/qmutex.html.
8668 if test x$ac_have_qtcore = xyes; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 QMutex::tryLock(int)" >&5
8670 $as_echo_n "checking for Qt4 QMutex::tryLock(int)... " >&6; }
8672 ac_cpp='$CXXCPP $CPPFLAGS'
8673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8677 safe_CXXFLAGS="${CXXFLAGS}"
8678 CXXFLAGS="${QTCORE_CFLAGS} $mflag_primary"
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8682 #include <QtCore/QMutex>
8697 if ac_fn_cxx_try_compile "$LINENO"; then :
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8700 $as_echo "yes" >&6; }
8702 $as_echo "#define HAVE_QTCORE_QMUTEX_TRYLOCK_INT 1" >>confdefs.h
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 CXXFLAGS="${safe_CXXFLAGS}"
8714 ac_cpp='$CPP $CPPFLAGS'
8715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8722 # Test for QAtomicInt, which has been introduced in Qt 4.4.
8723 # See also http://doc.trolltech.com/4.4/qatomicint.html.
8724 if test x$ac_have_qtcore = xyes; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 QAtomicInt" >&5
8726 $as_echo_n "checking for Qt4 QAtomicInt... " >&6; }
8728 ac_cpp='$CXXCPP $CPPFLAGS'
8729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8733 safe_CXXFLAGS="${CXXFLAGS}"
8734 CXXFLAGS="${QTCORE_CFLAGS} $mflag_primary"
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8738 #include <QtCore/QAtomicInt>
8745 I.testAndSetOrdered(0, 1);
8752 if ac_fn_cxx_try_compile "$LINENO"; then :
8754 ac_have_qtcore_qatomicint=yes
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8756 $as_echo "yes" >&6; }
8758 $as_echo "#define HAVE_QTCORE_QATOMICINT 1" >>confdefs.h
8763 ac_have_qtcore_qatomicint=no
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769 CXXFLAGS="${safe_CXXFLAGS}"
8771 ac_cpp='$CPP $CPPFLAGS'
8772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8778 if test x$ac_have_qtcore_qatomicint = xyes; then
8779 HAVE_QTCORE_QATOMICINT_TRUE=
8780 HAVE_QTCORE_QATOMICINT_FALSE='#'
8782 HAVE_QTCORE_QATOMICINT_TRUE='#'
8783 HAVE_QTCORE_QATOMICINT_FALSE=
8789 # Check whether the boost library 1.35 or later has been installed.
8790 # The Boost.Threads library has undergone a major rewrite in version 1.35.0.
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5
8793 $as_echo_n "checking for boost... " >&6; }
8796 ac_cpp='$CXXCPP $CPPFLAGS'
8797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8801 safe_CXXFLAGS=$CXXFLAGS
8802 CXXFLAGS="-lboost_thread-mt $mflag_primary"
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8807 #include <boost/thread.hpp>
8808 static void thread_func(void)
8810 int main(int argc, char** argv)
8812 boost::thread t(thread_func);
8817 if ac_fn_cxx_try_link "$LINENO"; then :
8819 ac_have_boost_1_35=yes
8821 BOOST_LIBS="${CXXFLAGS}"
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8824 $as_echo "yes" >&6; }
8828 ac_have_boost_1_35=no
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8833 rm -f core conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8836 CXXFLAGS=$safe_CXXFLAGS
8838 ac_cpp='$CPP $CPPFLAGS'
8839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8844 if test x$ac_have_boost_1_35 = xyes; then
8845 HAVE_BOOST_1_35_TRUE=
8846 HAVE_BOOST_1_35_FALSE='#'
8848 HAVE_BOOST_1_35_TRUE='#'
8849 HAVE_BOOST_1_35_FALSE=
8854 # does this compiler support -fopenmp, does it have the include file
8855 # <omp.h> and does it have libgomp ?
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5
8858 $as_echo_n "checking for OpenMP... " >&6; }
8861 CFLAGS="-fopenmp $mflag_primary"
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8867 int main(int argc, char** argv)
8874 if ac_fn_c_try_link "$LINENO"; then :
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8878 $as_echo "yes" >&6; }
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8891 if test x$ac_have_openmp = xyes; then
8893 HAVE_OPENMP_FALSE='#'
8895 HAVE_OPENMP_TRUE='#'
8901 # does this compiler have built-in functions for atomic memory access ?
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
8903 $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
8906 CFLAGS="$mflag_primary"
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8916 return (__sync_bool_compare_and_swap(&variable, 1, 2)
8917 && __sync_add_and_fetch(&variable, 1) ? 1 : 0)
8923 if ac_fn_c_try_link "$LINENO"; then :
8925 ac_have_builtin_atomic=yes
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8927 $as_echo "yes" >&6; }
8929 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
8934 ac_have_builtin_atomic=no
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936 $as_echo "no" >&6; }
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8944 if test x$ac_have_builtin_atomic = xyes; then
8945 HAVE_BUILTIN_ATOMIC_TRUE=
8946 HAVE_BUILTIN_ATOMIC_FALSE='#'
8948 HAVE_BUILTIN_ATOMIC_TRUE='#'
8949 HAVE_BUILTIN_ATOMIC_FALSE=
8954 #----------------------------------------------------------------------------
8955 # Ok. We're done checking.
8956 #----------------------------------------------------------------------------
8958 # Nb: VEX/Makefile is generated from Makefile.vex.in.
8959 ac_config_files="$ac_config_files Makefile VEX/Makefile:Makefile.vex.in valgrind.spec valgrind.pc glibc-2.X.supp docs/Makefile tests/Makefile tests/vg_regtest perf/Makefile perf/vg_perf include/Makefile auxprogs/Makefile mpi/Makefile coregrind/Makefile memcheck/Makefile memcheck/tests/Makefile memcheck/tests/amd64/Makefile memcheck/tests/x86/Makefile memcheck/tests/linux/Makefile memcheck/tests/darwin/Makefile memcheck/tests/x86-linux/Makefile memcheck/perf/Makefile cachegrind/Makefile cachegrind/tests/Makefile cachegrind/tests/x86/Makefile cachegrind/cg_annotate callgrind/Makefile callgrind/callgrind_annotate callgrind/callgrind_control callgrind/tests/Makefile helgrind/Makefile helgrind/tests/Makefile massif/Makefile massif/tests/Makefile massif/perf/Makefile massif/ms_print lackey/Makefile lackey/tests/Makefile none/Makefile none/tests/Makefile none/tests/amd64/Makefile none/tests/ppc32/Makefile none/tests/ppc64/Makefile none/tests/x86/Makefile none/tests/arm/Makefile none/tests/linux/Makefile none/tests/darwin/Makefile none/tests/x86-linux/Makefile exp-ptrcheck/Makefile exp-ptrcheck/tests/Makefile drd/Makefile drd/scripts/download-and-build-splash2 drd/tests/Makefile exp-bbv/Makefile exp-bbv/tests/Makefile exp-bbv/tests/x86/Makefile exp-bbv/tests/x86-linux/Makefile exp-bbv/tests/amd64-linux/Makefile exp-bbv/tests/ppc32-linux/Makefile"
8961 cat >confcache <<\_ACEOF
8962 # This file is a shell script that caches the results of configure
8963 # tests run on this system so they can be shared between configure
8964 # scripts and configure runs, see configure's option --config-cache.
8965 # It is not useful on other systems. If it contains results you don't
8966 # want to keep, you may remove or edit it.
8968 # config.status only pays attention to the cache file if you give it
8969 # the --recheck option to rerun configure.
8971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8977 # The following way of writing the cache mishandles newlines in values,
8978 # but we know of no workaround that is simple, portable, and efficient.
8979 # So, we kill variables containing newlines.
8980 # Ultrix sh set writes to stderr and can't be redirected directly,
8981 # and sets the high bit in the cache file unless we assign to the vars.
8983 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8984 eval ac_val=\$$ac_var
8988 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8989 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8992 _ | IFS | as_nl) ;; #(
8993 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8994 *) { eval $ac_var=; unset $ac_var;} ;;
9000 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9001 *${as_nl}ac_space=\ *)
9002 # `set' does not quote correctly, so add quotes: double-quote
9003 # substitution turns \\\\ into \\, and sed turns \\ into \.
9006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9009 # `set' quotes correctly as required by POSIX, so do not add quotes.
9010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9019 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9021 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9023 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9024 if test -w "$cache_file"; then
9025 test "x$cache_file" != "x/dev/null" &&
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9027 $as_echo "$as_me: updating cache $cache_file" >&6;}
9028 cat confcache >$cache_file
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9031 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9036 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9037 # Let make expand exec_prefix.
9038 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9040 DEFS=-DHAVE_CONFIG_H
9044 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9045 # 1. Remove the extension, and $U if already installed.
9046 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9047 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9048 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9049 # will be set to the directory where LIBOBJS objects are built.
9050 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9051 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9055 LTLIBOBJS=$ac_ltlibobjs
9058 if test -n "$EXEEXT"; then
9060 am__EXEEXT_FALSE='#'
9066 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9067 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
9068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9070 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9071 as_fn_error "conditional \"AMDEP\" was never defined.
9072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9074 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9075 as_fn_error "conditional \"am__fastdepCC\" was never defined.
9076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9078 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9079 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9082 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
9083 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
9084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9086 if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then
9087 as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined.
9088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9090 if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then
9091 as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined.
9092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9094 if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then
9095 as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined.
9096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9098 if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then
9099 as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined.
9100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9102 if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then
9103 as_fn_error "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined.
9104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9106 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then
9107 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined.
9108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9110 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then
9111 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined.
9112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9114 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then
9115 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined.
9116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9118 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX_FALSE}"; then
9119 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_LINUX\" was never defined.
9120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9122 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then
9123 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined.
9124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9126 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5_FALSE}"; then
9127 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5\" was never defined.
9128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9130 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5_FALSE}"; then
9131 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5\" was never defined.
9132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9134 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then
9135 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined.
9136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9138 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then
9139 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined.
9140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9142 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_L4RE_FALSE}"; then
9143 as_fn_error "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_L4RE\" was never defined.
9144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9146 if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then
9147 as_fn_error "conditional \"VGCONF_OS_IS_LINUX\" was never defined.
9148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9150 if test -z "${VGCONF_OS_IS_AIX5_TRUE}" && test -z "${VGCONF_OS_IS_AIX5_FALSE}"; then
9151 as_fn_error "conditional \"VGCONF_OS_IS_AIX5\" was never defined.
9152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9154 if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then
9155 as_fn_error "conditional \"VGCONF_OS_IS_DARWIN\" was never defined.
9156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9158 if test -z "${VGCONF_OS_IS_L4RE_TRUE}" && test -z "${VGCONF_OS_IS_L4RE_FALSE}"; then
9159 as_fn_error "conditional \"VGCONF_OS_IS_L4RE\" was never defined.
9160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9162 if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then
9163 as_fn_error "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined.
9164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9166 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then
9167 as_fn_error "conditional \"HAS_ALTIVEC\" was never defined.
9168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9170 if test -z "${HAVE_ALTIVEC_H_TRUE}" && test -z "${HAVE_ALTIVEC_H_FALSE}"; then
9171 as_fn_error "conditional \"HAVE_ALTIVEC_H\" was never defined.
9172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9174 if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then
9175 as_fn_error "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined.
9176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9178 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then
9179 as_fn_error "conditional \"BUILD_SSE3_TESTS\" was never defined.
9180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9182 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then
9183 as_fn_error "conditional \"BUILD_SSSE3_TESTS\" was never defined.
9184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9186 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then
9187 as_fn_error "conditional \"HAVE_PTHREAD_BARRIER\" was never defined.
9188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9190 if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then
9191 as_fn_error "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined.
9192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9194 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then
9195 as_fn_error "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined.
9196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9198 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then
9199 as_fn_error "conditional \"BUILD_MPIWRAP_PRI\" was never defined.
9200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9202 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then
9203 as_fn_error "conditional \"BUILD_MPIWRAP_SEC\" was never defined.
9204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9206 if test -z "${HAVE_QTCORE_TRUE}" && test -z "${HAVE_QTCORE_FALSE}"; then
9207 as_fn_error "conditional \"HAVE_QTCORE\" was never defined.
9208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9210 if test -z "${HAVE_QTCORE_QATOMICINT_TRUE}" && test -z "${HAVE_QTCORE_QATOMICINT_FALSE}"; then
9211 as_fn_error "conditional \"HAVE_QTCORE_QATOMICINT\" was never defined.
9212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9214 if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then
9215 as_fn_error "conditional \"HAVE_BOOST_1_35\" was never defined.
9216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9218 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then
9219 as_fn_error "conditional \"HAVE_OPENMP\" was never defined.
9220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9222 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then
9223 as_fn_error "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined.
9224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9227 : ${CONFIG_STATUS=./config.status}
9229 ac_clean_files_save=$ac_clean_files
9230 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9232 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9234 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9236 # Generated by $as_me.
9237 # Run this file to recreate the current configuration.
9238 # Compiler output produced by configure, useful for debugging
9239 # configure, is in config.log if it exists.
9245 SHELL=\${CONFIG_SHELL-$SHELL}
9248 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9249 ## -------------------- ##
9250 ## M4sh Initialization. ##
9251 ## -------------------- ##
9253 # Be more Bourne compatible
9254 DUALCASE=1; export DUALCASE # for MKS sh
9255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9258 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9259 # is contrary to our usage. Disable this feature.
9260 alias -g '${1+"$@"}'='"$@"'
9261 setopt NO_GLOB_SUBST
9263 case `(set -o) 2>/dev/null` in #(
9275 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9276 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9277 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9278 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9279 # Prefer a ksh shell builtin over an external printf program on Solaris,
9280 # but without wasting forks for bash or zsh.
9281 if test -z "$BASH_VERSION$ZSH_VERSION" \
9282 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9283 as_echo='print -r --'
9284 as_echo_n='print -rn --'
9285 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9286 as_echo='printf %s\n'
9287 as_echo_n='printf %s'
9289 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9290 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9291 as_echo_n='/usr/ucb/echo -n'
9293 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9294 as_echo_n_body='eval
9298 expr "X$arg" : "X\\(.*\\)$as_nl";
9299 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9301 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9303 export as_echo_n_body
9304 as_echo_n='sh -c $as_echo_n_body as_echo'
9307 as_echo='sh -c $as_echo_body as_echo'
9310 # The user is always right.
9311 if test "${PATH_SEPARATOR+set}" != set; then
9313 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9314 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9321 # We need space, tab and new line, in precisely that order. Quoting is
9322 # there to prevent editors from complaining about space-tab.
9323 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9324 # splitting by setting IFS to empty value.)
9327 # Find who we are. Look in the path if we contain no directory separator.
9329 *[\\/]* ) as_myself=$0 ;;
9330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334 test -z "$as_dir" && as_dir=.
9335 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9341 # We did not find ourselves, most probably we were run as `sh COMMAND'
9342 # in which case we are not to be found in the path.
9343 if test "x$as_myself" = x; then
9346 if test ! -f "$as_myself"; then
9347 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9351 # Unset variables that we do not need and which cause bugs (e.g. in
9352 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9353 # suppresses any "Segmentation fault" message there. '((' could
9354 # trigger a bug in pdksh 5.2.14.
9355 for as_var in BASH_ENV ENV MAIL MAILPATH
9356 do eval test x\${$as_var+set} = xset \
9357 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9370 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9373 # as_fn_error ERROR [LINENO LOG_FD]
9374 # ---------------------------------
9375 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9376 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9377 # script with status $?, using 1 if that was 0.
9380 as_status=$?; test $as_status -eq 0 && as_status=1
9382 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9383 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9385 $as_echo "$as_me: error: $1" >&2
9386 as_fn_exit $as_status
9390 # as_fn_set_status STATUS
9391 # -----------------------
9392 # Set $? to STATUS, without forking.
9396 } # as_fn_set_status
9400 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9410 # Portably unset VAR.
9413 { eval $1=; unset $1;}
9415 as_unset=as_fn_unset
9416 # as_fn_append VAR VALUE
9417 # ----------------------
9418 # Append the text in VALUE to the end of the definition contained in VAR. Take
9419 # advantage of any shell optimizations that allow amortized linear growth over
9420 # repeated appends, instead of the typical quadratic growth present in naive
9422 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9423 eval 'as_fn_append ()
9434 # as_fn_arith ARG...
9435 # ------------------
9436 # Perform arithmetic evaluation on the ARGs, and store the result in the
9437 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9438 # must be portable across $(()) and expr.
9439 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9440 eval 'as_fn_arith ()
9447 as_val=`expr "$@" || test $? -eq 1`
9452 if expr a : '\(a\)' >/dev/null 2>&1 &&
9453 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9459 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9460 as_basename=basename
9465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9471 as_me=`$as_basename -- "$0" ||
9472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9473 X"$0" : 'X\(//\)$' \| \
9474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9476 sed '/^.*\/\([^/][^/]*\)\/*$/{
9490 # Avoid depending upon Character Ranges.
9491 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9492 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9493 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9494 as_cr_digits='0123456789'
9495 as_cr_alnum=$as_cr_Letters$as_cr_digits
9497 ECHO_C= ECHO_N= ECHO_T=
9498 case `echo -n x` in #(((((
9500 case `echo 'xy\c'` in
9501 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9503 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9510 rm -f conf$$ conf$$.exe conf$$.file
9511 if test -d conf$$.dir; then
9512 rm -f conf$$.dir/conf$$.file
9515 mkdir conf$$.dir 2>/dev/null
9517 if (echo >conf$$.file) 2>/dev/null; then
9518 if ln -s conf$$.file conf$$ 2>/dev/null; then
9520 # ... but there are two gotchas:
9521 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9522 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9523 # In both cases, we have to default to `cp -p'.
9524 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9526 elif ln conf$$.file conf$$ 2>/dev/null; then
9534 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9535 rmdir conf$$.dir 2>/dev/null
9540 # Create "$as_dir" as a directory, including parents if necessary.
9545 -*) as_dir=./$as_dir;;
9547 test -d "$as_dir" || eval $as_mkdir_p || {
9551 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9552 *) as_qdir=$as_dir;;
9554 as_dirs="'$as_qdir' $as_dirs"
9555 as_dir=`$as_dirname -- "$as_dir" ||
9556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9557 X"$as_dir" : 'X\(//\)[^/]' \| \
9558 X"$as_dir" : 'X\(//\)$' \| \
9559 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9560 $as_echo X"$as_dir" |
9561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9578 test -d "$as_dir" && break
9580 test -z "$as_dirs" || eval "mkdir $as_dirs"
9581 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9585 if mkdir -p . 2>/dev/null; then
9586 as_mkdir_p='mkdir -p "$as_dir"'
9588 test -d ./-p && rmdir ./-p
9592 if test -x / >/dev/null 2>&1; then
9595 if ls -dL / >/dev/null 2>&1; then
9602 if test -d "$1"; then
9608 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9609 ???[sx]*):;;*)false;;esac;fi
9613 as_executable_p=$as_test_x
9615 # Sed expression to map a string onto a valid CPP name.
9616 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9618 # Sed expression to map a string onto a valid variable name.
9619 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9623 ## ----------------------------------- ##
9624 ## Main body of $CONFIG_STATUS script. ##
9625 ## ----------------------------------- ##
9627 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9630 # Save the log message, to keep $0 and so on meaningful, and to
9631 # report actual input values of CONFIG_FILES etc. instead of their
9632 # values after options handling.
9634 This file was extended by Valgrind $as_me 3.6.0.SVN, which was
9635 generated by GNU Autoconf 2.65. Invocation command line was
9637 CONFIG_FILES = $CONFIG_FILES
9638 CONFIG_HEADERS = $CONFIG_HEADERS
9639 CONFIG_LINKS = $CONFIG_LINKS
9640 CONFIG_COMMANDS = $CONFIG_COMMANDS
9643 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9648 case $ac_config_files in *"
9649 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9652 case $ac_config_headers in *"
9653 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9658 # Files that config.status was made for.
9659 config_files="$ac_config_files"
9660 config_headers="$ac_config_headers"
9661 config_commands="$ac_config_commands"
9665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9667 \`$as_me' instantiates files and other configuration actions
9668 from templates according to the current configuration. Unless the files
9669 and actions are specified as TAGs, all are instantiated by default.
9671 Usage: $0 [OPTION]... [TAG]...
9673 -h, --help print this help, then exit
9674 -V, --version print version number and configuration settings, then exit
9675 --config print configuration, then exit
9676 -q, --quiet, --silent
9677 do not print progress messages
9678 -d, --debug don't remove temporary files
9679 --recheck update $as_me by reconfiguring in the same conditions
9680 --file=FILE[:TEMPLATE]
9681 instantiate the configuration file FILE
9682 --header=FILE[:TEMPLATE]
9683 instantiate the configuration header FILE
9685 Configuration files:
9688 Configuration headers:
9691 Configuration commands:
9694 Report bugs to <valgrind-users@lists.sourceforge.net>."
9697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9698 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9700 Valgrind config.status 3.6.0.SVN
9701 configured by $0, generated by GNU Autoconf 2.65,
9702 with options \\"\$ac_cs_config\\"
9704 Copyright (C) 2009 Free Software Foundation, Inc.
9705 This config.status script is free software; the Free Software Foundation
9706 gives unlimited permission to copy, distribute and modify it."
9713 test -n "\$AWK" || AWK=awk
9716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9717 # The default lists apply if the user does not specify any file.
9723 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9724 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9735 # Handling of the options.
9736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9739 $as_echo "$ac_cs_version"; exit ;;
9740 --config | --confi | --conf | --con | --co | --c )
9741 $as_echo "$ac_cs_config"; exit ;;
9742 --debug | --debu | --deb | --de | --d | -d )
9744 --file | --fil | --fi | --f )
9747 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9749 as_fn_append CONFIG_FILES " '$ac_optarg'"
9750 ac_need_defaults=false;;
9751 --header | --heade | --head | --hea )
9754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9756 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9757 ac_need_defaults=false;;
9759 # Conflict between --help and --header
9760 as_fn_error "ambiguous option: \`$1'
9761 Try \`$0 --help' for more information.";;
9762 --help | --hel | -h )
9763 $as_echo "$ac_cs_usage"; exit ;;
9764 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9765 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9769 -*) as_fn_error "unrecognized option: \`$1'
9770 Try \`$0 --help' for more information." ;;
9772 *) as_fn_append ac_config_targets " $1"
9773 ac_need_defaults=false ;;
9779 ac_configure_extra_args=
9781 if $ac_cs_silent; then
9783 ac_configure_extra_args="$ac_configure_extra_args --silent"
9787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9788 if \$ac_cs_recheck; then
9789 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9791 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9792 CONFIG_SHELL='$SHELL'
9798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9802 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9803 ## Running $as_me. ##
9809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9813 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9819 # Handling of arguments.
9820 for ac_config_target in $ac_config_targets
9822 case $ac_config_target in
9823 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9824 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9825 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9826 "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;;
9827 "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;;
9828 "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;;
9829 "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;;
9830 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
9831 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9832 "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;;
9833 "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
9834 "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;;
9835 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9836 "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;;
9837 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
9838 "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;;
9839 "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;;
9840 "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;;
9841 "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;;
9842 "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;;
9843 "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;;
9844 "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;;
9845 "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;;
9846 "memcheck/perf/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/perf/Makefile" ;;
9847 "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;;
9848 "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;;
9849 "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;;
9850 "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;;
9851 "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;;
9852 "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;;
9853 "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;;
9854 "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;;
9855 "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;;
9856 "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;;
9857 "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;;
9858 "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;;
9859 "massif/perf/Makefile") CONFIG_FILES="$CONFIG_FILES massif/perf/Makefile" ;;
9860 "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;;
9861 "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;;
9862 "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;;
9863 "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;;
9864 "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;;
9865 "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;;
9866 "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;;
9867 "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;;
9868 "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;;
9869 "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;;
9870 "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;;
9871 "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;;
9872 "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;;
9873 "exp-ptrcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-ptrcheck/Makefile" ;;
9874 "exp-ptrcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-ptrcheck/tests/Makefile" ;;
9875 "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;;
9876 "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;;
9877 "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;;
9878 "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;;
9879 "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;;
9880 "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;;
9881 "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;;
9882 "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;;
9883 "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;;
9885 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9890 # If the user did not use the arguments to specify the items to instantiate,
9891 # then the envvar interface is used. Set only those that are not.
9892 # We use the long form for the default assignment because of an extremely
9893 # bizarre bug on SunOS 4.1.3.
9894 if $ac_need_defaults; then
9895 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9896 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9897 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9900 # Have a temporary directory for convenience. Make it in the build tree
9901 # simply because there is no reason against having it here, and in addition,
9902 # creating and moving files from /tmp can sometimes cause problems.
9903 # Hook for its removal unless debugging.
9904 # Note that there is a small window in which the directory will not be cleaned:
9905 # after its creation but before its name has been assigned to `$tmp'.
9909 trap 'exit_status=$?
9910 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9912 trap 'as_fn_exit 1' 1 2 13 15
9914 # Create a (secure) tmp directory for tmp files.
9917 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9918 test -n "$tmp" && test -d "$tmp"
9921 tmp=./conf$$-$RANDOM
9922 (umask 077 && mkdir "$tmp")
9923 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9925 # Set up the scripts for CONFIG_FILES section.
9926 # No need to generate them if there are no CONFIG_FILES.
9927 # This happens for instance with `./config.status config.h'.
9928 if test -n "$CONFIG_FILES"; then
9931 ac_cr=`echo X | tr X '\015'`
9932 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9933 # But we know of no other shell where ac_cr would be empty at this
9934 # point, so we can use a bashism as a fallback.
9935 if test "x$ac_cr" = x; then
9936 eval ac_cr=\$\'\\r\'
9938 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9939 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9945 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9950 echo "cat >conf$$subs.awk <<_ACEOF" &&
9951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9954 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9955 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9957 for ac_last_try in false false false false false :; do
9958 . ./conf$$subs.sh ||
9959 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9962 if test $ac_delim_n = $ac_delim_num; then
9964 elif $ac_last_try; then
9965 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9973 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9977 s/^/S["/; s/!.*/"]=/
9987 s/\(.\{148\}\)..*/\1/
9989 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10001 s/\(.\{148\}\)..*/\1/
10003 s/["\\]/\\&/g; s/^/"/; s/$/"/
10007 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10012 ' <conf$$subs.awk | sed '
10017 ' >>$CONFIG_STATUS || ac_write_fail=1
10018 rm -f conf$$subs.awk
10019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10021 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10022 for (key in S) S_is_set[key] = 1
10028 nfields = split(line, field, "@")
10030 len = length(field[1])
10031 for (i = 2; i < nfields; i++) {
10033 keylen = length(key)
10034 if (S_is_set[key]) {
10036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10037 len += length(value) + length(field[++i])
10048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10049 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10050 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10053 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10054 || as_fn_error "could not setup config files machinery" "$LINENO" 5
10057 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10058 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10059 # trailing colons and then remove the whole line if VPATH becomes empty
10060 # (actually we leave an empty line to preserve line numbers).
10061 if test "x$srcdir" = x.; then
10062 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10063 s/:*\$(srcdir):*/:/
10064 s/:*\${srcdir}:*/:/
10066 s/^\([^=]*=[ ]*\):*/\1/
10072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10073 fi # test -n "$CONFIG_FILES"
10075 # Set up the scripts for CONFIG_HEADERS section.
10076 # No need to generate them if there are no CONFIG_HEADERS.
10077 # This happens for instance with `./config.status Makefile'.
10078 if test -n "$CONFIG_HEADERS"; then
10079 cat >"$tmp/defines.awk" <<\_ACAWK ||
10083 # Transform confdefs.h into an awk script `defines.awk', embedded as
10084 # here-document in config.status, that substitutes the proper values into
10085 # config.h.in to produce config.h.
10087 # Create a delimiter string that does not exist in confdefs.h, to ease
10088 # handling of long lines.
10090 for ac_last_try in false false :; do
10091 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10092 if test -z "$ac_t"; then
10094 elif $ac_last_try; then
10095 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10101 # For the awk script, D is an array of macro values keyed by name,
10102 # likewise P contains macro parameters if any. Preserve backslash
10103 # newline sequences.
10105 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10107 s/.\{148\}/&'"$ac_delim"'/g
10110 s/^[ ]*#[ ]*define[ ][ ]*/ /
10117 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10119 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10123 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10124 D["\1"]=" \3\\\\\\n"\\/p
10126 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10131 s/.\{148\}/&'"$ac_delim"'/g
10136 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10139 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10141 ' <confdefs.h | sed '
10142 s/'"$ac_delim"'/"\\\
10143 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10146 for (key in D) D_is_set[key] = 1
10149 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10151 split(line, arg, " ")
10152 if (arg[1] == "#") {
10156 defundef = substr(arg[1], 2)
10159 split(mac1, mac2, "(") #)
10161 prefix = substr(line, 1, index(line, defundef) - 1)
10162 if (D_is_set[macro]) {
10163 # Preserve the white space surrounding the "#".
10164 print prefix "define", macro P[macro] D[macro]
10167 # Replace #undef with comments. This is necessary, for example,
10168 # in the case of _POSIX_SOURCE, which is predefined and required
10169 # on some systems where configure will not decide to define it.
10170 if (defundef == "undef") {
10171 print "/*", prefix defundef, macro, "*/"
10179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10180 as_fn_error "could not setup config headers machinery" "$LINENO" 5
10181 fi # test -n "$CONFIG_HEADERS"
10184 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10189 :[FHLC]) ac_mode=$ac_tag; continue;;
10191 case $ac_mode$ac_tag in
10193 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10194 :[FH]-) ac_tag=-:-;;
10195 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10212 -) ac_f="$tmp/stdin";;
10213 *) # Look for the file first in the build tree, then in the source tree
10214 # (if the path is not absolute). The absolute path cannot be DOS-style,
10215 # because $ac_f cannot contain `:'.
10219 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10221 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10223 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10224 as_fn_append ac_file_inputs " '$ac_f'"
10227 # Let's still pretend it is `configure' which instantiates (i.e., don't
10228 # use $as_me), people would be surprised to read:
10229 # /* config.h. Generated by config.status. */
10230 configure_input='Generated from '`
10231 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10233 if test x"$ac_file" != x-; then
10234 configure_input="$ac_file. $configure_input"
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10236 $as_echo "$as_me: creating $ac_file" >&6;}
10238 # Neutralize special characters interpreted by sed in replacement strings.
10239 case $configure_input in #(
10240 *\&* | *\|* | *\\* )
10241 ac_sed_conf_input=`$as_echo "$configure_input" |
10242 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10243 *) ac_sed_conf_input=$configure_input;;
10247 *:-:* | *:-) cat >"$tmp/stdin" \
10248 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10253 ac_dir=`$as_dirname -- "$ac_file" ||
10254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10255 X"$ac_file" : 'X\(//\)[^/]' \| \
10256 X"$ac_file" : 'X\(//\)$' \| \
10257 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10258 $as_echo X"$ac_file" |
10259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10263 /^X\(\/\/\)[^/].*/{
10276 as_dir="$ac_dir"; as_fn_mkdir_p
10280 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10282 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10283 # A ".." for each directory in $ac_dir_suffix.
10284 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10285 case $ac_top_builddir_sub in
10286 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10287 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10290 ac_abs_top_builddir=$ac_pwd
10291 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10292 # for backward compatibility:
10293 ac_top_builddir=$ac_top_build_prefix
10296 .) # We are building in place.
10298 ac_top_srcdir=$ac_top_builddir_sub
10299 ac_abs_top_srcdir=$ac_pwd ;;
10300 [\\/]* | ?:[\\/]* ) # Absolute name.
10301 ac_srcdir=$srcdir$ac_dir_suffix;
10302 ac_top_srcdir=$srcdir
10303 ac_abs_top_srcdir=$srcdir ;;
10304 *) # Relative name.
10305 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10306 ac_top_srcdir=$ac_top_build_prefix$srcdir
10307 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10309 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10319 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10320 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10322 ac_MKDIR_P=$MKDIR_P
10324 [\\/$]* | ?:[\\/]* ) ;;
10325 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10330 # If the template does not know about datarootdir, expand it.
10331 # FIXME: This hack should be removed a few years after 2.60.
10332 ac_datarootdir_hack=; ac_datarootdir_seen=
10343 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10344 *datarootdir*) ac_datarootdir_seen=yes;;
10345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10347 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10350 ac_datarootdir_hack='
10351 s&@datadir@&$datadir&g
10352 s&@docdir@&$docdir&g
10353 s&@infodir@&$infodir&g
10354 s&@localedir@&$localedir&g
10355 s&@mandir@&$mandir&g
10356 s&\\\${datarootdir}&$datarootdir&g' ;;
10360 # Neutralize VPATH when `$srcdir' = `.'.
10361 # Shell code in configure.ac might set extrasub.
10362 # FIXME: do we really want to maintain this feature?
10363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10364 ac_sed_extra="$ac_vpsub
10367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10370 s|@configure_input@|$ac_sed_conf_input|;t t
10371 s&@top_builddir@&$ac_top_builddir_sub&;t t
10372 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10373 s&@srcdir@&$ac_srcdir&;t t
10374 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10375 s&@top_srcdir@&$ac_top_srcdir&;t t
10376 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10377 s&@builddir@&$ac_builddir&;t t
10378 s&@abs_builddir@&$ac_abs_builddir&;t t
10379 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10380 s&@INSTALL@&$ac_INSTALL&;t t
10381 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10382 $ac_datarootdir_hack
10384 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10385 || as_fn_error "could not create $ac_file" "$LINENO" 5
10387 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10388 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10389 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10391 which seems to be undefined. Please make sure it is defined." >&5
10392 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10393 which seems to be undefined. Please make sure it is defined." >&2;}
10397 -) cat "$tmp/out" && rm -f "$tmp/out";;
10398 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10400 || as_fn_error "could not create $ac_file" "$LINENO" 5
10406 if test x"$ac_file" != x-; then
10408 $as_echo "/* $configure_input */" \
10409 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10410 } >"$tmp/config.h" \
10411 || as_fn_error "could not create $ac_file" "$LINENO" 5
10412 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10414 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10417 mv "$tmp/config.h" "$ac_file" \
10418 || as_fn_error "could not create $ac_file" "$LINENO" 5
10421 $as_echo "/* $configure_input */" \
10422 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10423 || as_fn_error "could not create -" "$LINENO" 5
10425 # Compute "$ac_file"'s index in $config_headers.
10428 for _am_header in $config_headers :; do
10429 case $_am_header in
10430 $_am_arg | $_am_arg:* )
10433 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10436 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10437 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10438 X"$_am_arg" : 'X\(//\)[^/]' \| \
10439 X"$_am_arg" : 'X\(//\)$' \| \
10440 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10441 $as_echo X"$_am_arg" |
10442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10446 /^X\(\/\/\)[^/].*/{
10458 s/.*/./; q'`/stamp-h$_am_stamp_count
10461 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10462 $as_echo "$as_me: executing $ac_file commands" >&6;}
10467 case $ac_file$ac_mode in
10468 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10469 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10470 # are listed without --file. Let's play safe and only enable the eval
10471 # if we detect the quoting.
10472 case $CONFIG_FILES in
10473 *\'*) eval set x "$CONFIG_FILES" ;;
10474 *) set x $CONFIG_FILES ;;
10479 # Strip MF so we end up with the name of the file.
10480 mf=`echo "$mf" | sed -e 's/:.*$//'`
10481 # Check whether this is an Automake generated Makefile or not.
10482 # We used to match only the files named `Makefile.in', but
10483 # some people rename them; so instead we look at the file content.
10484 # Grep'ing the first line is not enough: some people post-process
10485 # each Makefile.in and add a new line on top of each file to say so.
10486 # Grep'ing the whole file is not good either: AIX grep has a line
10487 # limit of 2048, but all sed's we know have understand at least 4000.
10488 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10489 dirpart=`$as_dirname -- "$mf" ||
10490 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10491 X"$mf" : 'X\(//\)[^/]' \| \
10492 X"$mf" : 'X\(//\)$' \| \
10493 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10499 /^X\(\/\/\)[^/].*/{
10515 # Extract the definition of DEPDIR, am__include, and am__quote
10516 # from the Makefile without running `make'.
10517 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10518 test -z "$DEPDIR" && continue
10519 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10520 test -z "am__include" && continue
10521 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10522 # When using ansi2knr, U may be empty or an underscore; expand it
10523 U=`sed -n 's/^U = //p' < "$mf"`
10524 # Find all dependency output files, they are included files with
10525 # $(DEPDIR) in their names. We invoke sed twice because it is the
10526 # simplest approach to changing $(DEPDIR) to its actual value in the
10528 for file in `sed -n "
10529 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10530 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10531 # Make sure the directory exists.
10532 test -f "$dirpart/$file" && continue
10533 fdir=`$as_dirname -- "$file" ||
10534 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10535 X"$file" : 'X\(//\)[^/]' \| \
10536 X"$file" : 'X\(//\)$' \| \
10537 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10538 $as_echo X"$file" |
10539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10543 /^X\(\/\/\)[^/].*/{
10556 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10557 # echo "creating $dirpart/$file"
10558 echo '# dummy' > "$dirpart/$file"
10570 ac_clean_files=$ac_clean_files_save
10572 test $ac_write_fail = 0 ||
10573 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10576 # configure is writing to config.log, and then calls config.status.
10577 # config.status does its own redirection, appending to config.log.
10578 # Unfortunately, on DOS this fails, as config.log is still kept open
10579 # by configure, so config.status won't be able to write to it; its
10580 # output is simply discarded. So we exec the FD to /dev/null,
10581 # effectively closing config.log, so it can be properly (re)opened and
10582 # appended to by config.status. When coming back to configure, we
10583 # need to make the FD available again.
10584 if test "$no_create" != yes; then
10586 ac_config_status_args=
10587 test "$silent" = yes &&
10588 ac_config_status_args="$ac_config_status_args --quiet"
10590 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10592 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10593 # would make configure fail if this is the last instruction.
10594 $ac_cs_success || as_fn_exit $?
10596 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10598 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10604 Maximum build arch: ${ARCH_MAX}
10605 Primary build arch: ${VGCONF_ARCH_PRI}
10606 Secondary build arch: ${VGCONF_ARCH_SEC}
10607 Build OS: ${VGCONF_OS}
10608 Primary build target: ${VGCONF_PLATFORM_PRI_CAPS}
10609 Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS}
10610 Default supp files: ${DEFAULT_SUPP}
10611 Generated supp files: ${GENERATED_SUPP}