Hey.

Retrying this 2/17's cvs and, again, it ignored --with-ssl=/usr/local/ssl, 
neither setting HAVE_SSL_H nor including -I/usr/local/ssl/include in 
CFLAGS (actually, I mean CXXFLAGS - though CFLAGS may be being reset). The 
first seems due to configure's:
if test "${with_ssl+set}" = set; then
  withval="$with_ssl"
     echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    for dir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg 
/usr/local
 /usr; do
        ssldir="$dir"
        if test -f "$dir/include/openssl/ssl.h"; then
            found_ssl="yes";
            CFLAGS="$CFLAGS -I$ssldir/include/openssl -DHAVE_SSL";
            break;
        fi
        if test -f "$dir/include/ssl.h"; then
            found_ssl="yes";
            CFLAGS="$CFLAGS -I$ssldir/include/ -DHAVE_SSL";
            break
        fi
    done
    if test x_$found_ssl != x_yes; then
        { { echo "$as_me:$LINENO: error: Cannot find ssl libraries" >&5
echo "$as_me: error: Cannot find ssl libraries" >&2;}
   { (exit 1); exit 1; }; }
    else
        printf "OpenSSL found in $ssldir\n";
        LIBS="$LIBS -lssl -lcrypto";
        LDFLAGS="$LDFLAGS -L$ssldir/lib";
        HAVE_SSL=yes
    fi


which sets HAVE_SSL, and not HAVE_SSL_H.  I added
            CXXFLAGS="$CXXFLAGS -I$ssldir/include/openssl -DHAVE_SSL";

but that's doesn' work as the SSL routines include
#ifdef HAVE_SSL_H
#include <openssl/crypto.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
so:
            CXXFLAGS="$CXXFLAGS -I$ssldir/include/ -DHAVE_SSL";

and then (adding HAVE_SSL_H to the flags list too):
HAVE_SSL_H=yes

The 2nd seems to be:
if test $WITH_RX = no; then
 echo "$as_me:$LINENO: checking if we should use the included regex?" >&5
echo $ECHO_N "checking if we should use the included regex?... $ECHO_C" 
>&6
 OLD_CFLAGS=$CFLAGS
 CFLAGS="$CFLAGS -I${srcdir}/htlib"
 if test "$cross_compiling" = yes; then
  echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6;cat >>confdefs.h <<\_ACEOF
#define HAVE_BROKEN_REGEX 1
_ACEOF

else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
...
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext 
conftest.$ac_objext
conftest.$ac_ext
fi           # if test $WITH_RX=no
 CFLAGS=$OLD_CFLAGS
fi            # ?????

which resets CFLAGS regardless of OLD_FLAGS being set?  This line should 
be moved into the if section:
 CFLAGS=$OLD_CFLAGS

And, it appears the problem is that CXXFLAGS needs to have the SSL include 
path added to it.  I munged things to do that, but I'm sure there's a 
cleaner way.

and finally,
make distclean 
gets:

if "X" = "Xtest" ; \
then \
        rm -f test/Makefile test/test_functions ; \
fi
Unrecognized option: =
use: X [:<display>] [option]

from:
distclean-local:
        if "X$(TESTDIR)" = "Xtest" ; \
        then \
                rm -f test/Makefile test/test_functions ; \
        fi

s/b ??
distclean-local:
        if test "X$(TESTDIR)" = "Xtest"  ; \
        then \
                rm -f test/Makefile test/test_functions ; \
        fi


Andy Bach, Sys. Mangler
Internet: [EMAIL PROTECTED] 
VOICE: (608) 261-5738  FAX 264-5030

"If you don't say anything, you won't be called on to repeat it" 
Calvin Coolidge


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to