summaryrefslogtreecommitdiffstats
path: root/configure.in.in
blob: ea108e4502589a274b6f7fc5aa9671852a1b2eda (plain)
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
68
AC_INIT(acinclude.m4) dnl a source file from your sub dir

dnl This is so we can use kde-common
AC_CONFIG_AUX_DIR(admin)

dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
unset CDPATH

dnl Checking host/target/build systems, for make, install etc.
AC_CANONICAL_SYSTEM
dnl Perform program name transformation
AC_ARG_PROGRAM

dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(bibletime, 1.6.6.0) dnl searches for some needed programs

KDE_SET_PREFIX
KDE_USE_QT(3.0)

dnl generate the config header
AM_CONFIG_HEADER([config.h]) dnl at the distribution this done

dnl Checks for programs.
AC_CHECK_COMPILERS
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS"
AC_ENABLE_SHARED(no)
AC_ENABLE_STATIC(yes)
KDE_PROG_LIBTOOL

AM_MAINTAINER_MODE

dnl for NLS support. Call them in this order!
dnl WITH_NLS is for the po files
AM_KDE_WITH_NLS

AC_PATH_KDE

dnl in this space add everything you want to check for;
dnl examples are specific headers, libraries, etc.
dnl everything to compile and run a KDE program is already checked

CPPFLAGS="$CPPFLAGS -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE -Wall -I\$(top_srcdir)/ -I\$(top_srcdir)/bibletime -I\$(top_builddir)/bibletime"
AC_CHECK_STATIC_LINKING(ac_use_static)
AC_CHECK_SWORD(1.5.9, [$ac_use_static])
AC_CHECK_CLUCENE([$ac_use_static])

AC_ARG_ENABLE(howto,
        AC_HELP_STRING([--enable-howto],
	[install Bible Study Howto (default=yes)]),
	,
	enable_howto=yes
)
HOWTODIR=""
if test "x$enable_howto" = xyes; then
	HOWTODIR="howto"
fi
AC_SUBST(HOWTODIR)

dnl Chek for the used distribution
AC_CHECK_DISTRIBUTION

dnl add here all your Makefiles. They are created by configure

AC_CONFIG_FILES([ README ])
AC_CONFIG_FILES([ INSTALL ])
AC_CONFIG_FILES([ bibletime.lsm ])
AC_CONFIG_FILES([ bibletime.spec ])
AC_CONFIG_FILES([ bibletime.desktop ])