source: trunk/libs/newlib/src/libgloss/arm/configure.in @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 2.3 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.59)
3AC_INIT(redboot-crt0.S)
4
5dnl Support --disable-newlib-supplied-syscalls
6AC_ARG_ENABLE(newlib-supplied-syscalls,
7[  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls],
8[case "${enableval}" in
9  yes) newlib_may_supply_syscalls=yes ;;
10  no)  newlib_may_supply_syscalls=no ;;
11  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-supplied-syscalls option) ;;
12 esac], [newlib_may_supply_syscalls=yes])dnl
13
14if test "x$newlib_may_supply_syscalls" = "xyes"; then
15  BUILD_CRT0_TRUE='#'
16  BUILD_CRT0_FALSE=
17else
18  BUILD_CRT0_TRUE=
19  BUILD_CRT0_FALSE='#'
20fi
21
22AC_SUBST(BUILD_CRT0_TRUE)
23AC_SUBST(BUILD_CRT0_FALSE)
24
25if test "$srcdir" = "." ; then
26  if test "${with_target_subdir}" != "." ; then
27    libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
28  else
29    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
30  fi
31else
32  libgloss_topdir="${srcdir}/../.."
33fi
34AC_CONFIG_AUX_DIR($libgloss_topdir)
35
36AC_CANONICAL_SYSTEM
37AC_ARG_PROGRAM
38
39AC_PROG_INSTALL
40
41LIB_AC_PROG_CC
42AS=${AS-as}
43AC_SUBST(AS)
44AR=${AR-ar}
45AC_SUBST(AR)
46LD=${LD-ld}
47AC_SUBST(LD)
48AC_PROG_RANLIB
49LIB_AM_PROG_AS
50
51case "${target}" in
52  *-*-elf | *-*-eabi* | *-*-tirtos*)
53        objtype=elf-
54        ;;
55  *-*-coff)
56        objtype=coff-
57        ;;
58esac
59
60AC_SUBST(objtype)
61
62host_makefile_frag=`cd $srcdir/../config;pwd`/default.mh
63
64dnl We have to assign the same value to other variables because autoconf
65dnl doesn't provide a mechanism to substitute a replacement keyword with
66dnl arbitrary data or pathnames.
67dnl
68host_makefile_frag_path=$host_makefile_frag
69AC_SUBST(host_makefile_frag_path)
70AC_SUBST_FILE(host_makefile_frag)
71
72# Configure cpu init plug-ins
73if test -d "${srcdir}/cpu-init"; then
74  subdirs="${subdirs} cpu-init"
75  AC_CONFIG_FILES(cpu-init/Makefile,
76  . ${libgloss_topdir}/config-ml.in,
77  srcdir=${srcdir}
78  target=${target}
79  with_multisubdir=${with_multisubdir}
80  ac_configure_args="${ac_configure_args} --enable-multilib"
81  CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
82  libgloss_topdir=${libgloss_topdir}
83  )
84  AC_SUBST(subdirs)
85fi
86
87AC_CONFIG_FILES(Makefile,
88. ${libgloss_topdir}/config-ml.in,
89srcdir=${srcdir}
90target=${target}
91with_multisubdir=${with_multisubdir}
92ac_configure_args="${ac_configure_args} --enable-multilib"
93CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
94libgloss_topdir=${libgloss_topdir}
95)
96AC_OUTPUT
97
Note: See TracBrowser for help on using the repository browser.