root/tags/release-0.1.0/configure.ac

Revision 49, 1.7 kB (checked in by jordi, 3 years ago)

Added the doxygen documentation builder file in the "doc" directory. I've also wirtten the missing documentation for all files in "src", but not in "src/gtk" a it would be redundant.

Also I've been paranoic on spelling (I'm a very bad spelled) and spell checked all source files, changing some string. Updated the translations.

Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT([ePDFView], [0.1.0], [jordi@emma-soft.com])
3AC_PREREQ([2.13])
4AC_CONFIG_HEADER([config.h])
5AC_COPYRIGHT([Copyright (C) 2006 Emma's Software.])
6AM_INIT_AUTOMAKE
7AM_MAINTAINER_MODE
8
9dnl Parameters.
10AC_ARG_ENABLE([debug], [  --enable-debug          turn on debugging [[default=no]]])
11if test "x$enable_debug" != "xyes"; then
12    DEBUGFLAGS="-DNDEBUG -DG_DISABLE_ASSERT"
13else
14    DEBUGFLAGS="-DDEBUG"
15fi
16CFLAGS="$CFLAGS -Wall -pedantic $DEBUGFLAGS"
17CXXFLAGS="$CXXFLAGS -Wall -pedantic -Wno-long-long $DEBUGFLAGS"
18
19dnl Check for programs.
20AC_PROG_CC
21AC_PROG_CXX
22AC_CHECK_PROG(DOXYGEN, doxygen, yes,)
23AM_CONDITIONAL(build_reference, test "x$DOXYGEN" = "xyes")
24
25dnl Check for internationalization.
26AM_GNU_GETTEXT
27
28dnl Check for libraries
29POPPLER_REQUIRED=0.5.0
30GLIB_REQUIRED=2.6.0
31GTK2_REQUIRED=2.6.0
32FREETYPE2_REQUIRED=2.1.9
33
34PKG_CHECK_MODULES([GLIB], [glib-2.0 >= $GLIB_REQUIRED])
35AC_SUBST([GLIB_CFLAGS])
36AC_SUBST([GLIB_LIBS])
37PKG_CHECK_MODULES([GTK2], [gtk+-2.0 >= $GTK2_REQUIRED])
38AC_SUBST([GTK2_CFLAGS])
39AC_SUBST([GTK2_LIBS])
40PKG_CHECK_MODULES([POPPLER], [poppler-cairo >= $POPPLER_REQUIRED freetype2 >= $FREETYPE2_REQUIRED])
41AC_SUBST([POPPLER_CFLAGS])
42AC_SUBST([POPPLER_LIBS])
43
44dnl CPPUnit library
45AM_PATH_CPPUNIT([1.10.2], CPPUNIT="yes")
46AM_CONDITIONAL(build_tests, test "x$CPPUNIT" = "xyes")
47
48dnl Check for header files.
49dnl Check for types.
50dnl Check for compiler characteristics.
51dnl Check for library functions.
52dnl Check for system services.
53dnl Output files
54AC_CONFIG_FILES([   \
55Makefile    \
56data/Makefile   \
57m4/Makefile \
58intl/Makefile   \
59po/Makefile.in  \
60src/Makefile    \
61src/gtk/Makefile    \
62tests/Makefile  \
63doc/Makefile    \
64doc/Doxyfile])
65AC_OUTPUT
Note: See TracBrowser for help on using the browser.