summaryrefslogtreecommitdiffstats
path: root/src/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r--src/aclocal.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 87c071d23..32934fac7 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -541,6 +541,14 @@ if test $ac_cv_c_compiler_gnu = yes ; then
else HAVE_GCC=
fi
AC_SUBST(HAVE_GCC)
+AC_CACHE_CHECK([for GNU linker], krb5_cv_prog_gnu_ld,
+[krb5_cv_prog_gnu_ld=no
+if test "$GCC" = yes; then
+ if AC_TRY_COMMAND([$CC -Wl,-v 2>&1 dnl
+ | grep "GNU ld" > /dev/null]); then
+ krb5_cv_prog_gnu_ld=yes
+ fi
+fi])
# maybe add -Waggregate-return, or can we assume that actually works by now?
# -Wno-comment used to be used for SunOS system header <sys/stream.h>
# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.