summaryrefslogtreecommitdiffstats
path: root/dhash
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-04-08 16:46:15 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-04-12 09:21:48 -0400
commit52fe67cfc9d427495e237acf9468f3cf94393007 (patch)
tree5109c3b5551aa096873264d83e836f397ca16df5 /dhash
parentb5a5108f1d4c45fb5d27698ce2c9ba95b95411ba (diff)
downloadding-libs-52fe67cfc9d427495e237acf9468f3cf94393007.tar.gz
ding-libs-52fe67cfc9d427495e237acf9468f3cf94393007.tar.xz
ding-libs-52fe67cfc9d427495e237acf9468f3cf94393007.zip
Support docdir and abs_builddir
Old versions of autoconf (before 2.60) did not include support for the docdir and abs_builddir variables. This patch emulates support for them. Fixes https://fedorahosted.org/sssd/ticket/422
Diffstat (limited to 'dhash')
-rw-r--r--dhash/configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/dhash/configure.ac b/dhash/configure.ac
index 1012afb..bf06cfc 100644
--- a/dhash/configure.ac
+++ b/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