comparison configure.in @ 51486:f36efdc0ae5e

Check for memcpy, mempcpy, mblen, mbrlen. Use AC_FUNC_STRFTIME, AC_STRUCT_TIMEZONE, AC_TYPE_MBSTATE_T. (NLIST_STRUCT): Don't define.
author Dave Love <fx@gnu.org>
date Thu, 05 Jun 2003 16:37:13 +0000
parents 51712cc110e2
children e2e63297c062
comparison
equal deleted inserted replaced
51485:f129be4cf98e 51486:f36efdc0ae5e
2223 2223
2224 AC_CHECK_FUNCS(gethostname getdomainname dup2 \ 2224 AC_CHECK_FUNCS(gethostname getdomainname dup2 \
2225 rename closedir mkdir rmdir sysinfo \ 2225 rename closedir mkdir rmdir sysinfo \
2226 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ 2226 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
2227 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 2227 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
2228 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ 2228 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
2229 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 2229 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
2230 sendto recvfrom getsockopt setsockopt getsockname getpeername \ 2230 sendto recvfrom getsockopt setsockopt getsockname getpeername \
2231 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ 2231 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
2232 memset memcmp memmove difftime) 2232 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen)
2233 2233
2234 AC_CHECK_HEADERS(sys/un.h) 2234 AC_CHECK_HEADERS(sys/un.h)
2235 2235
2236 AC_FUNC_MKTIME 2236 AC_FUNC_MKTIME
2237 if test "$ac_cv_func_working_mktime" = no; then 2237 if test "$ac_cv_func_working_mktime" = no; then
2241 AC_FUNC_GETLOADAVG 2241 AC_FUNC_GETLOADAVG
2242 2242
2243 AC_FUNC_FSEEKO 2243 AC_FUNC_FSEEKO
2244 2244
2245 AC_FUNC_GETPGRP 2245 AC_FUNC_GETPGRP
2246
2247 AC_FUNC_STRFTIME
2246 2248
2247 # UNIX98 PTYs. 2249 # UNIX98 PTYs.
2248 AC_CHECK_FUNCS(grantpt) 2250 AC_CHECK_FUNCS(grantpt)
2249 2251
2250 # PTY-related GNU extensions. 2252 # PTY-related GNU extensions.
2376 [Define to 1 if gettimeofday accepts only one argument.]) 2378 [Define to 1 if gettimeofday accepts only one argument.])
2377 fi 2379 fi
2378 fi 2380 fi
2379 fi 2381 fi
2380 2382
2383 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
2384 AC_STRUCT_TIMEZONE
2385
2381 dnl Note that AC_STRUCT_TIMEZONE doesn't do what you might expect. 2386 dnl Note that AC_STRUCT_TIMEZONE doesn't do what you might expect.
2382 if test "$ac_cv_func_gettimeofday" = yes; then 2387 if test "$ac_cv_func_gettimeofday" = yes; then
2383 AC_CACHE_CHECK([for struct timezone], emacs_cv_struct_timezone, 2388 AC_CACHE_CHECK([for struct timezone], emacs_cv_struct_timezone,
2384 [AC_TRY_COMPILE([#include <sys/time.h>], 2389 [AC_TRY_COMPILE([#include <sys/time.h>],
2385 [struct timezone tz;], 2390 [struct timezone tz;],
2448 [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) 2453 [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
2449 fi 2454 fi
2450 2455
2451 AC_CHECK_TYPES(size_t) 2456 AC_CHECK_TYPES(size_t)
2452 2457
2458 AC_TYPE_MBSTATE_T
2459
2453 dnl Restrict could probably be used effectively other than in regex.c. 2460 dnl Restrict could probably be used effectively other than in regex.c.
2454 AC_CACHE_CHECK([for C restrict keyword], emacs_cv_c_restrict, 2461 AC_CACHE_CHECK([for C restrict keyword], emacs_cv_c_restrict,
2455 [AC_TRY_COMPILE([void fred (int *restrict x);], [], 2462 [AC_TRY_COMPILE([void fred (int *restrict x);], [],
2456 emacs_cv_c_restrict=yes, 2463 emacs_cv_c_restrict=yes,
2457 [AC_TRY_COMPILE([void fred (int *__restrict x);], [], 2464 [AC_TRY_COMPILE([void fred (int *__restrict x);], [],
2474 if test "$emacs_cv_c_restrict_arr" = yes; then 2481 if test "$emacs_cv_c_restrict_arr" = yes; then
2475 AC_DEFINE(__restrict_arr, __restrict, 2482 AC_DEFINE(__restrict_arr, __restrict,
2476 [Define to compiler's equivalent of C99 restrict keyword in array 2483 [Define to compiler's equivalent of C99 restrict keyword in array
2477 declarations. Define as empty for no equivalent.]) 2484 declarations. Define as empty for no equivalent.])
2478 fi 2485 fi
2479
2480 AC_CHECK_HEADERS(nlist.h, [AC_DEFINE(NLIST_STRUCT, 1,
2481 [Define to 1 if you have <nlist.h>.])])
2482 2486
2483 dnl Fixme: AC_SYS_POSIX_TERMIOS should probably be used, but it's not clear 2487 dnl Fixme: AC_SYS_POSIX_TERMIOS should probably be used, but it's not clear
2484 dnl how the tty code is related to POSIX and/or other versions of termios. 2488 dnl how the tty code is related to POSIX and/or other versions of termios.
2485 dnl The following looks like a useful start. 2489 dnl The following looks like a useful start.
2486 dnl 2490 dnl