[MOAB-dev] r1298 - MOAB/trunk
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Fri Oct 5 09:35:35 CDT 2007
Author: kraftche
Date: 2007-10-05 09:35:34 -0500 (Fri, 05 Oct 2007)
New Revision: 1298
Modified:
MOAB/trunk/configure.in
Log:
fix portability issue using 'expr' command
Modified: MOAB/trunk/configure.in
===================================================================
--- MOAB/trunk/configure.in 2007-10-03 20:28:42 UTC (rev 1297)
+++ MOAB/trunk/configure.in 2007-10-05 14:35:34 UTC (rev 1298)
@@ -30,8 +30,8 @@
################################################################################
AC_DEFINE(MB_VERSION,["AC_PACKAGE_VERSION"],[MOAB Version])
-VERSION_MAJOR=`expr AC_PACKAGE_VERSION : '\([[0-9]]\+\)'`
-VERSION_MINOR=`expr AC_PACKAGE_VERSION : '[[0-9]]*\.\([[0-9]]\+\)'`
+VERSION_MAJOR=`expr AC_PACKAGE_VERSION : '\([[0-9]]*\)'`
+VERSION_MINOR=`expr AC_PACKAGE_VERSION : '[[0-9]]*\.\([[0-9]]*\)'`
VERSION_PATCH=`expr AC_PACKAGE_VERSION : '[[0-9]]*\.[[0-9]]*\.\(.*\)'`
test "x" != "x$VERSION_MAJOR" || AC_MSG_ERROR("Invalid version string: AC_PACKAGE_VERSION")
test "x" != "x$VERSION_MINOR" || AC_MSG_ERROR("Invalid version string: AC_PACKAGE_VERSION")
More information about the moab-dev
mailing list