Changeset 2839 for libpipi/trunk/configure.ac
- Timestamp:
- Sep 28, 2008, 7:08:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpipi/trunk/configure.ac
r2803 r2839 25 25 AC_C_CONST 26 26 AC_C_INLINE 27 28 dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right 29 dnl now otherwise it might be set in an obscure if statement. Same thing for 30 dnl PKG_PROG_PKG_CONFIG which needs to be called first. 31 AC_EGREP_CPP(yes, foo) 32 PKG_PROG_PKG_CONFIG() 33 m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) 34 if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then 35 export PKG_CONFIG_LIBDIR=/dev/null 36 fi 27 37 28 38 AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h) … … 93 103 AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes") 94 104 105 # Use Windows GDI? 106 ac_cv_my_have_gdi="no" 107 GDI="no" 108 AC_CHECK_HEADERS(windows.h, 109 [ac_cv_my_have_gdi="yes"], 110 [ac_cv_my_have_gdi="no"]) 111 if test "${ac_cv_my_have_gdi}" != "no"; then 112 AC_DEFINE(USE_GDI, 1, Define to 1 to use GDI) 113 fi 114 AM_CONDITIONAL(USE_GDI, test "${ac_cv_my_have_gdi}" = "yes") 115 95 116 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 96 117 AC_MSG_ERROR([[cannot find DevIL, OLE, SDL_Image, Imlib2 or OpenCV, please install one of them]])
Note: See TracChangeset
for help on using the changeset viewer.