more renames
[geeqie.git] / configure.in
1 AC_INIT(src/main.c)
2 AC_CONFIG_HEADER(config.h)
3
4 AM_INIT_AUTOMAKE(geeqie, alpha0)
5
6 AM_MAINTAINER_MODE
7
8 AC_ISC_POSIX
9 AC_PROG_CC
10 AC_PROG_CXX
11 AC_STDC_HEADERS
12 AC_ARG_PROGRAM
13
14 dnl reasonable guesses for where stuff is installed
15 if test "x$prefix" = "xNONE"; then
16   prefix="/usr/local"
17 else
18   prefix=$prefix
19 fi
20
21 AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.))
22
23 AC_DEFINE_UNQUOTED(GQVIEW_HELPDIR, "$prefix/share/doc/geeqie-$VERSION", [Location of documentation files])
24 AC_DEFINE_UNQUOTED(GQVIEW_HTMLDIR, "$prefix/share/doc/geeqie-$VERSION/html", [Location of html documentation])
25
26 dnl checks for functions
27 AC_CHECK_FUNCS(strverscmp)
28
29 dnl check for little cms (lcms, this test pulled from gimp)
30 AC_ARG_WITH(lcms, [  --without-lcms          build without lcms support])
31
32 have_lcms=no
33 if test "x$with_lcms" != "xno"; then
34   AC_CHECK_LIB(lcms, cmsCreate_sRGBProfile, [
35     AC_CHECK_HEADER(lcms.h,
36       have_lcms=yes, [
37       AC_CHECK_HEADER(lcms/lcms.h,
38         have_lcms=yes
39         AC_DEFINE(HAVE_LCMS_LCMS_H, 1,
40           [Define to 1 if the lcms header must be included as lcms/lcms.h]))
41       ])
42   ])
43   if test "$have_lcms" = "yes"; then
44     LCMS_LIBS="-llcms"
45     AC_DEFINE(HAVE_LCMS, 1, [define to enable use of color profiles with lcms])
46   else
47     have_lcms="no (lcms not found or unusable)"
48   fi
49 else
50   have_lcms="no (lcms support disabled)"
51 fi
52 AC_SUBST(LCMS_LIBS)
53 AM_CONDITIONAL(HAVE_LCMS, test "$have_lcms" = "yes")
54
55 AC_ARG_WITH(exiv2, [  --without-exiv2          build without exiv2 support])
56
57 have_exiv2=no
58
59 if test "x$with_exiv2" != "xno"; then
60   PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.11,
61     [ have_exiv2=yes
62       AC_DEFINE(HAVE_EXIV2, 1, have exiv2) ],
63     [ AC_MSG_RESULT($EXIV2_PKG_ERRORS) ] )
64 fi
65
66
67 ALL_LINGUAS="ar be bg ca cs da de eo es et eu fi fr hu id it ja ko nl no pl pt_BR ro ru sk sl sv th tr uk vi zh_CN.GB2312 zh_TW"
68 GETTEXT_PACKAGE=$PACKAGE
69 AC_SUBST(GETTEXT_PACKAGE)
70 AM_GLIB_GNU_GETTEXT
71 AM_GLIB_DEFINE_LOCALEDIR(GQVIEW_LOCALEDIR)
72
73 AC_SUBST(CFLAGS)
74 AC_SUBST(CPPFLAGS)
75 AC_SUBST(LDFLAGS)
76
77 AC_OUTPUT([
78 Makefile
79 src/Makefile
80 src/icons/Makefile
81 src/icons/svg/Makefile
82 po/Makefile.in
83 doc/Makefile
84 geeqie.spec
85 ])
86