From a8bf95d0249565f4210ccab5c13232d501ce0c2d Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Wed, 22 Apr 2009 22:06:58 +0000 Subject: - importing updated version from SLAC as of 20090422 --- m4/rtems-multilib.m4 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 m4/rtems-multilib.m4 (limited to 'm4/rtems-multilib.m4') diff --git a/m4/rtems-multilib.m4 b/m4/rtems-multilib.m4 new file mode 100644 index 0000000..25be9d4 --- /dev/null +++ b/m4/rtems-multilib.m4 @@ -0,0 +1,28 @@ +# +# Prepare for a multilibbed build +# - check for presence of 'config-ml.in' +# - expand AM_ENABLE_MULTILIB(MAKEFILE, REL-TO-TOP-SRCDIR) +# - expand TILLAM_MULTISUB_INSTALLDIR (workaround so that +# multilibs are installed into proper subdir. +# - make sure 'enable_multilib' is set to 'no' if it was initially +# unset; yet another little workaround... +# +# TILLAC_RTEMS_MULTILIB([MAKEFILE], [REL-TO-TOP-SRCDIR]) +AC_DEFUN([TILLAC_RTEMS_MULTILIB], + [if test -f ${srcdir}/config-ml.in || test -f $(srcdir)/../config-ml.in ; then + AM_ENABLE_MULTILIB([$1],[$2]) + # install multilibs into MULTISUBDIR + TILLAM_MULTISUB_INSTALLDIR +dnl AC_SUBST(libdir,[${libdir}'$(MULTISUBDIR)']) + # in order to properly build multilibs in sub-libraries it seems we + # must pass the --enable-multilibs arg to sub-configures or multilibs + # are not built there. + # To work around, we simply set the default to 'no' so the user must + # say --enable-multilib to get them. + if test ! "${enable_multilib+set}" = "set" ; then + multilib=no + fi + else + enable_multilib=no + fi]dnl +) -- cgit v1.2.3