16
|
1 AC_INIT(configure.in)
|
|
2
|
|
3 AM_CONFIG_HEADER(config.h)
|
31
|
4 AM_INIT_AUTOMAKE(libpst,0.5.5)
|
16
|
5 AC_PATH_PROGS(BASH, bash)
|
|
6
|
|
7 AC_LANG_CPLUSPLUS
|
|
8 AC_PROG_CXX
|
|
9 AC_PROG_LIBTOOL
|
|
10
|
31
|
11 # The following lines adds the --enable-pst-debug option to configure:
|
|
12 #
|
|
13 # Give the user the choice to enter one of these:
|
|
14 # --enable-pst-debug
|
|
15 # --enable-pst-debug=yes
|
|
16 # --enable-pst-debug=no
|
|
17 #
|
|
18 AC_MSG_CHECKING([whether we are enabling pst debug code])
|
|
19 AC_ARG_ENABLE(pst-debug,
|
|
20 AC_HELP_STRING([--enable-pst-debug], [enable pst debug code]),
|
|
21 [if test "${enable_pst_debug}" = "no" ; then
|
|
22 AC_MSG_RESULT([no])
|
|
23 else
|
|
24 AC_DEFINE(DEBUG_ALL, 1, Define to 1 to enable pst debug code)
|
|
25 AC_MSG_RESULT([yes])
|
|
26 fi],
|
|
27 # Default value for configure
|
|
28 AC_MSG_RESULT([no])
|
|
29 )
|
|
30
|
16
|
31 AC_OUTPUT( \
|
|
32 Makefile \
|
|
33 libpst.spec \
|
|
34 html/Makefile \
|
|
35 info/Makefile \
|
|
36 man/Makefile \
|
|
37 src/Makefile \
|
21
|
38 src/version.h \
|
16
|
39 xml/Makefile \
|
|
40 xml/libpst \
|
|
41 )
|