diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-07-06 09:29:52 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-07-06 09:29:52 (GMT) |
commit | d6640d4bd01874fc469c58c506527465a62d140b (patch) | |
tree | 19c64d96ebcdbe6c6d4cae4963b6481aab168013 | |
parent | b25229d823e5d2cdd2a398dad157becff7bcda1e (diff) | |
download | cpython-d6640d4bd01874fc469c58c506527465a62d140b.zip cpython-d6640d4bd01874fc469c58c506527465a62d140b.tar.gz cpython-d6640d4bd01874fc469c58c506527465a62d140b.tar.bz2 |
Include grp.h in setgroups test. Fixes #765822.
-rwxr-xr-x | configure | 10 | ||||
-rw-r--r-- | configure.in | 4 |
2 files changed, 11 insertions, 3 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.420 . +# From configure.in Revision: 1.421 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.53 for python 2.3. # @@ -908,7 +908,7 @@ esac # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be # absolute. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` -ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` @@ -13123,6 +13123,7 @@ echo "${ECHO_T}no" >&6 fi rm -f conftest.$ac_objext conftest.$ac_ext +# On some systems, setgroups is in unistd.h, on others, in grp.h echo "$as_me:$LINENO: checking for setgroups" >&5 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF @@ -13131,6 +13132,9 @@ cat >conftest.$ac_ext <<_ACEOF #include "confdefs.h" #include <unistd.h> +#ifdef HAVE_GRP_H +#include <grp.h> +#endif #ifdef F77_DUMMY_MAIN # ifdef __cplusplus @@ -18450,7 +18454,7 @@ esac # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be # absolute. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` -ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` diff --git a/configure.in b/configure.in index b82ca6e..8ab79b5 100644 --- a/configure.in +++ b/configure.in @@ -2127,10 +2127,14 @@ AC_TRY_COMPILE([ AC_MSG_RESULT(no) ) +# On some systems, setgroups is in unistd.h, on others, in grp.h AC_MSG_CHECKING(for setgroups) AC_TRY_COMPILE([ #include "confdefs.h" #include <unistd.h> +#ifdef HAVE_GRP_H +#include <grp.h> +#endif ], void* p = setgroups, AC_DEFINE(HAVE_SETGROUPS, 1, Define if you have the 'setgroups' function.) |