Use m4-mode when editinging configure.in under emacs.
authorTim Potter <tpot@samba.org>
Thu, 4 Apr 2002 05:47:41 +0000 (05:47 +0000)
committerTim Potter <tpot@samba.org>
Thu, 4 Apr 2002 05:47:41 +0000 (05:47 +0000)
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)

source3/configure.in

index 014e321af25cc720e2a16a31a053d144a387d2c7..ddb3e7109d5641d18714587f6892e4a77c4e1aec 100644 (file)
@@ -1,3 +1,4 @@
+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)
@@ -819,7 +820,7 @@ AC_CACHE_CHECK([whether building shared libraries actually works],
    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
 ])