summaryrefslogtreecommitdiff
path: root/network/hydra/configure.patch
blob: c1cfadfe93ec44e23c5bed32d148c3e406422aec (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--- configure.old	2007-04-08 23:15:36.000000000 +0200
+++ configure	2007-04-08 23:16:55.000000000 +0200
@@ -118,11 +118,11 @@
     echo "                              ... NOT found, module postgres disabled"
 fi
 
-echo "Checking for SVN (ibsvn_client-1 libapr-0.so libaprutil-0.so) ..."
+echo "Checking for SVN (ibsvn_client-1 libapr-1.so libaprutil-1.so) ..."
 for i in  $LIBDIRS /lib  /usr/lib /usr/local/lib /opt/local/lib .
 do
     if [ "X" = "X$SVN_PATH" ]; then
-        if [ -f "$i/libsvn_client-1.so" ]&&[ -f "$i/libapr-0.so" ]&&[ -f "$i/libaprutil-0.so" ]; then
+        if [ -f "$i/libsvn_client-1.so" ]&&[ -f "$i/libapr-1.so" ]&&[ -f "$i/libaprutil-1.so" ]; then
             SVN_PATH="$i"
         fi
     fi
@@ -202,8 +202,8 @@
         fi
     fi  
     if [ "X" = "X$APR_IPATH" ]; then
-        if [ -d "$i/apr-0" ]; then
-            APR_IPATH="$i/apr-0"
+        if [ -d "$i/apr-1" ]; then
+            APR_IPATH="$i/apr-1"
         fi
     fi  
 done
@@ -220,8 +220,8 @@
         fi
     fi  
     if [ "X" = "X$APR_IPATH" ]; then
-        if [ -d "$i/apr-0" ]; then
-            APR_IPATH="$i/apr-0"
+        if [ -d "$i/apr-1" ]; then
+            APR_IPATH="$i/apr-1"
         fi
     fi  
 done
@@ -334,6 +334,9 @@
 if [ -n "$SSH_PATH" ]; then
     XDEFINES="$XDEFINES -DLIBSSH"
 fi
+
+XDEFINES="$XDEFINES -D_GNU_SOURCE"
+
 OLDPATH=""
 for i in $SSL_PATH $CRYPTO_PATH $SSH_PATH $NSL_PATH $SOCKET_PATH $RESOLV_PATH $SAPR3_PATH $POSTGRES_PATH $SVN_PATH; do
     if [ "$OLDPATH" = "$i" ]; then
@@ -379,10 +382,10 @@
     XLIBS="$XLIBS -lpq"
 fi
 if [ -n "$SVN_PATH" ]; then
-    XLIBS="$XLIBS -lsvn_client-1 -lapr-0 -laprutil-0"
+    XLIBS="$XLIBS -lsvn_client-1 -lapr-1 -laprutil-1"
 fi
 if [ -n "$SVN_PATH" ]; then
-    XLIBS="$XLIBS -lsvn_client-1 -lapr-0 -laprutil-0"
+    XLIBS="$XLIBS -lsvn_client-1 -lapr-1 -laprutil-1"
 fi
 if [ -n "$SSH_PATH" ]; then
     XLIBS="$XLIBS -lssh"