2008-07-17 Pavel Roskin <proski@gnu.org>
* aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the target compiler is functional. * configure.ac: Call grub_PROG_TARGET_CC once all target flags are set up.
This commit is contained in:
parent
58393a2d35
commit
f6130a12bd
4 changed files with 82 additions and 0 deletions
16
aclocal.m4
vendored
16
aclocal.m4
vendored
|
@ -1,3 +1,19 @@
|
|||
dnl Check whether target compiler is working
|
||||
AC_DEFUN(grub_PROG_TARGET_CC,
|
||||
[AC_MSG_CHECKING([whether target compiler is working])
|
||||
AC_CACHE_VAL(grub_cv_prog_target_cc,
|
||||
[AC_TRY_LINK([], [],
|
||||
grub_cv_prog_target_cc=yes,
|
||||
grub_cv_prog_target_cc=no)
|
||||
])
|
||||
AC_MSG_RESULT([$grub_cv_prog_target_cc])
|
||||
|
||||
if test "x$grub_cv_prog_target_cc" = xno; then
|
||||
AC_MSG_ERROR([cannot compile for the target])
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
dnl grub_ASM_USCORE checks if C symbols get an underscore after
|
||||
dnl compiling to assembler.
|
||||
dnl Written by Pavel Roskin. Based on grub_ASM_EXT_C written by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue