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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [configure.in] - Diff between revs 1005 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 1005 Rev 1765
dnl This is the newlib configure.in file.
dnl This is the newlib configure.in file.
dnl Process this file with autoconf to produce a configure script.
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.5)
AC_PREREQ(2.5)
AC_INIT(libc)
AC_INIT(libc)
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
AC_CONFIG_AUX_DIR(..)
AC_CONFIG_AUX_DIR(..)
NEWLIB_CONFIGURE(.)
NEWLIB_CONFIGURE(.)
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
dnl line of the macro which fail because appropriate LDFLAGS are not set.
dnl line of the macro which fail because appropriate LDFLAGS are not set.
if test "${use_libtool}" = "yes"; then
if test "${use_libtool}" = "yes"; then
AC_LIBTOOL_WIN32_DLL
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AM_PROG_LIBTOOL
AC_PROG_AWK
AC_PROG_AWK
fi
fi
configdirs="libc libm"
configdirs="libc libm"
AC_ARG_ENABLE(newlib_hw_fp,
AC_ARG_ENABLE(newlib_hw_fp,
[  --enable-newlib-hw-fp    Turn on hardware floating point math],
[  --enable-newlib-hw-fp    Turn on hardware floating point math],
[case "${enableval}" in
[case "${enableval}" in
   yes) newlib_hw_fp=true ;;
   yes) newlib_hw_fp=true ;;
   no)  newlib_hw_fp=false ;;
   no)  newlib_hw_fp=false ;;
   *) AC_MSG_ERROR(bad value ${enableval} for --enable-newlib-hw-fp) ;;
   *) AC_MSG_ERROR(bad value ${enableval} for --enable-newlib-hw-fp) ;;
 esac],[newlib_hw_fp=false])
 esac],[newlib_hw_fp=false])
AM_CONDITIONAL(NEWLIB_HW_FP, test x$newlib_hw_fp = xtrue)
AM_CONDITIONAL(NEWLIB_HW_FP, test x$newlib_hw_fp = xtrue)
if test -z "${with_multisubdir}"; then
if test -z "${with_multisubdir}"; then
  configdirs="${configdirs} doc"
  configdirs="${configdirs} doc"
  have_doc=yes
  have_doc=yes
else
else
  have_doc=
  have_doc=
fi
fi
AM_CONDITIONAL(HAVE_DOC, test x$have_doc = xyes)
AM_CONDITIONAL(HAVE_DOC, test x$have_doc = xyes)
AC_CONFIG_SUBDIRS(${configdirs})
AC_CONFIG_SUBDIRS(${configdirs})
CRT0=
CRT0=
CRT0_DIR=
CRT0_DIR=
if test -n "${sys_dir}"; then
if test -n "${sys_dir}"; then
  CRT0=crt0.o
  CRT0=crt0.o
  CRT0_DIR=libc
  CRT0_DIR=libc
fi
fi
AC_SUBST(CRT0)
AC_SUBST(CRT0)
AC_SUBST(CRT0_DIR)
AC_SUBST(CRT0_DIR)
if test -n "${libm_machine_dir}"; then
if test -n "${libm_machine_dir}"; then
  LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
  LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
fi
fi
AC_SUBST(LIBM_MACHINE_OBJECTLIST)
AC_SUBST(LIBM_MACHINE_OBJECTLIST)
if test -n "${machine_dir}"; then
if test -n "${machine_dir}"; then
  MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
  MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
fi
fi
AC_SUBST(MACHINE_OBJECTLIST)
AC_SUBST(MACHINE_OBJECTLIST)
if test -n "${sys_dir}"; then
if test -n "${sys_dir}"; then
  SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
  SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
fi
fi
AC_SUBST(SYS_OBJECTLIST)
AC_SUBST(SYS_OBJECTLIST)
if test -n "${posix_dir}"; then
if test -n "${posix_dir}"; then
  POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
  POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
fi
fi
AC_SUBST(POSIX_OBJECTLIST)
AC_SUBST(POSIX_OBJECTLIST)
if test -n "${signal_dir}"; then
if test -n "${signal_dir}"; then
  SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
  SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
fi
fi
AC_SUBST(SIGNAL_OBJECTLIST)
AC_SUBST(SIGNAL_OBJECTLIST)
if test -n "${syscall_dir}"; then
if test -n "${syscall_dir}"; then
  SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
  SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
fi
fi
AC_SUBST(SYSCALL_OBJECTLIST)
AC_SUBST(SYSCALL_OBJECTLIST)
if test -n "${unix_dir}"; then
if test -n "${unix_dir}"; then
  UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
  UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
fi
fi
AC_SUBST(UNIX_OBJECTLIST)
AC_SUBST(UNIX_OBJECTLIST)
# Put a plausible default for CC_FOR_BUILD in Makefile.
# Put a plausible default for CC_FOR_BUILD in Makefile.
if test -z "$CC_FOR_BUILD"; then
if test -z "$CC_FOR_BUILD"; then
  if test "x$cross_compiling" = "xno"; then
  if test "x$cross_compiling" = "xno"; then
    CC_FOR_BUILD='$(CC)'
    CC_FOR_BUILD='$(CC)'
  else
  else
    CC_FOR_BUILD=gcc
    CC_FOR_BUILD=gcc
  fi
  fi
fi
fi
AC_SUBST(CC_FOR_BUILD)
AC_SUBST(CC_FOR_BUILD)
if test "${multilib}" = "yes"; then
if test "${multilib}" = "yes"; then
  multilib_arg="--enable-multilib"
  multilib_arg="--enable-multilib"
else
else
  multilib_arg=
  multilib_arg=
fi
fi
AC_OUTPUT(Makefile,
AC_OUTPUT(Makefile,
[if test -n "$CONFIG_FILES"; then
[if test -n "$CONFIG_FILES"; then
  . ${newlib_basedir}/../config-ml.in
  . ${newlib_basedir}/../config-ml.in
fi],
fi],
srcdir=${srcdir}
srcdir=${srcdir}
host=${host}
host=${host}
target=${target}
target=${target}
with_multisubdir=${with_multisubdir}
with_multisubdir=${with_multisubdir}
ac_configure_args="${multilib_arg} ${ac_configure_args}"
ac_configure_args="${multilib_arg} ${ac_configure_args}"
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
newlib_basedir=${newlib_basedir}
newlib_basedir=${newlib_basedir}
CC="${CC}"
CC="${CC}"
LDFLAGS="${LDFLAGS}"
LDFLAGS="${LDFLAGS}"
)
)
 
 

powered by: WebSVN 2.1.0

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