process: Avoid stealing pclose()'s exit status.
[sliver-openvswitch.git] / acinclude.m4
index 17283b1..0036ac1 100644 (file)
@@ -118,7 +118,7 @@ AC_DEFUN([OFP_ENABLE_EXT],
        HAVE_EXT=no
        ;;
      (*)
-       if test -e "$srcdir/ext/configure"; then
+       if test -e "$srcdir/ext/automake.mk"; then
          HAVE_EXT=yes
        else
          HAVE_EXT=no
@@ -126,14 +126,20 @@ AC_DEFUN([OFP_ENABLE_EXT],
        ;;
    esac
    if test $HAVE_EXT = yes; then
-     if test -e "$srcdir/ext/configure"; then
+     if test -e "$srcdir/ext/automake.mk"; then
        :
      else
        AC_MSG_ERROR([cannot configure extensions without "ext" directory])
      fi
-     AC_CONFIG_SUBDIRS([ext])
      AC_DEFINE([HAVE_EXT], [1], 
                [Whether the OpenFlow extensions submodule is available])
    fi
-   AC_SUBST([ofp_top_srcdir], ['$(top_srcdir)'])
    AM_CONDITIONAL([HAVE_EXT], [test $HAVE_EXT = yes])])
+
+dnl Checks for dpkg-buildpackage.  If this is available then we check
+dnl that the Debian packaging is functional at "make distcheck" time.
+AC_DEFUN([OFP_CHECK_DPKG_BUILDPACKAGE],
+  [AC_CHECK_PROG([HAVE_DPKG_BUILDPACKAGE], [dpkg-buildpackage], [yes], [no])
+   AM_CONDITIONAL([HAVE_DPKG_BUILDPACKAGE], 
+                  [test $HAVE_DPKG_BUILDPACKAGE = yes])])
+