3
AM_CONFIG_HEADER(config.h)
4
AM_INIT_AUTOMAKE(zenity, 2.8.1)
8
AC_PROG_INTLTOOL([0.29])
14
PKG_CHECK_MODULES(ZENITY, gtk+-2.0 >= $GTK_REQUIRED libglade-2.0 libgnomecanvas-2.0)
15
AC_SUBST(ZENITY_CFLAGS)
18
AC_CHECK_LIB(popt, poptHelpOptions,, AC_MSG_ERROR([popt is required to build script.]))
20
dnl ***********************************************
21
dnl scrollkeeper checks
22
dnl ***********************************************
24
AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
25
if test x$SCROLLKEEPER_CONFIG = xno; then
26
AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package)
29
dnl ***********************************************
30
dnl X development libraries check
31
dnl ***********************************************
34
# If Pango included the shared library dependencies from X11 in
35
# the pkg-config output, then we use that (to avoid duplicates).
36
# but if they were omitted to avoid binary compatibility problems
37
# then we need to repeat the checks.
39
if $PKG_CONFIG --exists pangoxft ; then
40
PANGO_PACKAGES="pangox pangoxft"
42
PANGO_PACKAGES="pangox"
45
x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`"
47
*-lX11*) pango_omitted_x_deps=no ;;
48
*) pango_omitted_x_deps=yes ;;
51
if test $pango_omitted_x_deps = yes ; then
54
if test x$no_x = xyes ; then
55
AC_MSG_ERROR([X development libraries not found])
57
X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
63
dnl *******************************
65
dnl *******************************
67
AC_PATH_PROG(PERL,perl,)
69
dnl *******************************
70
dnl Internationalization
71
dnl *******************************
73
ALL_LINGUAS="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 hi hr hu id is it ja kn ko lt mi mk ml mn ms nb ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tr uk vi zh_CN zh_TW"
74
GETTEXT_PACKAGE=zenity-0.1
75
AC_SUBST(GETTEXT_PACKAGE)
78
dnl **************************************************************
79
dnl AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME
80
dnl this is the directory where the *.{mo,gmo} files are installed
81
dnl **************************************************************
83
zenitylocaledir='${prefix}/${DATADIRNAME}/locale'
84
AC_SUBST(zenitylocaledir)
86
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Finding gettext package])
88
AC_DEFINE_UNQUOTED(GNOME_ICONDIR, "${prefix}/share/pixmaps", [Determining icon location])