fi
AC_MSG_CHECKING(for Ruby library path)
+ RUBYLIBDIR=`($rubybin -rmkmf -e 'print Config::CONFIG[["libdir"]]') 2> /dev/null`
+ if test -d "$RUBYLIBDIR"; then
+ AC_MSG_RESULT([$RUBYLIBDIR])
+ else
+ AC_MSG_RESULT(not found)
+ AC_MSG_ERROR(Ruby library path not found)
+ fi
+
+ AC_MSG_CHECKING(for Ruby extension path)
RUBYDIR=`($rubybin -rmkmf -e 'print Config::CONFIG[["archdir"]]') 2> /dev/null`
if test -d "$RUBYDIR"; then
AC_MSG_RESULT([$RUBYDIR])
else
AC_MSG_RESULT(not found)
- AC_MSG_ERROR(Ruby library path not found)
+ AC_MSG_ERROR(Ruby extension path not found)
fi
AC_MSG_CHECKING(for Ruby site library path)
AC_MSG_RESULT([$RUBYSITEDIR])
else
AC_MSG_RESULT(not found)
- AC_MSG_ERROR(Ruby site library path not found)
+ AC_MSG_ERROR(Ruby site extension path not found)
fi
+ AC_SUBST(RUBYLIBDIR)
AC_SUBST(RUBYDIR)
AC_SUBST(RUBYSITEDIR)
])
-## $Id: Makefile.am 36 2004-07-25 10:45:47Z tilman $
+## $Id: Makefile.am 75 2004-08-16 18:17:19Z tilman $
SUBDIRS = esmart_container esmart_draggies esmart_trans_x11
esmart_la_SOURCES = rb_esmart.c rb_esmart.h
-esmart_la_LIBADD = -lruby $(ESMART_LIBS)
+esmart_la_LIBADD = -L$(RUBYLIBDIR) -lruby $(ESMART_LIBS)
esmart_la_LDFLAGS = -module -avoid-version
-## $Id: Makefile.am 36 2004-07-25 10:45:47Z tilman $
+## $Id: Makefile.am 75 2004-08-16 18:17:19Z tilman $
AM_CFLAGS = $(ESMART_CFLAGS)
INCLUDES = -I$(RUBYDIR) -I$(RUBYSITEDIR)
esmart_container_la_SOURCES = rb_esmart_container.c
-esmart_container_la_LIBADD = -lruby $(ESMART_LIBS) -lesmart_container
+esmart_container_la_LIBADD = -L$(RUBYLIBDIR) -lruby $(ESMART_LIBS) \
+ -lesmart_container
esmart_container_la_LDFLAGS = -module -avoid-version
-## $Id: Makefile.am 36 2004-07-25 10:45:47Z tilman $
+## $Id: Makefile.am 75 2004-08-16 18:17:19Z tilman $
AM_CFLAGS = $(ESMART_CFLAGS)
INCLUDES = -I$(RUBYDIR) -I$(RUBYSITEDIR)
esmart_draggies_la_SOURCES = rb_esmart_draggies.c
-esmart_draggies_la_LIBADD = -lruby $(ESMART_LIBS) -lesmart_draggies
+esmart_draggies_la_LIBADD = -L$(RUBYLIBDIR) -lruby $(ESMART_LIBS) \
+ -lesmart_draggies
esmart_draggies_la_LDFLAGS = -module -avoid-version
-## $Id: Makefile.am 36 2004-07-25 10:45:47Z tilman $
+## $Id: Makefile.am 75 2004-08-16 18:17:19Z tilman $
AM_CFLAGS = $(ESMART_CFLAGS)
INCLUDES = -I$(RUBYDIR) -I$(RUBYSITEDIR)
esmart_trans_x11_la_SOURCES = rb_esmart_trans_x11.c
-esmart_trans_x11_la_LIBADD = -lruby $(ESMART_LIBS) -lesmart_trans_x11
+esmart_trans_x11_la_LIBADD = -L$(RUBYLIBDIR) -lruby $(ESMART_LIBS) \
+ -lesmart_trans_x11
esmart_trans_x11_la_LDFLAGS = -module -avoid-version