blob: 073eab6bd7949c334e052bffb800740cedae9d23 (
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
|
--- setup.py.orig Fri Feb 13 08:55:47 2004
+++ setup.py Fri Feb 13 08:57:30 2004
@@ -71,22 +71,22 @@
# the crypto engine name : openssl, gnutls or nss
xmlsec1_crypto = "openssl"
-if 'build' in sys.argv:
- msg = '\nChoose a crypto engine :\n' \
- ' 1. OpenSSL\n' \
- ' 2. GnuTLS\n' \
- ' 3. NSS\n' \
- 'Your choice : '
- reply = raw_input(msg)
- choice = None
- if reply:
- choice = reply[0]
- if choice == '1':
- xmlsec1_crypto = "openssl"
- elif choice == '2':
- xmlsec1_crypto = "gnutls"
- elif choice == '3':
- xmlsec1_crypto = "nss"
+#if 'build' in sys.argv:
+# msg = '\nChoose a crypto engine :\n' \
+# ' 1. OpenSSL\n' \
+# ' 2. GnuTLS\n' \
+# ' 3. NSS\n' \
+# 'Your choice : '
+# reply = raw_input(msg)
+# choice = None
+# if reply:
+# choice = reply[0]
+# if choice == '1':
+# xmlsec1_crypto = "openssl"
+# elif choice == '2':
+# xmlsec1_crypto = "gnutls"
+# elif choice == '3':
+# xmlsec1_crypto = "nss"
define_macros = []
include_dirs = []
@@ -104,7 +104,10 @@
if flag[2:] not in include_dirs:
include_dirs.append(flag[2:])
elif flag[:2] == "-D":
- t = tuple(flag[2:].split('='))
+ t = flag[2:].split('=')
+ if (len(t) == 1):
+ t.append('1')
+ t = tuple(t)
if t not in define_macros:
define_macros.append(t)
else:
|