From 43f6d48932b03d9a0988c4c9ec5c34d2cd837540 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Mon, 19 Aug 2002 10:43:55 +0000 Subject: [PATCH] New attribute checking Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@152 --- configure.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 395ff766..b5fb6f03 100644 --- a/configure.in +++ b/configure.in @@ -36,11 +36,12 @@ AC_C_INLINE AC_TYPE_SIZE_T AC_STRUCT_TM -dnl Checks for library functions. +#Check if the compiler support attributes +AC_MSG_CHECKING(if compiler allows __attribute__) +AC_TRY_COMPILE([], [typedef struct { } __attribute__ ((packed)) junk;], + [ AC_MSG_RESULT(yes);AC_DEFINE(C_HAS_ATTRIBUTE)],AC_MSG_RESULT(no)) -#Always include the standard include dir in all makefiless - AC_OUTPUT([ Makefile src/Makefile