[f-spot] Use AC_ARG_WITH optional args for g-ss detection
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot] Use AC_ARG_WITH optional args for g-ss detection
- Date: Wed, 2 Sep 2009 11:36:38 +0000 (UTC)
commit b7272ab72076d915983f86f9169f749c70a0824d
Author: Loïc Minier <lool dooz org>
Date: Wed Sep 2 10:58:34 2009 +0200
Use AC_ARG_WITH optional args for g-ss detection
Use nicer AC_ARG_WITH syntax with optional args to set the
gnome-screensaver prefix.
Signed-off-by: Stephane Delcroix <stephane delcroix org>
configure.ac | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8fd5a4c..7507f29 100644
--- a/configure.ac
+++ b/configure.ac
@@ -224,13 +224,10 @@ if test "x$with_turtle" != "xno"; then
AC_SUBST(TURTLEDIR)
fi
-AC_ARG_WITH(gnome-screensaver,[ --with-gnome-screensaver=PREFIX set gnome gnome-screensaver prefix])
-
-if test "x$with_gnome_screensaver" != "x"; then
- gnome_screensaver_prefix=$with_gnome_screensaver
-else
- gnome_screensaver_prefix=$prefix
-fi
+AC_ARG_WITH(gnome-screensaver,
+ [ --with-gnome-screensaver=PREFIX set gnome gnome-screensaver prefix],
+ gnome_screensaver_prefix=$with_gnome_screensaver,
+ gnome_screensaver_prefix=$prefix)
PKG_CHECK_EXISTS(gnome-screensaver, have_gs_pkgconfig=yes, have_gs_pkgconfig=no)
if test "$have_gs_pkgconfig" = "yes"; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]