2 AC_INIT([upkg],[0.1],[nbowler@draconx.ca])
3 AC_CONFIG_SRCDIR([src/libupkg.c])
4 AC_CONFIG_HEADER([config.h])
5 AC_CONFIG_MACRO_DIR([m4])
7 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
8 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
13 LT_CONFIG_LTDL_DIR([libltdl])
15 LTDL_INIT([recursive])
17 AM_CONDITIONAL([BUNDLED_LIBLTDL], [test x$LTDLDEPS != x])
21 CHECK_GLIB_2([],[gobject], [have_gobject=yes], [have_gobject=no])
22 AM_CONDITIONAL([BUILD_UPKG], [test x$have_gobject = xyes])
25 [AS_HELP_STRING([--with-modlib],
26 [specify which module decoding library to use - one of modplug, none or auto. [default=auto]]
28 [with_modlib=$withval],
31 CHECK_LIBMODPLUG([have_libmodplug=yes], [have_libmodplug=no])
32 AC_MSG_CHECKING([which module library to use])
41 if test x$have_libmodplug = xyes; then
48 if test x$have_libmodplug = xyes; then
55 AC_MSG_ERROR([Invalid argument to --with-modlib: $with_modlib])
58 AC_MSG_RESULT([$use_modlib])
60 AM_CONDITIONAL([USE_LIBMODPLUG], [test x$use_modlib = xmodplug])
61 AM_CONDITIONAL([USE_DUMMYMOD], [test x$use_modlib = xnone])