Install libraries into architecture-dependent directory

This commit is contained in:
mainzelm 2003-11-22 19:38:14 +00:00
parent aba02de319
commit 6a3a89a8c0
4 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
INCLUDES = -I@top_srcdir@/c/xlib -I@top_srcdir@/c/libs -I@x_includes@ \
-I@top_srcdir@/c -I@scsh_includes@
pkglib_LTLIBRARIES = libscx.la
libsys_LTLIBRARIES = libscx.la
libscx_la_SOURCES = \
client.c colormap.c cursor.c display.c error.c event-types.c \

View File

@ -60,6 +60,8 @@
#if no_x == 'yes' fail ...
libsysdir="${prefix}/lib/`uname -m`-`uname -s`"
AC_SUBST(libsysdir)
AC_SUBST(LIBS)
AC_SUBST(CC)
AC_SUBST(x_includes)

View File

@ -44,10 +44,10 @@ CLEANFILES= load-scx.scm
load-scx.scm: $(srcdir)/load-scx.scm.in
sed -e "s|@scxdatadir@|`pwd`/$(srcdir)|g" \
-e "s|@scxlibdir@|`pwd`/../c/xlib/.libs|g" $< > $@
-e "s|@scxlibsysdir@|`pwd`/../c/xlib/.libs|g" $< > $@
install-data-hook:
sed -e "s|@scxdatadir@|$(pkgdatadir)|g" \
-e "s|@scxlibdir@|$(pkglibdir)|g" \
-e "s|@scxlibsysdir@|$(libsysdir)|g" \
$(srcdir)/load-scx.scm.in \
> $(DESTDIR)/$(pkgdatadir)/load-scx.scm

View File

@ -3,7 +3,7 @@
(open 'dynamic-externals)
(open 'external-calls)
(run '(let ((initializer-name "scx_init_xlib")
(module-file "@scxlibdir@/libscx.so"))
(module-file "@scxlibsysdir@/libscx.so"))
(dynamic-load module-file)
(call-external (get-external initializer-name))))
(config)