]> git.draconx.ca Git - liblbx.git/blobdiff - configure.ac
liblbx: Update lbximg_fopen to work like lbx_fopen.
[liblbx.git] / configure.ac
index 8e519e3e06ec15560675c41d9ef18530017c538f..c03b931b9c32fc7f311ab47b2b1430136c05b1be 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([liblbx], [0.1], [toom-devel@lists.sourceforge.net])
 AC_CONFIG_SRCDIR([src/lbx.c])
@@ -5,18 +11,29 @@ AC_CONFIG_HEADER([config.h])
 AC_CONFIG_MACRO_DIR([m4])
 
 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 AC_PROG_CC_C99
+gl_EARLY
+
 AC_HEADER_ASSERT
-AC_C_BIGENDIAN
 
 LT_INIT
 
+gl_INIT
+
 CHECK_LIBPNG([1.2], [have_libpng=yes], [have_libpng=no])
 AM_CONDITIONAL([BUILD_LBXIMG], [test x"$have_libpng" = x"yes"])
 
+# A horrible combination of bugs makes this necessary for GTK+ detection.
+unset POSIXLY_CORRECT
+
+AM_PATH_GTK_2_0([2.16.0], [have_gtk=yes], [have_gtk=no])
+AM_CONDITIONAL([BUILD_LBXGUI], [test x"$have_gtk" = x"yes"])
+
 AC_CONFIG_FILES([
        Makefile
+       lib/Makefile
 ])
 
 AC_OUTPUT