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=""