Mercurial > emacs
comparison configure.in @ 50012:088ec1541d38
* 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.
author | Rob Browning <rlb@defaultvalue.org> |
---|---|
date | Mon, 03 Mar 2003 18:29:58 +0000 |
parents | 58d11522f3bc |
children | 8b4f58acd499 |
comparison
equal
deleted
inserted
replaced
50011:e6b3933a36f6 | 50012:088ec1541d38 |
---|---|
2207 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | 2207 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ |
2208 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | 2208 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
2209 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | 2209 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
2210 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ | 2210 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
2211 sendto recvfrom getsockopt setsockopt getsockname getpeername \ | 2211 sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
2212 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset) | 2212 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ |
2213 memset memcmp memmove) | |
2213 | 2214 |
2214 AC_CHECK_HEADERS(sys/un.h) | 2215 AC_CHECK_HEADERS(sys/un.h) |
2215 | 2216 |
2216 AC_FUNC_MKTIME | 2217 AC_FUNC_MKTIME |
2217 if test "$ac_cv_func_working_mktime" = no; then | 2218 if test "$ac_cv_func_working_mktime" = no; then |
2824 # ifndef GC_LISP_OBJECT_ALIGNMENT | 2825 # ifndef GC_LISP_OBJECT_ALIGNMENT |
2825 # define GC_LISP_OBJECT_ALIGNMENT (__alignof__ (Lisp_Object)) | 2826 # define GC_LISP_OBJECT_ALIGNMENT (__alignof__ (Lisp_Object)) |
2826 # endif | 2827 # endif |
2827 #endif | 2828 #endif |
2828 | 2829 |
2829 #ifndef HAVE_BCOPY | 2830 /* avoid deprecated functions */ |
2830 #define bcopy(a,b,s) memcpy (b,a,s) | 2831 #ifdef HAVE_MEMCPY |
2831 #endif | 2832 # define bcopy(a,b,s) memcpy (b,a,s) |
2832 #ifndef HAVE_BZERO | 2833 #endif |
2833 #define bzero(a,s) memset (a,0,s) | 2834 #ifdef HAVE_MEMSET |
2834 #endif | 2835 # define bzero(a,s) memset (a,0,s) |
2835 #ifndef HAVE_BCMP | 2836 #endif |
2836 #define BCMP memcmp | 2837 #ifdef HAVE_MEMCMP |
2838 # define BCMP memcmp | |
2839 # define bcmp memcmp | |
2837 #endif | 2840 #endif |
2838 | 2841 |
2839 #endif /* EMACS_CONFIG_H */ | 2842 #endif /* EMACS_CONFIG_H */ |
2840 | 2843 |
2841 /* | 2844 /* |