plugin builds: Punt AC_PROG_LIBTOOL. Use MIT_SCHEME_LIBDIR.
authorMatt Birkholz <puck@birchwood-abbey.net>
Sat, 28 May 2016 22:21:11 +0000 (15:21 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Sat, 28 May 2016 22:21:11 +0000 (15:21 -0700)
AC_PROG_LIBTOOL is deprecated.  MIT_SCHEME_LIBDIR replaces both
MIT_SCHEME_ARCH and the project name, allowing the latter to be more
easily changed.

src/blowfish/Makefile.am
src/blowfish/configure.ac
src/gdbm/Makefile.am
src/gdbm/configure.ac
src/mcrypt/Makefile.am
src/mcrypt/configure.ac
src/md5/Makefile.am
src/md5/configure.ac
src/mhash/Makefile.am
src/mhash/configure.ac

index 12edf6d16c4dd446f736c82e9753716d19fada76..42f91e477d1238fbb6fd0c6d89d935e6e8554660 100644 (file)
@@ -26,8 +26,8 @@ ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
-scmlibdir = $(libdir)/mit-scheme-@MIT_SCHEME_ARCH@
-scmlib_blowfishdir = $(scmlibdir)/blowfish
+scmlibdir = @MIT_SCHEME_LIBDIR@
+scmlib_blowfishdir = $(scmlibdir)blowfish
 
 scmlib_LTLIBRARIES = blowfish-shim.la
 scmlib_DATA = blowfish-types.bin blowfish-const.bin
@@ -97,7 +97,7 @@ EXTRA_DIST += blowfish-check.scm blowfish-check.sh
 EXTRA_DIST += make.scm optiondb.scm tags-fix.sh
 
 install-data-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
 
 #install-html: install-html-am
@@ -105,7 +105,7 @@ install-data-hook:
 #      | $(MIT_SCHEME_EXE) --batch-mode
 
 uninstall-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
        [ -d "$(DESTDIR)$(scmlib_blowfishdir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_blowfishdir)"
index 00a43360a0023e82e9f8d21b5acb73381006dc10..36f5bb5eab2730e414d4b1e99c5d7c8549e69a80 100644 (file)
@@ -61,7 +61,9 @@ USA.
 
 AM_INIT_AUTOMAKE
 
-AC_PROG_LIBTOOL
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen])
+
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
@@ -71,10 +73,6 @@ AC_ARG_WITH([openssl],
        [Use OpenSSL crypto library if available [[yes]]]))
 : ${with_openssl='yes'}
 
-dnl Initialize libtool
-LT_PREREQ([2.2.6])
-LT_INIT([dlopen win32-dll])
-
 dnl The OpenSSL crypto library provides support for blowfish.
 if test "${with_openssl}" != no; then
     if test "${with_openssl}" != yes; then
@@ -94,13 +92,14 @@ if test "${with_openssl}" != no; then
 fi
 
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
+                    echo "          (system-library-directory-pathname)))" ) \
+                  | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+                     | ${MIT_SCHEME_EXE} --batch-mode`
 
 AC_SUBST([MIT_SCHEME_EXE])
-AC_SUBST([MIT_SCHEME_ARCH])
+AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
index 47f60794e8bbc7083c305c9c67a8c8bcad82d202..4166359ab786bc429c0cfdcbba9c3324e345311e 100644 (file)
@@ -26,8 +26,8 @@ ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
-scmlibdir = $(libdir)/mit-scheme-@MIT_SCHEME_ARCH@
-scmlib_gdbmdir = $(scmlibdir)/gdbm
+scmlibdir = @MIT_SCHEME_LIBDIR@
+scmlib_gdbmdir = $(scmlibdir)gdbm
 
 scmlib_LTLIBRARIES = gdbm-shim.la
 scmlib_DATA = gdbm-types.bin gdbm-const.bin
@@ -97,7 +97,7 @@ EXTRA_DIST += compile.scm gdbm-check.scm gdbm-check.sh
 EXTRA_DIST += make.scm optiondb.scm tags-fix.sh
 
 install-data-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
 
 #install-html: install-html-am
@@ -105,7 +105,7 @@ install-data-hook:
 #      | $(MIT_SCHEME_EXE) --batch-mode
 
 uninstall-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
        [ -d "$(DESTDIR)$(scmlib_gdbmdir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_gdbmdir)"
index 7abf677d30802cdad224b46e0fcf139a1b6f5c0e..f7cc8d7a7a1df2aac7b7af2bd12e08fdee6ae203 100644 (file)
@@ -34,28 +34,27 @@ USA.
 
 AM_INIT_AUTOMAKE
 
-AC_PROG_LIBTOOL
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen])
+
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
 
-dnl Initialize libtool
-LT_PREREQ([2.2.6])
-LT_INIT([dlopen win32-dll])
-
 AC_CHECK_HEADER([gdbm.h],[],[
     AC_MSG_ERROR([Header file <gdbm.h> not found.])])
 
 LIBS="-lgdbm"
 
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
+                    echo "          (system-library-directory-pathname)))" ) \
+                  | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+                     | ${MIT_SCHEME_EXE} --batch-mode`
 
 AC_SUBST([MIT_SCHEME_EXE])
