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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [libdecnumber/] [configure.ac] - Diff between revs 834 and 842

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

Rev 834 Rev 842
# configure.ac for libdecnumber                 -*- Autoconf -*-
# configure.ac for libdecnumber                 -*- Autoconf -*-
# Process this file with autoconf to generate a configuration script.
# Process this file with autoconf to generate a configuration script.
# Copyright 2005, 2006, 2009 Free Software Foundation, Inc.
# Copyright 2005, 2006, 2009 Free Software Foundation, Inc.
# This file is part of GCC.
# This file is part of GCC.
# GCC is free software; you can redistribute it and/or modify it under
# GCC is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3, or (at your option) any
# Software Foundation; either version 3, or (at your option) any
# later #version.
# later #version.
# GCC is distributed in the hope that it will be useful, but WITHOUT
# GCC is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
# License #for more details.
# License #for more details.
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with GCC; see the file COPYING3.  If not see
# along with GCC; see the file COPYING3.  If not see
# .
# .
AC_PREREQ(2.64)
AC_PREREQ(2.64)
AC_INIT(libdecnumber, [ ], gcc-bugs@gcc.gnu.org, libdecnumber)
AC_INIT(libdecnumber, [ ], gcc-bugs@gcc.gnu.org, libdecnumber)
AC_CONFIG_SRCDIR(decNumber.h)
AC_CONFIG_SRCDIR(decNumber.h)
AC_CONFIG_MACRO_DIR(../config)
AC_CONFIG_MACRO_DIR(../config)
# Checks for programs.
# Checks for programs.
AC_PROG_MAKE_SET
AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_RANLIB
MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
# Figure out what compiler warnings we can enable.
# Figure out what compiler warnings we can enable.
# See config/warnings.m4 for details.
# See config/warnings.m4 for details.
ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
                          -Wmissing-prototypes -Wold-style-definition \
                          -Wmissing-prototypes -Wold-style-definition \
                          -Wmissing-format-attribute -Wcast-qual])
                          -Wmissing-format-attribute -Wcast-qual])
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])
# Only enable with --enable-werror-always until existing warnings are
# Only enable with --enable-werror-always until existing warnings are
# corrected.
# corrected.
ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual])
ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual])
# Checks for header files.
# Checks for header files.
AC_CHECK_HEADERS(ctype.h stddef.h string.h stdio.h)
AC_CHECK_HEADERS(ctype.h stddef.h string.h stdio.h)
GCC_HEADER_STDINT(gstdint.h)
GCC_HEADER_STDINT(gstdint.h)
# Checks for typedefs, structures, and compiler characteristics.
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_CONST
AC_TYPE_OFF_T
AC_TYPE_OFF_T
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long)
# Checks for library functions.
# Checks for library functions.
AC_HEADER_STDC
AC_HEADER_STDC
AC_ARG_ENABLE(maintainer-mode,
AC_ARG_ENABLE(maintainer-mode,
[  --enable-maintainer-mode enable rules only needed by maintainers],,
[  --enable-maintainer-mode enable rules only needed by maintainers],,
enable_maintainer_mode=no)
enable_maintainer_mode=no)
if test "x$enable_maintainer_mode" = xno; then
if test "x$enable_maintainer_mode" = xno; then
  MAINT='#'
  MAINT='#'
else
else
  MAINT=
  MAINT=
fi
fi
AC_SUBST(MAINT)
AC_SUBST(MAINT)
AC_CANONICAL_TARGET
AC_CANONICAL_TARGET
# Default decimal format
# Default decimal format
# If you change the defaults here, be sure to change them in the GCC directory also
# If you change the defaults here, be sure to change them in the GCC directory also
AC_MSG_CHECKING([for decimal floating point])
AC_MSG_CHECKING([for decimal floating point])
AC_ARG_ENABLE(decimal-float,
AC_ARG_ENABLE(decimal-float,
[  --enable-decimal-float={no,yes,bid,dpd}
[  --enable-decimal-float={no,yes,bid,dpd}
                        enable decimal float extension to C.  Selecting 'bid'
                        enable decimal float extension to C.  Selecting 'bid'
                        or 'dpd' choses which decimal floating point format
                        or 'dpd' choses which decimal floating point format
                        to use],
                        to use],
[
[
  case $enable_decimal_float in
  case $enable_decimal_float in
    yes | no | bid | dpd) ;;
    yes | no | bid | dpd) ;;
    *) AC_MSG_ERROR(['$enable_decimal_float' is an invalid value for --enable-decimal-float.
    *) AC_MSG_ERROR(['$enable_decimal_float' is an invalid value for --enable-decimal-float.
Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;;
Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;;
  esac
  esac
],
],
[
[
  case $target in
  case $target in
    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
      enable_decimal_float=yes
      enable_decimal_float=yes
      ;;
      ;;
    *)
    *)
      enable_decimal_float=no
      enable_decimal_float=no
      ;;
      ;;
  esac
  esac
])
])
# x86's use BID format instead of DPD
# x86's use BID format instead of DPD
# In theory --enable-decimal-float=no should not compile anything
# In theory --enable-decimal-float=no should not compile anything
# For the sake of simplicity, just use the default format in this directory
# For the sake of simplicity, just use the default format in this directory
if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then
if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then
  case $target in
  case $target in
    i?86*-*-linux* | x86_64*-*-linux*)
    i?86*-*-linux* | x86_64*-*-linux*)
      enable_decimal_float=bid
      enable_decimal_float=bid
      ;;
      ;;
    *)
    *)
      enable_decimal_float=dpd
      enable_decimal_float=dpd
      ;;
      ;;
  esac
  esac
fi
fi
# If BID is being used, additional objects should be linked in.
# If BID is being used, additional objects should be linked in.
if test x$enable_decimal_float = xbid; then
if test x$enable_decimal_float = xbid; then
  ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
  ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
else
else
  ADDITIONAL_OBJS=
  ADDITIONAL_OBJS=
fi
fi
AC_MSG_RESULT($enable_decimal_float)
AC_MSG_RESULT($enable_decimal_float)
AC_SUBST(enable_decimal_float)
AC_SUBST(enable_decimal_float)
AC_SUBST(ADDITIONAL_OBJS)
AC_SUBST(ADDITIONAL_OBJS)
AC_C_BIGENDIAN
AC_C_BIGENDIAN
# Output.
# Output.
AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])
AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])
AC_CONFIG_FILES(Makefile)
AC_CONFIG_FILES(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.