Configure patch to allow g prefix for md5sum cp and sed

Michael Franz mvfranz at gmail.com
Sat Sep 12 12:44:18 PDT 2009


Hi,

Here are some issues that I have with trying to get IcedTea 1.11 working on
OS X
-  md5sum not installed by default (it has md5 which has different commands)
- cp does not supports -a or -l
- sed that has trouble with some of the expressions

To work around this I can install coreutils from Macports.  The default port
used the 'g' prefix for these commands.  I would like to add/make the
following changes to configure.ac .  Do I need to file a bug for this?  I
have attached the changes for Makefile.am as it is a much larger file.  I
did not change all the cp and sed to the macro as not all of them cause
problems.  For consistency, I guess they should all be changed.

-- configure.ac.orig   2009-09-12 13:15:12.000000000 -0400
+++ configure.ac        2009-09-12 13:31:44.000000000 -0400
@@ -25,7 +25,11 @@
 FIND_TOOL([PATCH], [patch])
 FIND_TOOL([TAR], [tar])
 FIND_TOOL([CHMOD], [chmod])
-FIND_TOOL([MD5SUM], [md5sum])
+AC_CHECK_TOOLS([MD5SUM], [md5sum gmd5sum])
+if test "x$MD5SUM" = x; then
+        AC_MSG_ERROR([Can't find md5sum or gmd5sum])
+fi
+AC_SUBST([MD5SUM])
 FIND_TOOL([WGET], [wget])
 FIND_TOOL([ZIP], [zip])
 FIND_TOOL([UNZIP], [unzip])
@@ -46,6 +50,16 @@
 AC_CHECK_WITH_HOTSPOT_BUILD
 AC_PATH_TOOL([LINUX32],[linux32])
 AC_CHECK_GCC_VERSION
+AC_CHECK_TOOLS([CP], [gcp cp])
+if test "x$CP" = x; then
+        AC_MSG_ERROR([Can't find gcp -a or cp -a])
+fi
+AC_SUBST([CP])
+AC_CHECK_TOOLS([SED], [gsed sed])
+if test "x$SED" = x; then
+        AC_MSG_ERROR([Can't find gsed or sed])
+fi
+AC_SUBST([SED])

 AC_MSG_CHECKING([for a NetBeans installation])
 AC_ARG_WITH([netbeans-home],

Comments?

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090912/2465312d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bsd-Makefile.am.patch
Type: application/octet-stream
Size: 5819 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090912/2465312d/bsd-Makefile.am.patch 


More information about the distro-pkg-dev mailing list