1 dnl Copyright © 2009, 2013 Nick Bowler
3 dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
4 dnl This is free software: you are free to do what the fuck you want to.
5 dnl There is NO WARRANTY, to the extent permitted by law.
8 AC_INIT([liblbx], [0.1], [toom-devel@lists.sourceforge.net])
9 AC_CONFIG_SRCDIR([src/lbx.c])
10 AC_CONFIG_HEADER([config.h])
11 AC_CONFIG_MACRO_DIR([m4])
13 AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign subdir-objects])
14 AM_SILENT_RULES([yes])
24 m4_include([lib/gnulib.mk])
27 [AS_HELP_STRING([--with-libpng],
28 [build support for PNG output using libpng. [default=auto]])],
29 [with_libpng=$withval],
32 AS_CASE([$with_libpng],
33 [no], [have_libpng=false],
34 [yes], [DX_CHECK_LIBPNG([1.5], [have_libpng=true])],
35 [DX_CHECK_LIBPNG([1.5], [have_libpng=true], [have_libpng=false])])
37 AM_CONDITIONAL([HAVE_LIBPNG], [$have_libpng])
38 AS_IF([$have_libpng], [AC_DEFINE([HAVE_LIBPNG], [1],
39 [Define to 1 if libpng support is available])])
41 AC_ARG_ENABLE([lbxgui],
42 [AS_HELP_STRING([--enable-lbxgui],
43 [build the lbxgui tool (requires GTK+) [default=auto]])],
44 [enable_lbxgui=$enableval],
47 AS_CASE([$enable_lbxgui],
48 [no], [have_gtk=false],
49 [yes], [DX_CHECK_GTK2([2.16], [have_gtk=true])],
50 [DX_CHECK_GTK2([2.16], [have_gtk=true], [have_gtk=false])])
52 AM_CONDITIONAL([BUILD_LBXGUI], [$have_gtk])
55 tests/util/test-defs.sh