]> git.eshelyaron.com Git - emacs.git/commitdiff
Check for posix_memalign.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 14 Jul 2003 02:21:29 +0000 (02:21 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 14 Jul 2003 02:21:29 +0000 (02:21 +0000)
configure
configure.in

index 19cd5774fa71ab184f80eb72002daf781520eed4..7bc83b969f02042bbb8a7b5a598f36f74e3e1b77 100755 (executable)
--- 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 ()
 {
@@ -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
index 6bc0130055b98b0ae8d8ad48b7cc792220a7ba4f..769e8e61592350a575da4c329678b115ed81c643 100644 (file)
@@ -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)