]> Dogcows Code - chaz/tint2/blob - configure.ac
226e8cb338cb5a2c3883bc4a2eb82bb79c5b3e84
[chaz/tint2] / configure.ac
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3 AC_INIT([tint2], [0.7_beta2], [http://code.google.com/p/tint2/issues])
4
5 LT_INIT
6 AM_INIT_AUTOMAKE
7
8 AC_CONFIG_MACRO_DIR([m4])
9 AC_CONFIG_SRCDIR([src/tint.c])
10 AC_CONFIG_HEADERS([config.h])
11
12 # Checks for programs.
13 AC_PROG_CC
14
15 # Checks for libraries.
16 PKG_CHECK_MODULES([PANGOCAIRO], [pangocairo])
17 AC_SUBST(PANGOCAIRO_CFLAGS)
18 AC_SUBST(PANGOCAIRO_LIBS)
19
20 PKG_CHECK_MODULES([PANGO], [pango])
21 AC_SUBST(PANGO_CFLAGS)
22 AC_SUBST(PANGO_LIBS)
23
24 PKG_CHECK_MODULES([CAIRO], [cairo])
25 AC_SUBST(CAIRO_CFLAGS)
26 AC_SUBST(CAIRO_LIBS)
27
28 PKG_CHECK_MODULES([GLIB2], [glib-2.0])
29 AC_SUBST(GLIB2_CFLAGS)
30 AC_SUBST(GLIB2_LIBS)
31
32 PKG_CHECK_MODULES([GOBJECT2], [gobject-2.0])
33 AC_SUBST(GOBJECT2_CFLAGS)
34 AC_SUBST(GOBJECT2_LIBS)
35
36 PKG_CHECK_MODULES([X11], [x11])
37 AC_SUBST(X11_CFLAGS)
38 AC_SUBST(X11_LIBS)
39
40 PKG_CHECK_MODULES([XINERAMA], [xinerama])
41 AC_SUBST(XINERAMA_CFLAGS)
42 AC_SUBST(XINERAMA_LIBS)
43
44 PKG_CHECK_MODULES([IMLIB2], [imlib2])
45 AC_SUBST(IMLIB2_CFLAGS)
46 AC_SUBST(IMLIB2_LIBS)
47
48 # Checks for header files.
49 AC_PATH_X
50 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
51
52 # Checks for typedefs, structures, and compiler characteristics.
53 AC_TYPE_INT16_T
54 AC_TYPE_INT64_T
55 AC_TYPE_INT8_T
56 AC_TYPE_PID_T
57
58 # Checks for library functions.
59 AC_FUNC_FORK
60 AC_FUNC_MALLOC
61 AC_CHECK_FUNCS([gettimeofday memset select setlocale strcasecmp strchr strdup])
62
63 AC_ARG_ENABLE([examples],
64 [AS_HELP_STRING([--enable-examples], [Install additional $(PACKAGE_NAME)rc examples])],
65 [case "${enableval}" in
66 yes) examples=true ;;
67 no) examples=false ;;
68 *) AC_MSG_ERROR([bad value ${enableval} for --enable-examples]) ;;
69 esac],[examples=false])
70 AM_CONDITIONAL([INSTALL_EXAMPLES], [test x$examples = xtrue])
71
72 AC_ARG_ENABLE([doc],
73 [AS_HELP_STRING([--enable-doc], [Install additional documentation])],
74 [case "${enableval}" in
75 yes) doc=true ;;
76 no) doc=false ;;
77 *) AC_MSG_ERROR([bad value ${enableval} for --enable-doc]) ;;
78 esac],[doc=false])
79 AM_CONDITIONAL([INSTALL_DOC], [test x$doc = xtrue])
80
81 AC_CONFIG_FILES([
82 Makefile
83 doc/Makefile
84 src/Makefile
85 ])
86
87 AC_OUTPUT
This page took 0.037382 seconds and 4 git commands to generate.