From: Stefan Monnier Date: Mon, 14 Jul 2003 02:21:29 +0000 (+0000) Subject: Check for posix_memalign. X-Git-Tag: ttn-vms-21-2-B4~9354 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=28127e4724fd089cc6dcb755c3598a72ae95a3d6;p=emacs.git Check for posix_memalign. --- 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 ' \ '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 +$ac_declaration int main () { @@ -11339,6 +11344,7 @@ done + for ac_func in gethostname getdomainname dup2 \ @@ -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)