]> git.draconx.ca Git - upkg.git/blobdiff - configure.ac
upkg: Add a simple man page.
[upkg.git] / configure.ac
index 42594de730addfda86b819a926ef11e4cbbc2f3e..88441157f3797a3cef6e5d29b4584c97d4142a52 100644 (file)
@@ -1,3 +1,9 @@
+dnl Copyright (C) 2009 Nick Bowler
+dnl Copying and distribution of this file, with or without modification,
+dnl are permitted in any medium without royalty provided the copyright
+dnl notice and this notice are preserved.  This file is offered as-is,
+dnl without any warranty.
+
 AC_PREREQ(2.62)
 AC_INIT([upkg],[0.1],[nbowler@draconx.ca])
 AC_CONFIG_SRCDIR([src/libupkg.c])
@@ -18,17 +24,7 @@ AM_CONDITIONAL([BUNDLED_LIBLTDL], [test x$LTDLDEPS != x])
 
 gl_INIT
 
-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
+CHECK_GLIB_2([], [gobject])
 
 AC_ARG_WITH([modlib],
        [AS_HELP_STRING([--with-modlib],
@@ -69,12 +65,11 @@ AC_MSG_RESULT([$use_modlib])
 AM_CONDITIONAL([USE_LIBMODPLUG], [test x$use_modlib = xmodplug])
 AM_CONDITIONAL([USE_DUMMYMOD],   [test x$use_modlib = xnone])
 
-AM_CONDITIONAL([BUILD_UPKG], [test x$have_gobject = xyes])
-
 AC_CONFIG_FILES([
        Makefile
        libltdl/Makefile
        lib/Makefile
        src/Makefile
+       libuobject.pc
 ])
 AC_OUTPUT