From: Sebastian Wilhelmi Date: Tue, 20 Oct 1998 14:39:55 +0000 (+0000) Subject: made the check for needed underscore in module's func-names work on X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=fb20a36775148be885a124aed0f548146a018dc5;p=dana%2Fcg-glib.git made the check for needed underscore in module's func-names work on 1998-10-20 Sebastian Wilhelmi * configure.in: made the check for needed underscore in module's func-names work on solaris. (G_MODULE_NEED_USCORE must be set outside AC_CACHE_VAL, dlopen(0,0) refused to work on solaris). --- diff --git a/ChangeLog b/ChangeLog index 9bde88d7..f751e603 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1998-10-20 Sebastian Wilhelmi + + * configure.in: made the check for needed _ in module's func-names + work on solaris. (G_MODULE_NEED_USCORE must be set outside + AC_CACHE_VAL, dlopen(0,0) refused to work on solaris). + Tue Oct 20 03:32:58 PDT 1998 Manish Singh * configure.in diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 9bde88d7..f751e603 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +1998-10-20 Sebastian Wilhelmi + + * configure.in: made the check for needed _ in module's func-names + work on solaris. (G_MODULE_NEED_USCORE must be set outside + AC_CACHE_VAL, dlopen(0,0) refused to work on solaris). + Tue Oct 20 03:32:58 PDT 1998 Manish Singh * configure.in diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 9bde88d7..f751e603 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +1998-10-20 Sebastian Wilhelmi + + * configure.in: made the check for needed _ in module's func-names + work on solaris. (G_MODULE_NEED_USCORE must be set outside + AC_CACHE_VAL, dlopen(0,0) refused to work on solaris). + Tue Oct 20 03:32:58 PDT 1998 Manish Singh * configure.in diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 9bde88d7..f751e603 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +1998-10-20 Sebastian Wilhelmi + + * configure.in: made the check for needed _ in module's func-names + work on solaris. (G_MODULE_NEED_USCORE must be set outside + AC_CACHE_VAL, dlopen(0,0) refused to work on solaris). + Tue Oct 20 03:32:58 PDT 1998 Manish Singh * configure.in diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 9bde88d7..f751e603 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +1998-10-20 Sebastian Wilhelmi + + * configure.in: made the check for needed _ in module's func-names + work on solaris. (G_MODULE_NEED_USCORE must be set outside + AC_CACHE_VAL, dlopen(0,0) refused to work on solaris). + Tue Oct 20 03:32:58 PDT 1998 Manish Singh * configure.in diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 9bde88d7..f751e603 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +1998-10-20 Sebastian Wilhelmi + + * configure.in: made the check for needed _ in module's func-names + work on solaris. (G_MODULE_NEED_USCORE must be set outside + AC_CACHE_VAL, dlopen(0,0) refused to work on solaris). + Tue Oct 20 03:32:58 PDT 1998 Manish Singh * configure.in diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 9bde88d7..f751e603 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +1998-10-20 Sebastian Wilhelmi + + * configure.in: made the check for needed _ in module's func-names + work on solaris. (G_MODULE_NEED_USCORE must be set outside + AC_CACHE_VAL, dlopen(0,0) refused to work on solaris). + Tue Oct 20 03:32:58 PDT 1998 Manish Singh * configure.in diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 9bde88d7..f751e603 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +1998-10-20 Sebastian Wilhelmi + + * configure.in: made the check for needed _ in module's func-names + work on solaris. (G_MODULE_NEED_USCORE must be set outside + AC_CACHE_VAL, dlopen(0,0) refused to work on solaris). + Tue Oct 20 03:32:58 PDT 1998 Manish Singh * configure.in diff --git a/configure.in b/configure.in index 4ee4d47d..d4235c2a 100644 --- a/configure.in +++ b/configure.in @@ -433,25 +433,30 @@ if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then dnl *** check whether we need preceeding underscores AC_MSG_CHECKING(for preceeding underscore in symbols) AC_CACHE_VAL(glib_cv_uscore,[ + echo "int glib_underscore_test (void) { return 42; }" >plugin.c + ./libtool --mode=compile $CC -c plugin.c >/dev/null 2>&1 AC_TRY_RUN([ #include - int glib_underscore_test (void) { return 42; } int main() { void *f1 = (void*)0, *f2 = (void*)0, *handle; - handle = dlopen ((void*)0, 0); + handle = dlopen ("./plugin.lo", RTLD_NOW ); if (handle) { f1 = dlsym (handle, "glib_underscore_test"); f2 = dlsym (handle, "_glib_underscore_test"); - } return (f2 && !f1); - }], - glib_cv_uscore=yes - G_MODULE_NEED_USCORE=1 - , - glib_cv_uscore=no - G_MODULE_NEED_USCORE=0 - ,) + } return (!f2 && f1); + }], + glib_cv_uscore=yes, + glib_cv_uscore=no, + ) + rm -f plugin.c plugin.o plugin.lo ]) - AC_MSG_RESULT($glib_cv_uscore) + AC_MSG_RESULT($glib_cv_uscore) + if test "x$glib_cv_uscore" = "xyes"; then + G_MODULE_NEED_USCORE=1 + else + G_MODULE_NEED_USCORE=0 + fi + LDFLAGS="$LDFLAGS_orig" dnl *** check for having dlerror() AC_CHECK_FUNC(dlerror,