* configure.ac: Check for __bswapsi2 and__bswapdi2 using

target compiler.
This commit is contained in:
davem 2009-04-13 06:31:05 +00:00
parent 56bc2471ad
commit df38d0bb75
3 changed files with 105 additions and 4 deletions

View file

@ -200,7 +200,7 @@ if test "$target_cpu"-"$platform" = i386-pc; then
fi
# Check for functions.
AC_CHECK_FUNCS(posix_memalign memalign asprintf __bswapsi2 __bswapdi2)
AC_CHECK_FUNCS(posix_memalign memalign asprintf)
#
# Check for target programs.
@ -370,6 +370,9 @@ CFLAGS="$TARGET_CFLAGS"
CPPFLAGS="$TARGET_CPPFLAGS"
LDFLAGS="$TARGET_LDFLAGS"
# Check for target functions.
AC_CHECK_FUNCS(__bswapsi2 __bswapdi2)
# Defined in aclocal.m4.
grub_PROG_TARGET_CC
grub_PROG_OBJCOPY_ABSOLUTE