annotate configure.in @ 1717:61bd3a2f633d

added possibility to use geeqie-rotate as a standalone script
author nadvornik
date Sun, 13 Sep 2009 09:55:21 +0000
parents 768653891f37
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
1 dnl Process this file with autoconf to produce a configure script. -*- Autoconf
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
2 -*-
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
3
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
4 dnl This file is a part of Geeqie project (http://geeqie.sourceforge.net/).
1284
8b89e3ff286b Add year 2009 to copyright info everywhere.
zas_
parents: 1272
diff changeset
5 dnl Copyright (C) 2008 - 2009 The Geeqie Team
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
6 dnl
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
7 dnl This program is free software; you can redistribute it and/or modify
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
8 dnl it under the terms of the GNU General Public License as published by
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
9 dnl the Free Software Foundation; either version 2 of the License, or
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
10 dnl (at your option) any later version.
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
11 dnl
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
12 dnl This program is distributed in the hope that it will be useful,
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
13 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
14 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
15 dnl GNU General Public License for more details.
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
16
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
17 AC_PREREQ(2.57)
1671
b90e261c6d5d updated version string
nadvornik
parents: 1660
diff changeset
18 AC_INIT(geeqie, 1.0beta2, geeqie-devel@lists.sourceforge.net)
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
19
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
20 # Check for rightly dirs
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
21 AC_CONFIG_SRCDIR([src/main.c])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
22
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
23 AC_CONFIG_AUX_DIR(auxdir)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
24 AM_INIT_AUTOMAKE
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
25
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
26 AC_CONFIG_HEADER([config.h])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
27
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
28 # Only for developers
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
29 AM_MAINTAINER_MODE
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
30
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
31 AC_ARG_ENABLE(developer, [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
32 Development options:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
33 AC_HELP_STRING([--enable-developer], [turn on developers mode [default=no]])],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
34 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
35 __IS_DEVELOPER=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
36 ],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
37 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
38 if test "x${enable_developer}" != "xyes"
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
39 then
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
40 __IS_DEVELOPER=no
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
41 else
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
42 __IS_DEVELOPER=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
43 fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
44 ])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
45
1454
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
46 DX_HTML_FEATURE(ON)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
47 DX_CHM_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
48 DX_CHI_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
49 DX_MAN_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
50 DX_RTF_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
51 DX_XML_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
52 DX_PDF_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
53 DX_PS_FEATURE(OFF)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
54
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
55 DX_INIT_DOXYGEN($PACKAGE_NAME, doxygen.conf, doc/doxygen)
fbd02e4d709e Preliminary support for doxygen: make doxygen-doc will create documentation from sources in doc/doxygen directory.
zas_
parents: 1386
diff changeset
56
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
57 # Debug support
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
58 # ----------------------------------------------------------------------
7
990fcf466906 really break configure
gqview
parents: 5
diff changeset
59
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
60 dnl Debugging option
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
61 dnl FIXME: official release convert default to 'no'
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
62 dnl
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
63
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
64 AC_ARG_ENABLE([debug-flags], [
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
65 Development options:
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
66 AC_HELP_STRING([--enable-debug-flags], [use compiler flags for debugging [default=no]])], [],
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
67 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
68 if test "x${enable_developer}" != "xyes"
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
69 then
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
70 enable_debug_flags="no"
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
71 else
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
72 enable_debug_flags="yes"
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
73 fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
74 ])
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
75
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
76 AC_ARG_ENABLE([debug-log], [
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
77 Development options:
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
78 AC_HELP_STRING([--enable-debug-log], [enable debugging messages [default=yes]])], [], [enable_debug_log="yes"])
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
79
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
80 if test "x${enable_debug_flags}" != "xno"
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
81 then
1682
768653891f37 Remove some bashisms from configure.in. Patch by Greg Troxel.
zas_
parents: 1671
diff changeset
82 if test "x${enable_developer}" = "xyes"
746
9cf7d61a2e7f Add -Wstrict-prototypes to gcc options only in developer mode
zas_
parents: 692
diff changeset
83 then
1262
d66f57063cc3 Move -Wall before -Wno-* options for them to have any effect.
zas_
parents: 1261
diff changeset
84 CXXFLAGS="${CXXFLAGS} -Wall"
d66f57063cc3 Move -Wall before -Wno-* options for them to have any effect.
zas_
parents: 1261
diff changeset
85 CFLAGS="${CFLAGS} -Wstrict-prototypes -Wall"
746
9cf7d61a2e7f Add -Wstrict-prototypes to gcc options only in developer mode
zas_
parents: 692
diff changeset
86 fi
1386
4da6d326919c Add debug versions of path_to_utf8() and path_from_utf8() which allows to report the caller file and line, this is enabled with --enable-debug-flags (and developer mode too).
zas_
parents: 1284
diff changeset
87 __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"
1262
d66f57063cc3 Move -Wall before -Wno-* options for them to have any effect.
zas_
parents: 1261
diff changeset
88 CXXFLAGS="${CXXFLAGS} ${__COMMONFLAGS}"
d66f57063cc3 Move -Wall before -Wno-* options for them to have any effect.
zas_
parents: 1261
diff changeset
89 CFLAGS="${CFLAGS} ${__COMMONFLAGS} -Wimplicit-int -Werror-implicit-function-declaration"
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
90 __IS_DEBUG_FLAGS=yes
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
91 else
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
92 __IS_DEBUG_FLAGS=no
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
93 fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
94
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
95 if test "x${enable_debug_log}" != "xno"
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
96 then
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
97 AC_DEFINE(DEBUG,1,[Defined if Geeqie is compiled with debugging messages support])
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
98 __IS_DEBUG_LOG=yes
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
99 else
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
100 __IS_DEBUG_LOG=no
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
101 fi
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
102
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
103 AM_CONDITIONAL(DEBUG, test x$enable_debug_flags = xyes)
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
104
690
a9ba46e466d2 depreceated -> deprecated
zas_
parents: 689
diff changeset
105 AC_ARG_ENABLE(deprecated, [
1660
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
106 AC_HELP_STRING([--enable-deprecated], [turn off checking of deprecated functions [default=yes]])], [],
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
107 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
108 if test "x${enable_developer}" != "xyes"
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
109 then
690
a9ba46e466d2 depreceated -> deprecated
zas_
parents: 689
diff changeset
110 enable_deprecated="no"
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
111 else
690
a9ba46e466d2 depreceated -> deprecated
zas_
parents: 689
diff changeset
112 enable_deprecated="yes"
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
113 fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
114 ])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
115
690
a9ba46e466d2 depreceated -> deprecated
zas_
parents: 689
diff changeset
116 if test "x${enable_deprecated}" != "xno"
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
117 then
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
118 CXXFLAGS="${CXXFLAGS} -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1"
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
119 CFLAGS="${CFLAGS} -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1"
746
9cf7d61a2e7f Add -Wstrict-prototypes to gcc options only in developer mode
zas_
parents: 692
diff changeset
120 __IS_DEPRECATED=yes
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
121 else
746
9cf7d61a2e7f Add -Wstrict-prototypes to gcc options only in developer mode
zas_
parents: 692
diff changeset
122 __IS_DEPRECATED=no
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
123 fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
124
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
125
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
126 AC_ISC_POSIX
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
127 AC_PROG_CC
177
0ca3b4c8ffae started exiv2 integration
nadvornik
parents: 124
diff changeset
128 AC_PROG_CXX
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
129 AC_STDC_HEADERS
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
130 AC_ARG_PROGRAM
1642
a78ac3a4c32e use intltool for desktop file translation
nadvornik
parents: 1636
diff changeset
131 IT_PROG_INTLTOOL([0.35.0])
a78ac3a4c32e use intltool for desktop file translation
nadvornik
parents: 1636
diff changeset
132
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
133
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
134 dnl checks for functions
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
135 AC_CHECK_FUNCS(strverscmp access fsync fflush)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
136
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
137
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
138 # Check target architecture
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
139
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
140 # Check for Win32
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
141 AC_MSG_CHECKING([for some Win32 platform])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
142 case "$target_os" in
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
143 mingw* | cygwin*)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
144 platform_win32=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
145 AC_DEFINE(PLATFORM_WIN32, 1, [Build on win32 OS])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
146 ;;
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
147 *)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
148 platform_win32=no
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
149 ;;
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
150 esac
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
151 AC_MSG_RESULT([$platform_win32])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
152 AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
153
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
154 AC_MSG_CHECKING([for native Win32])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
155 case "$target_os" in
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
156 mingw*)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
157 os_win32=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
158 AC_DEFINE(OS_WIN32, 1, [Build on native win32 OS])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
159 os_unix=no
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
160 PATHSEP=';'
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
161 ;;
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
162 *)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
163 os_win32=no
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
164 os_unix=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
165 PATHSEP=':'
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
166 ;;
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
167 esac
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
168 AC_MSG_RESULT([$os_win32])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
169 AC_SUBST(PATHSEP)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
170 AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
171 AM_CONDITIONAL(OS_UNIX, test "$os_unix" = "yes")
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
172
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
173 if test "$os_win32" = "yes"; then
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
174 AC_CHECK_PROG(ms_librarian, lib.exe, yes, no)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
175 AC_CHECK_TOOL(WINDRES, windres, :)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
176 else
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
177 WINDRES=":"
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
178 fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
179
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
180 AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
181 AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:")
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
182 AC_SUBST(WINDRES)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
183
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
184 dnl reasonable guesses for where stuff is installed
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
185 if test "x$prefix" = "xNONE"; then
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
186 prefix="/usr/local"
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
187 else
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
188 prefix=$prefix
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
189 fi
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
190
1015
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
191 AM_PATH_GLIB_2_0(2.4.0,,AC_MSG_ERROR(GLIB >= 2.4.0 not installed.))
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
192 AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.))
1015
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
193
1256
253a6e086a8e fixed gthread detection
nadvornik
parents: 1250
diff changeset
194 threads="auto"
1015
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
195 AC_ARG_ENABLE([threads],
1256
253a6e086a8e fixed gthread detection
nadvornik
parents: 1250
diff changeset
196 AC_HELP_STRING([--disable-threads], [disable thread support]), [threads="${enableval}"])
253a6e086a8e fixed gthread detection
nadvornik
parents: 1250
diff changeset
197
253a6e086a8e fixed gthread detection
nadvornik
parents: 1250
diff changeset
198 have_gthread="no"
253a6e086a8e fixed gthread detection
nadvornik
parents: 1250
diff changeset
199 if test "x${threads}" != "xno" ; then
1015
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
200 PKG_CHECK_MODULES(GTHREAD, [gthread-2.0], have_gthread="yes", [AC_MSG_WARN("No thread support in glib")])
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
201 fi
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
202
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
203 if test "x$have_gthread" != "xno"; then
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
204 AC_DEFINE(HAVE_GTHREAD, 1, Define if you have gthread library)
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
205 GLIB_CFLAGS="$GTHREAD_CFLAGS"
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
206 GLIB_LIBS="$GTHREAD_LIBS"
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
207 fi
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
208
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
209
308
6cb3c072be3f ui_icons.h and icons_inline.h depend on gdk-pixbuf-csource,
zas_
parents: 305
diff changeset
210 AC_PATH_PROGS(GDK_PIXBUF_CSOURCE, "gdk-pixbuf-csource")
1012
fe82830ab8fd converted image loader to a GObject and use signals for notification
nadvornik
parents: 939
diff changeset
211 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
212
484
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
213 AC_ARG_WITH(readmedir, [ --with-readmedir=DIR install path for readme files],
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
214 readmedir=$withval, readmedir="$prefix/share/doc/geeqie-$VERSION")
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
215 AC_ARG_WITH(htmldir, [ --with-htmldir=DIR install path for html files],
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
216 htmldir=$withval, htmldir="$readmedir/html")
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
217
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
218 AC_DEFINE_UNQUOTED(GQ_HELPDIR, "$readmedir", [Location of documentation files])
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
219 AC_DEFINE_UNQUOTED(GQ_HTMLDIR, "$htmldir", [Location of html documentation])
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
220
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
221 AC_SUBST(readmedir)
35991929975d fixed instalation of doc files
nadvornik
parents: 465
diff changeset
222 AC_SUBST(htmldir)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
223
1272
e0e12512cde2 read external editors from .desktop files
nadvornik
parents: 1270
diff changeset
224 eval "eval appdir=${datadir}/${PACKAGE}"
e0e12512cde2 read external editors from .desktop files
nadvornik
parents: 1270
diff changeset
225 AC_DEFINE_UNQUOTED([GQ_APP_DIR], "$appdir", [Location of application data])
e0e12512cde2 read external editors from .desktop files
nadvornik
parents: 1270
diff changeset
226
1636
c0f6a98c9204 do not install helper scripts into /usr/bin
nadvornik
parents: 1614
diff changeset
227 eval "eval gq_bindir=${prefix}/lib/${PACKAGE}"
c0f6a98c9204 do not install helper scripts into /usr/bin
nadvornik
parents: 1614
diff changeset
228 AC_DEFINE_UNQUOTED([GQ_BIN_DIR], "$gq_bindir", [Location of helper scripts and executables])
c0f6a98c9204 do not install helper scripts into /usr/bin
nadvornik
parents: 1614
diff changeset
229
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
230 # LIRC support
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
231 # ----------------------------------------------------------------------
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
232
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
233 dnl Check for LIRC client support
750
5329797d8ff1 Fix display of libpthread detection.
zas_
parents: 746
diff changeset
234 AC_MSG_CHECKING(if LIRC support is enabled)
5329797d8ff1 Fix display of libpthread detection.
zas_
parents: 746
diff changeset
235 lirc=no
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
236 AC_ARG_ENABLE([lirc],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
237 AC_HELP_STRING([--disable-lirc], [disable lirc support (auto)]),
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
238 [
750
5329797d8ff1 Fix display of libpthread detection.
zas_
parents: 746
diff changeset
239 if test "x${enableval}" = "xyes" -a "x$GCC" = "xyes"; then
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
240 AC_MSG_RESULT(yes)
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
241 lirc=yes
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
242 else
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
243 AC_MSG_RESULT(no)
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
244 lirc=no
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
245 fi], AC_MSG_RESULT(no))
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
246
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
247
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
248 AC_ARG_WITH(lirc-prefix,
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
249 [ --with-lirc-prefix=PATH Prefix where LIRC is installed],
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
250 [
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
251 for dir in `echo "$withval" | tr : ' '`; do
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
252 if test -d $dir/lib; then CXXFLAGS="$CXXFLAGS -L$dir/lib"; fi
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
253 if test -d $dir/include; then CXXFLAGS="$CXXFLAGS -I$dir/include"; fi
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
254 done
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
255 ])
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
256
798
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
257 HAVE_LIRC=no
750
5329797d8ff1 Fix display of libpthread detection.
zas_
parents: 746
diff changeset
258 if test "x${lirc}" != "xno" ; then
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
259 AC_CHECK_HEADER(lirc/lirc_client.h,
798
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
260 [AC_CHECK_LIB(lirc_client,lirc_init,[HAVE_LIRC=yes;LIBS=-llirc_client $LIBS;AC_DEFINE([HAVE_LIRC],[],[Define to 1 if LIRC must be used])],,)],)
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
261 fi
798
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
262 AM_CONDITIONAL(HAVE_LIRC, [test "x$HAVE_LIRC" = xyes])
528
bf9c9e37adf4 Added LIRC patch written by Matteo Beniamino
nadvornik
parents: 487
diff changeset
263
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
264
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
265 # LCMS support
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
266 # ----------------------------------------------------------------------
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
267
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
268 AC_ARG_ENABLE([lcms],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
269 AC_HELP_STRING([--disable-lcms], [disable lcms support]),
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
270 [liblcms=$enableval], [liblcms=auto])
113
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
271
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
272 if test "x${liblcms}" != "xno"; then
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
273 PKG_CHECK_MODULES(LCMS, [lcms >= 1.14],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
274 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
275 HAVE_LCMS=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
276 AC_DEFINE(HAVE_LCMS, 1, [define to enable use of color profiles with lcms])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
277 ],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
278 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
279 HAVE_LCMS=no
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
280 AC_MSG_WARN([$LCMS_PKG_ERRORS])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
281 ])
113
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
282 else
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
283 HAVE_LCMS=disabled
113
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
284 fi
1660
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
285
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
286 AM_CONDITIONAL(HAVE_LCMS, [test "x$HAVE_LCMS" = xyes])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
287 AC_SUBST(LCMS_CFLAGS)
113
55166d93498d Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents: 99
diff changeset
288 AC_SUBST(LCMS_LIBS)
192
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
289
d324b284e183 configure --without-exiv2
nadvornik
parents: 177
diff changeset
290
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
291 # Exiv2 support
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
292 # ----------------------------------------------------------------------
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
293
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
294 AC_ARG_ENABLE([exiv2],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
295 AC_HELP_STRING([--disable-exiv2], [disable exiv2 support]),
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
296 [libexiv2=$enableval], [libexiv2=auto])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
297
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
298 if test "x${libexiv2}" != "xno"; then
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
299 PKG_CHECK_MODULES(EXIV2, [exiv2 >= 0.11],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
300 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
301 HAVE_EXIV2=yes
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
302 AC_DEFINE(HAVE_EXIV2, 1, [define to enable exiv2 support])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
303 ],
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
304 [
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
305 HAVE_EXIV2=no
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
306 AC_MSG_WARN([$EXIV2_PKG_ERRORS])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
307 ])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
308 else
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
309 HAVE_EXIV2=disabled
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
310 fi
1660
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
311
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
312 AM_CONDITIONAL(HAVE_EXIV2, [test "x$HAVE_EXIV2" = xyes])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
313 AC_SUBST(EXIV2_CFLAGS)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
314 AC_SUBST(EXIV2_LIBS)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
315
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
316
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
317 # Gettext support
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
318 # ----------------------------------------------------------------------
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
319
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
320 dnl Set of available languages
1270
13e96406760b switched to po/LINGUAS, see http://live.gnome.org/GnomeGoals/PoLinguas
nadvornik
parents: 1262
diff changeset
321 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
13e96406760b switched to po/LINGUAS, see http://live.gnome.org/GnomeGoals/PoLinguas
nadvornik
parents: 1262
diff changeset
322 AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
323
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
324 GETTEXT_PACKAGE=$PACKAGE
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
325 AC_SUBST(GETTEXT_PACKAGE)
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
326 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["${GETTEXT_PACKAGE}"],[Name of gettext file])
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
327 AM_GLIB_GNU_GETTEXT
283
e213fb025621 GQVIEW_* -> GQ_*
zas_
parents: 276
diff changeset
328 AM_GLIB_DEFINE_LOCALEDIR(GQ_LOCALEDIR)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
329
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
330 AC_SUBST(CFLAGS)
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
331 AC_SUBST(CXXFLAGS)
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
332 AC_SUBST(CPPFLAGS)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
333 AC_SUBST(LDFLAGS)
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
334
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
335
1602
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
336 # Libchamplain support - used for GPS map facility - experimental
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
337 # ----------------------------------------------------------------------
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
338
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
339 AC_ARG_ENABLE([gps],
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
340 AC_HELP_STRING([--enable-gps], [enable GPS map support - experimental]),
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
341 [libgps=$enableval], [libgps=auto])
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
342
1682
768653891f37 Remove some bashisms from configure.in. Patch by Greg Troxel.
zas_
parents: 1671
diff changeset
343 if test "x${libgps}" = "xyes"; then
1602
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
344 PKG_CHECK_MODULES(LIBCHAMPLAIN, [champlain-0.3 >= 0.3],
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
345 [
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
346 HAVE_LIBCHAMPLAIN=yes
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
347 AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [define to enable use of GPS maps])
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
348 ],
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
349 [
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
350 HAVE_LIBCHAMPLAIN=no
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
351 AC_MSG_WARN([$LIBCHAMPLAIN_PKG_ERRORS])
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
352 ])
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
353 else
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
354 HAVE_LIBCHAMPLAIN=disabled
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
355 fi
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
356
1682
768653891f37 Remove some bashisms from configure.in. Patch by Greg Troxel.
zas_
parents: 1671
diff changeset
357 if test "x${libgps}" = "xyes"; then
1602
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
358 PKG_CHECK_MODULES(LIBCHAMPLAIN_GTK, [champlain-gtk-0.3 >= 0.3],
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
359 [
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
360 HAVE_LIBCHAMPLAIN_GTK=yes
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
361 AC_DEFINE(HAVE_LIBCHAMPLAIN_GTK, 1, [define to enable use of GPS maps])
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
362 ],
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
363 [
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
364 HAVE_LIBCHAMPLAIN_GTK=no
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
365 AC_MSG_WARN([$LIBCHAMPLAIN_GTK_PKG_ERRORS])
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
366 ])
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
367 else
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
368 HAVE_LIBCHAMPLAIN_GTK=disabled
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
369 fi
1660
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
370
1602
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
371 AM_CONDITIONAL(HAVE_LIBCHAMPLAIN_GTK, [test "x$HAVE_LIBCHAMPLAIN_GTK" = xyes])
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
372 AC_SUBST(LIBCHAMPLAIN_GTK_CFLAGS)
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
373 AC_SUBST(LIBCHAMPLAIN_GTK_LIBS)
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
374
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
375 AH_TOP([
1660
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
376 /** \file
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
377 * \short autogenerated definition by autoheader.
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
378 * \author Bruclik
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
379 */
1660
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
380
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
381 /*
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
382 * This file is a part of Geeqie project (http://geeqie.sourceforge.net/).
1284
8b89e3ff286b Add year 2009 to copyright info everywhere.
zas_
parents: 1272
diff changeset
383 * Copyright (C) 2008 - 2009 The Geeqie Team
1660
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
384 *
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
385 * This program is free software; you can redistribute it and/or modify
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
386 * it under the terms of the GNU General Public License as published by
1660
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
387 * the Free Software Foundation; either version 2 of the License, or
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
388 * (at your option) any later version.
1660
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
389 *
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
390 * This program is distributed in the hope that it will be useful,
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
391 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
392 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
393 * GNU General Public License for more details.
1660
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
394 */
3ba101d04c91 Fix AM_CFLAGS and AM_CXXFLAGS from @1701
mow
parents: 1645
diff changeset
395
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
396 #ifndef _INCLUDE_CONFIG_H
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
397 #define _INCLUDE_CONFIG_H
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
398 ])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
399
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
400 AH_BOTTOM([#endif])
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
401
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
402 dnl Write the output
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
403 dnl
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
404
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
405 AC_CONFIG_FILES([
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
406 Makefile
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
407 src/Makefile
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
408 src/icons/Makefile
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
409 src/icons/svg/Makefile
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
410 po/Makefile.in
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
411 doc/Makefile
1272
e0e12512cde2 read external editors from .desktop files
nadvornik
parents: 1270
diff changeset
412 plugins/Makefile
e0e12512cde2 read external editors from .desktop files
nadvornik
parents: 1270
diff changeset
413 plugins/symlink/Makefile
1614
f6c8b76d41ca Add .desktop files to restore lossless jpeg rotation via editors.
zas_
parents: 1602
diff changeset
414 plugins/rotate/Makefile
1645
8efd65465de5 ufraw-batch script
nadvornik
parents: 1642
diff changeset
415 plugins/ufraw/Makefile
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
416 geeqie.spec
1
b3e0e515fabf Initial revision
gqview
parents:
diff changeset
417 ])
8
e0d0593d519e Sync to GQview 1.5.9 release.
gqview
parents: 7
diff changeset
418
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
419 AC_OUTPUT
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
420 dnl Print the results
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
421 dnl
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
422
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
423 cat > config.report << END
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
424
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
425 Config results:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
426 -=-=-=-=-=-=-=-=-
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
427
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
428 Package:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
429 Name: $PACKAGE_NAME
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
430 Version: $PACKAGE_VERSION
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
431 Patch version: $GQ_PATCH_VERSION
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
432 Date: $GQ_PATCH_DATE
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
433
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
434 Architecture:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
435 UNIX: $os_unix
689
972ecb45181c Typo fixes.
zas_
parents: 686
diff changeset
436 Win32: $platform_win32 (native: $os_win32)
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
437
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
438 Flags:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
439 Geeqie: $GQ_CFLAGS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
440 DEFS: $DEFS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
441 CPPFLAGS: $__CPPFLAGS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
442 CFLAGS: $CFLAGS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
443 CXXFLAGS: $CXXFLAGS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
444 Gtk: $GTK_CFLAGS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
445 Glib: $GLIB_CFLAGS
1015
2cdcf67e9300 run image loader in separate thread
nadvornik
parents: 1012
diff changeset
446 Thread: $GTHREAD_LIBS
1602
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
447 Others: $LCMS_LIBS $EXIV2_LIBS $LIBCHAMPLAIN_LIBS $LIBCHAMPLAIN_GTK_LIBS
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
448
798
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
449 Localization:
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
450 NLS support: $USE_NLS
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
451 LINGUAS: $LINGUAS
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
452
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
453 Settings:
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
454 Developer: $__IS_DEVELOPER
925
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
455 Debug flags: $__IS_DEBUG_FLAGS
373c370887bb separated debugging log and debug CFLAGS
nadvornik
parents: 798
diff changeset
456 Debug log: $__IS_DEBUG_LOG
798
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
457 Deprecated: $__IS_DEPRECATED
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
458
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
459 Support:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
460 LCMS: $HAVE_LCMS
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
461 Exiv2: $HAVE_EXIV2
798
5055b5b0d75d Display Lirc state in config log.
zas_
parents: 750
diff changeset
462 Lirc: $HAVE_LIRC
1602
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
463 Libchamplain: $HAVE_LIBCHAMPLAIN
6bfe8fc7a403 added GPS map support - patch by Colin Clark
nadvornik
parents: 1594
diff changeset
464 Libchamplain-gtk: $HAVE_LIBCHAMPLAIN_GTK
686
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
465
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
466 Documentation:
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
467 Doxygen: $DOXYGEN
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
468 Formats: $doxy_formats_report
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
469 END
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
470
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
471 cat config.report
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
472 cat <<EOF
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
473
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
474 Now you can type "make" to build Geeqie
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
475 (or you take blue pill and the story ends :)
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
476
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
477 EOF
c0dda0ffb931 configure.in was rewritten:
bruclik
parents: 528
diff changeset
478