root/gtkimageview/configure.in

Revision 601, 2.0 kB (checked in by bjourne, 1 month ago)

Bump gtkdoc requirement to 1.8 because the --rebuild-sections and --rebuild-types options.

Line 
1 ######################################################################
2 ##### Setup stuff ####################################################
3 ######################################################################
4 AC_PREREQ(2.53)
5
6 AC_INIT(gtkimageview, 1.6.3)
7 AC_CONFIG_SRCDIR([src/gtkimageview.h])
8
9 # foreign makes it so I don't need stupid NEWS, INSTALL, etc files.
10 AM_INIT_AUTOMAKE([foreign])
11
12 ######################################################################
13 ##### Check for different programs ###################################
14 ######################################################################
15
16 AC_PROG_CC
17 AC_PROG_INSTALL
18 AM_PROG_LIBTOOL
19
20 # Initialize GNOME environment
21 GNOME_COMMON_INIT
22 GNOME_COMPILE_WARNINGS(error)
23 DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
24 AC_SUBST(DEPRECATED_FLAGS)
25
26 PKG_CHECK_MODULES(DEP,
27     gtk+-2.0 >= 2.6.0)
28 AC_SUBST(DEP_CFLAGS)
29 AC_SUBST(DEP_LIBS)
30
31 # Check for glib utils
32 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
33 AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
34
35 # 1.8 introduced the --rebuild-sections and --rebuild-types options to
36 # 1.gtkdoc-scan that we need.
37 GTK_DOC_CHECK([1.8])
38
39 ######################################################################
40 ##### Twiddle CFLAGS #################################################
41 ######################################################################
42 CFLAGS="${CFLAGS} -Wall -Werror -std=c99 -Wmissing-prototypes"
43
44
45 ######################################################################
46 ##### Output files ###################################################
47 ######################################################################
48 AC_CONFIG_FILES([
49 gtkimageview.pc
50 Makefile
51 docs/Makefile
52 docs/reference/Makefile
53 src/Makefile
54 tests/Makefile
55 tests/testlib/Makefile
56 ])
57
58 AC_OUTPUT
59
60 echo "
61
62 Configuration:
63
64         Source code location:   ${srcdir}
65         Compiler:               ${CC}
66         CFLAGS:                 ${CFLAGS}
67
68
69 "
70
71
Note: See TracBrowser for help on using the browser.