summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-05-04 22:50:05 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-05-04 22:50:05 -0700
commit7de3d60457b9746b31781522be6ea9e0b1438a86 (patch)
tree83b41454a53471ace785cd3d7b0f4c611158ef2e /configure
parente66e1ad43be464b0d42c1700b51a28605881dd33 (diff)
downloadtxr-7de3d60457b9746b31781522be6ea9e0b1438a86.tar.gz
txr-7de3d60457b9746b31781522be6ea9e0b1438a86.tar.bz2
txr-7de3d60457b9746b31781522be6ea9e0b1438a86.zip
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
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