bug-libtool
[Top][All Lists]
Advanced

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

libtool assumes 'egrep' in a couple of places


From: Paul Eggert
Subject: libtool assumes 'egrep' in a couple of places
Date: Fri, 30 Jan 2004 14:50:09 -0800
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (usg-unix-v)

This is just a mostly-theoretical porting bug.  POSIX 1003.1-2001 has
withdrawn "egrep"; it is no longer required on a standard POSIX
system.  Here's a patch to libtool so that it no longer assumes the
existence of egrep.

2004-01-30  Paul Eggert  <address@hidden>

        * libtool.m4 (_LT_AC_LANG_CXX_CONFIG, AC_LIBTOOL_PROG_LD_SHLIBS):
        Don't use egrep; POSIX no longer requires egrep.

===================================================================
RCS file: libtool.m4,v
retrieving revision 1.5.2.0
retrieving revision 1.5.2.1
diff -pu -r1.5.2.0 -r1.5.2.1
--- libtool.m4  2004/01/23 06:07:04     1.5.2.0
+++ libtool.m4  2004/01/30 22:42:09     1.5.2.1
@@ -2996,7 +2996,7 @@ case $host_os in
       # explicitly linking system object files so we need to strip them
       # from the output so that they don't get included in the library
       # dependencies.
-      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 
2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in 
conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; 
done; echo $list'
+      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 
2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in 
conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; 
done; echo $list'
       ;;
     *)
       if test "$GXX" = yes; then
@@ -5170,7 +5170,7 @@ EOF
       ;;
 
   linux*)
-    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags 
${wl}-soname $wl$soname -o $lib'
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
       supports_anon_versioning=no




reply via email to

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