bug-gnu-utils
[Top][All Lists]
Advanced

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

config.rpath port to POSIX 1003.1-2001 hosts


From: Paul Eggert
Subject: config.rpath port to POSIX 1003.1-2001 hosts
Date: Tue, 17 Jun 2003 23:28:29 -0700 (PDT)

gettext 0.12.1's config.rpath uses "egrep", but that command has been
removed from POSIX as of POSIX 1003.1-2001, so it's officially more
portable to use plain grep.  Here's a patch.

2003-06-17  Paul Eggert  <address@hidden>

        * config.rpath: Use grep instead of egrep, since POSIX 1003.1-2001
        no longer requires egrep.

===================================================================
RCS file: autoconf-lib-link/config.rpath,v
retrieving revision 0.12.1.0
retrieving revision 0.12.1.1
diff -pu -r0.12.1.0 -r0.12.1.1
--- autoconf-lib-link/config.rpath      2003/05/02 10:46:16     0.12.1.0
+++ autoconf-lib-link/config.rpath      2003/06/18 06:25:10     0.12.1.1
@@ -143,7 +143,7 @@ if test "$with_gnu_ld" = yes; then
       ld_shlibs=no
       ;;
     beos*)
-      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
         :
       else
         ld_shlibs=no
@@ -162,9 +162,9 @@ if test "$with_gnu_ld" = yes; then
     netbsd*)
       ;;
     solaris* | sysv5*)
-      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
+      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
         ld_shlibs=no
-      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; 
then
+      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; 
then
         :
       else
         ld_shlibs=no
@@ -174,7 +174,7 @@ if test "$with_gnu_ld" = yes; then
       hardcode_direct=yes
       ;;
     *)
-      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
         :
       else
         ld_shlibs=no




reply via email to

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