common/autoconf/jdk-options.m4
changeset 22176 3dae78c445a6
parent 21057 6cfd8ccbfbbc
child 22181 0fc1d3eb4358
--- a/common/autoconf/jdk-options.m4	Wed Jul 05 19:26:54 2017 +0200
+++ b/common/autoconf/jdk-options.m4	Thu Jan 09 12:35:20 2014 +0100
@@ -423,6 +423,12 @@
     AC_MSG_ERROR([Update version must have a value])
   elif test "x$with_update_version" != x; then
     JDK_UPDATE_VERSION="$with_update_version"
+    # On macosx 10.7, it's not possible to set --with-update-version=0X due
+    # to a bug in expr (which reduces it to just X). To work around this, we
+    # always add a 0 to one digit update versions.
+    if test "${#JDK_UPDATE_VERSION}" = "1"; then
+      JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
+    fi
   fi
 
   AC_ARG_WITH(user-release-suffix, [AS_HELP_STRING([--with-user-release-suffix],