1
|
1 AC_INIT(src/main.c)
|
8
|
2 AC_CONFIG_HEADER(config.h)
|
7
|
3
|
8
|
4 AM_INIT_AUTOMAKE(gqview, 1.5.9)
|
1
|
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
|
8
|
20 AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.))
|
1
|
21
|
8
|
22 AC_DEFINE_UNQUOTED(GQVIEW_HELPDIR, "$prefix/share/doc/gqview-$VERSION", [Location of documetation files])
|
|
23 AC_DEFINE_UNQUOTED(GQVIEW_HTMLDIR, "$prefix/share/doc/gqview-$VERSION/html", [Location of html documentation])
|
1
|
24
|
8
|
25 dnl checks for functions
|
|
26 AC_CHECK_FUNCS(strverscmp)
|
1
|
27
|
|
28 dnl locale location for po
|
8
|
29 localedir='${datadir}/locale'
|
1
|
30 AC_SUBST(localedir)
|
|
31
|
8
|
32 ALL_LINGUAS="ar bg cs da de es et fi fr hu id it ja nl no pl pt_BR ro ru sk sl sv th tr uk vi zh_CN.GB2312 zh_TW"
|
|
33 GETTEXT_PACKAGE=$PACKAGE
|
|
34 AC_SUBST(GETTEXT_PACKAGE)
|
|
35 AM_GLIB_GNU_GETTEXT
|
1
|
36
|
|
37 AC_SUBST(CFLAGS)
|
|
38 AC_SUBST(CPPFLAGS)
|
|
39 AC_SUBST(LDFLAGS)
|
|
40
|
|
41 AC_OUTPUT([
|
|
42 Makefile
|
|
43 src/Makefile
|
|
44 src/icons/Makefile
|
8
|
45 po/Makefile.in
|
|
46 doc/Makefile
|
|
47 gqview.spec
|
1
|
48 ])
|
8
|
49
|