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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [newlib/] [libm/] [configure.in] - Diff between revs 816 and 829

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

Rev 816 Rev 829
dnl This is the newlib/libm configure.in file.
dnl This is the newlib/libm 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.59)
AC_PREREQ(2.59)
AC_INIT([newlib],[NEWLIB_VERSION])
AC_INIT([newlib],[NEWLIB_VERSION])
AC_CONFIG_SRCDIR([libm.texinfo])
AC_CONFIG_SRCDIR([libm.texinfo])
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)
dnl Autoconf 2.59 doesn't support the AC_TYPE_LONG_DOUBLE macro. Instead of:
dnl Autoconf 2.59 doesn't support the AC_TYPE_LONG_DOUBLE macro. Instead of:
dnl   AC_TYPE_LONG_DOUBLE
dnl   AC_TYPE_LONG_DOUBLE
dnl   AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$ac_cv_type_long_double" = x"yes")
dnl   AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$ac_cv_type_long_double" = x"yes")
dnl we specify our own long double test.
dnl we specify our own long double test.
AC_CACHE_CHECK([Checking long double support], [acnewlib_cv_type_long_double],[dnl
AC_CACHE_CHECK([Checking long double support], [acnewlib_cv_type_long_double],[dnl
cat > conftest.c <
cat > conftest.c <
int main() {
int main() {
long double x = 0.0L;
long double x = 0.0L;
return 0;
return 0;
}
}
EOF
EOF
if AC_TRY_COMMAND([${CC} $CFLAGS $CPPFLAGS -c conftest.c 1>&AS_MESSAGE_LOG_FD])
if AC_TRY_COMMAND([${CC} $CFLAGS $CPPFLAGS -c conftest.c 1>&AS_MESSAGE_LOG_FD])
then
then
  acnewlib_cv_type_long_double=yes
  acnewlib_cv_type_long_double=yes
else
else
  acnewlib_cv_type_long_double=no
  acnewlib_cv_type_long_double=no
fi
fi
rm -f conftest*])
rm -f conftest*])
AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$acnewlib_cv_type_long_double" = x"yes")
AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$acnewlib_cv_type_long_double" = x"yes")
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.
_LT_DECL_SED
_LT_DECL_SED
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
fi
fi
AC_CONFIG_SUBDIRS(machine)
AC_CONFIG_SUBDIRS(machine)
LIBM_MACHINE_LIB=
LIBM_MACHINE_LIB=
if test -n "${libm_machine_dir}"; then
if test -n "${libm_machine_dir}"; then
  if test "${use_libtool}" = "yes"; then
  if test "${use_libtool}" = "yes"; then
    LIBM_MACHINE_LIB=machine/${libm_machine_dir}/lib${libm_machine_dir}.${aext}
    LIBM_MACHINE_LIB=machine/${libm_machine_dir}/lib${libm_machine_dir}.${aext}
  else
  else
    LIBM_MACHINE_LIB=machine/lib.${aext}
    LIBM_MACHINE_LIB=machine/lib.${aext}
  fi
  fi
fi
fi
AC_SUBST(LIBM_MACHINE_LIB)
AC_SUBST(LIBM_MACHINE_LIB)
AC_CONFIG_FILES([Makefile math/Makefile mathfp/Makefile common/Makefile])
AC_CONFIG_FILES([Makefile math/Makefile mathfp/Makefile common/Makefile])
AC_OUTPUT
AC_OUTPUT
 
 

powered by: WebSVN 2.1.0

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