summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2011-10-10 10:08:17 +0200
committerChristian Ruppert <idl0r@gentoo.org>2011-10-10 10:08:17 +0200
commit5de3db2e94524ec86dd7c7403fe9ceb19c03232d (patch)
treeb5a8a90d422dace67b571565e11309037f717b93
parentcf0b900629d2dea913b312b91f36b8f38fd6aec5 (diff)
downloadxine-lib-5de3db2e94524ec86dd7c7403fe9ceb19c03232d.tar.gz
xine-lib-5de3db2e94524ec86dd7c7403fe9ceb19c03232d.tar.bz2
Throw an error if libxdg-basedir has not been found but --with-external-libxdg-basedir has been used
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 135c45a66..c55f23a0f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -246,6 +246,10 @@ AC_ARG_WITH([external-libxdg-basedir],
have_xdg_basedir=no
if test x"$with_external_libxdg_basedir" != x"no"; then
PKG_CHECK_MODULES([XDG_BASEDIR], [libxdg-basedir >= 1], [have_xdg_basedir=yes], [have_xdg_basedir=no])
+
+ if test x"$have_xdg_basedir" = x"no" -a x"$with_external_libxdg_basedir" = x"yes"; then
+ AC_MSG_ERROR([--with-external-libxdg-basedir used but no libxdg-basedir found])
+ fi
fi
if test x"$have_xdg_basedir" = xyes; then
XDG_BASEDIR_REQUIRES="libxdg-basedir"