configure.ac.in 9.79 KB
Newer Older
1 2 3
# vi:set et ai sw=2 sts=2 ts=2: */
#-
# Copyright (c) 2004-2007 Benedikt Meurer <benny@xfce.org>
Jannis Pohlmann's avatar
Jannis Pohlmann committed
4
# Copyright (c) 2009-2011 Jannis Pohlmann <jannis@xfce.org>
Harald Judt's avatar
Harald Judt committed
5
# Copyright (c) 2004-2015 Xfce Development Team <xfce4-dev@xfce.org>
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#
# This program is free software; you can redistribute it and/or 
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of 
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public 
# License along with this program; if not, write to the Free 
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
21

22 23 24
dnl ***************************
dnl *** Version information ***
dnl ***************************
25 26
m4_define([thunarx_verinfo], [0:0:0])
m4_define([thunarx_version_api], [2])
Stephan Arts's avatar
Stephan Arts committed
27
m4_define([thunar_version_major], [1])
Nick Schermer's avatar
Nick Schermer committed
28
m4_define([thunar_version_minor], [6])
Harald Judt's avatar
Harald Judt committed
29
m4_define([thunar_version_micro], [8])
Stephan Arts's avatar
Stephan Arts committed
30
m4_define([thunar_version_nano], [])
31
m4_define([thunar_version_build], [@REVISION@])
Harald Judt's avatar
Harald Judt committed
32
m4_define([thunar_version_tag], [git])
33
m4_define([thunar_version], [thunar_version_major().thunar_version_minor().thunar_version_micro()ifelse(thunar_version_nano(), [], [], [.thunar_version_nano()])ifelse(thunar_version_tag(), [git], [thunar_version_tag()-thunar_version_build()], [thunar_version_tag()])])
34

35
dnl *******************************************
Nick Schermer's avatar
Nick Schermer committed
36
dnl *** Debugging support for GIT snapshots ***
37
dnl *******************************************
38
m4_define([thunar_debug_default], [ifelse(thunar_version_tag(), [git], [yes], [minimum])])
39

