From c1dee244344d21d22213d97a62c3139d9607473b Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Wed, 24 Jul 2002 05:27:19 +0000 Subject: If no --with-kde-applnk-path is given, try to detect the directory using `kde-config'. svn path=/trunk/; revision=17565 --- ChangeLog | 7 +++++++ configure.in | 11 +++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a295d2e3d5..2e67321a30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2002-07-24 Ettore Perazzoli + + [Patch by Frank Belew .] + + * configure.in: If no --with-kde-applnk-path is given, try to + detect the directory using `kde-config'. + 2002-07-22 Dan Winship * acinclude.m4: Move EVO_CHECK_LIB into here, and also create diff --git a/configure.in b/configure.in index aef1c3f008..e1f299df48 100644 --- a/configure.in +++ b/configure.in @@ -1059,17 +1059,20 @@ dnl KDE applnk directory dnl ******************** AC_ARG_WITH(kde-applnk-path, [ --with-kde-applnk-path=PATH Location of KDE applnk files], [with_kde_applnk_path="$withval"]) -AC_MSG_CHECKING(for the KDE applnk directory) if test -z "$with_kde_applnk_path"; then with_kde_applnk_path="$prefix/share/applnk" fi if test -d "$with_kde_applnk_path" ; then - AC_MSG_RESULT("$with_kde_applnk_path" found) AC_DEFINE(HAVE_KDE_APPLNK) KDE_APPLNK_DIR="$with_kde_applnk_path" else - AC_MSG_RESULT(not found) - KDE_APPLNK_DIR="" + AC_PATH_PROG(KDECONFIG, kde-config) + if test -n "$KDECONFIG"; then + KDE_APPLNK_DIR=`$KDECONFIG --expandvars --install apps` + AC_DEFINE(HAVE_KDE_APPLNK) + else + KDE_APPLNK_DIR="" + fi fi AM_CONDITIONAL(HAVE_KDE_APPLNK, test x"$KDE_APPLNK_DIR" != x) AC_SUBST(KDE_APPLNK_DIR) -- cgit v1.2.3