source: rtems/aclocal/multilib.m4 @ 02217e0b

4.104.114.84.95
Last change on this file since 02217e0b was 02217e0b, checked in by Joel Sherrill <joel.sherrill@…>, on 07/06/00 at 20:15:35

Patch rtems-rc-20000704-1.diff from Ralf Corsepius <corsepiu@…>
that makes --disable-multilib the default.

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[fe5851ce]1dnl This provides configure definitions used for multilib support
2
3dnl parts of these macros are derived from newlib-1.8.2's multilib support
4
5AC_DEFUN(RTEMS_ENABLE_MULTILIB,
6[
7AC_ARG_ENABLE(multilib,
8[  --enable-multilib         build many library versions (default)],
9[case "${enableval}" in
10  yes) multilib=yes ;;
11  no)  multilib=no ;;
12  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
[02217e0b]13 esac], [multilib=no])dnl
[fe5851ce]14
15AM_CONDITIONAL(MULTILIB,test x"${multilib}" = x"yes")
16])
17
18AC_DEFUN(RTEMS_ENABLE_MULTILIB_MASTER,
19[
20AC_REQUIRE([RTEMS_ENABLE_MULTILIB])
21
22dnl We may get other options which we don't document:
23dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
24
25test -z "[$]{with_target_subdir}" && with_target_subdir=.
26
27if test "[$]{srcdir}" = "."; then
28  if test "[$]{with_target_subdir}" != "."; then
29    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}../ifelse([$2],,,[$2])"
30  else
31    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}ifelse([$2],,,[$2])"
32  fi
33else
34  multilib_basedir="[$]{srcdir}/ifelse([$2],,,[$2])"
35fi
36AC_SUBST(multilib_basedir)
37
38if test "${multilib}" = "yes"; then
39  multilib_arg="--enable-multilib"
40else
41  multilib_arg=
42fi
43
44AC_OUTPUT_COMMANDS(
45  if test -n "$CONFIG_FILES"; do
46    $ac_file" = ifelse([$1],,Makefile,[$1]) \
47    . ${multilib_basedir}/../config-ml.in
48  fi,
49  srcdir=${srcdir}
50  host=${host}
51  target=${target}
52#  with_multisrctop="${with_multisrctop}"
53#  with_target_subdir="${with_target_subdir}"
54  with_multisubdir="${with_multisubdir}"
55  ac_configure_args="${multilib_arg} ${ac_configure_args}"
56  CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
57  multilib_basedir=${multilib_basedir}
58  CC="${CC}")
59])
Note: See TracBrowser for help on using the repository browser.