40 41 42
dnl ***************************
dnl *** Initialize autoconf ***
dnl ***************************
Harald Judt's avatar
Harald Judt committed
43
AC_COPYRIGHT([Copyright (c) 2004-2015 The Thunar development team. All rights reserved.])
44
AC_INIT([Thunar], [thunar_version], [http://bugzilla.xfce.org/], [Thunar])
Harald Judt's avatar
Harald Judt committed
45 46
AC_PREREQ([2.60])
AC_CONFIG_MACRO_DIR([m4])
47
AC_CANONICAL_TARGET()
Harald Judt's avatar
Harald Judt committed
48
AC_REVISION([thunar_version_build])
49

50 51 52
dnl ***************************
dnl *** Initialize automake ***
dnl ***************************
Harald Judt's avatar
Harald Judt committed
53
AM_INIT_AUTOMAKE([1.11 dist-bzip2 tar-ustar no-dist-gzip])
Nick Schermer's avatar
Nick Schermer committed
54
AC_CONFIG_HEADERS([config.h])
55
AM_MAINTAINER_MODE()
56
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
57

58 59 60
dnl *******************************
dnl *** Check for UNIX variants ***
dnl *******************************
61 62 63 64
AC_AIX()
AC_ISC_POSIX()
AC_MINIX()

65 66 67 68
if test "x$target_os" = "xlinux-gnu"; then
  AC_DEFINE([HAVE_LINUX], [], [Whether we are building on Linux or not])
fi

69 70 71
dnl ********************************
dnl *** Check for basic programs ***
dnl ********************************
72
AC_PROG_CC()
73
AC_PROG_LD()
74
AM_PROG_CC_C_O()
75
AC_PROG_INSTALL()
Eric Koegel's avatar
Eric Koegel committed
76
IT_PROG_INTLTOOL()
77
AC_CHECK_PROGS([PERL], [perl5 perl])
78
m4_ifdef([AC_PROG_SED], [AC_PROG_SED], [AC_CHECK_PROG(SED, sed, sed)])
79 80 81 82

dnl **************************
dnl *** Initialize libtool ***
dnl **************************
Harald Judt's avatar
Harald Judt committed
83
LT_PREREQ([2.4])
84
LT_INIT([disable-static])
85

86 87 88
dnl **************************************
dnl *** Substitute version information ***
dnl **************************************
89 90
THUNARX_VERINFO=thunarx_verinfo()
THUNARX_VERSION_API=thunarx_version_api()
91 92 93
THUNAR_VERSION_MAJOR=thunar_version_major()
THUNAR_VERSION_MINOR=thunar_version_minor()
THUNAR_VERSION_MICRO=thunar_version_micro()
94 95
AC_SUBST([THUNARX_VERINFO])
AC_SUBST([THUNARX_VERSION_API])
96 97 98
AC_SUBST([THUNAR_VERSION_MAJOR])
AC_SUBST([THUNAR_VERSION_MINOR])
AC_SUBST([THUNAR_VERSION_MICRO])
99

100 101 102 103 104 105 106 107 108 109
dnl ******************************
dnl *** Set helper path prefix ***
dnl ******************************
AC_ARG_WITH([helper-path-prefix],
            [AC_HELP_STRING([--with-helper-path-prefix=PATH],
                            [Path prefix under which helper executables will be installed (default: $libdir)])],
            [HELPER_PATH_PREFIX="$withval"],
            [HELPER_PATH_PREFIX="$libdir"])
AC_SUBST([HELPER_PATH_PREFIX])

110 111 112 113 114
dnl ***********************************************
dnl *** Work-around system-specific limitations ***
dnl ***********************************************
AC_SYS_LARGEFILE()

115 116 117
dnl **********************************
dnl *** Check for standard headers ***
dnl **********************************
118 119
AC_CHECK_HEADERS([ctype.h errno.h fcntl.h grp.h limits.h locale.h memory.h \
                  paths.h pwd.h sched.h signal.h stdarg.h stdlib.h string.h \
120 121
                  sys/mman.h sys/param.h sys/stat.h sys/time.h sys/types.h \
                  sys/uio.h sys/wait.h time.h])
122

123 124 125
dnl ************************************
dnl *** Check for standard functions ***
dnl ************************************
126
AC_FUNC_MMAP()
127
AC_CHECK_FUNCS([localeconv mkdtemp pread pwrite sched_yield setgroupent \
Nick Schermer's avatar
Nick Schermer committed
128
                setpassent strcoll strlcpy strptime symlink atexit])
129

Benedikt Meurer's avatar
 
Benedikt Meurer committed
130 131 132
dnl ******************************
dnl *** Check for i18n support ***
dnl ******************************
133
XDT_I18N([@LINGUAS@])
Benedikt Meurer's avatar
 
Benedikt Meurer committed
134

135 136 137 138 139
dnl *********************
dnl *** Check for X11 ***
dnl *********************
XDT_CHECK_LIBX11_REQUIRE()

140 141 142
dnl ***********************************
dnl *** Check for required packages ***
dnl ***********************************
Nick Schermer's avatar
Nick Schermer committed
143
XDT_CHECK_PACKAGE([EXO], [exo-1], [0.10.0])
144 145 146 147
XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.30.0])
XDT_CHECK_PACKAGE([GIO], [gio-2.0], [2.30.0])
XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.30.0])
XDT_CHECK_PACKAGE([GMODULE], [gmodule-2.0], [2.30.0])
148
XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.24.0])
149
XDT_CHECK_PACKAGE([GDK_PIXBUF], [gdk-pixbuf-2.0], [2.14.0])
Nick Schermer's avatar
Nick Schermer committed
150 151
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.10.0])
XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.10.0])
Nick Schermer's avatar
Nick Schermer committed
152
XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.10.0])
153

154 155 156 157 158
dnl ********************************************
dnl *** Check for session management support ***
dnl ********************************************
XDT_CHECK_LIBSM()

159
dnl **********************************
160
dnl *** Optional GIO UNIX features ***
161
dnl **********************************
162
XDT_CHECK_OPTIONAL_PACKAGE([GIO_UNIX], [gio-unix-2.0],
Nick Schermer's avatar
Nick Schermer committed
163
                           [2.30.0], [gio-unix], [GIO UNIX features])
164

165 166 167 168 169
dnl **********************************
dnl *** Optional support for D-BUS ***
dnl **********************************
XDT_CHECK_OPTIONAL_PACKAGE([DBUS], [dbus-glib-1],
                           [0.34], [dbus], [D-BUS support])
170

171 172 173 174 175 176
dnl ***************************************************************
dnl *** Optional support for GUDev (required for thunar-volman) ***
dnl ***************************************************************
XDT_CHECK_OPTIONAL_PACKAGE([GUDEV], [gudev-1.0], [145], [gudev], 
                           [GUDev (required for thunar-volman)])

