Hello!
It is quite annoying to get warning messages like this one:
checking symbol names produced by gcc... shift: shift count must be <= $#
sym
Bash (at least version 1.14.7) is sometimes too verbose.
Since I touched the responsible macro and needed to retest it anyway, I
also simplified a pipe used to scan conftest.s
Patch attached. Now with ChangeLog.
Pavel Roskin
--- ChangeLog.v0 Fri May 14 21:03:53 1999
+++ ChangeLog Sun May 16 01:09:19 1999
@@ -0,0 +1,5 @@
+1999-05-16 Pavel Roskin <[EMAIL PROTECTED]>
+
+ * acinclude.m4 (grub_ASM_EXT_C): Simplified parsing of
+ conftest.s, suppressed warning from bash 1.x
+
--- acinclude.m4.v0 Tue Mar 2 05:41:02 1999
+++ acinclude.m4 Sat May 15 11:35:37 1999
@@ -19,13 +19,14 @@
AC_MSG_ERROR([${CC-cc} failed to produce assembly code])
fi
-set dummy `grep \.globl conftest.s | grep func | sed -e s/\\.globl// | sed -e
s/func/\ sym\ /`
+set dummy `sed -n -e 's/^.*\.globl\(.*\)func\(.*\)$/\1 sym \2/p' conftest.s`
shift
if test -z "[$]1"; then
AC_MSG_ERROR([C symbol not found])
fi
grub_cv_asm_ext_c="[$]1"
-while shift; do
+while test [$]# != 0; do
+ shift
dummy=[$]1
if test ! -z ${dummy}; then
grub_cv_asm_ext_c="$grub_cv_asm_ext_c ## $dummy"