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 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395
|
dnl
dnl This file was autogenerated from "configure.in.in".
dnl Edit that file instead!
dnl
dnl
dnl Copyright (c) 2004-2009 os-cillation.
dnl All rights reserved.
dnl
dnl Written by Benedikt Meurer <benny@xfce.org>.
dnl
dnl ***************************
dnl *** Version information ***
dnl ***************************
m4_define([libexo_verinfo], [0:0:0])
m4_define([libexo_version_api], [1])
m4_define([libexo_version_major], [0])
m4_define([libexo_version_minor], [6])
m4_define([libexo_version_micro], [2])
m4_define([libexo_version_nano], [])
m4_define([libexo_version_build], [f976ac6])
m4_define([libexo_version_tag], [])
m4_define([libexo_version], [libexo_version_major().libexo_version_minor().libexo_version_micro()ifelse(libexo_version_nano(), [], [], [.libexo_version_nano()])ifelse(libexo_version_tag(), [git], [libexo_version_tag()-libexo_version_build()], [libexo_version_tag()])])
dnl ********************************************
dnl *** Full debug support for GIT snapshots ***
dnl ********************************************
m4_define([libexo_debug_default], [ifelse(libexo_version_tag(), [git], [full], [minimum])])
dnl ***************************
dnl *** Initialize autoconf ***
dnl ***************************
AC_COPYRIGHT([Copyright (c) 2004-2010 os-cillation.
Copyright (c) 2004-2011 Xfce Development Team])
AC_INIT([exo], [libexo_version], [http://bugzilla.xfce.org/])
AC_PREREQ([2.50])
AC_REVISION([f976ac6])
AC_CANONICAL_TARGET()
dnl ***************************
dnl *** Initialize automake ***
dnl ***************************
AM_INIT_AUTOMAKE([AC_PACKAGE_TARNAME()], [AC_PACKAGE_VERSION()])
AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE()
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl **************************
dnl *** Libtool versioning ***
dnl **************************
LIBEXO_VERINFO=libexo_verinfo()
AC_SUBST([LIBEXO_VERINFO])
dnl ****************************
dnl *** Subst libexo version ***
dnl ****************************
LIBEXO_VERSION_API=libexo_version_api()
LIBEXO_VERSION_MAJOR=libexo_version_major()
LIBEXO_VERSION_MINOR=libexo_version_minor()
LIBEXO_VERSION_MICRO=libexo_version_micro()
AC_SUBST([LIBEXO_VERSION_API])
AC_SUBST([LIBEXO_VERSION_MAJOR])
AC_SUBST([LIBEXO_VERSION_MINOR])
AC_SUBST([LIBEXO_VERSION_MICRO])
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])
dnl *******************************
dnl *** Check for UNIX variants ***
dnl *******************************
AC_AIX()
AC_ISC_POSIX()
AC_MINIX()
dnl ********************************
dnl *** Check for Win32 variants ***
dnl ********************************
AC_MSG_CHECKING([if building for some Win32 platform])
case "$host" in
*-*-mingw*|*-*-cygwin*)
ac_bm_platform_win32=yes
;;
*)
ac_bm_platform_win32=no
;;
esac
AC_MSG_RESULT([$ac_bm_platform_win32])
AM_CONDITIONAL([PLATFORM_WIN32], [test x"$ac_bm_platform_win32" = x"yes"])
dnl ********************************
dnl *** Check for basic programs ***
dnl ********************************
AM_PROG_AS()
AC_PROG_CC()
AM_PROG_CC_C_O()
AC_PROG_INSTALL()
AC_PROG_INTLTOOL([0.31], [no-xml])
AC_PROG_LIBTOOL()
AC_CHECK_PROGS([PERL], [perl5 perl])
dnl ***************************************
dnl *** Check for required Perl modules ***
dnl ***************************************
AC_PROG_PERL_MODULES([URI::Escape URI::file URI::URL], [],
[
AC_MSG_ERROR([Atleast one of the required Perl modules (URI::Escape, URI::file and URI::URL) was not found on your system])
])
dnl ***************************************
dnl *** Check for standard header files ***
dnl ***************************************
AC_HEADER_STDC()
AC_CHECK_HEADERS([assert.h errno.h fcntl.h fnmatch.h libintl.h \
locale.h math.h mmintrin.h paths.h regex.h \
signal.h stdarg.h string.h sys/mman.h \
sys/stat.h sys/time.h sys/types.h sys/wait.h time.h])
dnl ************************************
dnl *** Check for standard functions ***
dnl ************************************
AC_FUNC_MMAP()
dnl ***************************************
dnl *** Check for strftime() extensions ***
dnl ***************************************
AC_TRY_RUN([
#include <string.h>
#include <time.h>
int
main (int argc, char **argv)
{
struct tm tm;
char buffer[16];
tm.tm_year = 81;
if (strftime (buffer, 16, "%EY", &tm) == 4 && strcmp (buffer, "1981") == 0)
return 0;
return 1;
}
], [
AC_DEFINE([HAVE_STRFTIME_EXTENSION], 1, [Define if strftime supports %E and %O modifiers.])
])
dnl ******************************
dnl *** Check for i18n support ***
dnl ******************************
XDT_I18N([ar ast be bg bn ca cs cy da de dz el en_GB es et eu fi fr gl he hr hu id is it ja ka kk ku lt lv mk nb nl pa pl pt_BR pt ro ru si sk sl sq sv tl_PH tr ug uk ur_PK ur zh_CN zh_TW ], [exo-libexo_version_api()])
dnl ***********************************
dnl *** Check for required packages ***
dnl ***********************************
XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.18.0])
XDT_CHECK_PACKAGE([GIO], [gio-2.0], [2.18.0])
XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.14.0])
XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.16.0])
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.8.0])
dnl ***********************************************************
dnl *** Check if we need to build the GIO module (optional) ***
dnl ***********************************************************
XDT_CHECK_OPTIONAL_PACKAGE([GIO_UNIX], [gio-unix-2.0], [2.18.0], [gio-unix], [GIO-Unix features], [yes])
GIOMODULEDIR=""
BUILD_GIOMODULE=""
if test x"$GIO_UNIX_FOUND" = x"yes"; then
if $PKG_CONFIG "--atleast-version=2.27.0" "gio-unix-2.0" >/dev/null 2>&1; then
BUILD_GIOMODULE="no"
else
dnl A GIO version >= 2.18 and < 2.27 was found
BUILD_GIOMODULE="yes"
dnl GIO directory for extensions
AC_ARG_WITH([gio-module-dir],
[AC_HELP_STRING([--with-gio-module-dir=PATH],
[Specify where to install the exo gio module (default=autodetect)])],
[gio_module_dir="$withval"])
if test x"$gio_module_dir" = x""; then
GIOMODULEDIR="`$PKG_CONFIG gio-2.0 --variable giomoduledir`"
elif test x"$gio_module_dir" != x"distcheck"; then
GIOMODULEDIR="$gio_module_dir"
fi
fi
fi
AC_SUBST([GIOMODULEDIR])
AM_CONDITIONAL([HAVE_GIOMODULEDIR], [test x"$GIOMODULEDIR" != x""])
AM_CONDITIONAL([BUILD_GIOMODULE], [test x"$BUILD_GIOMODULE" = x"yes"])
dnl *********************
dnl *** Check for X11 ***
dnl *********************
XDT_CHECK_LIBX11_REQUIRE()
dnl *************************
dnl *** Check for gtk-doc ***
dnl *************************
GTK_DOC_CHECK([1.9])
dnl ***********************************
dnl *** Check for python (optional) ***
dnl ***********************************
AC_ARG_ENABLE([python],
[AC_HELP_STRING([--enable-python], [build python bindings])],
[enable_python=$enableval],
[enable_python=auto])
have_python=no
if test x"$enable_python" != x"no"; then
AC_MSG_NOTICE([Checking to see if we can build Python bindings])
AM_PATH_PYTHON([2.2],, [:])
if test x"$PYTHON" = x":"; then
AC_MSG_WARN([Python not found])
else
XDT_CHECK_PYTHON_HEADERS([have_python_headers=yes],[have_python_headers=no])
XDT_CHECK_PACKAGE([PYGTK], [pygtk-2.0], [2.4.0], \
[have_pygtk=yes], [have_pygtk=no])
AC_PATH_PROG([PYGOBJECT_CODEGEN], [pygobject-codegen-2.0], [no])
if test x"$have_python_headers" = x"yes" -a x"$have_pygtk" = x"yes" -a x"$PYGOBJECT_CODEGEN" != x"no"; then
have_python=yes
AC_MSG_CHECKING([for PyGTK defs])
PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
AC_MSG_RESULT([$PYGTK_DEFSDIR])
AC_SUBST([PYGTK_DEFSDIR])
dnl Check whether the compiler accepts -fno-strict-aliasing,
dnl which is required to compile the source generated by
dnl pygtk-codegen-2.0 with gcc 3.x.
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
AC_MSG_CHECKING([whether $CC accepts -fno-strict-aliasing])
AC_COMPILE_IFELSE(AC_LANG_SOURCE([int x;]), [
AC_MSG_RESULT([yes])
PYGTK_CFLAGS="$PYGTK_CFLAGS -fno-strict-aliasing"
], [
AC_MSG_RESULT([no])
])
CPPFLAGS="$save_CPPFLAGS"
fi
fi
if test x"$have_python" = x"no"; then
if test x"$enable_python" = x"yes"; then
AC_MSG_ERROR([Building python explicitly requested, but cannot build python bindings])
else
AC_MSG_WARN([Could not find either PyGTK or the Python headers, not building Python bindings])
fi
fi
fi
AM_CONDITIONAL([HAVE_PYTHON], [test x"$have_python" = x"yes"])
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"$XML2PO" = 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 not found.])
fi
fi
AM_CONDITIONAL([GENERATE_DOCUMENTATION], [test x"$enable_gen_doc" = x"yes"])
dnl ***********************************
dnl *** Check for debugging support ***
dnl ***********************************
XDT_FEATURE_DEBUG([libexo_debug_default])
dnl **************************************
dnl *** Check for linker optimizations ***
dnl **************************************
XDT_FEATURE_LINKER_OPTS()
dnl ****************************************
dnl *** Check for ELF visibility support ***
dnl ****************************************
AC_ARG_ENABLE([visibility], AC_HELP_STRING([--disable-visibility], [Do not use ELF visibility attributes]), [], [enable_visibility=yes])
have_gnuc_visibility=no
if test x"$enable_visibility" != x"no"; then
dnl Check whether the compiler supports the visibility attribute
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wall -Werror"
AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
AC_COMPILE_IFELSE(AC_LANG_SOURCE(
[
void test_default (void);
void test_hidden (void);
void __attribute__ ((visibility("default"))) test_default (void) {}
void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
int main (int argc, char **argv) { test_default (); test_hidden (); return 0; }
]),
[
have_gnuc_visibility=yes
AC_MSG_RESULT([yes])
],
[
AC_MSG_RESULT([no])
])
CFLAGS="$save_CFLAGS"
fi
if test x"$have_gnuc_visibility" = x"yes"; then
CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
fi
AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test x"$have_gnuc_visibility" = x"yes"])
dnl *************************************
dnl *** Compensate for broken gtk-doc ***
dnl *************************************
XDT_SUPPORTED_FLAGS([GTK_DOC_EXTRA_CFLAGS], [-Wno-sign-compare])
AC_SUBST([GTK_DOC_EXTRA_CFLAGS])
AC_OUTPUT([
Makefile
docs/Makefile
docs/manual/Makefile
docs/manual/images/Makefile
docs/manual/images/el/Makefile
docs/manual/images/es/Makefile
docs/manual/images/ja/Makefile
docs/manual/images/sv/Makefile
docs/manual/po/Makefile
docs/reference/Makefile
docs/reference/version.xml
exo.spec
exo/Makefile
exo/exo-1.pc
exo/exo-config.h
exo-csource/Makefile
exo-desktop-item-edit/Makefile
exo-gio-module/Makefile
exo-helper/Makefile
exo-helper/helpers/Makefile
exo-open/Makefile
exo-support/Makefile
icons/Makefile
icons/24x24/Makefile
icons/48x48/Makefile
pixmaps/Makefile
po/Makefile.in
python/Makefile
python/examples/Makefile
tests/Makefile
tests/data/Makefile
])
dnl ***************************
dnl *** Print configuration ***
dnl ***************************
echo
echo "Build Configuration:"
echo
if test x"$BUILD_GIOMODULE" = x"no"; then
echo "* Build GIO module: no (not needed after glib 2.27)"
elif test x"$GIO_UNIX_FOUND" = x"yes"; then
echo "* Build GIO module: yes"
echo " - GIO Module Dir: $GIOMODULEDIR"
else
echo "* Build GIO module: no"
fi
echo "* Debug Support: $enable_debug"
if test x"$enable_gen_doc" = x"yes"; then
echo "* Documentation: yes (generate)"
elif test -d "${srcdir}/docs/manual/html"; then
echo "* Documentation: yes (in tarball)"
else
echo "* Documentation: no"
fi
echo "* GNU Visibility: $have_gnuc_visibility"
echo "* Python Support: $have_python"
echo
|