From a6f00a050a0255aef34c2806705181d445f9ff72 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 9 Jan 2005 12:17:29 +0000 Subject: [PATCH] * deactivated OLE loader and short-lived DeVIL stuff. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/pwntcha/trunk@440 92316355-f0b4-4df1-b90c-862c8a59935f --- configure.ac | 21 ++++++++++++++------- src/Makefile.am | 18 ++++++++++++------ 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/configure.ac b/configure.ac index f6bf941..c456a41 100644 --- a/configure.ac +++ b/configure.ac @@ -20,12 +20,19 @@ AC_TYPE_SIZE_T AC_CHECK_FUNCS(getopt_long) +# Use DevIL? +#AC_CHECK_HEADERS(IL/il.h, +# [ac_cv_my_have_il="yes"], +# [ac_cv_my_have_il="no"]) +#CPPFLAGS="${save_CPPFLAGS}" +#AM_CONDITIONAL(USE_IL, test "${ac_cv_my_have_il}" = "yes") + # Use Windows? -AC_CHECK_HEADERS(olectl.h, - [ac_cv_my_have_ole="yes"], - [ac_cv_my_have_ole="no"]) -CPPFLAGS="${save_CPPFLAGS}" -AM_CONDITIONAL(USE_OLE, test "${ac_cv_my_have_ole}" = "yes") +#AC_CHECK_HEADERS(olectl.h, +# [ac_cv_my_have_ole="yes"], +# [ac_cv_my_have_ole="no"]) +#CPPFLAGS="${save_CPPFLAGS}" +#AM_CONDITIONAL(USE_OLE, test "${ac_cv_my_have_ole}" = "yes") # Use SDL? ac_cv_my_have_sdl="no" @@ -66,8 +73,8 @@ AC_CHECK_HEADERS(Imlib2.h, CPPFLAGS="${save_CPPFLAGS}" AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes") -if test "${ac_cv_my_have_sdl}" = "yes" -a "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then - AC_MSG_ERROR([[cannot find SDL_Image, Imlib2 or OpenCV, please install one of them]]) +if test "${ac_cv_my_have_il}" = "no" -a "${ac_cv_my_have_ole}" = "no" -a "${ac_cv_my_have_sdl}" = "no" -a "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then + AC_MSG_ERROR([[cannot find DevIL, OLE, SDL_Image, Imlib2 or OpenCV, please install one of them]]) fi AC_OUTPUT([ diff --git a/src/Makefile.am b/src/Makefile.am index 56dd192..d9cdb0c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -18,11 +18,16 @@ pwntcha_CFLAGS = $(ADDITIONAL_CFLAGS) -Wall -O6 pwntcha_LDFLAGS = $(ADDITIONAL_LDFLAGS) pwntcha_LDADD = $(ADDITIONAL_LDADD) -if USE_OLE -ADDITIONAL_CFLAGS = -ADDITIONAL_LDFLAGS = -ADDITIONAL_LDADD = -luuid -loleaut32 -lole32 -lgdi32 -else +#if USE_DEVIL +#ADDITIONAL_CFLAGS = +#ADDITIONAL_LDFLAGS = +#ADDITIONAL_LDADD = -lDevIL +#else +#if USE_OLE +#ADDITIONAL_CFLAGS = +#ADDITIONAL_LDFLAGS = +#ADDITIONAL_LDADD = -luuid -loleaut32 -lole32 -lgdi32 +#else if USE_SDL ADDITIONAL_CFLAGS = `sdl-config --cflags` ADDITIONAL_LDFLAGS = `sdl-config --libs` -lSDL_image @@ -44,5 +49,6 @@ ADDITIONAL_LDADD = endif endif endif -endif +#endif +#endif