-*-
dnl This file is a part of Geeqie project (http://geeqie.sourceforge.net/).
-dnl Copyright (C) 2008 The Geeqie team
+dnl Copyright (C) 2008 - 2012 The Geeqie Team
dnl
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl GNU General Public License for more details.
AC_PREREQ(2.57)
-AC_INIT(geeqie, 1.0alpha1, geeqie-devel@lists.sourceforge.net)
+AC_INIT(geeqie, 1.1, geeqie-devel@lists.sourceforge.net)
# Check for rightly dirs
AC_CONFIG_SRCDIR([src/main.c])
fi
])
+DX_HTML_FEATURE(ON)
+DX_CHM_FEATURE(OFF)
+DX_CHI_FEATURE(OFF)
+DX_MAN_FEATURE(OFF)
+DX_RTF_FEATURE(OFF)
+DX_XML_FEATURE(OFF)
+DX_PDF_FEATURE(OFF)
+DX_PS_FEATURE(OFF)
+
+DX_INIT_DOXYGEN($PACKAGE_NAME, doxygen.conf, doc/doxygen)
+
# Debug support
# ----------------------------------------------------------------------
dnl FIXME: official release convert default to 'no'
dnl
-AC_ARG_ENABLE([debug], [
+AC_ARG_ENABLE([debug-flags], [
Development options:
-AC_HELP_STRING([--enable-debug], [turn on debugging [default=no]])], [],
+AC_HELP_STRING([--enable-debug-flags], [use compiler flags for debugging [default=no]])], [],
[
if test "x${enable_developer}" != "xyes"
then
- enable_debug="no"
+ enable_debug_flags="no"
else
- enable_debug="yes"
+ enable_debug_flags="yes"
fi
])
-if test "x${enable_debug}" != "xno"
+AC_ARG_ENABLE([debug-log], [
+Development options:
+AC_HELP_STRING([--enable-debug-log], [enable debugging messages [default=yes]])], [], [enable_debug_log="yes"])
+
+if test "x${enable_debug_flags}" != "xno"
then
- CXXFLAGS="${CXXFLAGS} -g -O0 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -W"
- CFLAGS="${CFLAGS} -g -O0 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wimplicit-int -Werror-implicit-function-declaration -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -W"
- if test "x${enable_developer}" == "xyes"
+ if test "x${enable_developer}" = "xyes"
then
- CXXFLAGS="${CXXFLAGS} -Wall"
- CFLAGS="${CFLAGS} -Wstrict-prototypes -Wall"
+ CXXFLAGS="${CXXFLAGS} -Wall"
+ CFLAGS="${CFLAGS} -Wstrict-prototypes -Wall"
fi
- AC_DEFINE(DEBUG,1,[Defined if Geeqie is compiled with debugging support])
- __IS_DEBUG=yes
+ __COMMONFLAGS="-g -O0 -Wextra -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -Wno-unused-parameter -Wformat -Wformat-security -DGQ_DEBUG_PATH_UTF8=1"
+ CXXFLAGS="${CXXFLAGS} ${__COMMONFLAGS}"
+ CFLAGS="${CFLAGS} ${__COMMONFLAGS} -Wimplicit-int -Werror-implicit-function-declaration"
+ __IS_DEBUG_FLAGS=yes
+else
+ __IS_DEBUG_FLAGS=no
+fi
+
+if test "x${enable_debug_log}" != "xno"
+then
+ AC_DEFINE(DEBUG,1,[Defined if Geeqie is compiled with debugging messages support])
+ __IS_DEBUG_LOG=yes
else
- __IS_DEBUG=no
+ __IS_DEBUG_LOG=no
fi
-AM_CONDITIONAL(DEBUG, test x$enable_debug = xyes)
+AM_CONDITIONAL(DEBUG, test x$enable_debug_flags = xyes)
AC_ARG_ENABLE(deprecated, [
-AC_HELP_STRING([--enable-deprecated], [turn off checking of deprecated functions [default=yes]])], [],
+AC_HELP_STRING([--enable-deprecated], [turn off checking of deprecated functions [default=yes]])], [],
[
if test "x${enable_developer}" != "xyes"
then
AC_PROG_CXX
AC_STDC_HEADERS
AC_ARG_PROGRAM
+AC_SYS_LARGEFILE
+IT_PROG_INTLTOOL([0.35.0])
+
dnl checks for functions
AC_CHECK_FUNCS(strverscmp access fsync fflush)
AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:")
AC_SUBST(WINDRES)
-have_libpthread=no
-AC_CHECK_LIB([pthread], [main],
- [AC_CHECK_HEADER([pthread.h],
- have_libpthread=yes,
- have_libpthread=no)],
- [AC_MSG_ERROR([Can't find the POSIX thread libraries])], [-lpthread])
-if test "x${have_libpthread}" = "xyes"; then
- LIBPTHREAD='-lpthread'
- AC_DEFINE(HAVE_LIBPTHREAD, 1, [Define if pthread is available])
-else
- AC_MSG_WARN([POSIX thread header not installed])
-fi
-AC_MSG_CHECKING(for libpthread)
-AC_MSG_RESULT([${have_libpthread}])
-
dnl reasonable guesses for where stuff is installed
if test "x$prefix" = "xNONE"; then
prefix="/usr/local"
prefix=$prefix
fi
-AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.))
+AM_PATH_GLIB_2_0(2.24.0,,AC_MSG_ERROR(GLIB >= 2.24.0 not installed.))
+AC_ARG_ENABLE([gtk3], AC_HELP_STRING([--disable-gtk3], [use gtk2 instead of gtk3]),[gtk3="${enableval}"], [gtk3=m4_ifdef([AM_PATH_GTK_3_0], [auto], [no])])
+
+if test x$gtk3 == xyes; then
+ AC_MSG_WARN("Gtk3 enabled")
+ m4_ifdef([AM_PATH_GTK_3_0], [AM_PATH_GTK_3_0(3.0.0,,AC_MSG_ERROR(GTK+ >= 3.0.0 not installed.))])
+else
+ if test x$gtk3 != xno; then
+ AC_MSG_WARN("Gtk3 is preferred...")
+ m4_ifdef([AM_PATH_GTK_3_0], [AM_PATH_GTK_3_0(3.0.0,,[gtk3=no])])
+ fi
+fi
+
+if test x$gtk3 == xno; then
+ m4_ifdef([AM_PATH_GTK_2_0], [AM_PATH_GTK_2_0(2.20.0,,AC_MSG_ERROR(GTK+ >= 2.20.0 not installed.))])
+ true
+fi
+
+threads="auto"
+AC_ARG_ENABLE([threads],
+ AC_HELP_STRING([--disable-threads], [disable thread support]), [threads="${enableval}"])
+
+have_gthread="no"
+if test "x${threads}" != "xno" ; then
+ PKG_CHECK_MODULES(GTHREAD, [gthread-2.0], have_gthread="yes", [AC_MSG_WARN("No thread support in glib")])
+fi
+
+if test "x$have_gthread" != "xno"; then
+ AC_DEFINE(HAVE_GTHREAD, 1, Define if you have gthread library)
+ GLIB_CFLAGS="$GTHREAD_CFLAGS"
+ GLIB_LIBS="$GTHREAD_LIBS"
+fi
+
+
AC_PATH_PROGS(GDK_PIXBUF_CSOURCE, "gdk-pixbuf-csource")
+AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
AC_ARG_WITH(readmedir, [ --with-readmedir=DIR install path for readme files],
readmedir=$withval, readmedir="$prefix/share/doc/geeqie-$VERSION")
AC_DEFINE_UNQUOTED(GQ_HELPDIR, "$readmedir", [Location of documentation files])
AC_DEFINE_UNQUOTED(GQ_HTMLDIR, "$htmldir", [Location of html documentation])
+AC_PATH_PROG(GNOME_DOC_TOOL, gnome-doc-tool)
+
AC_SUBST(readmedir)
AC_SUBST(htmldir)
+eval "eval appdir=${datadir}/${PACKAGE}"
+AC_DEFINE_UNQUOTED([GQ_APP_DIR], "$appdir", [Location of application data])
+AC_SUBST(appdir)
+
+eval "eval gq_bindir=${prefix}/lib/${PACKAGE}"
+AC_DEFINE_UNQUOTED([GQ_BIN_DIR], "$gq_bindir", [Location of helper scripts and executables])
+AC_SUBST(gq_bindir)
+
# LIRC support
# ----------------------------------------------------------------------
[liblcms=$enableval], [liblcms=auto])
if test "x${liblcms}" != "xno"; then
- PKG_CHECK_MODULES(LCMS, [lcms >= 1.14],
+ PKG_CHECK_MODULES(LCMS, [lcms2 >= 2.0],
[
HAVE_LCMS=yes
AC_DEFINE(HAVE_LCMS, 1, [define to enable use of color profiles with lcms])
+ AC_DEFINE(HAVE_LCMS2, 1, [lcms2 is used])
],
[
- HAVE_LCMS=no
- AC_MSG_WARN([$LCMS_PKG_ERRORS])
+ PKG_CHECK_MODULES(LCMS, [lcms >= 1.14],
+ [
+ HAVE_LCMS=yes
+ AC_DEFINE(HAVE_LCMS, 1, [define to enable use of color profiles with lcms])
+ ],
+ [
+ HAVE_LCMS=no
+ AC_MSG_WARN([$LCMS_PKG_ERRORS])
+ ])
])
else
HAVE_LCMS=disabled
fi
-
+
AM_CONDITIONAL(HAVE_LCMS, [test "x$HAVE_LCMS" = xyes])
AC_SUBST(LCMS_CFLAGS)
AC_SUBST(LCMS_LIBS)
+# libjpeg support
+# ----------------------------------------------------------------------
+
+AC_ARG_ENABLE([jpeg],
+ AC_HELP_STRING([--disable-jpeg], [disable direct jpeg support]),
+ [libjpeg=$enableval], [libjpeg=auto])
+
+if test "x${libjpeg}" != "xno"; then
+ AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
+ HAVE_JPEG=yes
+ JPEG_LIBS=-ljpeg
+ AC_DEFINE(HAVE_JPEG, 1, [define to enable use of custom jpeg loader]),
+ HAVE_JPEG=no)
+else
+ HAVE_JPEG=disabled
+fi
+
+AM_CONDITIONAL(HAVE_JPEG, [test "x$HAVE_JPEG" = xyes])
+AC_SUBST(JPEG_CFLAGS)
+AC_SUBST(JPEG_LIBS)
+
+
+# libtiff support
+# ----------------------------------------------------------------------
+
+AC_ARG_ENABLE([tiff],
+ AC_HELP_STRING([--disable-tiff], [disable direct tiff support]),
+ [libtiff=$enableval], [libtiff=auto])
+
+if test "x${libtiff}" != "xno"; then
+ AC_CHECK_LIB(tiff, TIFFClientOpen,
+ HAVE_TIFF=yes
+ TIFF_LIBS=-ltiff
+ AC_DEFINE(HAVE_TIFF, 1, [define to enable use of custom tiff loader]),
+ HAVE_TIFF=no)
+else
+ HAVE_TIFF=disabled
+fi
+
+AM_CONDITIONAL(HAVE_TIFF, [test "x$HAVE_TIFF" = xyes])
+AC_SUBST(TIFF_CFLAGS)
+AC_SUBST(TIFF_LIBS)
+
# Exiv2 support
# ----------------------------------------------------------------------
else
HAVE_EXIV2=disabled
fi
-
+
AM_CONDITIONAL(HAVE_EXIV2, [test "x$HAVE_EXIV2" = xyes])
AC_SUBST(EXIV2_CFLAGS)
AC_SUBST(EXIV2_LIBS)
# ----------------------------------------------------------------------
dnl Set of available languages
-ALL_LINGUAS="ar be bg ca cs da de eo es et eu fi fr hu id it ja ko nl nb pl pt_BR ro ru sk sl sv th tr uk vi zh_CN.GB2312 zh_TW"
+ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
+AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
GETTEXT_PACKAGE=$PACKAGE
AC_SUBST(GETTEXT_PACKAGE)
AC_SUBST(LDFLAGS)
+# clutter support - experimental
+# ----------------------------------------------------------------------
+
+AC_ARG_ENABLE([clutter],
+ AC_HELP_STRING([--enable-clutter], [enable clutter support - experimental]),
+ [libclutter=$enableval], [libclutter=auto])
+
+if test "x${libclutter}" = "xyes" -o "x${libgps}" = "xyes"; then
+ PKG_CHECK_MODULES(CLUTTER, [clutter-1.0 >= 1.0],
+ [
+ PKG_CHECK_MODULES(CLUTTER_GTK, [clutter-gtk-1.0 >= 1.0],
+ [
+ HAVE_CLUTTER=yes
+ AC_DEFINE(HAVE_CLUTTER, 1, [define to enable use of clutter library])
+ ],
+ [
+ HAVE_CLUTTER=no
+ AC_MSG_WARN([$CLUTTER_GTK_PKG_ERRORS])
+ ])
+
+ ],
+ [
+ HAVE_CLUTTER=no
+ AC_MSG_WARN([$CLUTTER_PKG_ERRORS])
+ ])
+else
+ HAVE_CLUTTER=disabled
+fi
+
+AC_SUBST(CLUTTER_CFLAGS)
+AC_SUBST(CLUTTER_LIBS)
+AC_SUBST(CLUTTER_GTK_CFLAGS)
+AC_SUBST(CLUTTER_GTK_LIBS)
+
+
+# Libchamplain support - used for GPS map facility - experimental
+# ----------------------------------------------------------------------
+
+AC_ARG_ENABLE([gps],
+ AC_HELP_STRING([--enable-gps], [enable GPS map support - experimental]),
+ [libgps=$enableval], [libgps=yes])
+
+if test "x${libgps}" = "xyes" -a "x${HAVE_CLUTTER}" = "xyes" ; then
+ PKG_CHECK_MODULES(LIBCHAMPLAIN, [champlain-0.12 >= 0.12],
+ [
+ HAVE_LIBCHAMPLAIN=yes
+ AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [define to enable use of GPS maps])
+ ],
+ [
+ HAVE_LIBCHAMPLAIN=no
+ AC_MSG_WARN([$LIBCHAMPLAIN_PKG_ERRORS])
+ ])
+else
+ HAVE_LIBCHAMPLAIN=disabled
+fi
+
+if test "x${libgps}" = "xyes" -a "x${HAVE_LIBCHAMPLAIN}" = "xyes" ; then
+ PKG_CHECK_MODULES(LIBCHAMPLAIN_GTK, [champlain-gtk-0.12 >= 0.12],
+ [
+ HAVE_LIBCHAMPLAIN_GTK=yes
+ AC_DEFINE(HAVE_LIBCHAMPLAIN_GTK, 1, [define to enable use of GPS maps])
+ ],
+ [
+ HAVE_LIBCHAMPLAIN_GTK=no
+ AC_MSG_WARN([$LIBCHAMPLAIN_GTK_PKG_ERRORS])
+ ])
+else
+ HAVE_LIBCHAMPLAIN_GTK=disabled
+fi
+
+AM_CONDITIONAL(HAVE_LIBCHAMPLAIN_GTK, [test "x$HAVE_LIBCHAMPLAIN_GTK" = xyes])
+AC_SUBST(LIBCHAMPLAIN_GTK_CFLAGS)
+AC_SUBST(LIBCHAMPLAIN_GTK_LIBS)
+
+# Lua support
+# ----------------------------------------------------------------------
+
+AC_ARG_ENABLE([lua],
+ AC_HELP_STRING([--disable-lua], [disable lua support]),
+ [liblua=$enableval], [liblua=auto])
+
+if test "x${liblua}" != "xno"; then
+ PKG_CHECK_MODULES(LUA, lua5.1 >= 5.1,
+ [
+ HAVE_LUA=yes
+ AC_DEFINE(HAVE_LUA, 1, [define to enable lua support])
+ ],
+ [
+ HAVE_LUA=no
+ AC_MSG_WARN([$LUA_PKG_ERRORS])
+ ])
+else
+ HAVE_LUA=disabled
+fi
+
+AM_CONDITIONAL(HAVE_LUA, [test "x$HAVE_LUA" = xyes])
+AC_SUBST(LUA_CFLAGS)
+AC_SUBST(LUA_LIBS)
+
+# ----------------------------------------------------------------------
+
AH_TOP([
-/** @file config.h
- * autogenerated definition by autoheader.
- * @author Bruclik
+/** \file
+ * \short autogenerated definition by autoheader.
+ * \author Bruclik
*/
-
+
/*
* This file is a part of Geeqie project (http://geeqie.sourceforge.net/).
- * Copyright (C) 2008 The Geeqie team
- *
+ * Copyright (C) 2008 - 2012 The Geeqie Team
+ *
* 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
+ * 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.
- */
-
+ */
+
#ifndef _INCLUDE_CONFIG_H
#define _INCLUDE_CONFIG_H
])
src/icons/svg/Makefile
po/Makefile.in
doc/Makefile
+ plugins/Makefile
+ plugins/symlink/Makefile
+ plugins/rotate/Makefile
+ plugins/ufraw/Makefile
+ plugins/import/Makefile
geeqie.spec
])
CXXFLAGS: $CXXFLAGS
Gtk: $GTK_CFLAGS
Glib: $GLIB_CFLAGS
- Thread: $LIBPTHREAD
- Others: $LCMS_LIBS $EXIV2_LIBS
+ Thread: $GTHREAD_LIBS
+ Others: $JPEG_LIBS $TIFF_LIBS $LCMS_LIBS $EXIV2_LIBS $CLUTTER_LIBS $CLUTTER_GTK_LIBS $LIBCHAMPLAIN_LIBS $LIBCHAMPLAIN_GTK_LIBS $LUA_LIBS
Localization:
NLS support: $USE_NLS
Settings:
Developer: $__IS_DEVELOPER
- Debug: $__IS_DEBUG
+ Debug flags: $__IS_DEBUG_FLAGS
+ Debug log: $__IS_DEBUG_LOG
Deprecated: $__IS_DEPRECATED
Support:
LCMS: $HAVE_LCMS
Exiv2: $HAVE_EXIV2
Lirc: $HAVE_LIRC
+ Clutter: $HAVE_CLUTTER
+ Libchamplain: $HAVE_LIBCHAMPLAIN
+ Libchamplain-gtk: $HAVE_LIBCHAMPLAIN_GTK
+ Lua: $HAVE_LUA
Documentation:
Doxygen: $DOXYGEN
Formats: $doxy_formats_report
+ doc-tool: $GNOME_DOC_TOOL
+
END
cat config.report