aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--acinclude.m418
-rw-r--r--configure.in52
3 files changed, 53 insertions, 18 deletions
diff --git a/AUTHORS b/AUTHORS
index 0968fef1d5..9a79273a33 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -243,6 +243,7 @@ Heikki Vatiainen <hessu[AT]cs.tut.fi> {
IGMP fixes and multicast traceroute support
MSDP support
IPv6 name resolution support on Solaris 8
+ Enhancements to the "bad sed" tests
}
Greg Hankins <gregh[AT]twoguys.org> {
diff --git a/acinclude.m4 b/acinclude.m4
index e6c9ad8f89..42d7063b21 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2,7 +2,7 @@ dnl Macros that test for specific features.
dnl This file is part of the Autoconf packaging for Ethereal.
dnl Copyright (C) 1998-2000 by Gerald Combs.
dnl
-dnl $Id: acinclude.m4,v 1.40 2002/01/30 08:46:27 guy Exp $
+dnl $Id: acinclude.m4,v 1.41 2002/02/02 21:07:40 guy Exp $
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
@@ -519,3 +519,19 @@ AC_DEFUN(AC_ETHEREAL_RPM_CHECK,
fi
fi
])
+
+#
+# AC_ETHEREAL_GNU_SED_CHECK
+# Checks if GNU sed is the first sed in PATH.
+#
+AC_DEFUN([AC_ETHEREAL_GNU_SED_CHECK],
+[
+ AC_MSG_CHECKING(for GNU sed as first sed in PATH)
+ if ( sh -c "sed --version" </dev/null 2> /dev/null | grep "GNU sed" 2>&1 > /dev/null ) ; then
+ AC_MSG_RESULT(yes)
+ HAVE_GNU_SED=yes
+ else
+ AC_MSG_RESULT(no)
+ HAVE_GNU_SED=no
+ fi
+])
diff --git a/configure.in b/configure.in
index 287b238a31..f81d12da3d 100644
--- a/configure.in
+++ b/configure.in
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.150 2002/01/30 23:48:51 guy Exp $
+# $Id: configure.in,v 1.151 2002/02/02 21:07:40 guy Exp $
dnl
dnl Process this file with autoconf 2.13 or later to produce a
dnl configure script; 2.12 doesn't generate a "configure" script that
@@ -155,11 +155,6 @@ AC_SUBST(DATAFILE_DIR)
# If we're running Solaris, and LD_LIBRARY_PATH is defined, add it as a
# link directory.
#
-# Also, make sure that "sed" does *NOT* refer to "/usr/bin/sed" or
-# "/usr/ucb/sed", as, on Solaris, both of them are inadequate to
-# handle, in libtool, a list of object files as large as the list
-# in Ethereal.
-#
case "$host_os" in
solaris*)
AC_MSG_CHECKING(for LD_LIBRARY_PATH, since you appear to be running Solaris)
@@ -169,20 +164,43 @@ case "$host_os" in
else
AC_MSG_RESULT(no -- this may be a problem in a few seconds)
fi
- AC_MSG_CHECKING(whether one of /usr/bin/sed or /usr/ucb/sed will be used)
- case `which sed` in
- /usr/bin/sed|/usr/ucb/sed)
- AC_MSG_RESULT(yes)
- AC_MSG_ERROR([change your path to search /usr/xpg4/bin before /usr/bin (and /usr/ucb)])
- ;;
-
- *)
- AC_MSG_RESULT(no)
- ;;
- esac
;;
esac
+#
+# Check for versions of "sed" inadequate to handle, in libtool, a list
+# of object files as large as the list in Ethereal.
+#
+# On Solaris, we check for "/bin/sed", "/usr/bin/sed", and "/usr/ucb/sed",
+# as both "/usr/bin/sed" (which is also "/bin/sed", as "/bin" is just a
+# symlink to "/usr/bin", but people may have "/bin" before "/usr/bin" in
+# their search path) and "/usr/ucb/sed" are inadequate; "/usr/xpg4/bin/sed"
+# is the only "sed" that comes with Solaris that can handle Ethereal.
+#
+# Add any checks here that are necessary for other OSes.
+#
+AC_ETHEREAL_GNU_SED_CHECK
+if test "$HAVE_GNU_SED" = no ; then
+ case "$host_os" in
+ solaris*)
+ AC_MSG_CHECKING(whether one of /usr/bin/sed or /bin/sed or /usr/ucb/sed will be used)
+ case `which sed` in
+ /bin/sed|/usr/bin/sed|/usr/ucb/sed)
+ AC_MSG_RESULT(yes)
+ AC_MSG_ERROR([change your path to search /usr/xpg4/bin or directory containing GNU sed before /usr/bin (and /bin and /usr/ucb)])
+ ;;
+
+ *)
+ AC_MSG_RESULT(no)
+ ;;
+ esac
+ ;;
+
+ *)
+ :
+ ;;
+ esac
+fi
# Enable/disable tethereal