diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index f96c70bcd..d3deac832 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1736,7 +1736,6 @@ AC_CHECK_FUNCS([ \ | |||
1736 | getpeereid \ | 1736 | getpeereid \ |
1737 | getpeerucred \ | 1737 | getpeerucred \ |
1738 | getpgid \ | 1738 | getpgid \ |
1739 | getpgrp \ | ||
1740 | _getpty \ | 1739 | _getpty \ |
1741 | getrlimit \ | 1740 | getrlimit \ |
1742 | getsid \ | 1741 | getsid \ |
@@ -2413,7 +2412,16 @@ static void sighandler(int sig) { _exit(1); } | |||
2413 | ) | 2412 | ) |
2414 | fi | 2413 | fi |
2415 | 2414 | ||
2416 | AC_FUNC_GETPGRP | 2415 | AC_CHECK_FUNCS([getpgrp],[ |
2416 | AC_MSG_CHECKING([if getpgrp accepts zero args]) | ||
2417 | AC_COMPILE_IFELSE( | ||
2418 | [AC_LANG_PROGRAM([[$ac_includes_default]], [[ getpgrp(); ]])], | ||
2419 | [ AC_MSG_RESULT([yes]) | ||
2420 | AC_DEFINE([GETPGRP_VOID], [1], [getpgrp takes zero args])], | ||
2421 | [ AC_MSG_RESULT([no]) | ||
2422 | AC_DEFINE([GETPGRP_VOID], [0], [getpgrp takes one arg])] | ||
2423 | ) | ||
2424 | ]) | ||
2417 | 2425 | ||
2418 | # Search for OpenSSL | 2426 | # Search for OpenSSL |
2419 | saved_CPPFLAGS="$CPPFLAGS" | 2427 | saved_CPPFLAGS="$CPPFLAGS" |