summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-10-02 15:24:15 +0000
committerMartin v. Löwis <martin@v.loewis.de>2006-10-02 15:24:15 +0000
commited0681ffab2de3067b73400810d91bf2a7b53562 (patch)
treed4079257dc100724ca086282c5a70fd5202b126d /configure.in
parent750ab951ce790c955e8f5abc6ecb96903abb6f49 (diff)
downloadcpython-git-ed0681ffab2de3067b73400810d91bf2a7b53562.tar.gz
Guard uintptr_t test with HAVE_STDINT_H, test for
stdint.h.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index d5edd3d36b..45af720e9f 100644
--- a/configure.in
+++ b/configure.in
@@ -986,7 +986,7 @@ dnl AC_MSG_RESULT($cpp_type)
AC_HEADER_STDC
AC_CHECK_HEADERS(curses.h dlfcn.h fcntl.h grp.h langinfo.h \
libintl.h ncurses.h poll.h pthread.h \
-stropts.h termios.h thread.h \
+stdint.h stropts.h termios.h thread.h \
unistd.h utime.h \
sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
sys/modem.h \
@@ -1102,7 +1102,9 @@ fi
AC_CHECK_TYPES(uintptr_t,
[AC_CHECK_SIZEOF(uintptr_t, 4)],
- [], [#include <stdint.h>])
+ [], [#ifdef HAVE_STDINT_H
+ #include <stdint.h>
+ #endif])
# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.