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>).
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.
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])
37 AC_DEFINE([HAVE_GIF], [], [Define whether GIF support was detected.])
38 # See configure.ac in <https://github.com/kkoudev/imlib2>:
41 # See <https://lists.gnu.org/archive/html/autoconf/2006-09/msg00042.html>:
54 if test $SUPPORT_GIF = "true" ; then
56 SUPPORTED="$SUPPORTED gif"
60 # ^ replace @LIBGIF@ when translating src/Makefile.in to src/Makefile
62 # Checks for header files.
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.
71 AC_CHECK_FUNCS([floor gettimeofday memset pow setlocale sqrt strcasecmp strchr])
73 AC_CONFIG_FILES([Makefile])