configure.ac.in 5.28 KB
Newer Older
1
2
3
dnl
dnl xfce4-taskmanager - A small taskmanager based on the Xfce 4 libraries.
dnl
4
dnl 2010 Mike Massonnet <mmassonnet@xfce.org>
Mike Massonnet's avatar
Mike Massonnet committed
5
dnl 2005-2007 Johannes Zellner <webmaster@nebulon.de>
6
7
8
9

dnl ***************************
dnl *** Version information ***
dnl ***************************
Mike Massonnet's avatar
Mike Massonnet committed
10
m4_define([taskmanager_version_major], [1])
Simon Steinbeiss's avatar
Simon Steinbeiss committed
11
12
m4_define([taskmanager_version_minor], [4])
m4_define([taskmanager_version_micro], [0])
13
m4_define([taskmanager_version_build], [@REVISION@])
Simon Steinbeiss's avatar
Simon Steinbeiss committed
14
m4_define([taskmanager_version_tag], [git])
Mike Massonnet's avatar
Mike Massonnet committed
15
m4_define([taskmanager_version], [taskmanager_version_major().taskmanager_version_minor().taskmanager_version_micro()ifelse(taskmanager_version_tag(), [git], [taskmanager_version_tag()-taskmanager_version_build()], [taskmanager_version_tag()])])
16
17
18
19

dnl ***************************
dnl *** Initialize autoconf ***
dnl ***************************
Mike Massonnet's avatar
Mike Massonnet committed
20
AC_COPYRIGHT([Copyright (c) 2006-2008
21
        The Xfce development team. All rights reserved.])
Mike Massonnet's avatar
Mike Massonnet committed
22
23
AC_INIT([Xfce4 Taskmanager], [taskmanager_version], [http://bugzilla.xfce.org/], [xfce4-taskmanager],
        [http://goodies.xfce.org/projects/applications/xfce4-taskmanager])
24
AC_PREREQ([2.60])
25
AC_CONFIG_MACRO_DIRS([m4])
26
AC_CANONICAL_TARGET()
27
AC_REVISION([taskmanager_version_build])
28
29
30
31

dnl ***************************
dnl *** Initialize automake ***
dnl ***************************
Kevin Bowen's avatar
Kevin Bowen committed
32
AM_INIT_AUTOMAKE([1.8 no-dist-gzip dist-bzip2 foreign])
33
34
AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE()
35
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
36

37
38
39
LT_PREREQ([2.2.6])
LT_INIT([disable-static])

40
41
42
43
dnl ********************************
dnl *** Check for basic programs ***
dnl ********************************
AC_PROG_CC()
44
AM_PROG_CC_C_O()
45
46
47
48
49
50
51
52
53
54
55
AC_PROG_LD()
AC_PROG_INSTALL()
AC_PROG_INTLTOOL()

dnl ************************************
dnl *** Checks for library functions ***
dnl ************************************
AC_C_CONST()

dnl **********************************
dnl *** Check for standard headers ***
56
dnl **********************************
57
AC_HEADER_STDC()
58
AC_CHECK_HEADERS([stdlib.h string.h])
59
60
61
62
63
64
65
66
67

dnl ******************************
dnl *** Check for i18n support ***
dnl ******************************
XDT_I18N([@LINGUAS@])

dnl ***********************************
dnl *** Check for required packages ***
dnl ***********************************
Simon Steinbeiss's avatar
Simon Steinbeiss committed
68
69
XDT_CHECK_LIBX11_REQUIRE()
XDT_CHECK_PACKAGE([LIBXMU], [xmu], [1.1.2])
70
XDT_CHECK_PACKAGE([GTK3], [gtk+-3.0], [3.22.0])
71
XDT_CHECK_PACKAGE([CAIRO], [cairo], [1.5.0])
72
XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.14.0])
73

74
75
76
dnl ***********************************
dnl *** Check for optional packages ***
dnl ***********************************
Andre Miranda's avatar
Andre Miranda committed
77
78
XDT_CHECK_OPTIONAL_PACKAGE([WNCK], [libwnck-3.0], [3.2], [wnck3], [building with libwnck3 for window icons/names], [yes])

79
AM_CONDITIONAL([HAVE_WNCK], [test x"$WNCK_FOUND" = x"yes"])
80
81
82
83
84
85
86
87
dnl ***********************************
dnl ********** Check for skel *********
dnl ***********************************
AC_ARG_WITH([skel],
		AC_HELP_STRING([--with-skel], [build with task-manager-skel.c]),
		[ac_skel="$withval"],
		[ac_skel=no])

88
89
90
dnl ***********************************
dnl ******* Check for OS family *******
dnl ***********************************
91
92
93
94
95
if test x"$ac_skel" = x"yes"; then
	ac_os_implementation="skel"
else
	case "$target_os" in
		freebsd*)
