summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-07-20 18:03:13 +0200
committerBjörn Jacke <bj@sernet.de>2010-07-20 18:12:40 +0200
commitc58aeaaf311d4b1ec50cd9a606969c5643dd1380 (patch)
treed92c7b52f9987e72e233850978ede8002a4cb2c5
parentb20e5eb3aab2d0c3b028e769dd126387699a8f7d (diff)
downloadsamba-c58aeaaf311d4b1ec50cd9a606969c5643dd1380.tar.gz
samba-c58aeaaf311d4b1ec50cd9a606969c5643dd1380.tar.bz2
samba-c58aeaaf311d4b1ec50cd9a606969c5643dd1380.zip
s3: also run the test prog from the explicit external lib bug check
on Linux linking already stops with a broken ld, on FreeBSD8 linking works but the binary is broken, so we must check both. this should be the final fix for bug #7561
-rw-r--r--source3/configure.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 541dbe9e27..b99a004a68 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -23,6 +23,7 @@ m4_include(m4/check_path.m4)
m4_include(pkg.m4)
AC_LIBREPLACE_CC_CHECKS
+AC_LIBREPLACE_RUNTIME_LIB_PATH_VAR
m4_include(../lib/tevent/libtevent.m4)
@@ -1834,15 +1835,18 @@ cat > conftest.c <<END
extern void a();
int main() {
a();
+ return 0;
}
END
+ rm -fr conftest
AC_TRY_COMMAND([$CC $CPPFLAGS $CFLAGS $PICFLAG -c -o conftest_sha.o conftest_sha.c 1>&AS_MESSAGE_LOG_FD 2>&1])
AC_TRY_COMMAND([$CC $CPPFLAGS $CFLAGS $PICFLAG -c -o conftest_shb.o conftest_shb.c 1>&AS_MESSAGE_LOG_FD 2>&1])
TESTCMD="`eval echo \"$SHLD $LDSHFLAGS $PICFLAG\"`"
AC_TRY_COMMAND([$TESTCMD -o libconftest_shb.$SHLIBEXT conftest_shb.o 1>&AS_MESSAGE_LOG_FD 2>&1])
AC_TRY_COMMAND([$TESTCMD -o libconftest_sha.$SHLIBEXT conftest_sha.o 1>&AS_MESSAGE_LOG_FD 2>&1])
- if AC_TRY_COMMAND([$CC -o conftest conftest.c $LDFLAGS -L. -lconftest_sha -lconftest_shb 1>&AS_MESSAGE_LOG_FD 2>&1])
+ AC_TRY_COMMAND([$CC -o conftest conftest.c $LDFLAGS -L. -lconftest_sha -lconftest_shb 1>&AS_MESSAGE_LOG_FD 2>&1])
+ if AC_TRY_COMMAND([eval "$LIB_PATH_VAR=. ./conftest 1>&AS_MESSAGE_LOG_FD 2>&1"])
then
AC_MSG_RESULT([no])
else
@@ -1956,7 +1960,6 @@ AC_MSG_RESULT([$PICFLAG])
AC_DEFINE_UNQUOTED(SHLIBEXT, "$SHLIBEXT", [Shared library extension])
-AC_LIBREPLACE_RUNTIME_LIB_PATH_VAR
###########################################################