blob: 01058215f3269a589e80cba3b011dd9ad8331a3f (
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
|
diff -urN w3c-libwww-5.4.0.ORIG/configure.in w3c-libwww-5.4.0/configure.in
--- w3c-libwww-5.4.0.ORIG/configure.in 2002-06-12 18:26:46.000000000 +0900
+++ w3c-libwww-5.4.0/configure.in 2003-10-02 18:43:41.000000000 +0900
@@ -618,19 +618,16 @@
ssllib="-L/usr/lib -lssl -lcrypto"
fi
dnl find the ssl include dir (empirical)
-if test -d '/usr/local/ssl/include'; then
- sslinc="-I/usr/local/ssl/include"
-elif test -d '/usr/local/openssl/include'; then
- sslinc="-I/usr/local/openssl/include"
-elif test -d '/usr/local/include/openssl'; then
- sslinc="-I/usr/local/include/openssl"
-elif test -d '/usr/include/ssl'; then
- sslinc="-I/usr/include/ssl"
-elif test -d '/usr/include/openssl'; then
- sslinc="-I/usr/include/openssl"
-else
- sslinc=""
-fi
+ssldir=""
+for ssldir in /usr/local/ssl/include \
+ /usr/local/openssl/include \
+ /usr/local/include/openssl \
+ /usr/include/ssl \
+ /usr/include/openssl ; do
+ if test -d $ssldir -a -f $ssldir/ssl.h ; then
+ sslinc="-I$ssldir"
+ fi
+done
WWWSSL=""
SSLINC=""
LIBSSL=""
|