summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 787c0d7d59..4ec23cabe0 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -21,12 +21,15 @@ dnl Place all of the extra autoconf files into the config subdirectory
AC_CONFIG_AUX_DIR([autoconf])
dnl Quit if the source directory has already been configured.
-if test -f ${srcdir}/include/Config/config.h
+dnl NOTE: This relies upon undocumented autoconf behavior.
+if test ${srcdir} != "."
then
- AC_MSG_ERROR([Already configured in ${srcdir}])
+ if test -f ${srcdir}/include/Config/config.h
+ then
+ AC_MSG_ERROR([Already configured in ${srcdir}])
+ fi
fi
-
dnl Configure a header file
AC_CONFIG_HEADERS(include/Config/config.h)
AC_CONFIG_MAKEFILE(Makefile)