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
|
dnl
dnl Copyright (c) 2006
dnl The Xfce development team. All rights reserved.
dnl
dnl Originally written for Xfce by Benedikt Meurer <benny@xfce.org>
dnl Modified by Stephan Arts <stephan@xfce.org>
dnl
dnl ***************************
dnl *** Version information ***
dnl ***************************
m4_define([squeeze_verinfo], [0:2:0])
m4_define([squeeze_version_branch], [])
m4_define([squeeze_version_major], [0])
m4_define([squeeze_version_minor], [2])
m4_define([squeeze_version_micro], [3])
m4_define([squeeze_version_nano], []) # Leave empty for no nano version
m4_define([squeeze_version_build], [r26639])
m4_define([squeeze_version_tag], []) # Leave empty for releases
m4_define([squeeze_version], [ifelse(squeeze_version_branch(), [], [squeeze_version_major().squeeze_version_minor().squeeze_version_micro()ifelse(squeeze_version_nano(), [], [], [.squeeze_version_nano()])], [squeeze_version_branch()])ifelse(squeeze_version_tag(),[],[], [-ifelse(squeeze_version_tag(), [svn], [squeeze_version_tag()-squeeze_version_build()], [squeeze_version_tag()])])])
dnl *******************************************
dnl *** Debugging support for SVN snapshots ***
dnl *******************************************
m4_define([squeeze_debug_default], [ifelse(squeeze_version_tag(), [svn], [full], [no])])
AC_COPYRIGHT([Copyright (c) 2006
The Xfce development team. All rights reserved.
Written for Xfce by Stephan Arts <stephan@xfce.org>.])
AC_INIT([Squeeze], [squeeze_version], [http://bugzilla.xfce.org/])
AC_PREREQ([2.50])
SQUEEZE_VERSION=squeeze_version
AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar])
AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE
LIBSQUEEZE_API_VERSION=squeeze_version_major.squeeze_version_minor
SQUEEZE_VERINFO=squeeze_verinfo
AC_SUBST(SQUEEZE_VERINFO)
AC_SUBST(LIBSQUEEZE_API_VERSION)
dnl check for UNIX variants
AC_AIX
AC_ISC_POSIX
AC_MINIX
AM_CONDITIONAL([HAVE_CYGWIN], [test "`uname | grep \"CYGWIN\"`" != ""])
dnl check for standard header files
AC_PROG_CC
AC_PROG_LIBTOOL
AC_PROG_INTLTOOL([0.31], [no-xml])
AC_HEADER_STDC
AC_SYS_LARGEFILE
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
GTK_DOC_CHECK([1.0])
dnl Check for i18n support
XDT_I18N([ar be ca cs el en_GB eu fi fr hu nl pa pt_BR ru sq tr uk])
XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.6.0])
XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.6.0])
XDT_CHECK_PACKAGE([GOBJECT], [gobject-2.0], [2.6.0])
XDT_CHECK_PACKAGE([THUNAR_VFS], [thunar-vfs-1], [0.4.0])
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.4.0])
XDT_CHECK_PACKAGE([DBUS], [dbus-glib-1], [0.34])
AC_DEFINE([HAVE_LIBXFCE4UTIL], [1], [Define if we have libxfce4util (will become optional eventually)])
AC_DEFINE([EXO_API_SUBJECT_TO_CHANGE], [1], [Define we understand libexo is subject to api churn])
dnl Some distro's have dbus < 1.0, need to define the following to make it compile. (Squeeze depends on the glib-bindings anyways)
AC_DEFINE([DBUS_API_SUBJECT_TO_CHANGE], [1], [Define we understand dbus is subject to api churn])
AC_DEFINE([LIBSQUEEZE_API_SUBJECT_TO_CHANGE], [1], [Define we understand libsqueeze is subject to api churn])
dnl XDT_CHECK_OPTIONAL_PACKAGE([THUNAR_VFS], [thunar-vfs-1], [0.4.0], [thunar-vfs],
dnl AC_HELP_STRING([--disable-thunar-vfs],
dnl [Disable the use of Thunar's VFS layer)]))
dnl XDT_CHECK_OPTIONAL_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.3.99], [libxfce4util],
dnl AC_HELP_STRING([--disable-libxfce4util],
dnl [Disable the use of libxfce4util)]))
AC_ARG_ENABLE([pathbar],
[AC_HELP_STRING([--disable-pathbar],
[Do not compile support for a PathBar (default=enabled)])],
[sq_pathbar=$enableval],
[sq_pathbar=yes])
if test "$sq_pathbar" = "yes"; then
AC_DEFINE([ENABLE_PATHBAR], [1], [Define if we should include pathbar support])
fi
AM_CONDITIONAL([ENABLE_PATHBAR], [test "$sq_pathbar" = "yes"])
AC_ARG_ENABLE([toolbar],
[AC_HELP_STRING([--disable-toolbar],
[Do not compile support for a ToolBar (default=enabled)])],
[sq_toolbar=$enableval],
[sq_toolbar=yes])
if test "$sq_toolbar" = "yes"; then
AC_DEFINE([ENABLE_TOOLBAR], [1], [Define if we should include toolbar support])
fi
AM_CONDITIONAL([ENABLE_TOOLBAR], [test "$sq_toolbar" = "yes"])
AC_ARG_ENABLE([iter-slices],
[AC_HELP_STRING([--disable-iter-slices],
[Use LSQArchiveIter slices (default=enabled)])],
[lsq_iter_slices=$enableval],
[lsq_iter_slices=yes])
if test "$lsq_iter_slices" = "yes"; then
AC_DEFINE([USE_LSQITER_SLICES], [1], [Define if we should use LSQArchiveIter slices])
fi
AC_ARG_ENABLE([gslices],
[AC_HELP_STRING([--enable-gslices],
[Use GSlices (default=disabled)])],
[lsq_gslices=$enableval],
[lsq_gslices=no])
if test "$lsq_gslices" = "yes"; then
AC_DEFINE([USE_GSLICES], [1], [Define if we should use GSlices])
fi
dnl check for debugging support
XDT_FEATURE_DEBUG
AC_OUTPUT([
Makefile
po/Makefile.in
src/Makefile
libsqueeze/Makefile
libsqueeze/libsqueeze-0.2.pc
icons/Makefile
icons/16x16/Makefile
icons/48x48/Makefile
icons/scalable/Makefile
pixmaps/Makefile
docs/Makefile
docs/reference/Makefile
docs/reference/libsqueeze/Makefile
docs/reference/libsqueeze/version.xml
])
echo "----------------------------------------"
echo "$PACKAGE $VERSION"
echo ""
echo "The binary will be installed in $prefix/bin"
echo ""
echo "Configure finished, type 'make' to build."
|