From 352f47bd463b337c0ae7128b6ab85f88062f4476 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Wed, 12 Mar 2003 13:24:47 +0000 Subject: [PATCH] Detection of gcc win32 and macos hosts. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@755 --- configure.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configure.in b/configure.in index 214eff05..37e4dfc2 100644 --- a/configure.in +++ b/configure.in @@ -73,6 +73,20 @@ AC_ARG_ENABLE(shots,[ --enable-shots Enable screenshot support],[ fi ],) +dnl Some host detection and actions for them +case "$target" in + *-*-cygwin* | *-*-mingw32*) + LIBS="$LIBS -lwinmm" + ;; + darwin*) + dnl We have a problem here: both MacOS X and Darwin report + dnl the same signature "powerpc-apple-darwin*" - so we have + dnl to do more to distinguish them. + dnl For now I am lazy and do not add proper detection code. + AC_DEFINE(MACOSX, 1, [Compiling on Mac OS X]) + LIBS="$LIBS -framework AudioUnit" + ;; +esac AC_OUTPUT([