Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -30,20 +30,18 @@ ]) AC_SUBST(NO_CONST_CFSTRINGS) AC_MSG_CHECKING(whether Objective C compiler supports fast enumeration) AC_TRY_COMPILE([ - #import - @protocol OFFastEnumeration - (int)countByEnumeratingWithState: (void*)state - objects: (id*)objects + objects: (struct objc_object**)objects count: (int)count; @end ], [ - id n = nil; - for (id i in n); + struct objc_object *n = (struct objc_object*)0; + for (struct objc_object *i in n); ], [ AC_DEFINE(OF_HAVE_FAST_ENUMERATION, 1, [Compiler support for Fast Enumeration]) AC_MSG_RESULT(yes) ], [ @@ -50,22 +48,20 @@ AC_MSG_RESULT(no) ]) AC_MSG_CHECKING(whether Objective C compiler supports properties) AC_TRY_COMPILE([ - #import - @interface Foo { id bar; } - @property (retain, nonatomic) id bar; + @property (retain, nonatomic) struct objc_object *bar; @end ], [ - Foo *foo = nil; - [foo setBar: nil]; + Foo *foo = (struct objc_object*)0; + [foo setBar: (struct objc_object*)0]; [foo bar]; ], [ AC_DEFINE(OF_HAVE_PROPERTIES, 1, [Compiler support for properties]) AC_SUBST(PROPERTIESTESTS_M, "PropertiesTests.m") AC_MSG_RESULT(yes) @@ -461,15 +457,13 @@ OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wcast-align -Wpointer-arith" OBJCFLAGS="$OBJCFLAGS -Werror" AC_MSG_CHECKING(whether gcc has bug objc/27438) AC_TRY_COMPILE([ - #import - @interface OFConstantString { - Class isa; + struct objc_class *isa; const char *string; unsigned long size; } @end @@ -485,20 +479,18 @@ AC_SUBST(NO_WARN_UNUSED, "-Wno-unused-variable") ]) AC_MSG_CHECKING(whether we need -Wno-strict-aliasing due to gcc bugs) AC_TRY_COMPILE([ - #import - @interface OFObject { Class isa; } @end static struct { - Class isa; + struct objc_class *isa; } object; ], [ OFObject *test = (OFObject*)&object; test++; /* Get rid of unused variable warning */ ], [