commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

configure.ac problem


From: Archie Cobbs
Subject: configure.ac problem
Date: Wed, 24 Mar 2004 09:57:14 -0600 (CST)

FYI,

The Classpath configure.ac script contains some non-portable shell code:

  if expr match ${target_cpu} .*86 > /dev/null; then target_cpu=x86; fi

The "expr match" syntax is not portable, e.g. to FreeBSD 4.x.
The patch below fixes this.

Permission to commit?

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

Index: configure.ac
===================================================================
RCS file: /cvsroot/classpath/classpath/configure.ac,v
retrieving revision 1.10
diff -u -r1.10 configure.ac
--- configure.ac        13 Mar 2004 03:07:54 -0000      1.10
+++ configure.ac        24 Mar 2004 15:56:11 -0000
@@ -8,7 +8,7 @@
 AC_CONFIG_SRCDIR(java/lang/System.java)
 
 AC_CANONICAL_TARGET
-if expr match ${target_cpu} .*86 > /dev/null; then target_cpu=x86; fi
+if echo ${target_cpu} | grep -q '.*86' > /dev/null; then target_cpu=x86; fi
 
 dnl We will not track/change lib version until we reach version 1.0
 dnl at which time we'll have to be more anal about such things




reply via email to

[Prev in Thread] Current Thread [Next in Thread]