* AC_CHECK_HEADER checks for ansidecl.h, bfd.h and symcat.h removed.
[cacao.git] / configure.in
index 4e136ded4c2e812a5fdbe41956605217a6704329..d8eacb3f799f4a5efd93f48cf6d7d2d09871f078 100644 (file)
@@ -282,12 +282,13 @@ AC_ARG_ENABLE([debug],
 if test x"${NDEBUG}" = "xno"; then
     AC_MSG_RESULT(yes)
 
-    dnl check for binutils-dev headers on some architectures
+    dnl check for binutils headers and libraries on some architectures for the
+    dnl disassembler
     case "${ARCH_DIR}" in
         arm | i386 | powerpc | x86_64 )
-            AC_CHECK_HEADER([ansidecl.h],, [AC_MSG_ERROR(cannot find ansidecl.h)])
-            AC_CHECK_HEADER([bfd.h],, [AC_MSG_ERROR(cannot find bfd.h)])
-            AC_CHECK_HEADER([symcat.h],, [AC_MSG_ERROR(cannot find symcat.h)])
+            AC_CHECK_HEADER([dis-asm.h],, [AC_MSG_ERROR(cannot find dis-asm.h)])
+            AC_CHECK_LIB(bfd, bfd_get_arch,, [AC_MSG_ERROR(cannot find libbfd (from bintuils))])
+            AC_CHECK_LIB(opcodes, init_disassemble_info,, [AC_MSG_ERROR(cannot find libopcodes (from bintuils))])
             ;;
     esac