summaryrefslogtreecommitdiff
blob: c4dea38cc67aa4c365203f8604862e817ba85ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/configure.ac b/configure.ac
index 647325d..1551c13 100644
--- a/configure.ac
+++ b/configure.ac
@@ -175,9 +175,12 @@ AC_DEFINE_UNQUOTED(DATA_DIR, "$dir", [datadir])
 m4_pattern_allow(PKG_DATA_DIR)
 AC_DEFINE_UNQUOTED([PKG_DATA_DIR], "$dir/$PACKAGE", [pkgdatadir])
 m4_pattern_allow(PKG_DOC_DIR)
-AC_DEFINE_UNQUOTED([PKG_DOC_DIR], "$dir/doc/$PACKAGE",
+
+expanded_docdir=`eval echo ${docdir}`
+TH_EXPAND_VARS(expanded_docdir)
+AC_DEFINE_UNQUOTED([PKG_DOC_DIR], "$expanded_docdir",
            [Where package's documentation is installed])
-AC_SUBST(pkgdocdir, ["$dir/doc/$PACKAGE"])
+AC_SUBST(pkgdocdir, ["$expanded_docdir"])
 m4_pattern_allow(ICON_DIR)
 pkgicondir="$dir/icons/hicolor/scalable/apps"
 AC_DEFINE_UNQUOTED([ICON_DIR], "$pkgicondir", [Icon dir])