From 68eac66deaca7e28f64ef13e8dd4faee9c2a4802 Mon Sep 17 00:00:00 2001 From: Allofich <19624336+Allofich@users.noreply.github.com> Date: Wed, 28 Apr 2021 23:16:37 +0900 Subject: [PATCH] SVN r4430 Add some automake stuff so we can run custom commands for mac os x --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1e20a6b70..7f848038d 100644 --- a/configure.ac +++ b/configure.ac @@ -386,18 +386,26 @@ AC_CHECK_CXXFLAGS([ -Wno-address-of-packed-member ]) dnl Clang/LLVM warning: don't care about int to void*, since void* is either same size or larger AC_CHECK_CXXFLAGS([ -Wno-int-to-void-pointer-cast ]) -dnl Some stuff for the icon. +dnl Some stuff for the icon and other makefile platform stuff. +dnl Slightly double with the above, but that deals more with compiled features. case "$host" in *-*-cygwin* | *-*-mingw32*) dnl Some stuff for the ico AC_CHECK_TOOL(WINDRES, windres, :) LDFLAGS="-static -static-libgcc -static-libstdc++ $LDFLAGS" + DBPLATFORM="win" + ;; + *-*-darwin*) + WINDRES=":" + DBPLATFORM="mac" ;; *) WINDRES=":" + DBPLATFORM="other" ;; esac AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:") + AM_CONDITIONAL(MACOSX, test "x$DBPLATFORM" = "xmac") AC_SUBST(WINDRES) dnl LIBRARY TEST: SDL 2.x