# HG changeset patch # User Rob Browning # Date 1046716282 0 # Node ID 1851c50836dd499ebc20b83f9de1d78e31e3df90 # Parent 088ec1541d385f9cc0a626659db2415e7eeac9fb *** empty log message *** diff -r 088ec1541d38 -r 1851c50836dd ChangeLog --- a/ChangeLog Mon Mar 03 18:29:58 2003 +0000 +++ b/ChangeLog Mon Mar 03 18:31:22 2003 +0000 @@ -1,3 +1,9 @@ +2003-03-03 Rob Browning + + * configure.in: add AC_CHECK_FUNCS for memcmp and memmove. + (AH_BOTTOM): switch tests to prefer memcmp, memset, and memmove + over bzero, bcmp, and bcopy. + 2003-02-23 Simon Josefsson * Makefile.in (install-arch-indep, uninstall): Add SMTP manual. diff -r 088ec1541d38 -r 1851c50836dd src/config.in --- a/src/config.in Mon Mar 03 18:29:58 2003 +0000 +++ b/src/config.in Mon Mar 03 18:31:22 2003 +0000 @@ -343,6 +343,9 @@ /* Define to 1 if you have the `mbsinit' function. */ #undef HAVE_MBSINIT +/* Define to 1 if you have the `memcmp' function. */ +#undef HAVE_MEMCMP + /* Define to 1 if you have the `memmove' function. */ #undef HAVE_MEMMOVE @@ -1010,14 +1013,16 @@ # endif #endif -#ifndef HAVE_BCOPY -#define bcopy(a,b,s) memcpy (b,a,s) +/* avoid deprecated functions */ +#if HAVE_MEMCPY +# define bcopy(a,b,s) memcpy (b,a,s) #endif -#ifndef HAVE_BZERO -#define bzero(a,s) memset (a,0,s) +#if HAVE_MEMSET +# define bzero(a,s) memset (a,0,s) #endif -#ifndef HAVE_BCMP -#define BCMP memcmp +#if HAVE_MEMCMP +# define BCMP memcmp +# define bcmp memcmp #endif #endif /* EMACS_CONFIG_H */