summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-07-30 14:09:47 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-07-30 14:09:47 (GMT)
commit0907f4dc5b322020823312220e03bef9ed8d91d7 (patch)
treee61be823459e5dd1da6ca9d7070a359902d1b4dc /configure.in
parent77621585e48c7f00a8ce3874d2bc3cb317c0f8eb (diff)
downloadcpython-0907f4dc5b322020823312220e03bef9ed8d91d7.zip
cpython-0907f4dc5b322020823312220e03bef9ed8d91d7.tar.gz
cpython-0907f4dc5b322020823312220e03bef9ed8d91d7.tar.bz2
Drop usage of test -e in configure as it is not portable.
Fixes #1439538 Will backport to 2.4 Also regenerate pyconfig.h.in.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in23
1 files changed, 2 insertions, 21 deletions
diff --git a/configure.in b/configure.in
index 29242cf..54cd3c1 100644
--- a/configure.in
+++ b/configure.in
@@ -3342,27 +3342,8 @@ AC_TRY_COMPILE([#include <curses.h>], void *x=resizeterm,
AC_MSG_RESULT(no)
)
-AC_MSG_CHECKING(for /dev/ptmx)
-
-if test -e /dev/ptmx
-then
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_DEV_PTMX, 1,
- [Define if we have /dev/ptmx.])
-else
- AC_MSG_RESULT(no)
-fi
-
-AC_MSG_CHECKING(for /dev/ptc)
-
-if test -e /dev/ptc
-then
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_DEV_PTC, 1,
- [Define if we have /dev/ptc.])
-else
- AC_MSG_RESULT(no)
-fi
+AC_CHECK_FILE(/dev/ptmx, AC_DEFINE(HAVE_DEV_PTMX, 1, [Define if we have /dev/ptmx.]))
+AC_CHECK_FILE(/dev/ptc, AC_DEFINE(HAVE_DEV_PTC, 1, [Define if we have /dev/ptc.]))
AC_MSG_CHECKING(for %zd printf() format support)
AC_TRY_RUN([#include <stdio.h>