diff options
author | Jiri Vanek <[email protected]> | 2011-09-22 17:49:16 +0200 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2011-09-22 17:49:16 +0200 |
commit | b28be39f3999e5f8b70145f7a44adde55021883f (patch) | |
tree | 7d094761041485615953c258bc4fb11d613721ef /acinclude.m4 | |
parent | d791f8ea414740894cc21b3ddc7925c6c323e821 (diff) |
Reproducers engine enchanced for signed reproducers
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 932ac56..afbff9f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -655,6 +655,64 @@ AC_DEFUN_ONCE([IT_FIND_JAVA], AC_SUBST(JAVA) ]) +AC_DEFUN_ONCE([IT_FIND_KEYTOOL], +[ + AC_REQUIRE([IT_CHECK_FOR_JDK]) + AC_MSG_CHECKING([for keytool]) + AC_ARG_WITH([keytool], + [AS_HELP_STRING(--with-keytool,specify location of keytool for signed part of run-netx-dist)], + [ + if test "${withval}" = "yes" ; then + KEYTOOL=${SYSTEM_JDK_DIR}/bin/keytool + else + KEYTOOL="${withval}" + fi + ], + [ + KEYTOOL=${SYSTEM_JDK_DIR}/bin/keytool + ]) + if ! test -f "${KEYTOOL}"; then + AC_PATH_PROG(KEYTOOL, keytool) + fi + if ! test -f "${KEYTOOL}"; then + KEYTOOL="" + fi + if test -z "${KEYTOOL}" ; then + AC_MSG_WARN("keytool not found so signed part of run-netx-dist will fail") + fi + AC_MSG_RESULT(${KEYTOOL}) + AC_SUBST(KEYTOOL) +]) + +AC_DEFUN_ONCE([IT_FIND_JARSIGNER], +[ + AC_REQUIRE([IT_CHECK_FOR_JDK]) + AC_MSG_CHECKING([for jarsigner]) + AC_ARG_WITH([jarsigner], + [AS_HELP_STRING(--with-jarsigner,specify location of jarsigner for signed part od run-netx-dist)], + [ + if test "${withval}" = "yes" ; then + JARSIGNER=${SYSTEM_JDK_DIR}/bin/jarsigner + else + JARSIGNER="${withval}" + fi + ], + [ + JARSIGNER=${SYSTEM_JDK_DIR}/bin/jarsigner + ]) + if ! test -f "${JARSIGNER}"; then + AC_PATH_PROG(JARSIGNER, jarsigner,"") + fi + if ! test -f "${JARSIGNER}"; then + JARSIGNER="" + fi + if test -z "${JARSIGNER}"; then + AC_MSG_WARN("jarsigner not found so signed part of run-netx-dist will fail") + fi + AC_MSG_RESULT(${JARSIGNER}) + AC_SUBST(JARSIGNER) +]) + AC_DEFUN([IT_FIND_JAVADOC], [ AC_REQUIRE([IT_CHECK_FOR_JDK]) |