Initial revision
[geeqie.git] / configure.in
1 AC_INIT(src/main.c)
2 AM_CONFIG_HEADER(config.h)
3
4 AM_INIT_AUTOMAKE(gqview, 0.7.0f)
5
6 AM_MAINTAINER_MODE
7
8 AC_ISC_POSIX
9 AC_PROG_CC
10 AC_STDC_HEADERS
11 AC_ARG_PROGRAM
12
13 dnl reasonable guesses for where stuff is installed
14 if test "x$prefix" = "xNONE"; then
15   prefix="/usr/local"
16 else
17   prefix=$prefix
18 fi
19
20 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(GTK+ >= 1.2.0 not installed.))
21 AM_PATH_GDK_IMLIB(1.9,,AC_MSG_ERROR(Imlib >= 1.9 not installed.))
22
23 dnl CHECK_GNOME
24   AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
25   AM_CONDITIONAL(HAVE_GNOME, test $GNOME_CONFIG != no)
26   if test "$GNOME_CONFIG" = no; then
27     AC_MSG_RESULT(GNOME icon and menu entry will NOT be installed)
28   else
29     AC_MSG_RESULT(will install a GNOME icon and menu entry)
30     AC_SUBST(GNOME_DATADIR)
31     GNOME_DATADIR="`$GNOME_CONFIG --datadir`"
32   fi
33
34 dnl utility conditional
35 AM_CONDITIONAL(FALSE, test "x" = "y")
36
37 dnl locale location for po
38 localedir='${prefix}/share/locale'
39 AC_SUBST(localedir)
40
41 ALL_LINGUAS="de ja pt_BR ru"
42 AM_GNU_GETTEXT
43
44 AC_SUBST(CFLAGS)
45 AC_SUBST(CPPFLAGS)
46 AC_SUBST(LDFLAGS)
47
48 AC_OUTPUT([
49 Makefile
50 intl/Makefile
51 po/Makefile.in
52 gqview.spec
53 src/Makefile
54 src/icons/Makefile
55 ])