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
74
75
|
--- configure.orig Wed Dec 17 23:54:50 2003
+++ configure Fri Aug 26 11:59:28 2005
@@ -20,17 +20,17 @@
while [ $# -gt 0 ]; do
case "$1" in
--qtdir=*)
- QTDIR=`expr "${1}" : "--qtdir=\(.*\)"`
+ QTDIR="${1#--qtdir=}"
shift
;;
--with-openssl-inc=*)
- QC_WITH_OPENSSL_INC=`expr "${1}" : "--with-openssl-inc=\(.*\)"`
+ QC_WITH_OPENSSL_INC="${1#--with-openssl-inc=}"
shift
;;
--with-openssl-lib=*)
- QC_WITH_OPENSSL_LIB=`expr "${1}" : "--with-openssl-lib=\(.*\)"`
+ QC_WITH_OPENSSL_LIB="${1#--with-openssl-lib=}"
shift
;;
@@ -84,7 +86,7 @@
echo Warning: qmake not in \$QTDIR/bin/qmake
echo trying to find it in \$PATH
fi
- qm=`type -p qmake`
+ qm=`which qmake`
if [ -x "$qm" ]; then
if [ "$QC_DEBUG" = "Y" ]; then
echo qmake found in $qm
@@ -144,8 +146,6 @@
s = conf->getenv("QC_WITH_OPENSSL_LIB");
if(!s.isEmpty()) {
- if(!conf->checkLibrary(s, "ssl"))
- return false;
lib = s;
}
else {
@@ -175,6 +175,19 @@
if(ret == 0)
conf->addDefine("OSSL_097");
+ // is it at least openssl 0.9.8?
+ str =
+ "#include<openssl/opensslv.h>\n"
+ "int main()\n"
+ "{\n"
+ " unsigned long x = OPENSSL_VERSION_NUMBER;\n"
+ " if(x >= 0x00908000) return 0; else return 1;\n"
+ "}\n";
+ if(!conf->doCompileAndLink(str, ext, &ret))
+ return false;
+ if(ret == 0)
+ conf->addDefine("OSSL_098");
+
if(!inc.isEmpty())
conf->addIncludePath(inc);
if(kb)
@@ -570,13 +583,6 @@
echo
exit 1;
fi
-cat >Makefile.tmp <<EOT
-export QTDIR = $QTDIR
-EOT
-cat Makefile >> Makefile.tmp
-rm -f Makefile
-cp -f Makefile.tmp Makefile
-rm -f Makefile.tmp
echo
echo Good, your configure finished. Now run \'make\'.
|