[oe-commits] org.oe.dev mono: add mono_cv_uscore to arm-linux site file

cbrake commit openembedded-commits at lists.openembedded.org
Tue Jun 26 20:04:58 UTC 2007


mono: add mono_cv_uscore to arm-linux site file
 add section to contrib/site-conf/m4/mono.m4, but this still needs some work.

Author: cbrake at openembedded.org
Branch: org.openembedded.dev
Revision: d72fa246605254239149443c0370a9aba6beb58a
ViewMTN: http://monotone.openembedded.org/revision.psp?id=d72fa246605254239149443c0370a9aba6beb58a
Files:
1
contrib/site-conf/m4/mono.m4
site/arm-linux
Diffs:

#
# mt diff -r17f4c4ba22df63701dacab5a2056bb6c3a2877f5 -rd72fa246605254239149443c0370a9aba6beb58a
#
# 
# 
# patch "contrib/site-conf/m4/mono.m4"
#  from [3d8cb0ac82946c714ae0c98b29d3af32ef351c06]
#    to [aeaad927b1054d61e9534f440a5643bb5ae9ed6b]
# 
# patch "site/arm-linux"
#  from [21f3aa89b121b81d76d69d27a5a89f22c032afd9]
#    to [05faec46acb2d2d97efdb42243d94e8ba15050c8]
# 
============================================================
--- contrib/site-conf/m4/mono.m4	3d8cb0ac82946c714ae0c98b29d3af32ef351c06
+++ contrib/site-conf/m4/mono.m4	aeaad927b1054d61e9534f440a5643bb5ae9ed6b
@@ -1 +1,40 @@
 # Tests for mono
+# this likely does not work, needs to be packaged.
+# the MONO_DL_NEED_USCORE is the macro that needs to be defined in site.conf
+
+dnl dynamic loader support
+AC_CHECK_FUNC(dlopen, DL_LIB="",
+	AC_CHECK_LIB(dl, dlopen, DL_LIB="-ldl", dl_support=no)
+)
+if test x$dl_support = xno; then
+	AC_MSG_WARN([No dynamic loading support available])
+else
+	LIBS="$LIBS $DL_LIB"
+	AC_DEFINE(HAVE_DL_LOADER,1,[dlopen-based dynamic loader available])
+	dnl from glib's configure.in
+	AC_CACHE_CHECK([for preceeding underscore in symbols],
+		mono_cv_uscore,[
+		AC_TRY_RUN([#include <dlfcn.h>
+		int mono_underscore_test (void) { return 42; }
+		int main() {
+		  void *f1 = (void*)0, *f2 = (void*)0, *handle;
+		  handle = dlopen ((void*)0, 0);
+		  if (handle) {
+		    f1 = dlsym (handle, "mono_underscore_test");
+		    f2 = dlsym (handle, "_mono_underscore_test");
+		  } return (!f2 || f1);
+		}],
+			[mono_cv_uscore=yes],
+			[mono_cv_uscore=no],
+		[])
+	])
+	if test "x$mono_cv_uscore" = "xyes"; then
+		MONO_DL_NEED_USCORE=1
+	else
+		MONO_DL_NEED_USCORE=0
+	fi
+	AC_SUBST(MONO_DL_NEED_USCORE)
+	AC_CHECK_FUNC(dlerror)
+fi
+
+
============================================================
--- site/arm-linux	21f3aa89b121b81d76d69d27a5a89f22c032afd9
+++ site/arm-linux	05faec46acb2d2d97efdb42243d94e8ba15050c8
@@ -169,3 +169,6 @@ ac_cv_file___dev_ptc_=yes
 # lftp
 ac_cv_file___dev_ptc_=yes
 
+#mono
+mono_cv_uscore=${mono_cv_uscore=no}
+






More information about the Openembedded-commits mailing list