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])
24 [AS_HELP_STRING([--with-modlib],
25 [specify which module decoding library to use - one of modplug, none or auto. [default=auto]]
27 [with_modlib=$withval],
30 CHECK_LIBMODPLUG([have_libmodplug=yes], [have_libmodplug=no])
31 AC_MSG_CHECKING([which module library to use])
40 if test x$have_libmodplug = xyes; then
47 if test x$have_libmodplug = xyes; then
54 AC_MSG_ERROR([Invalid argument to --with-modlib: $with_modlib])
57 AC_MSG_RESULT([$use_modlib])
59 AM_CONDITIONAL([USE_LIBMODPLUG], [test x$use_modlib = xmodplug])
60 AM_CONDITIONAL([USE_DUMMYMOD], [test x$use_modlib = xnone])