diff --git a/ChangeLog b/ChangeLog
index 8a78567abe6b72de309671a730589fddd9090197..83331df7e609049c8dee5d48754066a61308343f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -413,6 +413,10 @@ CVS code -
 	  programs. (DLR)
 	- Remove the checks for resizeterm() and wresize(), as they're
 	  no longer needed. (DLR)
+- config.rpath:
+	- Replace usage of egrep with grep -E, avoiding a XSI:ism (David
+	  Weinehall)
+
 - faq.html:
 	- Removed question about the NumLock glitch, as it's no longer
 	  needed. (DLR)
diff --git a/config.rpath b/config.rpath
index 5ead7586a7c417067a718d8cfd3129adeb1407b3..5e7ba100e6a5132d26c900f1cb621b7bbb5a2777 100755
--- a/config.rpath
+++ b/config.rpath
@@ -125,7 +125,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 -E ': supported targets:.* elf' > /dev/null; then
         :
       else
         ld_shlibs=no
@@ -137,9 +137,9 @@ if test "$with_gnu_ld" = yes; then
       hardcode_libdir_flag_spec='-L$libdir'
       ;;
     solaris* | sysv5*)
-      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
+      if $LD -v 2>&1 | grep -E '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 -E ': supported targets:.* elf' > /dev/null; then
         :
       else
         ld_shlibs=no
@@ -149,7 +149,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 -E ': supported targets:.* elf' > /dev/null; then
         :
       else
         ld_shlibs=no