]> sjero.net Git - wget/commitdiff
[svn] Check whether #include <md5.h> works before deciding to use the Solaris
authorhniksic <devnull@localhost>
Mon, 3 Nov 2003 23:51:56 +0000 (15:51 -0800)
committerhniksic <devnull@localhost>
Mon, 3 Nov 2003 23:51:56 +0000 (15:51 -0800)
system md5 library.

ChangeLog
configure.in

index 4c2f61c46eeee14980a1914d1ee7e1224c9d504c..0fe079647f48eab8496e242d71572653a12a8244 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-04  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * configure.in: Also check whether #include <md5.h> works before
+       deciding to use Solaris libmd5.
+
 2003-11-03  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * configure.in: Look for nanosleep in -lrt and -lposix4, which is
index fa6410097dc989de69d3058578f8e93bb1027d7b..21a4cebb73e1dd2f6064b250f84b9a7f19dce477 100644 (file)
@@ -438,9 +438,14 @@ then
   dnl specific to the Solaris MD5 library.
   if test x"$found_md5" = xno; then
     AC_CHECK_LIB(md5, md5_calc, [
-      AC_DEFINE(HAVE_SOLARIS_MD5)
-      LIBS="-lmd5 $LIBS"
-      found_md5=yes
+      dnl There are programs that insert bogus <md5.h> in the include
+      dnl path.  That makes the system md5 library is useless to us.
+      AC_TRY_CPP([#include <md5.h>
+                 ], [
+        AC_DEFINE(HAVE_SOLARIS_MD5)
+        LIBS="-lmd5 $LIBS"
+        found_md5=yes
+      ])
     ])
   fi