]> git.draconx.ca Git - upkg.git/blobdiff - configure.ac
Initial UObject implementation plus a dumb music extractor.
[upkg.git] / configure.ac
index 58638b4b42e7caa7f76e05e67c8fb64ddfd1ed5e..5b8dbf732cd89d423980ef6b94531eb55588bcaf 100644 (file)
@@ -1,6 +1,6 @@
 AC_PREREQ(2.62)
 AC_INIT([upkg],[0.1],[nbowler@draconx.ca])
-AC_CONFIG_SRCDIR([pack.c])
+AC_CONFIG_SRCDIR([src/libupkg.c])
 AC_CONFIG_HEADER([config.h])
 AC_CONFIG_MACRO_DIR([m4])
 
@@ -8,9 +8,24 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
 AC_PROG_CC_C99
 
+AC_ARG_WITH([gobject],
+       [AS_HELP_STRING([--with-gobject],
+               [build tools requiring libgobject [default=yes]]
+       )],
+       [],
+       [with_gobject=yes])
+
+have_gobject=no
+if test x$with_gobject = xyes; then
+AM_PATH_GLIB_2_0(, [have_gobject=yes], [have_gobject=no], [gobject])
+fi
+
+AM_CONDITIONAL([BUILD_UPKG], [test x$have_gobject = xyes])
+
 LT_INIT
 
 AC_CONFIG_FILES([
        Makefile
+       src/Makefile
 ])
 AC_OUTPUT