Bug 47771 - _LT_AC_SHARED_EXT breaks GCJ libtool-1.5.2 tags
Bug#: 47771 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: csm@gnu.org
Component: Core system
URL: 
Summary: _LT_AC_SHARED_EXT breaks GCJ libtool-1.5.2 tags
Keywords:  
Status Whiteboard: 
Opened: 2004-04-13 16:53 0000
Description:   Opened: 2004-04-13 16:53 0000
_LT_AC_SHARED_EXT, patched by `libtool-1.5.2-libtool_m4-shared_ext.patch', is
somewhat bogus. The line that reads:

   if test -z `grep -e 'shared_ext.*shrext' $ofile`; then

Will fail if there is more than one shared_ext.*shrext match in libtool. This
occurs when (e.g.) using `AM_PROG_GCJ' to compile Java packages.

Reproducible: Always
Steps to Reproduce:
1. aclocal, libtoolize, automake, autoconf a Java package (like GNU Crypto).
2. ./configure
3.

Actual Results:  
Configure outputs:

appending configuration tag "GCJ" to libtool
...
./configure: line 19231: test: too many arguments

Expected Results:  
Normal configure.

------- Comment #1 From SpanKY 2004-09-01 06:33:04 0000 -------
ah ive seen this a lot ...  the clean solution is tto just  put "" arrround the
grep right ?

------- Comment #2 From SpanKY 2004-09-01 19:44:18 0000 -------
that fixed it on my machine, thanks