|
|
@@ -55,6 +55,16 @@ else |
|
|
|
fi |
|
|
|
AC_SUBST(LT_SUFFIX) |
|
|
|
|
|
|
|
dnl language bindings |
|
|
|
AC_ARG_ENABLE(csharp, |
|
|
|
[ --enable-csharp C# bindings (autodetected)]) |
|
|
|
|
|
|
|
dnl conditional builds |
|
|
|
AC_ARG_ENABLE(debug, |
|
|
|
[ --enable-debug build debug versions of the library (default no)]) |
|
|
|
AC_ARG_ENABLE(tiles, |
|
|
|
[ --enable-tiles experimental tiles support (default no)]) |
|
|
|
|
|
|
|
AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h) |
|
|
|
|
|
|
|
ac_cv_have_getopt_long="no" |
|
|
@@ -197,15 +207,29 @@ if test "${ac_cv_my_have_sdl}" = "no" -a "${ac_cv_my_have_imlib2}" = "no" -a "${ |
|
|
|
AC_MSG_ERROR([[cannot find GDI+, SDL_Image, Imlib2, Cocoa or OpenCV, please install one of them]]) |
|
|
|
fi |
|
|
|
|
|
|
|
if test "${enable_debug}" = "yes"; then |
|
|
|
AC_DEFINE(DEBUG, 1, Define to 1 to activate debug) |
|
|
|
fi |
|
|
|
|
|
|
|
if test "${enable_tiles}" = "yes"; then |
|
|
|
AC_DEFINE(USE_TILES, 1, Define to 1 to activate experimental tiles) |
|
|
|
fi |
|
|
|
|
|
|
|
AC_SUBST(MATH_LIBS) |
|
|
|
|
|
|
|
# Build pipi-sharp? |
|
|
|
AC_PATH_PROG(GMCS, gmcs, no) |
|
|
|
AC_PATH_PROG(GACUTIL, gacutil, no) |
|
|
|
AM_CONDITIONAL(USE_CSHARP, test "${GMCS}" != "no" -a "${GACUTIL}" != "no") |
|
|
|
# Build the .NET bindings? |
|
|
|
ac_cv_my_have_csharp="no" |
|
|
|
if test "${enable_csharp}" != "no"; then |
|
|
|
AC_PATH_PROG(GMCS, gmcs, no) |
|
|
|
AC_PATH_PROG(GACUTIL, gacutil, no) |
|
|
|
if test "${GMCS}" != "no" -a "${GACUTIL}" != "no"; then |
|
|
|
ac_cv_my_have_csharp="yes" |
|
|
|
fi |
|
|
|
fi |
|
|
|
AM_CONDITIONAL(USE_CSHARP, test "${ac_cv_my_have_csharp}" = "yes") |
|
|
|
|
|
|
|
# Build The Pimp? |
|
|
|
ac_cv_my_have_gtksharp=yes |
|
|
|
ac_cv_my_have_gtksharp="${ac_cv_my_have_csharp}" |
|
|
|
PKG_CHECK_MODULES([GLIB_SHARP_20], [glib-sharp-2.0], [:], [ac_cv_my_have_gtksharp=no]) |
|
|
|
PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0], [:], [ac_cv_my_have_gtksharp=no]) |
|
|
|
AM_CONDITIONAL(USE_GTKSHARP, test "${ac_cv_my_have_gtksharp}" != no) |
|
|
|