--- a/src/configure.ac
+++ b/src/configure.ac
@@ -351,6 +351,12 @@
 #echo LIBXAPIANDIR: $LIBXAPIANDIR
 #echo LIBXAPIANSTATICEXTRA: $LIBXAPIANSTATICEXTRA
 #echo XAPIANCXXFLAGS: $XAPIANCXXFLAGS
+
+AC_ARG_ENABLE(xadump, 
+    AC_HELP_STRING([--enable-xadump],
+   [Enable building the xadump low level Xapian access program.]),
+        enableQT=$enableval, enableXADUMP="yes")
+AM_CONDITIONAL(MAKEXADUMP, [test X$enableXADUMP = Xyes])
 
 #### QT
 # The way qt and its tools (qmake especially) are installed is very