Bochs/bochs/patches/patch.check-platform
Bryce Denney d1692aaea8 - make configure discover the target platform so that the configure script
can enable/disable features according to platform.
2002-03-06 19:41:24 +00:00

30 lines
694 B
Plaintext

Index: configure.in
===================================================================
RCS file: /cvsroot/bochs/bochs/configure.in,v
retrieving revision 1.64
diff -u -r1.64 configure.in
--- configure.in 5 Mar 2002 15:58:59 -0000 1.64
+++ configure.in 6 Mar 2002 19:40:20 -0000
@@ -13,6 +13,21 @@
changequote(<<, >>)
changequote([, ])
+dnl Detect host and target
+AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
+
+case "$target" in
+ i[56]86-pc-cygwin)
+ ADD_FLAGS="-mno-cygwin -DWIN32 -march=pentium -mpentium"
+ ;;
+ *-pc-cygwin)
+ ADD_FLAGS="-mno-cygwin -DWIN32"
+ ;;
+esac
+CFLAGS="$CFLAGS $ADD_FLAGS"
+CXXFLAGS="$CXXFLAGS $ADD_FLAGS"
+
AC_PROG_CC
AC_PROG_CXX
AC_PROG_MAKE_SET