Bug 644324 - Fix AC_TRY_COMPILE call for valid compiler/Mac OS X SDK combination check in comm-central (port Bug 635948); r=Callek
authorNomis101@web.de
Mon, 11 Apr 2011 13:53:25 +0100
changeset 7541 3735babe122a6449bacf280f86d2aff9e13a252d
parent 7540 7d2a123d4cd5119da46e7cba1b4e78e92168c037
child 7542 fca529126184b6e9e101087b869a2aca011513e8
push idunknown
push userunknown
push dateunknown
reviewersCallek
bugs644324, 635948
Bug 644324 - Fix AC_TRY_COMPILE call for valid compiler/Mac OS X SDK combination check in comm-central (port Bug 635948); r=Callek
configure.in
--- a/configure.in
+++ b/configure.in
@@ -1065,18 +1065,17 @@ tools are selected during the Xcode/Deve
       dnl the -isysroot it receives, so this is only needed with 4.0.0.
       LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}"
     fi
   fi
 
   AC_LANG_SAVE
   AC_MSG_CHECKING([for valid compiler/Mac OS X SDK combination])
   AC_LANG_CPLUSPLUS
-  AC_TRY_COMPILE([#include <new>
-                 int main() { return 0; }],
+  AC_TRY_COMPILE([#include <new>],[],
    result=yes,
    result=no)
   AC_LANG_RESTORE
   AC_MSG_RESULT($result)
 
   if test "$result" = "no" ; then
     AC_MSG_ERROR([The selected compiler and Mac OS X SDK are incompatible.])
   fi