aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--configure.in11
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 <ettore@ximian.com>
+
+ [Patch by Frank Belew <frb@ximian.com>.]
+
+ * configure.in: If no --with-kde-applnk-path is given, try to
+ detect the directory using `kde-config'.
+
2002-07-22 Dan Winship <danw@ximian.com>
* 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)