-AC_SUBST([MIT_SCHEME_ARCH])
+AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
index 6f3fbfa2fd2cdfbb4b9605a4fef6f7b57af8993f..57b0b4ad72dabaa0e318d995cb17c666f7104eba 100644 (file)
@@ -26,8 +26,8 @@ ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
-scmlibdir = $(libdir)/mit-scheme-@MIT_SCHEME_ARCH@
-scmlib_mcryptdir = $(scmlibdir)/mcrypt
+scmlibdir = @MIT_SCHEME_LIBDIR@
+scmlib_mcryptdir = $(scmlibdir)mcrypt
 
 scmlib_LTLIBRARIES = mcrypt-shim.la
 scmlib_DATA = mcrypt-types.bin mcrypt-const.bin
@@ -92,12 +92,12 @@ all_sources = $(sources) mcrypt-adapter.c
 ETAGS_ARGS = $(all_sources) -r '/^([^iI].*/' $(cdecls)
 TAGS_DEPENDENCIES = $(all_sources) $(cdecls)
 
-EXTRA_DIST += $(all_sources) $(cdecls) mcrypt.pkg
-EXTRA_DIST += compile.scm mcrypt-check.scm mcrypt-check.sh
+EXTRA_DIST += $(all_sources) $(cdecls) compile.scm mcrypt.pkg
+EXTRA_DIST += mcrypt-check.scm mcrypt-check.sh
 EXTRA_DIST += make.scm optiondb.scm tags-fix.sh
 
 install-data-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
 
 #install-html: install-html-am
@@ -105,7 +105,7 @@ install-data-hook:
 #      | $(MIT_SCHEME_EXE) --batch-mode
 
 uninstall-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
        [ -d "$(DESTDIR)$(scmlib_mcryptdir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_mcryptdir)"
index 9ecaa099acd09b1fac9b76814a216cefaecaccdd..3e0189c3a8acafe5dabae351c30684da3b9632be 100644 (file)
@@ -61,7 +61,9 @@ USA.
 
 AM_INIT_AUTOMAKE
 
-AC_PROG_LIBTOOL
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen])
+
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
@@ -75,13 +77,14 @@ CFLAGS="${MCRYPT_CFLAGS} ${CFLAGS}"
 LIBS="${LIBS} ${MCRYPT_LIBS}"
 
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
+                    echo "          (system-library-directory-pathname)))" ) \
+                  | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+                     | ${MIT_SCHEME_EXE} --batch-mode`
 
 AC_SUBST([MIT_SCHEME_EXE])
-AC_SUBST([MIT_SCHEME_ARCH])
+AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
index 263868aa969cbc4477480f07cfb3596a63ee028b..726b604441b908814ab8f529462239c0c0f64d04 100644 (file)
@@ -26,8 +26,8 @@ ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
-scmlibdir = $(libdir)/mit-scheme-@MIT_SCHEME_ARCH@
-scmlib_md5dir = $(scmlibdir)/md5
+scmlibdir = @MIT_SCHEME_LIBDIR@
+scmlib_md5dir = $(scmlibdir)md5
 
 scmlib_LTLIBRARIES = md5-shim.la
 scmlib_DATA = md5-types.bin md5-const.bin
@@ -92,12 +92,12 @@ all_sources = $(sources) md5-adapter.c
 ETAGS_ARGS = $(all_sources) -r '/^([^iI].*/' $(cdecls)
 TAGS_DEPENDENCIES = $(all_sources) $(cdecls)
 
-EXTRA_DIST += $(all_sources) $(cdecls) md5.pkg
-EXTRA_DIST += compile.scm md5-check.scm md5-check.sh
+EXTRA_DIST += $(all_sources) $(cdecls) compile.scm md5.pkg
+EXTRA_DIST += md5-check.scm md5-check.sh
 EXTRA_DIST += make.scm optiondb.scm tags-fix.sh
 
 install-data-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
 
 #install-html: install-html-am
@@ -105,7 +105,7 @@ install-data-hook:
 #      | $(MIT_SCHEME_EXE) --batch-mode
 
 uninstall-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
        [ -d "$(DESTDIR)$(scmlib_md5dir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_md5dir)"
index 85f83d9c36044540473005a45e263d446c26353b..9a81281297f4225148f41d08611122da8d8d4b71 100644 (file)
@@ -61,7 +61,9 @@ USA.
 
 AM_INIT_AUTOMAKE
 
-AC_PROG_LIBTOOL
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen])
+
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
@@ -71,10 +73,6 @@ AC_ARG_WITH([openssl],
        [Use OpenSSL crypto library if available [[yes]]]))
 : ${with_openssl='yes'}
 
-dnl Initialize libtool
-LT_PREREQ([2.2.6])
-LT_INIT([dlopen win32-dll])
-
 dnl The OpenSSL crypto library provides support for md5.
 if test "${with_openssl}" != no; then
     if test "${with_openssl}" != yes; then
@@ -94,13 +92,14 @@ if test "${with_openssl}" != no; then
 fi
 
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
+                    echo "          (system-library-directory-pathname)))" ) \
+                  | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+                     | ${MIT_SCHEME_EXE} --batch-mode`
 
 AC_SUBST([MIT_SCHEME_EXE])
