configure.ac.in 10.7 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], [7])
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 177 178

dnl *************************************************
dnl *** Optional support for startup notification ***
dnl *************************************************
XDT_CHECK_OPTIONAL_PACKAGE([LIBSTARTUP_NOTIFICATION],
                           [libstartup-notification-1.0],
                           [0.4], [startup-notification],
                           [startup notification library])

179 180 181 182 183 184
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)])

185 186 187 188 189 190
dnl **************************************
dnl *** Optional support for libnotify ***
dnl **************************************
XDT_CHECK_OPTIONAL_PACKAGE([LIBNOTIFY], [libnotify], [0.4.0], [notifications],
                           [Mount notification support], [yes])

191 192 193 194 195
dnl *************************
dnl *** Check for gtk-doc ***
dnl *************************
GTK_DOC_CHECK([1.0])

196 197 198
dnl ***********************************
dnl *** Check for debugging support ***
dnl ***********************************
199
XDT_FEATURE_DEBUG([thunar_debug_default])
200

201 202 203 204 205 206
dnl *************************************
dnl *** Compensate for broken gtk-doc ***
dnl *************************************
XDT_SUPPORTED_FLAGS([GTK_DOC_EXTRA_CFLAGS], [-Wno-sign-compare])
AC_SUBST([GTK_DOC_EXTRA_CFLAGS])

207 208 209
dnl **************************************
dnl *** Check for linker optimizations ***
dnl **************************************
210
XDT_FEATURE_LINKER_OPTS()
211

212 213 214 215
dnl dnl ****************************************
dnl dnl *** Check for ELF visibility support ***
dnl dnl ****************************************
dnl XDT_FEATURE_VISIBILITY()
216

217 218 219
dnl *********************************
dnl *** Substitute platform flags ***
dnl *********************************
220 221
AC_MSG_CHECKING([PLATFORM_CPPFLAGS])
AC_MSG_RESULT([$PLATFORM_CPPFLAGS])
222
AC_SUBST([PLATFORM_CPPFLAGS])
223 224 225 226 227
AC_MSG_CHECKING([PLATFORM_CFLAGS])
AC_MSG_RESULT([$PLATFORM_CFLAGS])
AC_SUBST([PLATFORM_CFLAGS])
AC_MSG_CHECKING([PLATFORM_LDFLAGS])
AC_MSG_RESULT([$PLATFORM_LDFLAGS])
228 229
AC_SUBST([PLATFORM_LDFLAGS])

230 231 232
dnl ************************************
dnl *** Check for additional plugins ***
dnl ************************************
233
BM_THUNAR_PLUGIN_APR()
234
BM_THUNAR_PLUGIN_SBR()
235
BM_THUNAR_PLUGIN_TPA()
236
BM_THUNAR_PLUGIN_UCA()
237
BM_THUNAR_PLUGIN_WALLPAPER()
238

239 240
AC_OUTPUT([
Makefile
241 242
docs/Makefile
docs/design/Makefile
243
docs/papers/Makefile
244 245 246 247
docs/reference/Makefile
docs/reference/thunarx/Makefile
docs/reference/thunarx/version.xml
examples/Makefile
248
examples/tex-open-terminal/Makefile
249
icons/Makefile
250
icons/16x16/Makefile
251 252
icons/24x24/Makefile
icons/48x48/Makefile
253 254
icons/64x64/Makefile
icons/128x128/Makefile
255
icons/scalable/Makefile
256 257
pixmaps/Makefile
plugins/Makefile
258
plugins/thunar-apr/Makefile
259
plugins/thunar-sbr/Makefile
260
plugins/thunar-sendto-email/Makefile
261
plugins/thunar-tpa/Makefile
262
plugins/thunar-uca/Makefile
263
plugins/thunar-wallpaper/Makefile
Benedikt Meurer's avatar
 
Benedikt Meurer committed
264
po/Makefile.in
265
thunar/Makefile
266
thunarx/Makefile
267
thunarx/thunarx-2.pc
268
thunarx/thunarx-config.h
269
])
270 271 272 273 274 275 276 277

dnl ***************************
dnl *** Print configuration ***
dnl ***************************
echo
echo "Build Configuration:"
echo
if test x"$DBUS_FOUND" = x"yes"; then
278
echo "* D-BUS support:                      yes"
279
else
280
echo "* D-BUS support:                      no"
281
fi
282
if test x"$GIO_UNIX_FOUND" = x"yes"; then
283
echo "* GIO UNIX features:                  yes"
284
else
285
echo "* GIO UNIX features:                  no"
286 287
fi
if test x"$LIBSTARTUP_NOTIFICATION_FOUND" = x"yes"; then
288 289 290 291 292 293
echo "* Startup Notification:               yes"
else
echo "* Startup Notification:               no"
fi
if test x"$GUDEV_FOUND" = x"yes"; then
echo "* GUDev (required for thunar-volman): yes"
294
else
295
echo "* GUDev (required for thunar-volman): no"
296
fi
297 298 299 300 301 302
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"
303 304 305
echo
echo "Additional Plugins:"
echo
306
echo "* Advanced Properties:                $ac_bm_thunar_plugin_apr"
307
echo "* Simple Builtin Renamers:            $ac_bm_thunar_plugin_sbr"
308 309 310
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"
311
echo