Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 545a6e10 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

BUILD: Check manually if the SDL2_image library is present

parent 0a356fa4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!159Fix configure
Pipeline #2227 réussi avec des avertissements
......@@ -18954,6 +18954,16 @@ $as_echo "#define LKT_NO_SQLITE3_HARD_HEAP_LIMIT64_FUNCTION /**/" >>confdefs.h
fi
 
 
pkg-config --exists SDL2_image 2>/dev/null 1>&2
if test $? -ne 0 ; then
as_fn_error $? "unable to find the IMG_ReadXPMFromArray() function from the SDL2_image library" "$LINENO" 5
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Lib SDL2_image is present" >&5
$as_echo "Lib SDL2_image is present" >&6; }
CFLAGS="`pkg-config --cflags SDL2_image` ${CFLAGS}"
LDFLAGS="`pkg-config --libs SDL2_image`"
fi
################
# CONF RESULTS #
################
......
......@@ -441,6 +441,15 @@ AC_CHECK_LIB([sqlite3], [sqlite3_hard_heap_limit64], [
AC_DEFINE([LKT_NO_SQLITE3_HARD_HEAP_LIMIT64_FUNCTION], [], [No hard heap limit for sqlite3])
])
pkg-config --exists SDL2_image 2>/dev/null 1>&2
if test $? -ne 0 ; then
AC_MSG_ERROR([unable to find the IMG_ReadXPMFromArray() function from the SDL2_image library])
else
AC_MSG_RESULT(Lib SDL2_image is present)
CFLAGS="`pkg-config --cflags SDL2_image` ${CFLAGS}"
LDFLAGS="`pkg-config --libs SDL2_image`"
fi
################
# CONF RESULTS #
################
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter