1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Finish integration of libmd5.

This commit is contained in:
Micah Cowan 2007-12-07 22:24:03 -08:00
parent a75ed01852
commit 6b4d44ff0b
5 changed files with 16 additions and 5 deletions

View File

@ -1,4 +1,3 @@
# Automatically generated by `hgimportsvn` # Automatically generated by `hgimportsvn`
syntax:glob syntax:glob
.svn .svn
@ -18,6 +17,9 @@ lib/unistd.h
lib/stdbool.h lib/stdbool.h
lib/stdint.h lib/stdint.h
lib/wchar.h lib/wchar.h
md5/.deps
md5/*.o
md5/libmd5.a
tests/WgetTest.pm tests/WgetTest.pm
tests/unit-tests tests/unit-tests
tests/*.o tests/*.o

View File

@ -34,7 +34,7 @@
ACLOCAL_AMFLAGS = -I m4 -I md5/m4 ACLOCAL_AMFLAGS = -I m4 -I md5/m4
# subdirectories in the distribution # subdirectories in the distribution
SUBDIRS = lib md5 src doc po tests util windows SUBDIRS = lib @MD5_SUBDIR@ src doc po tests util windows
test: all test: all
cd tests && $(MAKE) $(AM_MAKEFLAGS) $@ cd tests && $(MAKE) $(AM_MAKEFLAGS) $@

View File

@ -339,6 +339,10 @@ then
found_md5=yes found_md5=yes
AC_MSG_NOTICE([using the built-in (GNU) MD5 implementation]) AC_MSG_NOTICE([using the built-in (GNU) MD5 implementation])
AC_C_BIGENDIAN AC_C_BIGENDIAN
AC_SUBST(MD5_CPPFLAGS, '-I $(top_srcdir)/md5')
AC_SUBST(MD5_LDADD, '../md5/libmd5.a')
AC_SUBST(MD5_SUBDIR, md5)
md5_INIT md5_INIT
fi fi
AC_DEFINE([HAVE_MD5], 1, [Define if we're compiling support for MD5.]) AC_DEFINE([HAVE_MD5], 1, [Define if we're compiling support for MD5.])
@ -459,6 +463,6 @@ dnl Create output
dnl dnl
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile util/Makefile AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile util/Makefile
po/Makefile.in tests/Makefile tests/WgetTest.pm po/Makefile.in tests/Makefile tests/WgetTest.pm
lib/Makefile windows/Makefile]) lib/Makefile md5/Makefile windows/Makefile])
AC_CONFIG_HEADERS([src/config.h]) AC_CONFIG_HEADERS([src/config.h])
AC_OUTPUT AC_OUTPUT

View File

@ -1,3 +1,8 @@
2007-12-07 Micah Cowan <micah@cowan.name>
* Makefile.am: Plug in vars to include stuff from
$(top_srcdir)/md5 when appropriate.
2007-12-05 Micah Cowan <micah@cowan.name> 2007-12-05 Micah Cowan <micah@cowan.name>
* utils.c (subdir_p): Handle the case where d1 is "". * utils.c (subdir_p): Handle the case where d1 is "".

View File

@ -47,8 +47,8 @@ wget_SOURCES = cmpt.c connect.c convert.c cookies.c ftp.c ftp-basic.c \
spider.h ssl.h sysdep.h url.h utils.h wget.h xmalloc.h spider.h ssl.h sysdep.h url.h utils.h wget.h xmalloc.h
nodist_wget_SOURCES = version.c nodist_wget_SOURCES = version.c
EXTRA_wget_SOURCES = mswindows.c EXTRA_wget_SOURCES = mswindows.c
LDADD = $(ALLOCA) $(LIBOBJS) ../lib/libgnu.a LDADD = $(ALLOCA) $(LIBOBJS) ../lib/libgnu.a @MD5_LDADD@
AM_CPPFLAGS = -I$(top_srcdir)/lib AM_CPPFLAGS = -I $(top_srcdir)/lib @MD5_CPPFLAGS@
version.c: $(wget_SOURCES) $(LDADD) $(srcdir)/Makefile.am version.c: $(wget_SOURCES) $(LDADD) $(srcdir)/Makefile.am
echo 'const char *version_string = "@VERSION@"' > $@ echo 'const char *version_string = "@VERSION@"' > $@