summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2018-12-03 06:00:40 +0100
committerAllan McRae <allan@archlinux.org>2018-12-03 06:18:27 +0100
commitf615f7bd5ae2764bd58e2947e0f33e75fa182078 (patch)
tree6f790fc3f377852f4986541b7e5324d3a3c92434
parent5fc3056e6a89bda51d48fe6273fe5e6e2ae986d9 (diff)
downloadpacman-f615f7bd5ae2764bd58e2947e0f33e75fa182078.tar.gz
pacman-f615f7bd5ae2764bd58e2947e0f33e75fa182078.tar.xz
configure.ac: use $datarootdir instead of $prefix/share
Even worse, makepkg-template ignored $prefix completely.
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index c369ca74..ba54c2dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,7 +101,7 @@ AC_ARG_WITH(buildscript,
# Help line for buildscript filename
AC_ARG_WITH(makepkg-template-dir,
AS_HELP_STRING([--with-makepkg-template-dir=name], [set the template dir used by makepkg-template]),
- [TEMPLATE_DIR=$withval], [TEMPLATE_DIR=/usr/share/makepkg-template])
+ [TEMPLATE_DIR=$withval], [TEMPLATE_DIR=${datarootdir}/makepkg-template])
# Help line for debug package suffix
AC_ARG_WITH(debug-suffix,
@@ -216,7 +216,7 @@ AC_CHECK_LIB([m], [fabs], ,
AC_MSG_ERROR([libm is needed to compile pacman!]))
PKG_CHECK_VAR(bashcompdir, [bash-completion], [completionsdir], ,
- bashcompdir="${prefix}/share/bash-completion/completions")
+ bashcompdir="${datarootdir}/bash-completion/completions")
# Check for libarchive
PKG_CHECK_MODULES(LIBARCHIVE, [libarchive >= 3.0.0], ,