aboutsummaryrefslogtreecommitdiffstats
path: root/security/drweb-sendmail/files/patch-aa
blob: 51dfa198b8ca3cacb9ccc1a89909bc07460d2b0d (plain) (blame)
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
62
63
64
65
66
67
68
69
70
71
72
73
--- configure.orig  Thu May 16 16:59:30 2002
+++ configure   Wed Jun 12 11:40:12 2002
@@ -104,7 +104,7 @@
     if [ "$INPUT" != "y" -a "x$INPUT" != "x" ] ; then
         MILTER_VER="FFR"
     fi    
-    if [ $MILTER_VER = "STD" ] ; then
+    if [ $MILTER_VER = "xSTD" ] ; then
         SM_LIB="libsm"
         SM_LIB_CMD="-lsm"
     elif [ $OS = "Linux" ] ; then
@@ -114,52 +114,6 @@
         SM_LIB=""
         SM_LIB_CMD=""
     fi
-    if [ ! -f include/libmilter/mfapi.h ] ; then
-        echo "no include/libmilter/mfapi.h"
-    fi
-    if [ ! -f include/libmilter/mfdef.h ] ; then
-        echo "no include/libmilter/mfdef.h"
-    fi
-    if [ "x$SM_LIB" != "x" -a ! -f "lib/$SM_LIB.a" ] ; then
-        NO_ADD="yes"        
-        echo "no lib/$SM_LIB.a"        
-    else
-        NO_ADD="no"
-    fi
-    if [ ! -f lib/libmilter.a ] ; then
-        echo "no lib/libmilter.a"
-    fi
-    if [ ! -f include/libmilter/mfapi.h\
-         -o\
-         ! -f include/libmilter/mfdef.h\
-         -o\
-         ! -f lib/libmilter.a\
-         -o $NO_ADD = "yes" ] ; then
-        echo 
-        echo "Please copy (or make symlinks) for next files:"
-        echo "in ./include/libmilter directory mfapi.h and mfdef.h"
-        echo $n "in ./lib directory libmilter.a"
-        if [ $SM_LIB = "libsm" -a $OS = "Linux" ] ; then
-            echo " and libsm.a" 
-        elif [ $SM_LIB = "libsmutil" ] ; then
-            echo " and libsmutil.a" 
-        else
-            echo
-        fi
-        echo
-        echo "So you should have next tree:"
-        echo "include/libmilter/mfapi.h"
-        echo "                  mfdef.h"
-        echo "lib/libmilter.a"
-        if [ $SM_LIB = "libsm" -a $OS = "Linux" ] ; then
-            echo "    libsm.a" 
-        elif [ $SM_LIB = "libsmutil" ] ; then
-            echo "    libsmutil.a" 
-        fi
-        echo 
-        echo "Do it and try again"
-        exit 1
-    fi
 else
     DRWEB_SM=""
 fi 
@@ -261,7 +215,7 @@
 if [ "x$BSD_MAKE" = "xyes" ] ; then
     COMPILE_RULE_1=".c.o:"
     COMPILE_RULE_2="   \$(CC) -c \$(ADD_CFLAGS) -D__SIGNAL_BASED_DW \${.ALLSRC}"
-    COMPILE_RULE_3="   \$(CC) -c \$(ADD_CFLAGS) -D__THREAD_BASED_DW \${.ALLSRC} -o \${.PREFIX}_r.o"
+    COMPILE_RULE_3="   \$(CC) -c \$(ADD_CFLAGS) -D_THREAD_SAFE -D__THREAD_BASED_DW \${.ALLSRC} -o \${.PREFIX}_r.o"
     COMPILE_RULE_4=""
 else
     COMPILE_RULE_1="%.o: %.c"