diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2009-04-22 22:06:58 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2009-04-22 22:06:58 +0000 |
commit | a8bf95d0249565f4210ccab5c13232d501ce0c2d (patch) | |
tree | e01f2eca98add8dba13eec23a95fa22120638890 /m4/rtems-multilib.m4 | |
parent | This commit was manufactured by cvs2svn to create branch 'base'. (diff) | |
download | libbsdport-a8bf95d0249565f4210ccab5c13232d501ce0c2d.tar.bz2 |
- importing updated version from SLAC as of 20090422
Diffstat (limited to '')
-rw-r--r-- | m4/rtems-multilib.m4 | 28 |
1 files changed, 28 insertions, 0 deletions
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 +) |