summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-05-30 23:50:48 +0200
committerBjörn Jacke <bj@sernet.de>2010-05-30 23:59:45 +0200
commit390b0521bd36702a698febdd670335bf09b49d54 (patch)
treec64c78a4483d439c9090c0dfe49b61f4a0df26d9 /source3
parente4a9bdc39f499c7bfb04c00bc986c4894cf8e49a (diff)
downloadsamba-390b0521bd36702a698febdd670335bf09b49d54.tar.gz
samba-390b0521bd36702a698febdd670335bf09b49d54.tar.bz2
samba-390b0521bd36702a698febdd670335bf09b49d54.zip
s3: use autoconf macro to get some debug output in config.log
Diffstat (limited to 'source3')
-rw-r--r--source3/configure.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 630421ab45..e4ccc06ce8 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -1862,10 +1862,13 @@ AC_CACHE_CHECK([whether building shared libraries actually works],
ac_cv_shlib_works=no
# The $SHLD and $LDSHFLAGS variables may contain references to other
# variables so they need to be eval'ed.
- $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o \
- shlib.o ${srcdir-.}/../tests/shlib.c && \
- `eval echo $SHLD` `eval echo $LDSHFLAGS` -o "shlib.$SHLIBEXT" \
- shlib.o && ac_cv_shlib_works=yes
+ if AC_TRY_COMMAND([$CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.o ${srcdir-.}/../tests/shlib.c 1>&AS_MESSAGE_LOG_FD])
+ then
+ if AC_TRY_COMMAND([`eval echo "$SHLD"` `eval echo "$LDSHFLAGS"` -o "shlib.$SHLIBEXT" shlib.o 1>&AS_MESSAGE_LOG_FD])
+ then
+ ac_cv_shlib_works=yes
+ fi
+ fi
rm -f "shlib.$SHLIBEXT" shlib.o
])