changeset 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 517919955e3f
children cb7e08ff87e8
files ChangeLog configure.in
diffstat 2 files changed, 31 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Mar 26 04:22:49 2003 +0000
+++ b/ChangeLog	Wed Mar 26 04:32:18 2003 +0000
@@ -1,3 +1,8 @@
+2003-03-25  Jerry James  <james@eecs.ku.edu>
+
+	* configure.in: Add Andrew Begel's shared library support for
+	MacOS X.
+
 2003-03-18  Stephen J. Turnbull  <stephen@xemacs.org>
 
 	* INSTALL: Give location of Darwin X11 downloads.
--- a/configure.in	Wed Mar 26 04:22:49 2003 +0000
+++ b/configure.in	Wed Mar 26 04:32:18 2003 +0000
@@ -3166,28 +3166,32 @@
   if test "$with_msw" = "yes"; then
     have_dl=yes;
   else
-    dnl Find headers and libraries
-    AC_CHECK_HEADER(dlfcn.h, [
-      AC_MSG_CHECKING([for dlopen in -lc])
-      AC_TRY_LINK([#include <dlfcn.h>],dnl
-	[dlopen ("", 0);], [ have_dl=yes ], [
-      AC_MSG_CHECKING([for dlopen in -ldl])
-      ac_save_LIBS="$LIBS"
-      LIBS="-ldl $LIBS"
-      AC_TRY_LINK([#include <dlfcn.h>],dnl
-	[dlopen ("", 0);], [ have_dl=yes ],
-	[LIBS="$ac_save_LIBS"])
-      ac_save_LIBS=])])
-    if test -n "$have_dl"; then
-      AC_DEFINE(HAVE_DLOPEN)
-    else
-      AC_CHECK_LIB(dld, shl_load, [
-        libdl=dld have_dl=yes;
-        AC_DEFINE(HAVE_SHL_LOAD)], [
-        AC_CHECK_LIB(dld, dld_init, [
-        libdl=dld have_dl=yes;
-        AC_DEFINE(HAVE_DLD_INIT)])])
-    fi
+    case "$opsys" in
+     darwin ) have_dl=yes; AC_DEFINE(HAVE_DYLD) ;;
+     * )
+      dnl Find headers and libraries
+      AC_CHECK_HEADER(dlfcn.h, [
+	AC_MSG_CHECKING([for dlopen in -lc])
+	AC_TRY_LINK([#include <dlfcn.h>],dnl
+	  [dlopen ("", 0);], [ have_dl=yes ], [
+	  AC_MSG_CHECKING([for dlopen in -ldl])
+	ac_save_LIBS="$LIBS"
+	LIBS="-ldl $LIBS"
+	AC_TRY_LINK([#include <dlfcn.h>],dnl
+	  [dlopen ("", 0);], [ have_dl=yes ],
+	  [LIBS="$ac_save_LIBS"])
+	ac_save_LIBS=])])
+      if test -n "$have_dl"; then
+	AC_DEFINE(HAVE_DLOPEN)
+      else
+	AC_CHECK_LIB(dld, shl_load, [
+	  libdl=dld have_dl=yes;
+	  AC_DEFINE(HAVE_SHL_LOAD)], [
+	  AC_CHECK_LIB(dld, dld_init, [
+	  libdl=dld have_dl=yes;
+	  AC_DEFINE(HAVE_DLD_INIT)])])
+      fi
+    esac dnl end !darwin
   fi dnl end !MS-Windows
 
   if test -n "$have_dl"; then