177 178 179 180 181 182
dnl **************************************
dnl *** Optional support for libnotify ***
dnl **************************************
XDT_CHECK_OPTIONAL_PACKAGE([LIBNOTIFY], [libnotify], [0.4.0], [notifications],
                           [Mount notification support], [yes])

183 184 185
dnl ***********************************
dnl *** Check for debugging support ***
dnl ***********************************
186
XDT_FEATURE_DEBUG([thunar_debug_default])
187 188 189 190

dnl **************************************
dnl *** Check for linker optimizations ***
dnl **************************************
191
XDT_FEATURE_LINKER_OPTS()
192

193 194 195 196
dnl dnl ****************************************
dnl dnl *** Check for ELF visibility support ***
dnl dnl ****************************************
dnl XDT_FEATURE_VISIBILITY()
197

198 199 200
dnl *********************************
dnl *** Substitute platform flags ***
dnl *********************************
201 202
AC_MSG_CHECKING([PLATFORM_CPPFLAGS])
AC_MSG_RESULT([$PLATFORM_CPPFLAGS])
203
AC_SUBST([PLATFORM_CPPFLAGS])
204 205 206 207 208
AC_MSG_CHECKING([PLATFORM_CFLAGS])
AC_MSG_RESULT([$PLATFORM_CFLAGS])
AC_SUBST([PLATFORM_CFLAGS])
AC_MSG_CHECKING([PLATFORM_LDFLAGS])
AC_MSG_RESULT([$PLATFORM_LDFLAGS])
209 210
AC_SUBST([PLATFORM_LDFLAGS])

211 212 213
dnl ************************************
dnl *** Check for additional plugins ***
dnl ************************************
214
BM_THUNAR_PLUGIN_APR()
215
BM_THUNAR_PLUGIN_SBR()
216
BM_THUNAR_PLUGIN_TPA()
217
BM_THUNAR_PLUGIN_UCA()
218
BM_THUNAR_PLUGIN_WALLPAPER()
219

220 221
AC_OUTPUT([
Makefile
222 223
docs/Makefile
docs/design/Makefile
224
docs/papers/Makefile
225
examples/Makefile
226
examples/tex-open-terminal/Makefile
227
icons/Makefile
228
icons/16x16/Makefile
229 230
icons/24x24/Makefile
icons/48x48/Makefile
231 232
icons/64x64/Makefile
icons/128x128/Makefile
233
icons/scalable/Makefile
234 235
pixmaps/Makefile
plugins/Makefile
236
plugins/thunar-apr/Makefile
237
plugins/thunar-sbr/Makefile
238
plugins/thunar-sendto-email/Makefile
239
plugins/thunar-tpa/Makefile
240
plugins/thunar-uca/Makefile
241
plugins/thunar-wallpaper/Makefile
Benedikt Meurer's avatar
 
Benedikt Meurer committed
242
po/Makefile.in
243
thunar/Makefile
244
thunarx/Makefile
245
thunarx/thunarx-2.pc
246
thunarx/thunarx-config.h
247
])
248 249 250 251 252 253 254 255

dnl ***************************
dnl *** Print configuration ***
dnl ***************************
echo
echo "Build Configuration:"
echo
if test x"$DBUS_FOUND" = x"yes"; then
256
echo "* D-BUS support:                      yes"
257
else
258
echo "* D-BUS support:                      no"
259
fi
260
if test x"$GIO_UNIX_FOUND" = x"yes"; then
261
echo "* GIO UNIX features:                  yes"
262
else
263
echo "* GIO UNIX features:                  no"
264
fi
265 266
if test x"$GUDEV_FOUND" = x"yes"; then
echo "* GUDev (required for thunar-volman): yes"
267
else
268
echo "* GUDev (required for thunar-volman): no"
269
fi
270 271 272 273 274 275
if test x"$LIBNOTIFY_FOUND" = x"yes"; then
echo "* Mount notification support:         yes"
else
echo "* Mount notification support:         no"
fi
echo "* Debug Support:                      $enable_debug"
276 277 278
echo
echo "Additional Plugins:"
echo
279
echo "* Advanced Properties:                $ac_bm_thunar_plugin_apr"
280
echo "* Simple Builtin Renamers:            $ac_bm_thunar_plugin_sbr"
281 282 283
echo "* Trash Panel Applet:                 $ac_bm_thunar_plugin_tpa"
echo "* User Customizable Actions:          $ac_bm_thunar_plugin_uca"
echo "* Wallpaper support:                  $ac_bm_thunar_plugin_wallpaper"
284
echo