diff options
author | Gerald Carter <jerry@samba.org> | 2002-06-24 23:18:39 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-06-24 23:18:39 +0000 |
commit | 66de8367c6b0e7d3bd4c3711eeb39e51302708db (patch) | |
tree | 1c9635ce31a2b7f17a87426672326e9809595b2b /source3/aclocal.m4 | |
parent | 9d6301dfe0e3001086251e3014be772ae63e4dd1 (diff) | |
download | samba-66de8367c6b0e7d3bd4c3711eeb39e51302708db.tar.gz samba-66de8367c6b0e7d3bd4c3711eeb39e51302708db.tar.xz samba-66de8367c6b0e7d3bd4c3711eeb39e51302708db.zip |
merging some autoconf changes from SAMBA_2_2
(This used to be commit 708c6b8297e720c0d0146e66e3a011feabe01531)
Diffstat (limited to 'source3/aclocal.m4')
-rw-r--r-- | source3/aclocal.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/aclocal.m4 b/source3/aclocal.m4 index d838a9f0db7..4ae5336a4bf 100644 --- a/source3/aclocal.m4 +++ b/source3/aclocal.m4 @@ -92,3 +92,14 @@ define(AC_ADD_INCLUDE, [#include] $1 EOF ]) + +dnl Copied from libtool.m4 +AC_DEFUN(AC_PROG_LD_GNU, +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then + ac_cv_prog_gnu_ld=yes +else + ac_cv_prog_gnu_ld=no +fi]) +]) |