summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/libwww/files/libwww-5.4.0-autoconf-gentoo.diff')
-rw-r--r--net-libs/libwww/files/libwww-5.4.0-autoconf-gentoo.diff33
1 files changed, 33 insertions, 0 deletions
diff --git a/net-libs/libwww/files/libwww-5.4.0-autoconf-gentoo.diff b/net-libs/libwww/files/libwww-5.4.0-autoconf-gentoo.diff
new file mode 100644
index 000000000000..38b08d6a9468
--- /dev/null
+++ b/net-libs/libwww/files/libwww-5.4.0-autoconf-gentoo.diff
@@ -0,0 +1,33 @@
+diff -urN w3c-libwww-5.4.0.ORIG/configure.ac w3c-libwww-5.4.0/configure.ac
+--- w3c-libwww-5.4.0.ORIG/configure.ac 2004-03-13 00:45:36.985124000 +0900
++++ w3c-libwww-5.4.0/configure.ac 2004-03-13 00:49:13.225250888 +0900
+@@ -623,19 +623,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=""