Changeset 3162 for libpipi


Ignore:
Timestamp:
Oct 31, 2008, 1:21:38 AM (11 years ago)
Author:
Sam Hocevar
Message:

Add configure flags to enable/disable C# bindings, debug mode, and the
upcoming experimental tile support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/configure.ac

    r3147 r3162  
    5555fi
    5656AC_SUBST(LT_SUFFIX)
     57
     58dnl language bindings
     59AC_ARG_ENABLE(csharp,
     60  [  --enable-csharp         C# bindings (autodetected)])
     61
     62dnl conditional builds
     63AC_ARG_ENABLE(debug,
     64  [  --enable-debug          build debug versions of the library (default no)])
     65AC_ARG_ENABLE(tiles,
     66  [  --enable-tiles          experimental tiles support (default no)])
    5767
    5868AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h)
     
    198208fi
    199209
     210if test "${enable_debug}" = "yes"; then
     211  AC_DEFINE(DEBUG, 1, Define to 1 to activate debug)
     212fi
     213
     214if test "${enable_tiles}" = "yes"; then
     215  AC_DEFINE(USE_TILES, 1, Define to 1 to activate experimental tiles)
     216fi
     217
    200218AC_SUBST(MATH_LIBS)
    201219
    202 # Build pipi-sharp?
    203 AC_PATH_PROG(GMCS, gmcs, no)
    204 AC_PATH_PROG(GACUTIL, gacutil, no)
    205 AM_CONDITIONAL(USE_CSHARP, test "${GMCS}" != "no" -a "${GACUTIL}" != "no")
     220# Build the .NET bindings?
     221ac_cv_my_have_csharp="no"
     222if test "${enable_csharp}" != "no"; then
     223  AC_PATH_PROG(GMCS, gmcs, no)
     224  AC_PATH_PROG(GACUTIL, gacutil, no)
     225  if test "${GMCS}" != "no" -a "${GACUTIL}" != "no"; then
     226    ac_cv_my_have_csharp="yes"
     227  fi
     228fi
     229AM_CONDITIONAL(USE_CSHARP, test "${ac_cv_my_have_csharp}" = "yes")
    206230
    207231# Build The Pimp?
    208 ac_cv_my_have_gtksharp=yes
     232ac_cv_my_have_gtksharp="${ac_cv_my_have_csharp}"
    209233PKG_CHECK_MODULES([GLIB_SHARP_20], [glib-sharp-2.0], [:], [ac_cv_my_have_gtksharp=no])
    210234PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0], [:], [ac_cv_my_have_gtksharp=no])
Note: See TracChangeset for help on using the changeset viewer.