Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -1392,17 +1392,31 @@ OBJCFLAGS="$OBJCFLAGS -pedantic" AC_MSG_CHECKING(whether -pedantic is buggy) AC_TRY_COMPILE([ #include + #include + @interface Foo { void *foo; } @end @interface Bar: Foo + - (void)assert; + @end + + @implementation Bar + - (void)assert + { + /* + * Some versions of glibc break with -pedantic + * when using assert. + */ + assert(1); + } @end ], [], [ AC_MSG_RESULT(no) ], [ AC_MSG_RESULT(yes)