File: configure.ac

package info (click to toggle)
kildclient 3.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,584 kB
  • sloc: ansic: 24,834; xml: 7,516; sh: 5,022; perl: 2,876; makefile: 156; sed: 39
file content (120 lines) | stat: -rw-r--r-- 2,427 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
AC_INIT([kildclient],[3.2.3])
AC_CONFIG_SRCDIR([src/main.c])

AC_CANONICAL_HOST

AM_INIT_AUTOMAKE([foreign])
AM_SILENT_RULES([yes])

AC_CONFIG_HEADERS([kcconfig.h:config.h.in])
AM_MAINTAINER_MODE

AC_PROG_CC

AC_CHECK_FUNCS([localtime_r])


dnl
dnl Internationalization macros
dnl
GETTEXT_PACKAGE=kildclient
AC_SUBST(GETTEXT_PACKAGE)
AM_GNU_GETTEXT_REQUIRE_VERSION([0.21])
AM_GNU_GETTEXT([external],[need-ngettext])
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
                   "definition of GETTEXT_PACKAGE")


dnl
dnl GTK+ checks
dnl
PKG_CHECK_MODULES(GTK, glib-2.0 >= 2.32.0
                       gthread-2.0 >= 2.32.0
                       gtk+-3.0 >= 3.22.0)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)


dnl
dnl GtkSpell check
dnl
PKG_CHECK_MODULES(GTKSPELL, gtkspell3-3.0)
AC_SUBST(GTKSPELL_CFLAGS)
AC_SUBST(GTKSPELL_LIBS)


dnl
dnl GnuTLS check
dnl
PKG_CHECK_MODULES(LIBGNUTLS, gnutls)
AC_SUBST(LIBGNUTLS_CFLAGS)
AC_SUBST(LIBGNUTLS_LIBS)


dnl
dnl Check for perl - Does not work when cross-compiling
dnl
case $host in
  *-*-mingw32*)
  ;;
  *)
    AC_CHECK_PROG(PERL, perl, perl)
    AC_PROG_PERL_MODULES([ExtUtils::Embed], [dnl
      KILDCLIENT_PERL_CFLAGS=`$PERL -MExtUtils::Embed -e ccopts`
      KILDCLIENT_PERL_LIBS=`$PERL -MExtUtils::Embed -e ldopts`
      AC_SUBST(KILDCLIENT_PERL_CFLAGS)
      AC_SUBST(KILDCLIENT_PERL_LIBS)],
      AC_MSG_ERROR(The perl ExtUtils::Embed module could not be found))
  ;;
esac


dnl
dnl See if documentation is to be generated
dnl
build_docs=yes
AC_ARG_WITH([docs],
  AS_HELP_STRING([--with-docs],
                 [generate the docbook documentation (default is YES)]),
                 [build_docs=$withval])
AM_CONDITIONAL(BUILD_DOCS, test x$build_docs = xyes)


dnl
dnl Resources file handling
dnl
case $host in
  *-*-mingw32*)
dnl Find the windres tool and use it to compile
    AC_CHECK_TOOL([WINDRES], [windres])
    windows=true
  ;;
  *)
    windows=false
  ;;
esac
AM_CONDITIONAL([WINDOWS], [test x$windows = xtrue])


dnl
dnl Extra flags necessary for windows
dnl
case $host in
  *-*-mingw32*)
    LIBS="$LIBS -mwindows -lregex -lws2_32 -lwinmm"
  ;;
esac


dnl
dnl Finalization
dnl
AC_CONFIG_FILES([Makefile
                 po/Makefile.in
                 src/Makefile
                 share/Makefile
                 share/plugins/Makefile
                 doc/Makefile
                 doc/C/Makefile
                 doc/C/images/Makefile])
AC_OUTPUT