aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--acinclude.m415
-rw-r--r--configure.ac47
2 files changed, 7 insertions, 55 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 05b6f0e6c4..f625265235 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -810,21 +810,6 @@ AC_DEFUN([AC_WIRESHARK_RPM_CHECK],
fi
])
-#
-# AC_WIRESHARK_GNU_SED_CHECK
-# Checks if GNU sed is the first sed in PATH.
-#
-AC_DEFUN([AC_WIRESHARK_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
-])
#
# AC_WIRESHARK_C_ARES_CHECK
diff --git a/configure.ac b/configure.ac
index bc0e283c3f..4217f29ec6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,6 +66,13 @@ then
fi
AC_PROG_CXX
AC_PROG_CPP
+
+#
+# Check for versions of "sed" inadequate to handle, in libtool, a list
+# of object files as large as the list in Wireshark.
+#
+AC_PROG_SED
+
AC_PROG_MKDIR_P
# Set CC_FOR_BUILD (the *local* gcc to use for building e.g. lemon)
@@ -1466,46 +1473,6 @@ case "$host_os" in
;;
esac
-#
-# Check for versions of "sed" inadequate to handle, in libtool, a list
-# of object files as large as the list in Wireshark.
-#
-# 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 Wireshark.
-#
-# Add any checks here that are necessary for other OSes.
-#
-AC_PATH_PROG(SED, sed)
-if test "x$SED" = x
-then
- AC_MSG_ERROR(I couldn't find sed; make sure it's installed and in your path)
-fi
-AC_WIRESHARK_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 wireshark
AC_ARG_ENABLE(wireshark,
AC_HELP_STRING( [--enable-wireshark],