summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortjg <tjg>1998-12-09 11:47:09 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:13 +0100
commitb7a6f5d187c97a9ba6adb7998dee52c1774f3d8b (patch)
tree27c6df314605a815988b8765a0158fe06eba2f1d
parentff0cea8fca8dcafe9c91f5dad081c802c7cf2270 (diff)
Tidiness: latest autoconf version has fixed AC_FUNC_SETPGRP, so we
no longer need to supply our own.
-rw-r--r--acinclude.m421
-rw-r--r--configure.ac6
2 files changed, 3 insertions, 24 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 2ac2cab..7eb8976 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -14,27 +14,6 @@ int main(void) {
])
-dnl The AC_FUNC_SETPGRP macro doesn't
-dnl #include <unistd.h>, so it fails on OSF-1, where setpgrp
-dnl will happily accept arguments, but the protoype doesn't
-dnl have them.
-
-AC_DEFUN(RC_FUNC_SETPGRP, [
- AC_CACHE_CHECK(for setpgrp that takes no arguments, ac_cv_func_setpgrp_void, AC_TRY_RUN([
-#include <unistd.h>
-/* If setpgrp() takes no arguments, this may fail to compile, but
-if it compiles the call should succeed. Note that the assignments
-to ac_cv_func_setpgrp_void are the other way round from what you
-would expect. */
-int main(void) {
- return setpgrp(1,1) != -1;
-}
- ], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes, ac_cv_func_setpgrp_void=yes))
- case "$ac_cv_func_setpgrp_void" in
- yes) AC_DEFINE(SETPGRP_VOID) ;;
- esac
-])
-
dnl Check for va_copy() in <stdarg.h>. This is new in C 9x.
AC_DEFUN(RC_HAVE_VA_COPY, [
AC_CACHE_CHECK(for va_copy(), rc_cv_have_va_copy, AC_EGREP_CPP(yes, [
diff --git a/configure.ac b/configure.ac
index 1c07c7b..9cef295 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,12 +4,12 @@ dnl eventually into the automake distribution...
AC_INIT(rc.h)
dnl Automake stuff.
-AM_INIT_AUTOMAKE(rc, 1.5s19981204)
+AM_INIT_AUTOMAKE(rc, 1.5s19981209)
AM_CONFIG_HEADER(config.h)
AC_ARG_PROGRAM
-AC_DEFINE(RELDATE, "1998-12-04")
+AC_DEFINE(RELDATE, "1998-12-09")
dnl Find a standard C compiler
AC_PROG_CC
@@ -57,7 +57,7 @@ yes) AC_DEFINE(HAVE_SIGSETJMP) ;;
esac
-RC_FUNC_SETPGRP
+AC_FUNC_SETPGRP
dnl HPUX needs _KERNEL defined to pick up RLIMIT_foo defines. (Why?)