comparison configure.in @ 1384:72bc4b7c2480

[xemacs-hg @ 2003-03-26 04:32:18 by james] More Andrew Begel stuff, because CVS won't commit the top level and src stuff at the same time.
author james
date Wed, 26 Mar 2003 04:32:18 +0000
parents 2e6e691f6649
children 5d62849e7275
comparison
equal deleted inserted replaced
1383:517919955e3f 1384:72bc4b7c2480
3164 3164
3165 dnl Check for MS-Windows 3165 dnl Check for MS-Windows
3166 if test "$with_msw" = "yes"; then 3166 if test "$with_msw" = "yes"; then
3167 have_dl=yes; 3167 have_dl=yes;
3168 else 3168 else
3169 dnl Find headers and libraries 3169 case "$opsys" in
3170 AC_CHECK_HEADER(dlfcn.h, [ 3170 darwin ) have_dl=yes; AC_DEFINE(HAVE_DYLD) ;;
3171 AC_MSG_CHECKING([for dlopen in -lc]) 3171 * )
3172 AC_TRY_LINK([#include <dlfcn.h>],dnl 3172 dnl Find headers and libraries
3173 [dlopen ("", 0);], [ have_dl=yes ], [ 3173 AC_CHECK_HEADER(dlfcn.h, [
3174 AC_MSG_CHECKING([for dlopen in -ldl]) 3174 AC_MSG_CHECKING([for dlopen in -lc])
3175 ac_save_LIBS="$LIBS" 3175 AC_TRY_LINK([#include <dlfcn.h>],dnl
3176 LIBS="-ldl $LIBS" 3176 [dlopen ("", 0);], [ have_dl=yes ], [
3177 AC_TRY_LINK([#include <dlfcn.h>],dnl 3177 AC_MSG_CHECKING([for dlopen in -ldl])
3178 [dlopen ("", 0);], [ have_dl=yes ], 3178 ac_save_LIBS="$LIBS"
3179 [LIBS="$ac_save_LIBS"]) 3179 LIBS="-ldl $LIBS"
3180 ac_save_LIBS=])]) 3180 AC_TRY_LINK([#include <dlfcn.h>],dnl
3181 if test -n "$have_dl"; then 3181 [dlopen ("", 0);], [ have_dl=yes ],
3182 AC_DEFINE(HAVE_DLOPEN) 3182 [LIBS="$ac_save_LIBS"])
3183 else 3183 ac_save_LIBS=])])
3184 AC_CHECK_LIB(dld, shl_load, [ 3184 if test -n "$have_dl"; then
3185 libdl=dld have_dl=yes; 3185 AC_DEFINE(HAVE_DLOPEN)
3186 AC_DEFINE(HAVE_SHL_LOAD)], [ 3186 else
3187 AC_CHECK_LIB(dld, dld_init, [ 3187 AC_CHECK_LIB(dld, shl_load, [
3188 libdl=dld have_dl=yes; 3188 libdl=dld have_dl=yes;
3189 AC_DEFINE(HAVE_DLD_INIT)])]) 3189 AC_DEFINE(HAVE_SHL_LOAD)], [
3190 fi 3190 AC_CHECK_LIB(dld, dld_init, [
3191 libdl=dld have_dl=yes;
3192 AC_DEFINE(HAVE_DLD_INIT)])])
3193 fi
3194 esac dnl end !darwin
3191 fi dnl end !MS-Windows 3195 fi dnl end !MS-Windows
3192 3196
3193 if test -n "$have_dl"; then 3197 if test -n "$have_dl"; then
3194 dnl XE_SHLIB_STUFF (in aclocal.m4) defines $can_build_shared 3198 dnl XE_SHLIB_STUFF (in aclocal.m4) defines $can_build_shared
3195 XE_SHLIB_STUFF 3199 XE_SHLIB_STUFF