added configure check for POPT_TABLEEND
authorThomas Vander Stichele <thomas@apestaart.org>
Wed, 10 Jul 2002 10:42:04 +0000 (10:42 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Wed, 10 Jul 2002 10:42:04 +0000 (10:42 +0000)
Original commit message from CVS:
added configure check for POPT_TABLEEND

common
configure.ac

diff --git a/common b/common
index 4ed4b88..316e406 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 4ed4b888250d1081585717504b571ebf2de72c60
+Subproject commit 316e406cd246e8cbccdf4df4ce32e98c63d7cc72
index 07048aa..51566f6 100644 (file)
@@ -140,9 +140,29 @@ AC_SUBST(LIBXML_PKG)
 AC_SUBST(XML_LIBS)
 AC_SUBST(XML_CFLAGS)
 
+dnl popt checks
 GST_CHECK_LIBHEADER(POPT, popt, poptStrippedArgv,, popt.h, POPT_LIBS="-lpopt",
-  AC_MSG_ERROR([popt 1.5 or newer is required to build gstreamer. You can
-download the latest version from ftp://people.redhat.com/sopwith/popt/]))
+  AC_MSG_ERROR([popt 1.6.1 or newer is required to build gstreamer. You can
+                download the latest version from 
+                ftp://people.redhat.com/sopwith/popt/])
+)
+AC_MSG_NOTICE(Checking for POPT_TABLEEND)
+AC_TRY_RUN([
+#include <popt.h>
+int main ()
+{
+#ifndef POPT_TABLEEND
+  return 1;
+#else
+  return 0;
+#endif
+}
+],, [
+  dnl it failed
+  AC_MSG_ERROR([popt 1.6.1 or newer is required to build gstreamer. You can
+                download the latest version from 
+                ftp://people.redhat.com/sopwith/popt/])
+])
 
 dnl Check for atomic.h
 dnl Note: use AC_CHECK_HEADER not AC_CHECK_HEADERS, because the latter