mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Use m4-mode when editinging configure.in under emacs.
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 4caf71d5b2
)
This commit is contained in:
parent
0227568209
commit
fbbc63f93c
@ -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
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user