s3:configure: not simply check for "ld" but for the linker used by $CC
authorBjörn Jacke <bj@sernet.de>
Wed, 5 May 2010 18:17:39 +0000 (20:17 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 11 May 2010 12:45:07 +0000 (14:45 +0200)
commiteff42fa66e561069959c401492c3b82a09b4742b
tree63e6384404944d4cafac792822589b71a07bd1cf
parentb4b36e1a486296d049c96ea66e201d9c01e7165d
s3:configure: not simply check for "ld" but for the linker used by $CC

this hopefully fixes Solaris' gcc build which uses the system ld by default.
All in all we should clean up most of the compiler and linker flags depending
on the actual compilers and linkers we use. Only some tweaks are OS-specific.
A cleanup in this area should be done along with the move to a new build
system (whensoever that will be ...).
(cherry picked from commit 1969b4acc3fd7c124e288d0495b9b4665d4b42db)

Fix bug #7385 (Can't compile. Undefined symbol 'main').
source3/configure.in
source3/m4/aclocal.m4