diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -2193,6 +2193,28 @@ else printf "no\n" fi +printf "Checking for setgroups ... " + +cat > conftest.c <<! +#include <sys/types.h> +#include <unistd.h> +#include <grp.h> + +int main(int argc, char **argv) +{ + int res = setgroups(0, 0); + return 0; +} +! + +if conftest ; then + printf "yes\n" + printf "#define HAVE_SETGROUPS 1\n" >> $config_h + have_unistd=y +else + printf "no\n" +fi + printf "Checking for old school getpwent, getpwuid and getpwnam ... " cat > conftest.c <<! |