Make AddMouseRegion's index unsigned
[dockapps.git] / wmglobe / configure.ac
blob5b0e475fe56e623a18f82bcfc514ac5691081a0b
2 # This file is based on a (temporary) configure.scan file
3 # which was generated by the "autoscan" command
4 # (See <https://nostarch.com/download/autotools_ch3.pdf>).
6 AC_PREREQ([2.69])
7 AC_INIT([wmglobe], [1.0], [jerome.dumonteil@linuxfr.org])
8 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
9 AC_CONFIG_SRCDIR([src/wmglobe.c])
10 AC_CONFIG_HEADERS([config.h])
12 # Checks for programs.
13 AC_PROG_CC
14 AC_PROG_INSTALL
16 # Checks for libraries.
17 # FIXME: Replace `main' with a function in `-lX11':
18 AC_CHECK_LIB([X11], [main])
19 # FIXME: Replace `main' with a function in `-lXext':
20 AC_CHECK_LIB([Xext], [main])
21 # FIXME: Replace `main' with a function in `-lXpm':
22 AC_CHECK_LIB([Xpm], [main])
23 # FIXME: Replace `main' with a function in `-ljpeg':
24 AC_CHECK_LIB([jpeg], [main])
25 # FIXME: Replace `main' with a function in `-lm':
26 AC_CHECK_LIB([m], [main])
27 # FIXME: Replace `main' with a function in `-lpng':
28 AC_CHECK_LIB([png], [main])
29 # FIXME: Replace `main' with a function in `-ltiff':
30 AC_CHECK_LIB([tiff], [main])
31 # FIXME: Replace `main' with a function in `-lwraster':
32 AC_CHECK_LIB([wraster], [main])
33 # FIXME: Replace `main' with a function in `-lz':
34 AC_CHECK_LIB([z], [main])
36 LIBGIF=""
37 AC_DEFINE([HAVE_GIF], [], [Define whether GIF support was detected.])
38 # See configure.ac in <https://github.com/kkoudev/imlib2>:
39 SUPPORT_GIF="false"
41 # See <https://lists.gnu.org/archive/html/autoconf/2006-09/msg00042.html>:
42 AC_CHECK_LIB(
43     gif,
44     DGifOpenFileName,
45     LIBGIF="-lgif"
46     SUPPORT_GIF="true",
47     AC_CHECK_LIB(
48         ungif,
49         DGifOpenFileName,
50         LIBGIF="-lungif"
51         SUPPORT_GIF="true",
52     ),
54 if test $SUPPORT_GIF = "true" ; then
55     AC_DEFINE(HAVE_GIF)
56     SUPPORTED="$SUPPORTED gif"
59 AC_SUBST(LIBGIF)
60 # ^ replace @LIBGIF@ when translating src/Makefile.in to src/Makefile
62 # Checks for header files.
63 AC_PATH_X
64 AC_CHECK_HEADERS([fcntl.h limits.h locale.h stdlib.h string.h sys/time.h sys/timeb.h unistd.h])
66 # Checks for typedefs, structures, and compiler characteristics.
68 # Checks for library functions.
69 AC_FUNC_ALLOCA
70 AC_FUNC_MALLOC
71 AC_CHECK_FUNCS([floor gettimeofday memset pow setlocale sqrt strcasecmp strchr])
73 AC_CONFIG_FILES([Makefile])
74 AC_OUTPUT