Ignore:
Timestamp:
Jan 4, 2005, 11:30:52 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • src/image.c: SDL_image support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pwntcha/trunk/configure.ac

    r406 r407  
    2020
    2121AC_CHECK_FUNCS(getopt_long)
     22
     23# Use SDL?
     24ac_cv_my_have_sdl="no"
     25save_CPPFLAGS="${CPPFLAGS}"
     26AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
     27if test "${SDL_CONFIG}" != "no"; then
     28  CPPFLAGS="${CPPFLAGS} `sdl-config --cflags`"
     29fi
     30AC_CHECK_HEADERS(SDL_image.h,
     31 [ac_cv_my_have_sdl="yes"],
     32 [ac_cv_my_have_sdl="no"])
     33CPPFLAGS="${save_CPPFLAGS}"
     34AM_CONDITIONAL(USE_SDL, test "${ac_cv_my_have_sdl}" = "yes")
    2235
    2336# Use OpenCV?
     
    4760AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes")
    4861
    49 if test "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then
    50   AC_MSG_ERROR([[cannot find Imlib2 or OpenCV, please install one of them]])
     62if test "${ac_cv_my_have_sdl}" = "yes" -a "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then
     63  AC_MSG_ERROR([[cannot find SDL_Image, Imlib2 or OpenCV, please install one of them]])
    5164fi
    5265
Note: See TracChangeset for help on using the changeset viewer.