Problem with aclocal macros on Solaris




Hye

The AM_PATH_GNOME macro used as a gnome-config wrapper to instanciate the <module>_CFLAGS & <module>_LIBS is buggy on Solaris. The problem comes from the syntax of the tr command.
The linux syntax is very permissive. The following command

echo toto | tr a-z A-Z

gives TOTO on Linux, but toto on Solaris. The running syntax is

echo toto | tr [a-z] [A-Z]

I attached a patch to apply against gnome-common to correct it.
Could it be applied ?

Thanks

--
 		   Remi Cohen-Scali
<Remi Cohen-Scali com> 		<rcoscali rcsnet net>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-common/ChangeLog,v
retrieving revision 1.12
diff -u -r1.12 ChangeLog
--- ChangeLog	2001/08/01 20:12:40	1.12
+++ ChangeLog	2001/08/04 23:48:57
@@ -1,3 +1,9 @@
+2001-08-05  Remi Cohen-Scali  <rcoscali netra rcsnet net>
+
+	* hack-macros/gnome.m4: Fixed the use of the tr command for the 
+	solaris system (less permissive than linux). 'tr a-z A-Z' was
+	changed in 'tr [a-z] [A-Z]'
+
 2001-08-02  Michael Meeks  <michael ximian com>
 
 	* Version 1.2.3
Index: hack-macros/gnome.m4
===================================================================
RCS file: /cvs/gnome/gnome-common/hack-macros/gnome.m4,v
retrieving revision 1.16
diff -u -r1.16 gnome.m4
--- hack-macros/gnome.m4	2001/05/23 00:02:54	1.16
+++ hack-macros/gnome.m4	2001/08/04 23:48:57
@@ -455,7 +455,7 @@
 	  AC_SUBST(GNORBA_LIBS)
 	elif test -n "$module"; then
 	  if $GNOME_CONFIG $gnome_config_args --cflags $module >/dev/null 2>&1; then
-		tmp_bsnom=`echo $module | tr a-z A-Z`
+		tmp_bsnom=`echo $module | tr [a-z] [A-Z]`
 		eval $tmp_bsnom'_CFLAGS'=\"`$GNOME_CONFIG $gnome_config_args --cflags $module`\"
 		eval $tmp_bsnom'_LIBS'=\"`$GNOME_CONFIG $gnome_config_args --libs $module`\"
 	  else


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