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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [config/] [acx.m4] - Diff between revs 157 and 225

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 157 Rev 225
Line 355... Line 355...
m4_define([AC_CHECK_HEADER],m4_defn([_AC_CHECK_HEADER_OLD]))
m4_define([AC_CHECK_HEADER],m4_defn([_AC_CHECK_HEADER_OLD]))
ac_c_preproc_warn_flag=yes])# AC_PROG_CPP_WERROR
ac_c_preproc_warn_flag=yes])# AC_PROG_CPP_WERROR
 
 
# Test for GNAT.
# Test for GNAT.
# We require the gnatbind program, and a compiler driver that
# We require the gnatbind program, and a compiler driver that
# understands Ada.  We use the user's CC setting, already found.
# understands Ada.  We use the user's CC setting, already found,
 
# and possibly add $1 to the command-line parameters.
#
#
# Sets the shell variable have_gnat to yes or no as appropriate, and
# Sets the shell variable have_gnat to yes or no as appropriate, and
# substitutes GNATBIND and GNATMAKE.
# substitutes GNATBIND and GNATMAKE.
AC_DEFUN([ACX_PROG_GNAT],
AC_DEFUN([ACX_PROG_GNAT],
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])
Line 378... Line 379...
# Therefore we must check for the error message as well as an
# Therefore we must check for the error message as well as an
# unsuccessful exit.
# unsuccessful exit.
# Other compilers, like HP Tru64 UNIX cc, exit successfully when
# Other compilers, like HP Tru64 UNIX cc, exit successfully when
# given a .adb file, but produce no object file.  So we must check
# given a .adb file, but produce no object file.  So we must check
# if an object file was really produced to guard against this.
# if an object file was really produced to guard against this.
errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
errors=`(${CC} $1[]m4_ifval([$1], [ ])-c conftest.adb) 2>&1 || echo failure`
if test x"$errors" = x && test -f conftest.$ac_objext; then
if test x"$errors" = x && test -f conftest.$ac_objext; then
  acx_cv_cc_gcc_supports_ada=yes
  acx_cv_cc_gcc_supports_ada=yes
fi
fi
rm -f conftest.*])
rm -f conftest.*])
 
 
Line 594... Line 595...
  esac;
  esac;
  AC_SUBST(REPORT_BUGS_TO)
  AC_SUBST(REPORT_BUGS_TO)
  AC_SUBST(REPORT_BUGS_TEXI)
  AC_SUBST(REPORT_BUGS_TEXI)
])
])
 
 
 No newline at end of file
 No newline at end of file
 
dnl ####
 
dnl # ACX_CHECK_CYGWIN_CAT_WORKS
 
dnl # On Cygwin hosts, check that the cat command ignores
 
dnl # carriage returns as otherwise builds will not work.
 
dnl # See binutils PR 4334 for more details.
 
AC_DEFUN([ACX_CHECK_CYGWIN_CAT_WORKS],[
 
AC_MSG_CHECKING([to see if cat works as expected])
 
echo a >cygwin-cat-check
 
if test `cat cygwin-cat-check` == a ; then
 
  rm cygwin-cat-check
 
  AC_MSG_RESULT(yes)
 
else
 
  rm cygwin-cat-check
 
  AC_MSG_RESULT(no)
 
  AC_MSG_ERROR([The cat command does not ignore carriage return characters.
 
  Please either mount the build directory in binary mode or run the following
 
  commands before running any configure script:
 
set -o igncr
 
export SHELLOPTS
 
  ])
 
fi
 
])
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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