Whamcloud - gitweb
b=22615 fixes for regressions caused by 11063
[fs/lustre-release.git] / debian / rules
index 09003ad..53fa04f 100755 (executable)
@@ -77,6 +77,11 @@ SRCDIR=.
 
 autogen: autogen-stamp
 autogen-stamp: patch-stamp
+       # see if any patches requires us to run autogen
+       if ! grep "^--- .*\/autoconf" debian/patches/* || \
+          [ ! -f autogen.sh ]; then \
+               exit 0; \
+       fi
        cp /usr/share/misc/config.sub config.sub
        cp /usr/share/misc/config.sub libsysio/config.sub
        cp /usr/share/misc/config.sub ldiskfs/config.sub