From: Rob Browning Date: Mon, 3 Mar 2003 18:29:58 +0000 (+0000) Subject: * configure.in: add AC_CHECK_FUNCS for memcmp and memmove. X-Git-Tag: ttn-vms-21-2-B4~11002 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b0e442481b4718f1f372381e6be78ce7aaf7b522;p=emacs.git * 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. --- diff --git a/configure b/configure index 77b1741c96c..a655838d017 100755 --- a/configure +++ b/configure @@ -2010,6 +2010,9 @@ case "${canonical}" in hppa*-hp-hpux9* ) machine=hp800 opsys=hpux9 ;; + hppa*-hp-hpux10.2* ) + machine=hp800 opsys=hpux10-20 + ;; hppa*-hp-hpux10* ) machine=hp800 opsys=hpux10 ;; @@ -11204,6 +11207,8 @@ done + + @@ -11214,7 +11219,8 @@ strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ sendto recvfrom getsockopt setsockopt getsockname getpeername \ -gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset +gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ +memset memcmp memmove do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 diff --git a/configure.in b/configure.in index 5c253eb583c..b4c473ac102 100644 --- a/configure.in +++ b/configure.in @@ -2209,7 +2209,8 @@ strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ sendto recvfrom getsockopt setsockopt getsockname getpeername \ -gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset) +gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ +memset memcmp memmove) AC_CHECK_HEADERS(sys/un.h) @@ -2826,14 +2827,16 @@ typedef unsigned size_t; # endif #endif -#ifndef HAVE_BCOPY -#define bcopy(a,b,s) memcpy (b,a,s) +/* avoid deprecated functions */ +#ifdef HAVE_MEMCPY +# define bcopy(a,b,s) memcpy (b,a,s) #endif -#ifndef HAVE_BZERO -#define bzero(a,s) memset (a,0,s) +#ifdef HAVE_MEMSET +# define bzero(a,s) memset (a,0,s) #endif -#ifndef HAVE_BCMP -#define BCMP memcmp +#ifdef HAVE_MEMCMP +# define BCMP memcmp +# define bcmp memcmp #endif #endif /* EMACS_CONFIG_H */