File: configure.in

package info (click to toggle)
tablix2 0.3.5-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,024 kB
  • sloc: ansic: 24,593; xml: 13,161; sh: 10,409; makefile: 800; perl: 564; yacc: 289; sed: 16
file content (67 lines) | stat: -rw-r--r-- 1,747 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
AC_INIT(src/main.c)
AM_INIT_AUTOMAKE(tablix2, 0.3.5)

AM_CONFIG_HEADER(config.h)

AC_PROG_CC()
AC_GNU_SOURCE

PKG_PROG_PKG_CONFIG

PKG_CHECK_MODULES([XML], [libxml-2.0])

AC_ARG_ENABLE([conv],
AC_HELP_STRING([--enable-conv], [Save convergence info (default is YES)]), 
if [[[ $enableval != no ]]]; then request_conv=yes; fi, request_conv=yes)

if test "$request_conv" = "yes"; then 
	AC_DEFINE(HAVE_CONV, 1, [Define if convergence info saving is requested])
fi

AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug], [Include error checking code (causes slowdown, default is NO)]),
if [[[ $enableval != no ]]]; then 
AC_DEFINE(DEBUG, 1, [Define if error checking code is requested]) fi)


AC_ARG_WITH(pvm3,
AC_HELP_STRING([--with-pvm3], [Use PVM3 for parallel processing (default is YES)])
, enable_pvm=$withval, enable_pvm=yes)

AM_PATH_PVM3(detected_pvm=yes, detected_pvm=no)

if test "x$enable_pvm" = "xyes" -a "x$detected_pvm" = "xyes"; then
	AC_DEFINE(HAVE_LIBPVM3, 1, [Define if PVM3 is available and enabled])
	no_pvm=no
else
        PVM_LIBS=""
        PVM_CFLAGS=""
	no_pvm=yes
fi

AM_CONDITIONAL(HAVE_LIBPVM3, [ test ! "x$PVM_LIBS" = "x" ] )

AC_CHECK_LIB(dl, dlopen)

#ALL_LINGUAS="sl"
AM_GNU_GETTEXT
AM_GNU_GETTEXT_VERSION([0.16.1])

AM_ICONV


AC_DISABLE_STATIC
AM_PROG_LIBTOOL
AC_SHLIB_EXT

AC_OUTPUT(Makefile src/Makefile doc/Makefile utils/Makefile ttf/Makefile ttf/tests/Makefile examples/Makefile modules/Makefile intl/Makefile po/Makefile.in export/Makefile )

if test "$no_pvm" = "yes" ; then
	AC_MSG_RESULT([
*** WARNING ***
PVM3 was not found or was disabled. Tablix will be compiled in debug mode.
You almost certainly do not want to run Tablix in this mode, unless you are
debugging the kernel or one of the modules.
])

fi