File: configure.ac

package info (click to toggle)
pidgin-hotkeys 0.2.4-1.3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 1,572 kB
  • ctags: 98
  • sloc: sh: 8,874; ansic: 868; makefile: 35
file content (70 lines) | stat: -rwxr-xr-x 1,535 bytes parent folder | download | duplicates (4)
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
AC_PREREQ([2.52])
m4_define([version_epoch], [0])
m4_define([version_major], [2])
m4_define([version_minor], [4])
m4_define([full_version],
    [version_epoch.version_major.version_minor])

AC_INIT([pidgin-hotkeys], [full_version], [email@ivanwong.info])
AC_CANONICAL_SYSTEM
	
AM_CONFIG_HEADER(hotkeys-config.h)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)

AM_MAINTAINER_MODE
AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")

AC_PROG_CC
AC_DISABLE_STATIC
AM_PROG_LIBTOOL
AC_PROG_INSTALL

win32=no
x11=no
case $host_os in
*mingw* | pw32* | cygwin*)
    win32=yes ;;
*)
    x11=yes ;;
esac
AM_CONDITIONAL(WITH_WIN32, test x"$win32" = "xyes")
AM_CONDITIONAL(WITH_X11, test x"$x11" = "xyes")

gtk_modules="gtk+-2.0 >= 2.4.0"
pidgin_modules="pidgin >= 2.0.0"
PKG_CHECK_MODULES(GTK, [ $gtk_modules ])
PKG_CHECK_MODULES(PIDGIN, [ $pidgin_modules ])
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
AC_SUBST(PIDGIN_CFLAGS)
AC_SUBST(PIDGIN_LIBS)

AC_DEFINE_UNQUOTED(VERSION_EPOCH, version_epoch,
	[The Epoch of this release]
)
AC_DEFINE_UNQUOTED(VERSION_MAJOR, version_major,
	[The Major version number of this release]
)
AC_DEFINE_UNQUOTED(VERSION_MINOR, version_minor,
	[The Minor version number of this release]
)

if test "x$GCC" = "xyes"; then
  CFLAGS="$CFLAGS -Wall -g3"
fi
AC_SUBST(CFLAGS)
	
AC_SUBST(ALL_LINGUAS,
"fr sv zh_TW de")

AC_SUBST(GETTEXT_PACKAGE, AC_PACKAGE_NAME)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
	[The package name, for gettext])
AM_GLIB_GNU_GETTEXT

AC_OUTPUT([
Makefile
po/Makefile.in
src/Makefile
])