1.1 --- a/common/autoconf/basics.m4 Wed May 29 13:58:40 2013 +0200 1.2 +++ b/common/autoconf/basics.m4 Wed May 29 14:01:04 2013 +0200 1.3 @@ -617,6 +617,20 @@ 1.4 1.5 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 1.6 BASIC_REQUIRE_PROG(XATTR, xattr) 1.7 + AC_PATH_PROG(CODESIGN, codesign) 1.8 + if test "x$CODESIGN" != "x"; then 1.9 + # Verify that the openjdk_codesign certificate is present 1.10 + AC_MSG_CHECKING([if openjdk_codesign certificate is present]) 1.11 + rm -f codesign-testfile 1.12 + touch codesign-testfile 1.13 + codesign -s openjdk_codesign codesign-testfile 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD || CODESIGN= 1.14 + rm -f codesign-testfile 1.15 + if test "x$CODESIGN" = x; then 1.16 + AC_MSG_RESULT([no]) 1.17 + else 1.18 + AC_MSG_RESULT([yes]) 1.19 + fi 1.20 + fi 1.21 fi 1.22 ]) 1.23