'just wondering if this might be helpful in determining the correct
libraries / include path when RSA SSL-C is used as SSL toolkit.

Thanks
-Madhu

Index: acinclude.m4
===================================================================
RCS file: /home/cvspublic/httpd-2.0/acinclude.m4,v
retrieving revision 1.126
diff -u -r1.126 acinclude.m4
--- acinclude.m4        16 Jul 2002 18:33:05 -0000      1.126
+++ acinclude.m4        22 Jul 2002 21:09:57 -0000
@@ -475,7 +475,7 @@
   ap_ssltk_libdir=""
   for p in $ap_ssltk_base/lib /usr/local/openssl/lib \
            /usr/local/ssl/lib /usr/local/lib /usr/lib /lib /usr/lib64; do
-    if test -f "$p/libssl.a" -o -f "$p/libssl.so"; then
+    if test -f "$p/libssl.a" -o -f "$p/libssl.so" -o -f "$p/libsslc.a";
then
       ap_ssltk_libdir="$p"
       break
     fi
@@ -486,7 +486,6 @@
   AC_MSG_RESULT($ap_ssltk_libdir)
 
   dnl #  annotate the Apache build environment with determined information
-  APR_ADDTO(INCLUDES, [-I$ap_ssltk_incdir/openssl])
   if test "x$ap_ssltk_incdir" != "x/usr/include"; then
     APR_ADDTO(INCLUDES, [-I$ap_ssltk_incdir])
   fi
@@ -496,7 +495,12 @@
       APR_ADDTO(LDFLAGS, [$ap_platform_runtime_link_flag$ap_ssltk_libdir])
     fi
   fi
-  APR_ADDTO(LIBS, [-lssl -lcrypto])
+  if test -f "$ap_ssltk_libdir/libsslc.a"; then
+    APR_ADDTO(LIBS, [-lsslc -lrcom])
+  else
+    APR_ADDTO(INCLUDES, [-I$ap_ssltk_incdir/openssl])
+    APR_ADDTO(LIBS, [-lssl -lcrypto])
+  fi
   ap_cv_ssltk="$ap_ssltk_base"
 fi
 ])

Reply via email to