2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
* configure.ac: Check ld. Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS respectively, before checking endianness and sizes. * Makefile.in (LD): New variable.
This commit is contained in:
parent
abdfc3c54e
commit
9962ed9907
5 changed files with 111 additions and 4 deletions
11
configure.ac
11
configure.ac
|
@ -95,6 +95,7 @@ AC_CHECK_TOOL(OBJCOPY, objcopy)
|
|||
pupa_PROG_OBJCOPY_ABSOLUTE
|
||||
AC_CHECK_TOOL(STRIP, strip)
|
||||
AC_CHECK_TOOL(NM, nm)
|
||||
AC_CHECK_TOOL(LD, ld)
|
||||
|
||||
# This is not a "must".
|
||||
AC_PATH_PROG(RUBY, ruby)
|
||||
|
@ -109,12 +110,18 @@ else
|
|||
fi
|
||||
|
||||
# Test the C compiler for the build environment.
|
||||
pupa_tmp_CC="$CC"
|
||||
tmp_CC="$CC"
|
||||
tmp_CFLAGS="$CFLAGS"
|
||||
tmp_CPPFLAGS="$CPPFLAGS"
|
||||
CC="$BUILD_CC"
|
||||
CFLAGS="$BUILD_CFLAGS"
|
||||
CPPFLAGS="$BUILD_CPPFLAGS"
|
||||
AC_C_BIGENDIAN
|
||||
AC_CHECK_SIZEOF(void *)
|
||||
AC_CHECK_SIZEOF(long)
|
||||
CC="$pupa_tmp_CC"
|
||||
CC="$tmp_CC"
|
||||
CFLAGS="$tmp_CFLAGS"
|
||||
CPPFLAGS="$tmp_CPPFLAGS"
|
||||
|
||||
# Output files.
|
||||
AC_CONFIG_LINKS([include/pupa/cpu:include/pupa/$host_cpu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue