Index: configure.ac
===================================================================
--- configure.ac	(revision 26932)
+++ configure.ac	(working copy)
@@ -1306,8 +1306,7 @@
 	AC_DEFINE(HAVE_OBJC_GET_UNINSTALLED_DTABLE,1,
                   [ Define if objc-api.h defines this function]),)
 
-LIBS="$saved_LIBS"
-CPPFLAGS="$saved_CPPFLAGS"
+# Don't revert any Objective-C flags as they are used in the next test
 
 #--------------------------------------------------------------------
 # Function needed by @synchronize directive
@@ -1320,6 +1319,9 @@
 fi
 AC_SUBST(HAVE_OBJC_SYNC_ENTER)
 
+LIBS="$saved_LIBS"
+CPPFLAGS="$saved_CPPFLAGS"
+
 #--------------------------------------------------------------------
 # Generic settings needed by NSZone.m
 #--------------------------------------------------------------------
