--- Makefile 2007-07-10 15:16:03.000000000 +0200 +++ Makefile 2007-07-10 15:17:31.000000000 +0200 @@ -55,6 +55,9 @@ # specify your own (or DarwinPort's) include directories and # library directories by defining CFLAGS and LDFLAGS appropriately. # +# Define LIBMD_SHA1 environment variable when running make to make use +# of FreeBSD's libmd SHA1 routines. +# # Define PPC_SHA1 environment variable when running make to make use of # a bundled SHA1 routine optimized for PowerPC. # @@ -637,6 +640,10 @@ BASIC_CFLAGS += -DOLD_ICONV endif +ifdef LIBMD_SHA1 + SHA1_HEADER = "sha.h" + EXTLIBS += -lmd +else ifdef PPC_SHA1 SHA1_HEADER = "ppc/sha1.h" LIB_OBJS += ppc/sha1.o ppc/sha1ppc.o @@ -654,6 +661,7 @@ endif endif endif +endif ifdef NO_PERL_MAKEMAKER export NO_PERL_MAKEMAKER endif