Set the gmodule suffix to 'a' for aix and use the aix gmodule

Sun Feb 22 02:28:43 2004  Matthias Clasen  <maclas@gmx.de>

	* configure.in: Set the gmodule suffix to 'a' for aix and
	use the aix gmodule implementation.  (#85930, Laurent Vivier)

	Bug #85930, Laurent Vivier:

	* gmodule-ar.c: Implementation of native module management for AIX.
	* gmoduleconf.h.in:
	* gmodule.c: Support gmodule-ar.c
This commit is contained in:
Matthias Clasen
2004-02-22 01:31:24 +00:00
committed by Matthias Clasen
parent c0b5617ae9
commit 1c49b23e91
11 changed files with 232 additions and 0 deletions

View File

@@ -1007,6 +1007,13 @@ if test -z "$G_MODULE_IMPL"; then
*-*-mingw*|*-*-cygwin*) G_MODULE_IMPL=G_MODULE_IMPL_WIN32 ;;
esac
fi
dnl *** force native AIX library loader
dnl *** dlopen() filepath must be of the form /path/libname.a(libname.so)
if test -z "$G_MODULE_IMPL"; then
case "$host" in
*-*-aix*) G_MODULE_IMPL=G_MODULE_IMPL_AR ;;
esac
fi
dnl *** dlopen() and dlsym() in system libraries
if test -z "$G_MODULE_IMPL"; then
AC_CHECK_FUNC(dlopen,
@@ -1129,6 +1136,9 @@ case "$host_os" in
cygwin* | mingw*)
glib_gmodule_suffix='dll'
;;
aix*)
glib_gmodule_suffix='a'
;;
*)
glib_gmodule_suffix='so'
;;