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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [config/] [no-executables.m4] - Diff between revs 154 and 816

Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
# GCC_NO_EXECUTABLES
# GCC_NO_EXECUTABLES
# -----------------
# -----------------
# FIXME: The GCC team has specific needs which the current Autoconf
# FIXME: The GCC team has specific needs which the current Autoconf
# framework cannot solve elegantly.  This macro implements a dirty
# framework cannot solve elegantly.  This macro implements a dirty
# hack until Autoconf is able to provide the services its users
# hack until Autoconf is able to provide the services its users
# need.
# need.
#
#
# Several of the support libraries that are often built with GCC can't
# Several of the support libraries that are often built with GCC can't
# assume the tool-chain is already capable of linking a program: the
# assume the tool-chain is already capable of linking a program: the
# compiler often expects to be able to link with some of such
# compiler often expects to be able to link with some of such
# libraries.
# libraries.
#
#
# In several of these libraries, workarounds have been introduced to
# In several of these libraries, workarounds have been introduced to
# avoid the AC_PROG_CC_WORKS test, that would just abort their
# avoid the AC_PROG_CC_WORKS test, that would just abort their
# configuration.  The introduction of AC_EXEEXT, enabled either by
# configuration.  The introduction of AC_EXEEXT, enabled either by
# libtool or by CVS autoconf, have just made matters worse.
# libtool or by CVS autoconf, have just made matters worse.
#
#
# Unlike the previous AC_NO_EXECUTABLES, this test does not
# Unlike the previous AC_NO_EXECUTABLES, this test does not
# disable link tests at autoconf time, but at configure time.
# disable link tests at autoconf time, but at configure time.
# This allows AC_NO_EXECUTABLES to be invoked conditionally.
# This allows AC_NO_EXECUTABLES to be invoked conditionally.
AC_DEFUN_ONCE([GCC_NO_EXECUTABLES],
AC_DEFUN_ONCE([GCC_NO_EXECUTABLES],
[m4_divert_push([KILL])
[m4_divert_push([KILL])
 
 
AC_BEFORE([$0], [_AC_COMPILER_EXEEXT])
AC_BEFORE([$0], [_AC_COMPILER_EXEEXT])
AC_BEFORE([$0], [AC_LINK_IFELSE])
AC_BEFORE([$0], [AC_LINK_IFELSE])
 
 
m4_define([_AC_COMPILER_EXEEXT],
m4_define([_AC_COMPILER_EXEEXT],
AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
# FIXME: Cleanup?
# FIXME: Cleanup?
AS_IF([AC_TRY_EVAL(ac_link)], [gcc_no_link=no], [gcc_no_link=yes])
AS_IF([AC_TRY_EVAL(ac_link)], [gcc_no_link=no], [gcc_no_link=yes])
if test x$gcc_no_link = xyes; then
if test x$gcc_no_link = xyes; then
  # Setting cross_compile will disable run tests; it will
  # Setting cross_compile will disable run tests; it will
  # also disable AC_CHECK_FILE but that's generally
  # also disable AC_CHECK_FILE but that's generally
  # correct if we can't link.
  # correct if we can't link.
  cross_compiling=yes
  cross_compiling=yes
  EXEEXT=
  EXEEXT=
else
else
  m4_defn([_AC_COMPILER_EXEEXT])dnl
  m4_defn([_AC_COMPILER_EXEEXT])dnl
fi
fi
)
)
 
 
m4_define([AC_LINK_IFELSE],
m4_define([AC_LINK_IFELSE],
if test x$gcc_no_link = xyes; then
if test x$gcc_no_link = xyes; then
  AC_MSG_ERROR([Link tests are not allowed after [[$0]].])
  AC_MSG_ERROR([Link tests are not allowed after [[$0]].])
fi
fi
m4_defn([AC_LINK_IFELSE]))
m4_defn([AC_LINK_IFELSE]))
 
 
dnl This is a shame.  We have to provide a default for some link tests,
dnl This is a shame.  We have to provide a default for some link tests,
dnl similar to the default for run tests.
dnl similar to the default for run tests.
m4_define([AC_FUNC_MMAP],
m4_define([AC_FUNC_MMAP],
if test x$gcc_no_link = xyes; then
if test x$gcc_no_link = xyes; then
  if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
  if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
    ac_cv_func_mmap_fixed_mapped=no
    ac_cv_func_mmap_fixed_mapped=no
  fi
  fi
fi
fi
if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
  m4_defn([AC_FUNC_MMAP])
  m4_defn([AC_FUNC_MMAP])
fi)
fi)
 
 
m4_divert_pop()dnl
m4_divert_pop()dnl
])# GCC_NO_EXECUTABLES
])# GCC_NO_EXECUTABLES
 
 

powered by: WebSVN 2.1.0

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