summaryrefslogtreecommitdiff
blob: 8933c41f59f733202227ae0178e9dace05b8769a (plain)
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
diff -Nur kdesdk-3.4.2.orig/kioslave/svn/configure.in.bot kdesdk-3.4.2/kioslave/svn/configure.in.bot
--- kdesdk-3.4.2.orig/kioslave/svn/configure.in.bot	2005-05-23 14:08:56.000000000 +0200
+++ kdesdk-3.4.2/kioslave/svn/configure.in.bot	2005-07-26 14:17:35.000000000 +0200
@@ -1,4 +1,4 @@
-if test -z "$SVN_SUBDIR"; then
+if test "x$with_subversion" = xcheck && test -z "$SVN_SUBDIR"; then
   echo ""
   echo "You're missing Subversion libraries (1.x)"
   echo "KDE will not be able to browse Subversion repositories without it,"
@@ -7,4 +7,3 @@
   echo ""
   all_tests=bad
 fi
-
diff -Nur kdesdk-3.4.2.orig/kioslave/svn/configure.in.in kdesdk-3.4.2/kioslave/svn/configure.in.in
--- kdesdk-3.4.2.orig/kioslave/svn/configure.in.in	2005-05-23 14:08:56.000000000 +0200
+++ kdesdk-3.4.2/kioslave/svn/configure.in.in	2005-07-26 14:17:59.000000000 +0200
@@ -1,3 +1,11 @@
+AC_ARG_WITH(subversion,
+  [AC_HELP_STRING(--with-subversion,
+    [enable support for subversion @<:@default=check@:>@])],
+  [], with_subversion=check)
+
+SVN_SUBDIR=""
+if test "x$with_subversion" != xno; then
+
 APR_CONFIGS="apr-config /usr/local/apr/bin/apr-config"
 SVN_SUBDIR="svn"
 AC_ARG_WITH(apr-config,
@@ -137,6 +145,11 @@
 SVN_INCLUDE="$SVN_INCLUDE $APR_INCLUDE"
 SVN_CPPFLAGS="$APR_CPPFLAGS $SVN_CPPFLAGS"
 
+if test "x$with_subversion" != xcheck && test -z "$SVN_SUBDIR"; then
+  AC_MSG_ERROR([--with-subversion was given, but test for subversion failed])
+fi
+fi
+
 AC_SUBST(SVN_INCLUDE)
 AC_SUBST(SVN_LIB)
 AC_SUBST(SVN_CPPFLAGS)