1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
Index: kscreensaver/kxsconfig/configure.in.bot
===================================================================
--- kscreensaver/kxsconfig/configure.in.bot (revision 428301)
+++ kscreensaver/kxsconfig/configure.in.bot (working copy)
@@ -1,4 +1,4 @@
-if test "$XSCREENSAVER" = "NO"; then
+if test "x$with_xscreensaver" = xcheck && test "$XSCREENSAVER" = "NO"; then
echo ""
echo "xscreensaver could not be detected on your system."
echo "Check www.jwz.org/xscreensaver if you're loving to"
Index: kscreensaver/kxsconfig/configure.in.in
===================================================================
--- kscreensaver/kxsconfig/configure.in.in (revision 428301)
+++ kscreensaver/kxsconfig/configure.in.in (working copy)
@@ -22,7 +22,14 @@
done
IFS=$old_IFS
-KDE_FIND_PATH(lib$kdelibsuff/xscreensaver/flame, XSCREENSAVER, [ $xscreensaver_prefixes ],
+AC_ARG_WITH(xscreensaver,
+ [AS_HELP_STRING(--with-xscreensaver,
+ [enable support for xscreensaver @<:@default=check@:>@])],
+ [], with_xscreensaver=check)
+
+XSCREENSAVER=NO
+if test "x$with_xscreensaver" != xno; then
+ KDE_FIND_PATH(lib$kdelibsuff/xscreensaver/flame, XSCREENSAVER, [ $xscreensaver_prefixes ],
[
KDE_FIND_PATH(lib/xscreensaver/flame, XSCREENSAVER, [ $xscreensaver_prefixes ],
[
@@ -38,6 +45,11 @@
])
])
+ if test "x$with_xscreensaver" != xcheck && test "x$XSCREENSAVER" = xNO; then
+ AC_MSG_FAILURE([--with-xscreensaver was given, but test for xscreensaver failed])
+ fi
+fi
+
XSCREENSAVER_HACKS_DIR=
if test "$XSCREENSAVER" != "NO"; then
|