source: trunk/third/eog/configure.in @ 20978

Revision 20978, 5.9 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20977, which included commits to RCS files with non-trunk default branches.
Line 
1dnl Configure script for the Eye of Gnome image viewer
2
3AC_INIT(shell/main.c)
4
5AM_CONFIG_HEADER(config.h)
6
7AM_INIT_AUTOMAKE(eog, 2.8.0)
8
9dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
10AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")
11
12AM_MAINTAINER_MODE
13
14dnl ================= Requirements ================================================
15
16GNOME_VFS_REQUIRED=2.5.91
17LIBGNOMEUI_REQUIRED=2.5.92
18LIBGLADE_REQUIRED=2.3.6
19GDKPIXBUF_REQUIRED=2.4.0
20LIBEXIF_REQUIRED=0.5.12
21EEL_REQUIRED=2.5.90
22LIBGNOMECANVAS_REQUIRED=2.5.92
23GCONF_REQUIRED=2.5.90
24LIBART_REQUIRED=2.3.16
25GTK_REQUIRED=2.4.0
26
27dnl ===============================================================================
28
29AC_PROG_CC
30AC_ISC_POSIX
31AC_HEADER_STDC
32AC_ARG_PROGRAM
33AC_PROG_RANLIB
34
35dnl ================= translation =============================================
36
37GETTEXT_PACKAGE=eog
38AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
39AC_SUBST(GETTEXT_PACKAGE)
40
41ALL_LINGUAS="af am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu he hi hr hu id is it ja kn ko lt lv mk ml mn ms nb ne nl nn no or pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tk tr uk vi wa zh_CN zh_TW"
42AM_GLIB_GNU_GETTEXT
43AC_PROG_INTLTOOL
44
45dnl ===============================================================================
46
47GNOME_COMPILE_WARNINGS(yes)
48
49AC_SUBST(CFLAGS)
50AC_SUBST(CPPFLAGS)
51AC_SUBST(LDFLAGS)
52
53dnl ================= gnome libs check ====================================
54
55EOG_MODULES="gtk+-2.0 >= $GTK_REQUIRED gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED eel-2.0 >= $EEL_REQUIRED libart-2.0 >= $LIBART_REQUIRED"
56
57dnl ============== optional exif support ====================
58
59AC_ARG_WITH(libexif, [  --without-libexif         disable special EXIF support])
60have_exif=no
61have_old_libexif=no
62if test x$with_libexif != xno; then
63    PKG_CHECK_MODULES(EXIF, libexif >= $LIBEXIF_REQUIRED, have_exif=yes, have_exif=no)
64    PKG_CHECK_MODULES(EXIF, libexif = $LIBEXIF_REQUIRED, have_old_libexif=yes, have_old_libexif=no)
65fi
66
67if test "x$have_exif" = "xyes"; then
68  AC_DEFINE(HAVE_EXIF,1)
69  EOG_MODULES="$EOG_MODULES libexif >= $LIBEXIF_REQUIRED"
70fi
71
72if test "x$have_old_libexif" = "xyes"; then
73  AC_DEFINE(HAVE_OLD_LIBEXIF,1)
74        EOG_MODULES="$EOG_MODULES libexif = $LIBEXIF_REQUIRED"
75fi
76
77dnl ============== semi optional libjpeg support ====================
78AC_ARG_WITH(libjpeg, [  --without-libjpeg         disable special JPEG support])
79  have_jpeg=no
80  if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
81    AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
82      have_jpeg=yes,
83      have_jpeg=no
84      AC_MSG_WARN(*** JPEG loader will not be built (JPEG library not found) ***))
85    if test "$have_jpeg" = yes; then
86      AC_MSG_CHECKING([for jpeglib.h])
87      AC_TRY_CPP(
88[#include <stdio.h>
89#undef PACKAGE
90#undef VERSION
91#undef HAVE_STDLIB_H
92#include <jpeglib.h>],
93        have_jpeg=yes,
94        have_jpeg=no)
95      AC_MSG_RESULT($have_jpeg)
96      if test "$have_jpeg" = yes; then
97        LIBJPEG='-ljpeg'
98        AC_DEFINE(HAVE_JPEG, 1)
99        AC_DEFINE(HAVE_LIBJPEG, 1)
100        AC_CHECK_LIB(jpeg, jpeg_simple_progression,     
101          AC_DEFINE(HAVE_PROGRESSIVE_JPEG),
102          AC_MSG_WARN(JPEG library does not support progressive saving.))
103      else
104          AC_MSG_WARN(*** JPEG loader will not be built (JPEG header file not found) ***)
105      fi
106    fi
107  fi
108
109  if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
110     AC_MSG_ERROR([
111*** Checks for JPEG loader failed. You can build without it by passing
112*** --without-libjpeg to configure but some programs using GTK+ may
113*** not work properly])
114  fi
115AC_SUBST(LIBJPEG)
116AM_CONDITIONAL(ENABLE_JPEG, test x$have_jpeg = xyes)
117
118dnl ============ CFLAGS & LIBS initialization ===============
119
120PKG_CHECK_MODULES(EOG, $EOG_MODULES)
121AC_SUBST(EOG_CFLAGS)
122AC_SUBST(EOG_LIBS)
123
124# glib-genmarshal
125AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
126
127dnl ================= GConf  =================================================
128
129AC_PATH_PROG(GCONFTOOL, gconftool-2)
130AM_GCONF_SOURCE_2
131
132dnl ******************************************************
133dnl X development libraries check
134dnl ******************************************************
135#
136# If Pango included the shared library dependencies from X11 in
137# the pkg-config output, then we use that (to avoid duplicates).
138# but if they were omitted to avoid binary compatibility problems
139# then we need to repeat the checks.
140#
141if $PKG_CONFIG --exists pangoxft ; then
142  PANGO_PACKAGES="pangox pangoxft"
143else
144  PANGO_PACKAGES="pangox"
145fi
146
147x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`"
148case x_libs in
149  *-lX11*) pango_omitted_x_deps=no ;;
150  *)       pango_omitted_x_deps=yes ;;
151esac
152
153if test $pango_omitted_x_deps = yes ; then
154  AC_PATH_XTRA
155
156  if test x$no_x = xyes ; then
157    AC_MSG_ERROR([X development libraries not found])
158  else
159    X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
160  fi
161fi
162
163AC_SUBST(X_LIBS)
164
165dnl ******************************************************
166dnl Check for Sunkeysym.h
167dnl ******************************************************
168AC_CHECK_HEADERS(X11/Sunkeysym.h, AC_DEFINE(HAVE_SUNKEYSYM_H))
169
170dnl ================= popt  ===============================
171
172AC_CHECK_LIB(popt, poptGetArgs, [POPT_LIBS="-lpopt"],
173AC_MSG_ERROR([popt is required to build eog.
174You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/]))
175AC_SUBST(POPT_LIBS)
176
177AC_OUTPUT([
178Makefile
179eog.spec
180art/Makefile
181libeog/Makefile
182libeog/cursors/Makefile
183jpegutils/Makefile
184help/Makefile
185help/C/Makefile
186help/de/Makefile
187help/es/Makefile
188help/eu/Makefile
189help/fr/Makefile
190help/it/Makefile
191help/sv/Makefile
192help/ja/Makefile
193help/ko/Makefile
194help/zh_CN/Makefile
195help/zh_TW/Makefile
196shell/Makefile
197shell/recent-files/Makefile
198po/Makefile.in
199])
200
201
202
203echo "
204Configuration:
205
206        Source code location:     ${srcdir}
207        Compiler:                 ${CC}
208
209        Extra Compiler Warnings:  ${WARN_CFLAGS}
210        Special EXIF support:     ${have_exif}
211        Use libexif = 0.5.12:     ${have_old_libexif}
212        Special JPEG support:     ${have_jpeg}
213"
Note: See TracBrowser for help on using the repository browser.