cross compilation fixes

This commit is contained in:
Bill Currie 2001-10-16 16:16:52 +00:00
parent 2f5e58be2d
commit 294e8b5dea
2 changed files with 8 additions and 2 deletions

View file

@ -31,6 +31,9 @@ AC_SUBST(ISODATE)
AC_LANG_C AC_LANG_C
if test ${AR-unset} = unset; then
AR="ar"
fi
endian="" endian=""
case "$host_os" in case "$host_os" in
mingw32*) mingw32*)
@ -38,11 +41,14 @@ case "$host_os" in
CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/include/win32" CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/include/win32"
CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/include/win32/resources" CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/include/win32/resources"
if test $host != $build; then if test $host != $build; then
CC=$host_cpu-$host_os-gcc CC="$host_cpu-$host_os-gcc"
AR="$host_cpu-$host_os-ar"
RANLIB="$host_cpu-$host_os-ranlib"
endian="little" endian="little"
fi fi
;; ;;
esac esac
AC_SUBST(AR)
dnl ================================================================== dnl ==================================================================
dnl Checks for programs. dnl Checks for programs.

View file

@ -32,7 +32,7 @@ AUTOMAKE_OPTIONS= foreign
# Stuff that is common to both client and server # Stuff that is common to both client and server
# #
INCLUDES= -I$(top_srcdir)/include $(GGI_CFLAGS) $(MGL_CFLAGS) $(SVGA_CFLAGS) $(X_CFLAGS) $(GLX_CFLAGS) $(TDFXGL_CFLAGS) INCLUDES= -I$(top_srcdir)/include $(GGI_CFLAGS) $(MGL_CFLAGS) $(SVGA_CFLAGS) $(X_CFLAGS) $(GLX_CFLAGS) $(TDFXGL_CFLAGS)
AR=@AR@
bin_PROGRAMS = @TARGETS@ bin_PROGRAMS = @TARGETS@
EXTRA_PROGRAMS= qf-server \ EXTRA_PROGRAMS= qf-server \