From 7de3d60457b9746b31781522be6ea9e0b1438a86 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 4 May 2016 22:50:05 -0700 Subject: Reveal setgroups on Solaris. * configure (lang_flags): The declaration of setgroups requires the __EXTENSIONS__ macro. If the test fails, let's repeat it with that macro and if it succeeds, add that to lang_flags. --- configure | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure') diff --git a/configure b/configure index d78b791c..54df20e2 100755 --- a/configure +++ b/configure @@ -2237,6 +2237,11 @@ if conftest ; then printf "yes\n" printf "#define HAVE_SETGROUPS 1\n" >> $config_h have_unistd=y +elif conftest EXTRA_FLAGS=-D__EXTENSIONS__=1 ; then + printf "yes\n" + printf "#define HAVE_SETGROUPS 1\n" >> $config_h + lang_flags="$lang_flags -D__EXTENSIONS__=1" # Solaris buggery + have_unistd=y else printf "no\n" fi -- cgit v1.2.3