summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Sharpe <realrichardsharpe@gmail.com>2011-11-14 07:47:38 -0800
committerKarolin Seeger <kseeger@samba.org>2011-11-25 20:30:04 +0100
commit0a6d7a9ff9c96771ac0d5ca8159c5a2246cae782 (patch)
treeb044502692f2b369fd2266b7cde9f96f7fe0ce33
parent6849353175d6623c3508f0dd955c7aace6cfc677 (diff)
downloadsamba-v3-5-test.tar.gz
samba-v3-5-test.tar.xz
samba-v3-5-test.zip
Improve configure.in so it can be used outside the Samba source tree.v3-5-test
Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Thu Nov 17 07:00:38 CET 2011 on sn-devel-104 (cherry picked from commit f50aa988c201c2fe78e467f1a419bedc741e1d31) Fix bug #8607 (The configure.in in examples/VFS does not easily allow building modules outside the Samba source tree). (cherry picked from commit 7db7ea684a17b70ecae31c70c1b2e647ea0fafa1)
-rw-r--r--examples/VFS/configure.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/VFS/configure.in b/examples/VFS/configure.in
index 4e9d46544db..9e301977370 100644
--- a/examples/VFS/configure.in
+++ b/examples/VFS/configure.in
@@ -337,11 +337,11 @@ AC_CACHE_CHECK([whether building shared libraries actually works],
ac_cv_shlib_works=no
# try building a trivial shared library
if test "$PICSUFFIX" = "po"; then
- $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o shlib.po ${srcdir-.}/../../tests/shlib.c &&
+ $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o shlib.po ${SAMBA_SOURCE}/../tests/shlib.c &&
$CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o "shlib.$SHLIBEXT" shlib.po &&
ac_cv_shlib_works=yes
else
- $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o shlib.$PICSUFFIX ${srcdir-.}/../../tests/shlib.c &&
+ $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o shlib.$PICSUFFIX ${SAMBA_SOURCE}/../tests/shlib.c &&
mv shlib.$PICSUFFIX shlib.po &&
$CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o "shlib.$SHLIBEXT" shlib.po &&
ac_cv_shlib_works=yes
@@ -350,6 +350,7 @@ AC_CACHE_CHECK([whether building shared libraries actually works],
])
if test $ac_cv_shlib_works = no; then
BLDSHARED=false
+ AC_MSG_WARN([[Did you forget to specify --with-samba-source=/path/to/samba?]])
fi
fi