root/tags/release-0.1.1/configure.ac

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

Increment ePDFView's version number.
The MainPterTest? doesn't include the epdfview.h header file, because I thought that it was the problem about the memory used by the compiler. It turns out that the problem was that some functions are TOO LONG and the compiler maxs out the memory (128MiB, thats it) and the system starts to swapping. Now I have reduced the compile time from 3 minutes and halt to 1 minute, and the system doesn't freeze :-)

Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT([ePDFView], [0.1.1], [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.