diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2003-07-14 02:21:29 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2003-07-14 02:21:29 +0000 |
commit | 28127e4724fd089cc6dcb755c3598a72ae95a3d6 (patch) | |
tree | 194c987dac8c1a49e744a852b4e0649820cbd58a | |
parent | 0c8b2afa5b1d6b5b3fedde4e7c100961cc714921 (diff) | |
download | emacs-28127e4724fd089cc6dcb755c3598a72ae95a3d6.tar.gz |
Check for posix_memalign.
-rwxr-xr-x | configure | 12 | ||||
-rw-r--r-- | configure.in | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/configure b/configure index 19cd5774fa7..7bc83b969f0 100755 --- a/configure +++ b/configure @@ -1662,6 +1662,10 @@ case "${canonical}" in ## NetBSD ports *-*-netbsd* ) opsys=netbsd + if test -f /usr/lib/crti.o; then + AC_DEFINE(HAVE_CRTIN) + fi + case "${canonical}" in alpha*-*-netbsd*) machine=alpha ;; i[3456]86-*-netbsd*) machine=intel386 ;; @@ -3396,7 +3400,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ - '' \ + ''\ + '#include <stdlib.h>' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ @@ -3410,8 +3415,8 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -$ac_declaration #include <stdlib.h> +$ac_declaration int main () { @@ -11341,6 +11346,7 @@ done + for ac_func in gethostname getdomainname dup2 \ rename closedir mkdir rmdir sysinfo \ random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ @@ -11349,7 +11355,7 @@ utimes setrlimit setpgid getcwd getwd shutdown 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 memcmp memmove difftime memcpy mempcpy mblen mbrlen +memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign 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 6bc0130055b..769e8e61592 100644 --- a/configure.in +++ b/configure.in @@ -2264,7 +2264,7 @@ utimes setrlimit setpgid getcwd getwd shutdown 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 memcmp memmove difftime memcpy mempcpy mblen mbrlen) +memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign) AC_CHECK_HEADERS(sys/un.h) |