svn commit: samba r18366 - in branches/SAMBA_4_0/source/build/m4: .
metze at samba.org
metze at samba.org
Mon Sep 11 07:15:49 GMT 2006
Author: metze
Date: 2006-09-11 07:15:49 +0000 (Mon, 11 Sep 2006)
New Revision: 18366
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18366
Log:
check if we can link using the selected flags
metze
Modified:
branches/SAMBA_4_0/source/build/m4/check_ld.m4
Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/check_ld.m4
===================================================================
--- branches/SAMBA_4_0/source/build/m4/check_ld.m4 2006-09-11 06:49:24 UTC (rev 18365)
+++ branches/SAMBA_4_0/source/build/m4/check_ld.m4 2006-09-11 07:15:49 UTC (rev 18366)
@@ -183,6 +183,12 @@
fi
fi
+AC_MSG_CHECKING([if we can link using the selected flags])
+AC_TRY_RUN([#include "${srcdir-.}/build/tests/trivial.c"],
+ AC_MSG_RESULT(yes),
+ AC_MSG_ERROR([we cannot link with the selected cc and ld flags. Aborting configure]),
+ AC_MSG_WARN([cannot run when cross-compiling]))
+
AC_ARG_ENABLE(dso,
[ --enable-dso Enable building internal libraries as DSO's (experimental)],
[ if test x$enable_dso != xyes; then
More information about the samba-cvs
mailing list