Use $CC instead of $SHLD for the "test whether building a shared library
actually works". At the moment this is failing as $SHLD (and $LDSHFLAGS -
look at the value this is set to for Solaris) are designed to be used from
a Makefile and not within configure so this test will always fail!
Tridge has suggested moving to libtool^H^H^H^H^H a shell script that
invokes the right linker with the right args and solves this problem
nicely.
(This used to be commit
4caf71d5b28e003133bacca153278478d8245989)
+dnl -*- mode: m4-mode -*-
dnl Process this file with autoconf to produce a configure script.
AC_INIT(include/includes.h)
AC_CONFIG_HEADER(include/config.h)
ac_cv_shlib_works=no
# try building a trivial shared library
$CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
- $SHLD $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
+ $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
ac_cv_shlib_works=yes
rm -f shlib.so shlib.po
])