diff -Naur e2fsprogs-1.42.10/configure.in e2fsprogs-1.42.10.patch/configure.in
--- e2fsprogs-1.42.10/configure.in	2014-05-15 19:04:08.000000000 +0200
+++ e2fsprogs-1.42.10.patch/configure.in	2014-06-04 13:19:36.701586827 +0200
@@ -1328,8 +1328,8 @@
    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
    BUILD_LDFLAGS="$LDFLAGS"
 else
-   BUILD_CFLAGS=
-   BUILD_LDFLAGS=
+   BUILD_CFLAGS="$BUILD_CFLAGS $INCLUDES -DHAVE_CONFIG_H"
+   BUILD_LDFLAGS="$BUILD_LDFLAGS"
 fi
 AC_SUBST(BUILD_CFLAGS)
 AC_SUBST(BUILD_LDFLAGS)
