--- ipv6calc-0.60.0.orig/md5/Makefile +++ ipv6calc-0.60.0/md5/Makefile @@ -6,7 +6,7 @@ all: md5.o md5.o: md5.c - ${CC} ${CFLAGS} -fPIC -o md5.o -c -s md5.c + ${CC} ${CFLAGS} -I.. -fPIC -o md5.o -c -s md5.c clean: rm -f *.o *.so.1 *.a --- ipv6calc-0.60.0.orig/md5/md5.c +++ ipv6calc-0.60.0/md5/md5.c @@ -24,6 +24,8 @@ for ipv6calc, not needed code was removed */ +#include "config.h" + #include "md5.h" #include @@ -31,13 +33,6 @@ #include #include -/* insert for ipv6calc for proper working on big endian machines */ -#ifdef _BIG_ENDIAN -# define WORDS_BIGENDIAN 1 -#endif -/* end of insert */ - - #ifdef _LIBC # include # if __BYTE_ORDER == __BIG_ENDIAN --- ipv6calc-0.60.0.orig/ipv6calc/test_ipv6calc.sh +++ ipv6calc-0.60.0/ipv6calc/test_ipv6calc.sh @@ -151,9 +151,11 @@ fi done -if [ $? -eq 0 ]; then +retval=$? +if [ $retval -eq 0 ]; then echo "All tests were successfully done!" exit 0 else - echo $? + echo "Tests failed! (code $retval)" + exit $retval fi --- ipv6calc-0.60.0.orig/configure.in +++ ipv6calc-0.60.0/configure.in @@ -24,6 +24,7 @@ AC_C_CONST AC_TYPE_OFF_T AC_TYPE_SIZE_T +AC_C_BIGENDIAN dnl Checks for library functions. AC_FUNC_MEMCMP