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])
12 LT_CONFIG_LTDL_DIR([libltdl])
14 LTDL_INIT([recursive])
16 AM_CONDITIONAL([BUNDLED_LIBLTDL], [test x$LTDLDEPS != x])
20 AC_ARG_WITH([gobject],
21 [AS_HELP_STRING([--with-gobject],
22 [build tools requiring libgobject [default=yes]]
28 if test x$with_gobject = xyes; then
29 AM_PATH_GLIB_2_0(, [have_gobject=yes], [have_gobject=no], [gobject])
33 [AS_HELP_STRING([--with-modlib],
34 [specify which module decoding library to use - one of modplug, none or auto. [default=auto]]
36 [with_modlib=$withval],
39 CHECK_LIBMODPLUG([have_libmodplug=yes], [have_libmodplug=no])
40 AC_MSG_CHECKING([which module library to use])
49 if test x$have_libmodplug = xyes; then
56 if test x$have_libmodplug = xyes; then
63 AC_MSG_ERROR([Invalid argument to --with-modlib: $with_modlib])
66 AC_MSG_RESULT([$use_modlib])
68 AM_CONDITIONAL([USE_LIBMODPLUG], [test x$use_modlib = xmodplug])
69 AM_CONDITIONAL([USE_DUMMYMOD], [test x$use_modlib = xnone])
71 AM_CONDITIONAL([BUILD_UPKG], [test x$have_gobject = xyes])