summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/dhash/configure.ac6
-rw-r--r--src/configure.ac1
2 files changed, 7 insertions, 0 deletions
diff --git a/common/dhash/configure.ac b/common/dhash/configure.ac
index 1012afbbd..bf06cfc5a 100644
--- a/common/dhash/configure.ac
+++ b/common/dhash/configure.ac
@@ -21,5 +21,11 @@ AC_ARG_ENABLE([trace],
[trace_level="0"])
AS_IF([test ["$trace_level" -gt "0"] -a ["$trace_level" -lt "8"] ],[AC_SUBST([TRACE_VAR],["-DTRACE_LEVEL=$trace_level"])])
+#Support old versions of autotools that don't provide docdir
+AC_SUBST([docdir])
+if test x$docdir = x; then
+ AC_SUBST([docdir], ${datadir}/doc/AC_PACKAGE_NAME)
+fi
+
AC_CONFIG_FILES([Makefile dhash.pc])
AC_OUTPUT
diff --git a/src/configure.ac b/src/configure.ac
index 40dac37ce..834439054 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -153,6 +153,7 @@ AM_CONDITIONAL([HAVE_CHECK], [test x$have_check != x])
abs_build_dir=`pwd`
AC_DEFINE_UNQUOTED([ABS_BUILD_DIR], ["$abs_build_dir"], [Absolute path to the build directory])
+AC_SUBST([abs_builddir], $abs_build_dir)
AC_CONFIG_FILES([Makefile examples/rwtab doxy.config po/Makefile.in])
AC_OUTPUT