From 2cc2477ebbb26632620e1f944e6e05658feb9b6b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 25 May 2002 10:54:13 +0000 Subject: [PATCH] Only attempt to build BeOS code on BeOS (don't even try building an empty object file elsewhere). --- configure.in | 1 + platform/Makefile.am | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 5d6d5e9e..d9c023f0 100644 --- a/configure.in +++ b/configure.in @@ -208,6 +208,7 @@ AC_CHECK_FUNCS([memset strrchr]) dnl Add Makefile conditionals AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes) AM_CONDITIONAL(BUILD_TEST_PHYSFS, test x$enable_testprog = xyes) +AM_CONDITIONAL(BUILD_BEOS_CPP, test x$this_is_beos = xyes) AC_OUTPUT([ Makefile diff --git a/platform/Makefile.am b/platform/Makefile.am index 116c2d62..0ea4a946 100644 --- a/platform/Makefile.am +++ b/platform/Makefile.am @@ -2,14 +2,20 @@ noinst_LTLIBRARIES = libplatform.la INCLUDES = -I$(top_srcdir) +if BUILD_BEOS_CPP + X = beos.cpp +else + Y = beos.cpp +endif + libplatform_la_SOURCES = \ unix.c \ posix.c \ - beos.cpp + $(X) EXTRA_DIST = \ skeleton.c \ macclassic.c \ - win32.c - + win32.c \ + $(Y)