Mike Massonnet's avatar
Mike Massonnet committed
96
97
		ac_os_implementation="freebsd"
		AC_CHECK_LIB([kvm], [kvm_openfiles])
98
99
		AC_CHECK_HEADERS([fcntl.h kvm.h paths.h pwd.h sys/param.h sys/proc.h \
				sys/sysctl.h sys/types.h sys/user.h unistd.h])
100
101
		;;
		dragonfly*|netbsd*|openbsd*|darwin*)
102
		ac_os_implementation="bsd"
103
104
		AC_CHECK_HEADERS([err.h pwd.h stdlib.h string.h sys/param.h sys/sched.h \
				sys/swap.h sys/sysctl.h sys/types.h unistd.h])
105
106
		;;
		solaris*)
107
108
		ac_os_implementation="solaris"
		AC_CHECK_LIB([kstat], [kstat_open])
109
110
		AC_CHECK_HEADERS([fcntl.h kstat.h procfs.h pwd.h stdlib.h string.h \
				sys/procfs.h sys/stat.h sys/swap.h sys/types.h])
111
112
		;;
		linux*)
113
114
115
		ac_os_implementation="linux"
		AC_CHECK_HEADERS([pwd.h signal.h stdio.h string.h sys/resource.h \
				sys/stat.h sys/types.h unistd.h])
116
117
		;;
		*)
118
119
		AC_MSG_CHECKING([for OS implementation])
		AC_MSG_ERROR([no OS implementation for $target_os is available])
120
121
122
		;;
	esac
fi
123
124
125
AC_MSG_CHECKING([for OS implementation])
AC_MSG_RESULT([$ac_os_implementation])

Mike Massonnet's avatar
Mike Massonnet committed
126
AM_CONDITIONAL([OS_FREEBSD], [test x"$ac_os_implementation" = x"freebsd"])
127
128
129
AM_CONDITIONAL([OS_BSD], [test x"$ac_os_implementation" = x"bsd"])
AM_CONDITIONAL([OS_SOLARIS], [test x"$ac_os_implementation" = x"solaris"])
AM_CONDITIONAL([OS_LINUX], [test x"$ac_os_implementation" = x"linux"])
130
AM_CONDITIONAL([OS_SKEL], [test x"$ac_os_implementation" = x"skel"])
131

132
133
134
dnl ***********************************
dnl *** Check for debugging support ***
dnl ***********************************
135
XDT_FEATURE_DEBUG()
136

137
138
139
dnl ***************
dnl *** Outputs ***
dnl ***************
140
141
142
AC_OUTPUT([
Makefile
src/Makefile
Florian Schüller's avatar
Florian Schüller committed
143
144
145
146
data/Makefile
data/icons/Makefile
data/icons/16x16/Makefile
data/icons/24x24/Makefile
147
148
data/icons/48x48/Makefile
data/icons/128x128/Makefile
Florian Schüller's avatar
Florian Schüller committed
149
data/icons/scalable/Makefile
150
151
152
po/Makefile.in
])

153
154
155
156
157
158
dnl ***************************
dnl *** Print configuration ***
dnl ***************************
echo
echo "Build Configuration:"
echo
Mike Massonnet's avatar
Mike Massonnet committed
159
160
echo "* Wnck:          ${WNCK_VERSION:-no}"
echo "* Cairo:         ${CAIRO_VERSION}"
161
echo "* GTK+:          ${GTK3_VERSION}"
162
echo "* Target OS:     $target_os ($ac_os_implementation)"
Mike Massonnet's avatar
Mike Massonnet committed
163
echo "* Debug:         $enable_debug"
164
echo