configure.ac.in 9.82 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
#
Andre Miranda's avatar
Andre Miranda committed
7
# This program is free software; you can redistribute it and/or
8
# modify it under the terms of the GNU General Public License as
Andre Miranda's avatar
Andre Miranda committed
9
# published by the Free Software Foundation; either version 2 of
10 11 12 13
# 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
Andre Miranda's avatar
Andre Miranda committed
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 16
# GNU General Public License for more details.
#
Andre Miranda's avatar
Andre Miranda committed
17 18
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free
19 20
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
21

22 23 24
dnl ***************************
dnl *** Version information ***
dnl ***************************
25
m4_define([thunarx_verinfo], [0:0:0])
Andre Miranda's avatar
Andre Miranda committed
26
m4_define([thunarx_version_api], [3])
Stephan Arts's avatar
Stephan Arts committed
27
m4_define([thunar_version_major], [1])
Andre Miranda's avatar
Andre Miranda committed
28 29
m4_define([thunar_version_minor], [7])
m4_define([thunar_version_micro], [0])
Stephan Arts's avatar
Stephan Arts committed
30
m4_define([thunar_version_nano], [])
31
m4_define([thunar_version_build], [@REVISION@])
Andre Miranda's avatar
Andre Miranda 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()

Andre Miranda's avatar
Andre Miranda committed
140 141 142 143 144
dnl *************************
dnl *** Check for gtk-doc ***
dnl *************************
GTK_DOC_CHECK([1.9])

145 146 147
dnl ***********************************
dnl *** Check for required packages ***
dnl ***********************************
148
XDT_CHECK_PACKAGE([EXO], [exo-2], [0.10.0])
149 150 151 152
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])
Andre Miranda's avatar
Andre Miranda committed
153
XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.22.0])
154
XDT_CHECK_PACKAGE([GDK_PIXBUF], [gdk-pixbuf-2.0], [2.14.0])
155 156 157
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.12.0])
XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.12.0])
XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.12.0])
158

159 160 161 162 163
dnl ******************************
dnl *** GObject Instrospection ***
dnl ******************************
GOBJECT_INTROSPECTION_CHECK([1.30.0])

164 165 166 167 168
dnl ********************************************
dnl *** Check for session management support ***
dnl ********************************************
XDT_CHECK_LIBSM()

169
dnl **********************************
170
dnl *** Optional GIO UNIX features ***
171
dnl **********************************
172
XDT_CHECK_OPTIONAL_PACKAGE([GIO_UNIX], [gio-unix-2.0],
Nick Schermer's avatar
Nick Schermer committed
173
                           [2.30.0], [gio-unix], [GIO UNIX features])
174

175 176 177
dnl ***************************************************************
dnl *** Optional support for GUDev (required for thunar-volman) ***
dnl ***************************************************************
Andre Miranda's avatar
Andre Miranda committed
178
XDT_CHECK_OPTIONAL_PACKAGE([GUDEV], [gudev-1.0], [145], [gudev],
179 180
                           [GUDev (required for thunar-volman)])

181 182 183 184 185 186
dnl **************************************
dnl *** Optional support for libnotify ***
dnl **************************************
XDT_CHECK_OPTIONAL_PACKAGE([LIBNOTIFY], [libnotify], [0.4.0], [notifications],
                           [Mount notification support], [yes])

187 188 189
dnl ***********************************
dnl *** Check for debugging support ***
dnl ***********************************
190
XDT_FEATURE_DEBUG([thunar_debug_default])
191 192 193 194

dnl **************************************
dnl *** Check for linker optimizations ***
dnl **************************************
195
XDT_FEATURE_LINKER_OPTS()
196

197 198 199 200
dnl dnl ****************************************
dnl dnl *** Check for ELF visibility support ***
dnl dnl ****************************************
dnl XDT_FEATURE_VISIBILITY()
201

202 203 204
dnl *********************************
dnl *** Substitute platform flags ***
dnl *********************************
205 206
AC_MSG_CHECKING([PLATFORM_CPPFLAGS])
AC_MSG_RESULT([$PLATFORM_CPPFLAGS])
207
AC_SUBST([PLATFORM_CPPFLAGS])
208 209 210 211 212
AC_MSG_CHECKING([PLATFORM_CFLAGS])
AC_MSG_RESULT([$PLATFORM_CFLAGS])
AC_SUBST([PLATFORM_CFLAGS])
AC_MSG_CHECKING([PLATFORM_LDFLAGS])
AC_MSG_RESULT([$PLATFORM_LDFLAGS])
213 214
AC_SUBST([PLATFORM_LDFLAGS])

215 216 217
dnl ************************************
dnl *** Check for additional plugins ***
dnl ************************************
218
BM_THUNAR_PLUGIN_APR()
219
BM_THUNAR_PLUGIN_SBR()
220
BM_THUNAR_PLUGIN_TPA()
221
BM_THUNAR_PLUGIN_UCA()
222
BM_THUNAR_PLUGIN_WALLPAPER()
223

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

dnl ***************************
dnl *** Print configuration ***
dnl ***************************
echo
echo "Build Configuration:"
echo
262
if test x"$GIO_UNIX_FOUND" = x"yes"; then
263
echo "* GIO UNIX features:                  yes"
264
else
265
echo "* GIO UNIX features:                  no"
266
fi
267 268
if test x"$GUDEV_FOUND" = x"yes"; then
echo "* GUDev (required for thunar-volman): yes"
269
else
270
echo "* GUDev (required for thunar-volman): no"
271
fi
272 273 274 275 276 277
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"
278
echo "* GObject Instrospection support:     $enable_introspection"
279 280 281
echo
echo "Additional Plugins:"
echo
282
echo "* Advanced Properties:                $ac_bm_thunar_plugin_apr"
283
echo "* Simple Builtin Renamers:            $ac_bm_thunar_plugin_sbr"
284 285 286
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"
287
echo