summaryrefslogtreecommitdiffstats
path: root/patches/pure-ftpd-1.0.21/generic/configure_ac-virtuozzo-cacheable.diff
blob: d9da911c016bc7e207e0b5bcfc9fbb53fc3cadc1 (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
#
# Committed-By: Marc Kleine-Budde <mkl@pengutronix.de>, 2006-11-29
#
# Error:
#
# check for Virtuozzo is not cross aware, make it cacheable and added cross default value
#
# State:
#
# should be commited
#
Index: pure-ftpd-1.0.21/configure.ac
===================================================================
--- pure-ftpd-1.0.21.orig/configure.ac
+++ pure-ftpd-1.0.21/configure.ac
@@ -1109,13 +1109,19 @@ then
 SHA1 functions])
 fi
 
-AC_MSG_CHECKING([whether we are inside a Virtuozzo virtual host])
+AC_CACHE_CHECK([whether we are inside a Virtuozzo virtual host],
+  [ac_cv_virtuozzo],
+[
 if test -d /proc/vz; then
-  AC_MSG_RESULT(yes)
+  ac_cv_virtuozzo=yes
+else
+  ac_cv_virtuozzo=no
+fi
+])
+if test "x$ac_cv_virtuozzo" = xyes
+then
   AC_DEFINE(VIRTUOZZO,,[Define if you are inside a Virtuozzo virtual
 host])
-else
-  AC_MSG_RESULT(no)
 fi
 
 AC_MSG_CHECKING(default TCP send buffer size)