1 dnl This is the newlib configure.in file.
2 dnl Process this file with autoconf to produce a configure script.
7 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
12 dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
13 dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
14 dnl line of the macro which fail because appropriate LDFLAGS are not set.
15 if test "${use_libtool}" = "yes"; then
21 configdirs="libc libm"
23 AC_ARG_ENABLE(newlib_hw_fp,
24 [ --enable-newlib-hw-fp Turn on hardware floating point math],
25 [case "${enableval}" in
26 yes) newlib_hw_fp=true ;;
27 no) newlib_hw_fp=false ;;
28 *) AC_MSG_ERROR(bad value ${enableval} for --enable-newlib-hw-fp) ;;
29 esac],[newlib_hw_fp=false])
30 AM_CONDITIONAL(NEWLIB_HW_FP, test x$newlib_hw_fp = xtrue)
32 if test -z "${with_multisubdir}"; then
33 configdirs="${configdirs} doc"
38 AM_CONDITIONAL(HAVE_DOC, test x$have_doc = xyes)
40 AC_CONFIG_SUBDIRS(${configdirs})
44 if test -n "${sys_dir}"; then
53 if test -n "${crt1_dir}"; then
59 if test -n "${libm_machine_dir}"; then
60 LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
62 AC_SUBST(LIBM_MACHINE_OBJECTLIST)
64 if test -n "${machine_dir}"; then
65 MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
67 AC_SUBST(MACHINE_OBJECTLIST)
69 if test -n "${sys_dir}"; then
70 SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
72 AC_SUBST(SYS_OBJECTLIST)
74 if test "${have_sys_mach_dir}" = "yes"; then
75 SYS_MACH_OBJECTLIST=libc/sys/${sys_dir}/machine/${machine_dir}/objectlist.awk.in
77 AC_SUBST(SYS_MACH_OBJECTLIST)
79 if test -n "${posix_dir}"; then
80 POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
82 AC_SUBST(POSIX_OBJECTLIST)
84 if test -n "${signal_dir}"; then
85 SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
87 AC_SUBST(SIGNAL_OBJECTLIST)
89 if test -n "${syscall_dir}"; then
90 SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
92 AC_SUBST(SYSCALL_OBJECTLIST)
94 if test -n "${unix_dir}"; then
95 UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
97 AC_SUBST(UNIX_OBJECTLIST)
99 # Put a plausible default for CC_FOR_BUILD in Makefile.
100 if test -z "$CC_FOR_BUILD"; then
101 if test "x$cross_compiling" = "xno"; then
107 AC_SUBST(CC_FOR_BUILD)
109 if test "${multilib}" = "yes"; then
110 multilib_arg="--enable-multilib"
117 [if test -n "$CONFIG_FILES"; then
118 . ${newlib_basedir}/../config-ml.in
123 with_multisubdir=${with_multisubdir}
124 ac_configure_args="${multilib_arg} ${ac_configure_args}"
125 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
126 newlib_basedir=${newlib_basedir}