Commit from LXDE Translation Project with Pootle by user PraveenIlla.: 51 of 51 messa...
[lxde/gpicview.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_INIT(configure.in)
4 AM_INIT_AUTOMAKE(gpicview, 0.2.1)
5 AM_CONFIG_HEADER(config.h)
6 AM_MAINTAINER_MODE
7
8 AC_LANG_C
9 AM_PROG_LIBTOOL
10
11 AC_ISC_POSIX
12 AC_PROG_CC
13 AM_PROG_CC_STDC
14 AM_PROG_CC_C_O
15 AC_HEADER_STDC
16
17 AM_GLIB_GNU_GETTEXT
18 IT_PROG_INTLTOOL([0.40.0])
19
20 pkg_modules="gtk+-2.0 >= 2.12.0"
21
22 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
23 AC_CHECK_LIB(jpeg, jpeg_start_decompress, [],
24              [AC_MSG_ERROR([libjpeg not found])], -lm)
25 AC_CHECK_HEADER(jpeglib.h, , [AC_MSG_ERROR([libjpeg not found])])
26 LIBJPEG='-ljpeg'
27
28 AC_SUBST(PACKAGE_CFLAGS)
29 AC_SUBST(PACKAGE_LIBS)
30
31 GETTEXT_PACKAGE=gpicview
32 AC_SUBST(GETTEXT_PACKAGE)
33 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
34
35 AC_OUTPUT([
36 Makefile
37 src/Makefile
38 data/Makefile
39 po/Makefile.in
40 ])
41
42 echo
43 echo GPicView....................... : Version $VERSION
44 echo
45 echo Prefix..........................: $prefix
46 echo
47 echo The binary will be installed in $prefix/bin
48 echo
49 echo http://lxde.org/
50 echo