summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure b/configure
index 1518af29..e0759ab1 100755
--- a/configure
+++ b/configure
@@ -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 <<!