source: rtems/aclocal/multilib.m4 @ 2e0fd427

4.104.114.84.9
Last change on this file since 2e0fd427 was 2e0fd427, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 2, 2000 at 3:44:04 PM

2000-11-02 Ralf Corsepius <corsepiu@…>

  • aclocal/*: Replace with contents of macros/*.m4
  • macros/: Remove.
  • aclocal/ar-s.m4 aclocal/tool-prefix.m4: Remove.
  • Makefile.am: Reflect changes to aclocal/ and macros/.
  • Property mode set to 100644
File size: 1.6 KB
Line 
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) ;;
13 esac], [multilib=no])dnl
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
25if test "[$]{srcdir}" = "."; then
26  if test "[$]{with_target_subdir}" != "."; then
27    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}../ifelse([$2],,,[$2])"
28  else
29    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}ifelse([$2],,,[$2])"
30  fi
31else
32  multilib_basedir="[$]{srcdir}/ifelse([$2],,,[$2])"
33fi
34AC_SUBST(multilib_basedir)
35
36if test "${multilib}" = "yes"; then
37  multilib_arg="--enable-multilib"
38else
39  multilib_arg=
40fi
41
42AC_OUTPUT_COMMANDS(
43  if test -n "$CONFIG_FILES"; then
44    ac_file=[]ifelse([$1],,Makefile,[$1]) \
45    . ${multilib_basedir}/../config-ml.in
46  fi,[
47  srcdir=${srcdir}
48  host=${host}
49  target=${target}
50  with_multisrctop="${with_multisrctop}"
51  with_target_subdir="${with_target_subdir}"
52  with_multisubdir="${with_multisubdir}"
53  ac_configure_args="${multilib_arg} ${ac_configure_args}"
54  CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
55  multilib_basedir=${multilib_basedir}
56  CC="${CC}"])
57])
Note: See TracBrowser for help on using the repository browser.