Parcourir la source

Add --enable-png configure flag.

legacy
Sam Hocevar il y a 7 ans
Parent
révision
3e26164dc9
2 fichiers modifiés avec 7 ajouts et 3 suppressions
  1. +5
    -3
      build/autotools/m4/lol-conf.m4
  2. +2
    -0
      configure.ac

+ 5
- 3
build/autotools/m4/lol-conf.m4 Voir le fichier

@@ -128,9 +128,11 @@ AM_CONDITIONAL(LOL_USE_EGL, test "${ac_cv_my_have_egl}" != "no")

dnl Use libpng? (replacement for SDL_image)
ac_cv_my_have_libpng="no"
PKG_CHECK_MODULES(LIBPNG, libpng, [ac_cv_my_have_libpng="yes"], [:])
if test "${ac_cv_my_have_libpng}" != "no"; then
AC_DEFINE(LOL_USE_LIBPNG, 1, Define to 1 to use libpng)
if test "${enable_png}" != "no"; then
PKG_CHECK_MODULES(LIBPNG, libpng, [ac_cv_my_have_libpng="yes"], [:])
if test "${ac_cv_my_have_libpng}" != "no"; then
AC_DEFINE(LOL_USE_LIBPNG, 1, Define to 1 to use libpng)
fi
fi
AM_CONDITIONAL(LOL_USE_LIBPNG, test "${ac_cv_my_have_libpng}" != "no")



+ 2
- 0
configure.ac Voir le fichier

@@ -88,6 +88,8 @@ AC_ARG_ENABLE(sdl,
[ --enable-sdl build using SDL (default autodetected)])
AC_ARG_ENABLE(imlib2,
[ --enable-imlib2 build using Imlib2 (default autodetected)])
AC_ARG_ENABLE(png,
[ --enable-png build using libpng (default autodetected)])

AC_ARG_ENABLE(test,
[ --enable-test build test suite (default yes)])


Chargement…
Annuler
Enregistrer