1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
AC_INIT(src/gnomermind.c)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gnomermind, 1.0.1)
AM_MAINTAINER_MODE
AM_ACLOCAL_INCLUDE(macros)
AC_MSG_CHECKING(for gnome-libs-config)
if gnome-config --libs gnome > /dev/null 2>&1
then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
AC_MSG_ERROR(Ensure that gnome-libs and its devel package are installed)
fi
GNOME_INIT
AM_PROG_XML_I18N_TOOLS
AC_PROG_CC
AC_ISC_POSIX
AC_HEADER_STDC
AC_ARG_PROGRAM
AM_PROG_LIBTOOL
GNOME_COMPILE_WARNINGS
ALL_LINGUAS="it ru fr sv nl tr de es sk pt zh_TW ja"
AM_GNU_GETTEXT
AC_SUBST(CFLAGS)
AC_SUBST(LDFLAGS)
CFLAGS_save=$CFLAGS
LIBS_save=$LIBS
CFLAGS=`gnome-config --cflags gnomeui`
LIBS=`gnome-config --libs gnomeui`
AC_CHECK_LIB(gnomeui, gnome_window_icon_set_default_from_file, ,[
AC_MSG_ERROR(gnome-libs 1.0.59 or higher is required.)])
CFLAGS=$CFLAGS_save;
LIBS=$LIBS_save;
AC_MSG_CHECKING(for gdk-pixbuf-config)
if gdk-pixbuf-config --libs > /dev/null 2>&1
then
AC_MSG_RESULT(yes)
PIXBUF_CFLAGS=`gdk-pixbuf-config --cflags`
PIXBUF_LIBS=`gdk-pixbuf-config --libs`
AC_SUBST(PIXBUF_CFLAGS)
AC_SUBST(PIXBUF_LIBS)
else
AC_MSG_RESULT(no)
AC_MSG_ERROR(Ensure that GdkPixbuf and its devel package are installed)
fi
AC_CHECK_LIB(esd, esd_sample_play, esd=yes, esd=no)
if test "$esd" = yes ;
then
AC_MSG_CHECKING(for esd-config)
if esd-config --libs > /dev/null 2>&1
then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
esd = no
fi
fi
AC_ARG_ENABLE(esd-sound, [ --disable-esd-sound Force the sound support not to be built [default=auto]], esd="$enableval", esd=yes)
if test "$esd" = yes ;
then
AC_DEFINE(HAVE_ESD)
ESD_CFLAGS=`esd-config --cflags`
ESD_LIBS=`esd-config --libs`
else
AC_MSG_WARN(The sound support won't be built)
ESD_CFLAGS=
ESD_LIBS=
fi
AC_SUBST(ESD_CFLAGS)
AC_SUBST(ESD_LIBS)
if test "$prefix" = `gnome-config --prefix` -o "$prefix" = `gnome-config --prefix`"/";
then
AC_DEFINE(PREFIX_EQUAL_TO_GNOME)
fi
AC_ARG_ENABLE(g-asserts, [ --enable-g-asserts Use g_assert to check consistency - slower! [default=no]], enable_g_asserts="$enableval", enable_g_asserts=no)
if test "$enable_g_asserts" = no ; then
AC_DEFINE(G_DISABLE_ASSERT)
fi
AC_OUTPUT([
Makefile
gnomermind.spec
macros/Makefile
src/Makefile
intl/Makefile
po/Makefile.in
pixmaps/Makefile
sounds/Makefile
themes/Makefile
themes/Classic/Makefile
themes/Pingus/Makefile
themes/Scribble/Makefile
themes/QMM/Makefile
help/Makefile
help/C/Makefile
])
|