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
|
AC_INIT(gnomine)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gnome-games, 0.30)
AM_MAINTAINER_MODE
dnl AM_ACLOCAL_INCLUDE(macros)
GNOME_INIT
GNOME_CHECK_GUILE
AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_ARG_PROGRAM
AM_PROG_LIBTOOL
# Turn around -rpath problem with libtool 1.0c
# This define should be improbable enough to not conflict with anything
case ${host} in
*-pc-linux-gnu)
AC_MSG_RESULT([Fixing libtool for -rpath problems.])
sed < libtool > libtool-2 \
's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
mv libtool-2 libtool
chmod 755 libtool
;;
esac
## this should come after `AC_PROG_CC'
GNOME_X_CHECKS
GNORBA_LIBS=`gnome-config --libs gnorba gnomeui`
AC_CHECK_LIB(gnorba, gnome_CORBA_init, [
ORBIT_LIBS="-lgnorba `gnome-config --libs gnorba gnomeui`"
ORBIT_CFLAGS=`gnome-config --cflags gnorba gnomeui`
AC_SUBST(ORBIT_LIBS)
AC_SUBST(ORBIT_CFLAGS)
AC_DEFINE(HAVE_ORBIT)
],[],$GNORBA_LIBS)
AC_SUBST(ORBIT_CFLAGS)
AC_SUBST(ORBIT_LIBS)
AM_CONDITIONAL(ORBIT_INSTALLED, test -n "$ORBIT_LIBS")
## look for some version of curses (keeping AM_'s out of curses.m4)
AC_CHECK_CURSES
AM_CONDITIONAL(HAS_CURSES, test "$has_curses" = true)
ALL_LINGUAS="cs da de es fr ga it ja ko no pt"
AM_GNU_GETTEXT
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
gnome_cv_use_gnome=yes
## gnomine checks
oLIBS="$LIBS"
LIBS="$LIBS $GTK_LIBS"
AC_CHECK_FUNCS(gtk_spin_button_set_snap_to_ticks)
LIBS="$oLIBS"
AC_CHECK_FUNCS(rename)
AC_OUTPUT([
Makefile
po/Makefile.in
macros/Makefile
idl/Makefile
gnomine/Makefile
dnl scottfree/Makefile
same-gnome/Makefile
mahjongg/Makefile
gturing/Makefile
aisleriot/Makefile
aisleriot/pixmaps/Makefile
freecell/Makefile
freecell/src/Makefile
freecell/gdk-card-image/Makefile
gnome-stones/Makefile
gnome-stones/graphics/Makefile
intl/Makefile
gyahtzee/Makefile
gyahtzee/pix/Makefile
gnobots/Makefile
gnothello/Makefile
stamp.h],[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])
|