2
# Determine shared object suffixes.
4
# Our method is to use the libtool variable $library_names_spec,
5
# set by using AC_PROG_LIBTOOL. This variable is a snippet of shell
6
# defined in terms of $versuffix, $release, $libname, $module and $jnimodule.
7
# We want to eval it and grab the suffix used for shared objects.
8
# By setting $module and $jnimodule to yes/no, we obtain the suffixes
9
# used to create dlloadable, or java loadable modules.
10
# On many (*nix) systems, these all evaluate to .so, but there
11
# are some notable exceptions.
13
# This macro is used internally to discover the suffix for the current
14
# settings of $module and $jnimodule. The result is stored in $_SOSUFFIX.
15
AC_DEFUN(_SOSUFFIX_INTERNAL, [
19
eval library_names=\"$library_names_spec\"
20
_SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([[a-zA-Z0-9_]]*\).*/\1/'`
21
if test "$_SOSUFFIX" = '' ; then
23
if test "$enable_shared" = "yes" && test "$_SOSUFFIX_MESSAGE" = ""; then
25
AC_MSG_WARN([libtool may not know about this architecture.])
26
AC_MSG_WARN([assuming .$_SUFFIX suffix for dynamic libraries.])
31
# SOSUFFIX_CONFIG will set the variable SOSUFFIX to be the
32
# shared library extension used for general linking, not dlopen.
33
AC_DEFUN(SOSUFFIX_CONFIG, [
34
AC_MSG_CHECKING([SOSUFFIX from libtool])
39
AC_MSG_RESULT($SOSUFFIX)
43
# MODSUFFIX_CONFIG will set the variable MODSUFFIX to be the
44
# shared library extension used for dlopen'ed modules.
45
# To discover this, we set $module, simulating libtool's -module option.
46
AC_DEFUN(MODSUFFIX_CONFIG, [
47
AC_MSG_CHECKING([MODSUFFIX from libtool])
52
AC_MSG_RESULT($MODSUFFIX)
56
# JMODSUFFIX_CONFIG will set the variable JMODSUFFIX to be the
57
# shared library extension used JNI modules opened by Java.
58
# To discover this, we set $jnimodule, simulating libtool's -jnimodule option.
59
# -jnimodule is currently a Sleepycat local extension to libtool.
60
AC_DEFUN(JMODSUFFIX_CONFIG, [
61
AC_MSG_CHECKING([JMODSUFFIX from libtool])
66
AC_MSG_RESULT($JMODSUFFIX)