OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [newlib/] [newlib/] [newlib/] [configure.in] - Blame information for rev 1766

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 56 joel
dnl This is the newlib configure.in file.
2
dnl Process this file with autoconf to produce a configure script.
3 39 lampret
 
4 56 joel
AC_PREREQ(2.5)
5
AC_INIT(libc)
6 39 lampret
 
7 56 joel
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
8
AC_CONFIG_AUX_DIR(..)
9 39 lampret
 
10 56 joel
NEWLIB_CONFIGURE(.)
11 39 lampret
 
12 56 joel
configdirs="libc libm"
13 39 lampret
 
14 56 joel
AC_ARG_ENABLE(newlib_hw_fp,
15
[  --enable-newlib-hw-fp    Turn on hardware floating point math],
16
[case "${enableval}" in
17
   yes) newlib_hw_fp=true ;;
18
   no)  newlib_hw_fp=false ;;
19
   *) AC_MSG_ERROR(bad value ${enableval} for --enable-newlib-hw-fp) ;;
20
 esac],[newlib_hw_fp=false])
21
AM_CONDITIONAL(NEWLIB_HW_FP, test x$newlib_hw_fp = xtrue)
22 39 lampret
 
23 56 joel
if test -z "${with_multisubdir}"; then
24
  configdirs="${configdirs} doc"
25
  have_doc=yes
26
else
27
  have_doc=
28 39 lampret
fi
29 56 joel
AM_CONDITIONAL(HAVE_DOC, test x$have_doc = xyes)
30 39 lampret
 
31 56 joel
AC_CONFIG_SUBDIRS(${configdirs})
32 39 lampret
 
33 56 joel
CRT0=
34
CRT0_DIR=
35
if test -n "${sys_dir}"; then
36
  CRT0=crt0.o
37
  CRT0_DIR=libc
38 39 lampret
fi
39 56 joel
AC_SUBST(CRT0)
40
AC_SUBST(CRT0_DIR)
41 39 lampret
 
42
 
43
 
44
 
45 56 joel
if test "${multilib}" = "yes"; then
46
  multilib_arg="--enable-multilib"
47
else
48
  multilib_arg=
49 39 lampret
fi
50
 
51
 
52 56 joel
AC_OUTPUT(Makefile,
53
[if test -n "$CONFIG_FILES"; then
54
  . ${newlib_basedir}/../config-ml.in
55
fi],
56
srcdir=${srcdir}
57
host=${host}
58
target=${target}
59
with_multisubdir=${with_multisubdir}
60
ac_configure_args="${multilib_arg} ${ac_configure_args}"
61
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
62
newlib_basedir=${newlib_basedir}
63
CC="${CC}"
64
)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.