From 34e103e4d52848c1ea18bbf3a1c9268c6cc58848 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Nov 2015 23:33:13 +0300 Subject: Fix SDL check in configure in nacl. --- configure.ac | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 4cecd7663..2ba061c9c 100755 --- a/configure.ac +++ b/configure.ac @@ -157,9 +157,14 @@ else AC_DEFINE(USE_INTERNALSDLGFX, 1, [Defines if ManaPlus should use internal sdlgfx2]) fi AM_CONDITIONAL(USE_INTERNALSDLGFX, test x$with_internalsdlgfx = xyes) + +AC_CHECK_HEADERS([SDL.h], , +AC_MSG_ERROR([ *** SDL library found but cannot find headers (http://www.libsdl.org/)])) ]) -AC_CHECK_SDL() +if test "x$naclbuild_enabled" == "xfalse"; then + AC_CHECK_SDL() +fi # Search for *-config AC_PATH_PROG(PKG_CONFIG, pkg-config) @@ -178,9 +183,6 @@ else fi -AC_CHECK_HEADERS([SDL.h], , -AC_MSG_ERROR([ *** SDL library found but cannot find headers (http://www.libsdl.org/)])) - AC_CHECK_LIB([z], [inflate], , AC_MSG_ERROR([ *** Unable to find zlib (http://www.gzip.org/zlib/)])) @@ -405,6 +407,10 @@ esac],[checkplugin_enabled=false]) AM_CONDITIONAL(ENABLE_CHECKPLUGIN, test x$checkplugin_enabled = xtrue) +if test "x$naclbuild_enabled" == "xtrue"; then + AC_CHECK_SDL() +fi + AC_CONFIG_FILES([ manaplus.spec Makefile -- cgit v1.2.3-60-g2f50