*) CPUFAM=nil ABI=nil ;;
esac
-dnl Now check the assembler. We may have target-specific requirements here,
-dnl so we couldn't do this any earlier.
+dnl Now check the assembler. We have target-specific requirements here, so
+dnl we couldn't do this any earlier.
AC_CACHE_CHECK(
[whether the assembler is likely to work], [mdw_cv_gnuish_as],
[AC_LANG_PUSH([CPPAS])
.extern bar
mymac]])],
[mdw_cv_gnuish_as=yes], [mdw_cv_gnuish_as=no])
+ case $CPUFAM in
+ x86 | amd64)
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
+ .text
+ .arch pentium4
+ .intel_syntax noprefix
+ .globl foo
+foo:
+ adcd var, 0
+ ret
+ .data
+var: .long 1
+ ]])],
+ [:], [mdw_cv_gnuish_as=no])
+ ;;
+ esac
AC_LANG_POP([CPPAS])])
AM_CONDITIONAL([GNUISH_AS], [test $mdw_cv_gnuish_as = yes])
if test $mdw_cv_gnuish_as = no; then CPUFAM=nil ABI=nil; fi
dnl Memory locking support.
AC_CHECK_FUNCS([mlock])
+dnl See if we can find Valgrind's header files.
+AC_CHECK_HEADER([valgrind/memcheck.h],
+ AC_DEFINE([HAVE_VALGRIND_H], [1],
+ [Define if the Valgrind header files are available.])
+ [])
+
dnl Set the master libraries we need.
AC_SUBST([CATACOMB_LIBS])