-AC_SUBST([MIT_SCHEME_ARCH])
+AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
index fb3e6c9d7b396fb93c2dc991ae55e9e319b7d9e2..943907c6450a9834465a42a6dc2b5ce28adee6ed 100644 (file)
@@ -26,8 +26,8 @@ ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
-scmlibdir = $(libdir)/mit-scheme-@MIT_SCHEME_ARCH@
-scmlib_mhashdir = $(scmlibdir)/mhash
+scmlibdir = @MIT_SCHEME_LIBDIR@
+scmlib_mhashdir = $(scmlibdir)mhash
 
 scmlib_LTLIBRARIES = mhash-shim.la
 scmlib_DATA = mhash-types.bin mhash-const.bin
@@ -92,12 +92,12 @@ all_sources = $(sources) mhash-adapter.c
 ETAGS_ARGS = $(all_sources) -r '/^([^iI].*/' $(cdecls)
 TAGS_DEPENDENCIES = $(all_sources) $(cdecls)
 
-EXTRA_DIST += $(all_sources) $(cdecls) mhash.pkg
-EXTRA_DIST += compile.scm mhash-check.scm mhash-check.sh
+EXTRA_DIST += $(all_sources) $(cdecls) compile.scm mhash.pkg
+EXTRA_DIST += mhash-check.scm mhash-check.sh
 EXTRA_DIST += make.scm optiondb.scm tags-fix.sh
 
 install-data-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
 
 #install-html: install-html-am
@@ -105,7 +105,7 @@ install-data-hook:
 #      | $(MIT_SCHEME_EXE) --batch-mode
 
 uninstall-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
        [ -d "$(DESTDIR)$(scmlib_mhashdir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_mhashdir)"
index 370d598d5f6aef4568fe5f56709e0ed4017a2835..be81a772cdc0112160781a429b3777337546f48e 100644 (file)
@@ -61,28 +61,27 @@ USA.
 
 AM_INIT_AUTOMAKE
 
-AC_PROG_LIBTOOL
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen])
+
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
 
-dnl Initialize libtool
-LT_PREREQ([2.2.6])
-LT_INIT([dlopen win32-dll])
-
 AC_CHECK_HEADER([mhash.h],[],[
     AC_MSG_ERROR([Header file <mhash.h> not found.])])
 
 LIBS="-lmhash"
 
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
+                    echo "          (system-library-directory-pathname)))" ) \
+                  | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+                     | ${MIT_SCHEME_EXE} --batch-mode`
 
 AC_SUBST([MIT_SCHEME_EXE])
-AC_SUBST([MIT_SCHEME_ARCH])
+AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT