-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.in.in
214 lines (186 loc) · 7.46 KB
/
configure.in.in
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
dnl $Id$
dnl
dnl Copyright (c) 2002-2011
dnl The Xfce development team. All rights reserved.
dnl
dnl Written for Xfce by Olivier Fourdan <fourdan@xfce.org>, Jasper
dnl Huijsmans <jasper@xfce.org>, Benedikt Meurer <benny@xfce.org>
dnl and Xavier MAILLARD <zedek@fxgsproject.org>.
dnl
dnl Version information
m4_define([xfce_utils_version_major], [4])
m4_define([xfce_utils_version_minor], [8])
m4_define([xfce_utils_version_micro], [0])
m4_define([xfce_utils_version_nano], []) dnl leave this empty to have no nano version
m4_define([xfce_utils_version_build], [@REVISION@])
m4_define([xfce_utils_version_tag], [git])
m4_define([xfce_utils_version], [xfce_utils_version_major().xfce_utils_version_minor().xfce_utils_version_micro()ifelse(xfce_utils_version_nano(), [], [], [.xfce_utils_version_nano()])ifelse(xfce_utils_version_tag(), [git], [xfce_utils_version_tag()-xfce_utils_version_build()], [xfce_utils_version_tag()])])
dnl Debugging support for GIT snapshots
m4_define([xfce_utils_debug_default], [ifelse(xfce_utils_version_tag(), [git], [yes], [minimum])])
AC_INIT([xfce-utils], [xfce_utils_version], [http://bugzilla.xfce.org])
AM_INIT_AUTOMAKE([dist-bzip2])
AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE()
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl Set helper path prefix
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])
dnl Check for UNIX variants
AC_AIX
AC_ISC_POSIX
AC_MINIX
AM_CONDITIONAL([HAVE_CYGWIN], [test "`uname | grep \"CYGWIN\"`" != ""])
dnl Check for basic programs
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_INTLTOOL([0.31], [no-xml])
dnl Check C Compiler Characteristics
AC_C_CONST
AC_C_INLINE
dnl Check for standard header files
AC_HEADER_STDC
AC_CHECK_HEADERS([errno.h unistd.h string.h stdlib.h crt_externs.h])
AC_CHECK_FUNCS([daemon setsid _NSGetEnviron])
AC_CHECK_DECLS([environ])
dnl Check for X11 installed
XDT_CHECK_LIBX11_REQUIRE
dnl Check for default browser to use
AC_MSG_CHECKING([what browser to use by default])
AC_ARG_WITH([browser],
AC_HELP_STRING([--with-browser=BROWSER], [What should be the default browser?]),
[], [with_browser=""])
BROWSER_DEFAULT=$with_browser
AC_SUBST([BROWSER_DEFAULT])
AC_MSG_RESULT([$with_browser])
dnl Check for default terminal to use
AC_MSG_CHECKING([what terminal to use by default])
AC_ARG_WITH([terminal],
AC_HELP_STRING([--with-terminal=TERMINAL],
[What should be the default terminal?]),
[], [with_terminal=""])
TERMINAL_DEFAULT=$with_terminal
AC_SUBST([TERMINAL_DEFAULT])
AC_MSG_RESULT([$with_terminal])
dnl Check for default browser to use
AC_MSG_CHECKING([what xsession-prefix to use])
AC_ARG_WITH([xsession-prefix],
AC_HELP_STRING([--with-xsession-prefix=XSESSION_PREFIX], [What should be the prefix for the xsession .desktop file?]),
[], [with_xsession_prefix="/usr"])
XSESSION_PREFIX=$with_xsession_prefix
AC_SUBST([XSESSION_PREFIX])
AC_MSG_RESULT([$with_xsession_prefix])
dnl the xfconf migration requires perl with XML::Parser
AC_ARG_ENABLE([xfconf-migration],
[AC_HELP_STRING([--disable-xfconf-migration],
[Do not require perl/XML::Parser for Xfconf settings migration @<:@default=required@:>@])],
[do_xfconf_migration=$enableval], [do_xfconf_migration=yes])
if test "x$do_xfconf_migration" = "xyes"; then
AC_PATH_PROGS([PERL], [perl5.8 perl5.6 perl5 perl])
if test -z "$PERL"; then
AC_MSG_ERROR([perl not found; required for Xfconf migration. Pass --disable-xfconf-migration to ignore this.])
fi
AC_MSG_CHECKING([for XML::Parser])
if `$PERL -e 'require XML::Parser;' >/dev/null 2>&1`; then
AC_MSG_RESULT([found])
else
AC_MSG_RESULT([not found])
AC_MSG_ERROR([perl module XML::Parser not found; required for Xfconf migration. Pass --disable-xfconf-migration to ignore this.])
fi
fi
AM_CONDITIONAL([XFCONF_MIGRATION], [test "x$do_xfconf_migration" = "xyes"])
dnl Check for i18n support
XDT_I18N([@LINGUAS@])
dnl Check for required packages
XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.10.0])
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.8.0])
XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.8.0])
dnl check for dbus and libdbus-glib
AM_CONDITIONAL([HAVE_DBUS], [test "x$DBUS_FOUND" = "xyes"])
XDT_CHECK_OPTIONAL_PACKAGE([DBUS], [dbus-glib-1],
[0.33], [dbus], [D-BUS support])
dnl check for location Xfce glade files were installed to
XFCE_LIBGLADE_MODULE_PATH="`pkg-config --variable libglade_module_path libxfcegui4-1.0`"
XFCE_GLADE_CATALOG_PATH="`pkg-config --variable glade_catalog_path libxfcegui4-1.0`"
XFCE_GLADE_PIXMAP_PATH="`pkg-config --variable glade_pixmap_path libxfcegui4-1.0`"
XFCE_GLADE_MODULE_PATH="`pkg-config --variable glade_module_path libxfcegui4-1.0`"
AC_SUBST(XFCE_LIBGLADE_MODULE_PATH)
AC_SUBST(XFCE_GLADE_CATALOG_PATH)
AC_SUBST(XFCE_GLADE_PIXMAP_PATH)
AC_SUBST(XFCE_GLADE_MODULE_PATH)
dnl ***************************************************
dnl *** Check if we need to build the documentation ***
dnl ***************************************************
AC_ARG_ENABLE([gen-doc], [AC_HELP_STRING([--enable-gen-doc],
[Generate HTML documentation (requires xsltproc, xml2po and xmllint) [default=no]])],, [enable_gen_doc=no])
if test x"$enable_gen_doc" = x"yes"; then
AC_PATH_PROG([XSLTPROC], [xsltproc], [no])
if test x"$XSLTPROC" = x"no"; then
enable_gen_doc=no
fi
AC_PATH_PROG([XML2PO], [xml2po], [no])
if test x"$XML2PO" = x"no"; then
enable_gen_doc=no
fi
AC_PATH_PROG([XMLLINT], [xmllint], [no])
if test x"$XMLLINT" = x"no"; then
enable_gen_doc=no
fi
if test x"$enable_gen_doc" = x"no"; then
AC_MSG_ERROR([Compiling with --enable-gen-doc but one of xml2po, xsltproc or xmllint is missing.])
fi
fi
AM_CONDITIONAL([GENERATE_DOCUMENTATION], [test x"$enable_gen_doc" = x"yes"])
dnl Check for debugging support
XDT_FEATURE_DEBUG([xfce_utils_debug_default])
dnl Check for linker optimizations
XDT_FEATURE_LINKER_OPTS()
dnl Check for vendor specific information
AC_MSG_CHECKING([for additional vendor name and/or info])
AC_ARG_WITH([vendor-info],
AC_HELP_STRING([--with-vendor-info=NAME], [Specify an additional vendor name, optionally with a file in prefix/share/xfce4/NAME]),
[with_vendor_info="$withval"], [with_vendor_info=""])
if test x"$with_vendor_info" != x""; then
AC_DEFINE_UNQUOTED([VENDOR_INFO], ["$with_vendor_info"], [Additional vendor name and/or info])
AC_MSG_RESULT([$vendorinfo])
else
AC_MSG_RESULT([not set])
fi
AC_OUTPUT([
xfce-utils.spec
Makefile
po/Makefile.in
doc/Makefile
doc/manual/Makefile
doc/manual/images/Makefile
doc/manual/images/el/Makefile
doc/manual/po/Makefile
icons/Makefile
icons/48x48/Makefile
xfrun/Makefile
scripts/Makefile
scripts/xinitrc.in
xfce4-about/Makefile
])
echo
echo "Build Configuration:"
if test x"$enable_gen_doc" = x"yes"; then
echo "* Documentation: yes (generate)"
elif test -d "${srcdir}/doc/manual/html"; then
echo "* Documentation: yes (in tarball)"
else
echo "* Documentation: no"
fi
if test -n "$with_vendor_info"; then
echo "* Vendor: $with_vendor_info"
echo
echo "Note you can put additional info about the vendor"
echo "in this text file: \"${datarootdir}/xfce4/$with_vendor_info\""
else
echo "* Vendor: none"
fi
echo