summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2019-03-21 16:35:59 +0000
committerSébastien Hinderer <Sebastien.Hinderer@inria.fr>2019-03-21 17:35:59 +0100
commit58ef7303bbedc810182d237bcad048b275ac5231 (patch)
tree47047c6bc6e044c3b315d52b58431ce1ce09fd8f /configure.ac
parentf1a1347e7bbd80584d38af0c54d365d428943561 (diff)
downloadocaml-58ef7303bbedc810182d237bcad048b275ac5231.tar.gz
Remove some unused configure tests. (#8533)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac64
1 files changed, 0 insertions, 64 deletions
diff --git a/configure.ac b/configure.ac
index 4568d6adb8..32bbf1d5f2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1114,10 +1114,6 @@ AC_CHECK_FUNC([mkfifo], [AC_DEFINE([HAS_MKFIFO])])
AC_CHECK_FUNC([getcwd], [AC_DEFINE([HAS_GETCWD])])
-AC_CHECK_FUNC([getpriority],
- [AC_CHECK_FUNC([setpriority],
- [AC_DEFINE([HAS_GETPRIORITY])])])
-
## utime
## Note: this was defined in config/s-nt.h but the autoconf macros do not
# seem to detect it properly on Windows so we hardcode the definition
@@ -1130,8 +1126,6 @@ AS_CASE([$host],
AC_CHECK_FUNC([utimes], [AC_DEFINE([HAS_UTIMES])])
-AC_CHECK_FUNC([dup2], [AC_DEFINE([HAS_DUP2])])
-
AC_CHECK_FUNC([fchmod],
[AC_CHECK_FUNC([fchown], [AC_DEFINE([HAS_FCHMOD])])])
@@ -1187,64 +1181,6 @@ AC_CHECK_HEADER([termios.h],
[AC_CHECK_FUNC([tcflush],
[AC_CHECK_FUNC([tcflow], [AC_DEFINE([HAS_TERMIOS])])])])])])])
-## Asynchronous I/O
-
-AC_MSG_CHECKING([for asynchronous I/O])
-AC_RUN_IFELSE(
- [AC_LANG_SOURCE([[
-#include <stdio.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-
-int signalled;
-
-void sigio_handler(int arg)
-{
- signalled = 1;
-}
-
-int main(void)
-{
-#if defined(SIGIO) && defined(FASYNC) && defined(F_SETFL) && defined(F_SETOWN)
- int p[2];
- int ret;
-#define OUT 0
-#define IN 1
- if (socketpair(PF_UNIX, SOCK_STREAM, 0, p) == -1) return 1;
- signalled = 0;
- signal(SIGIO, sigio_handler);
- ret = fcntl(p[OUT], F_GETFL, 0);
- fcntl(p[OUT], F_SETFL, ret | FASYNC);
- fcntl(p[OUT], F_SETOWN, getpid());
- switch(fork()) {
- case -1:
- return 1;
- case 0:
- close(p[OUT]);
- write(p[IN], "x", 1);
- sleep(1);
- exit(0);
- default:
- close(p[IN]);
- while(wait(NULL) == -1 && errno == EINTR) /*nothing*/;
- }
- if (signalled) return 0; else return 1;
-#else
- return 1;
-#endif
-}
- ]])],
- [
- AC_DEFINE([HAS_ASYNC_IO])
- AC_MSG_RESULT([yes])
- ],
- [AC_MSG_RESULT([no])],
- [AC_MSG_RESULT([no])]
-)
-
## setitimer
AC_CHECK_FUNC([setitimer],