2
# Process this file with autoconf to produce a configure script.
5
AC_INIT([GNOME Games], [3.1.4],
6
[http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-games],
9
AC_CONFIG_MACRO_DIR([m4])
10
AC_CONFIG_SRCDIR([gnomine/gnomine.c])
11
AC_CONFIG_HEADERS([config.h])
13
AM_INIT_AUTOMAKE([1.11 tar-ustar no-dist-gzip dist-xz foreign])
15
AM_SILENT_RULES([yes])
17
if test -z "$enable_maintainer_mode"; then
18
enable_maintainer_mode=yes
20
AM_MAINTAINER_MODE([enable])
22
# First parse the list of enabled games, so we know which options
23
# we support and which features to check for
25
# This is the canonical list of all game subdirectories.
26
allgames="glchess glines gnect gnibbles gnobots2 gnomine gnotravex gnotski gtali iagno mahjongg quadrapassel gnome-sudoku"
28
staginggames="lightsoff swell-foop"
29
AC_SUBST([staginggames])
33
AC_MSG_CHECKING([which games to build])
36
[--with-games=game1,game2,...],
39
AC_ARG_ENABLE([games],
40
[AS_HELP_STRING([--enable-games=list],[Enable the games in the comma separated list ("all" and "none" are valid)])],
41
[with_games="$enableval"],[])
43
if test -n "$with_games"; then
45
IFS="${IFS= }"; gg_saved_ifs="$IFS"; IFS=","
46
for item in $with_games; do
48
all) gamelist="$allgames" ;;
50
*) if test -z "$gamelist"; then
53
gamelist="$gamelist $item"
63
## This has a particularly silly name because autoconf doesn't allow
64
## --disable-foo to have arguments so we have to use an --enable-fubar form.
65
AC_ARG_ENABLE(omitgames,
66
AS_HELP_STRING([--enable-omitgames=list],
67
[Don't compile games in the comma separated list. ("all" and "none" are valid)]))
68
if test -n "$enable_omitgames"; then
69
enable_omitgames=`echo ,"${enable_omitgames}", | sed -e 's/[[ ,]][[ ,]]*/ /g' -e 's/,$//'`
72
for item in ${enable_omitgames}; do
73
for game in ${allgames}; do
75
all) omittedgames=${allgames};;
76
none) omittedgames="";;
77
${game}) omittedgames="${game} ${omittedgames}";;
82
for game in ${allgames}; do
83
case ${omittedgames} in
85
*) gamelist="${gamelist} ${game}";;
88
elif test -z "$gamelist"; then
89
# Everything on by default
93
## This is the staging area
94
## These games aren't quite ready for prime-time
96
AC_MSG_CHECKING([whether to enable staging games])
97
AC_ARG_ENABLE([staging],
98
[AS_HELP_STRING([--enable-staging],[whether to enable beta game support (default: disabled)])],[],[])
99
AC_MSG_RESULT([$enable_staging])
101
if test "$enable_staging" = "yes"; then
102
gamelist="${gamelist} ${staginggames}"
105
AC_MSG_RESULT([$gamelist])
122
require_cairo_1_10=no
124
for game in $gamelist; do
126
quadrapassel) need_cxx=yes ;;
130
glchess) need_vala=yes ;;
134
glchess) need_opengl=yes ;;
138
glchess) need_glx=yes ;;
142
glchess) allow_gnuchess=yes ;;
146
gnome-sudoku) need_python=yes ;;
150
gnect|gnibbles|gnobots2|quadrapassel|iagno) want_sound=yes ;;
158
glchess) need_sqlite=yes ;;
162
glines|gnobots2|gnomine|gnotravex|gnotski|iagno) allow_smclient=yes ;;
166
quadrapassel|lightsoff|swell-foop|gnibbles) need_clutter=yes ;;
171
# Set a conditional for each game to build
173
for game in $allgames $staginggames; do
174
eval AS_TR_SH([build_$game])=no
176
for game in $gamelist; do
177
eval AS_TR_SH([build_$game])=yes
180
AM_CONDITIONAL([BUILD_GLCHESS],[test "$build_glchess" = "yes"])
181
AM_CONDITIONAL([BUILD_GLINES],[test "$build_glines" = "yes"])
182
AM_CONDITIONAL([BUILD_GNECT],[test "$build_gnect" = "yes"])
183
AM_CONDITIONAL([BUILD_GNIBBLES],[test "$build_gnibbles" = "yes"])
184
AM_CONDITIONAL([BUILD_GNOBOTS2],[test "$build_gnobots2" = "yes"])
185
AM_CONDITIONAL([BUILD_GNOME_SUDOKU],[test "$build_gnome_sudoku" = "yes"])
186
AM_CONDITIONAL([BUILD_QUADRAPASSEL],[test "$build_quadrapassel" = "yes"])
187
AM_CONDITIONAL([BUILD_GNOMINE],[test "$build_gnomine" = "yes"])
188
AM_CONDITIONAL([BUILD_GNOTRAVEX],[test "$build_gnotravex" = "yes"])
189
AM_CONDITIONAL([BUILD_GNOTSKI],[test "$build_gnotski" = "yes"])
190
AM_CONDITIONAL([BUILD_GTALI],[test "$build_gtali" = "yes"])
191
AM_CONDITIONAL([BUILD_IAGNO],[test "$build_iagno" = "yes"])
192
AM_CONDITIONAL([BUILD_LIGHTSOFF],[test "$build_lightsoff" = "yes"])
193
AM_CONDITIONAL([BUILD_MAHJONGG],[test "$build_mahjongg" = "yes"])
194
AM_CONDITIONAL([BUILD_SWELL_FOOP],[test "$build_swell_foop" = "yes"])
196
# Locate various programs
198
PKG_PROG_PKG_CONFIG([0.15])
205
if test "$need_vala" = "yes"; then
206
AM_PROG_VALAC([0.13.0])
209
if test "$need_cxx" = "yes"; then
212
# Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it
215
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])])
225
GNOME_COMPILE_WARNINGS([maximum])
226
GNOME_CXX_WARNINGS([yes])
227
GNOME_MAINTAINER_MODE_DEFINES
229
dnl ****************************************************************************
231
dnl ****************************************************************************
233
AM_PATH_PYTHON([2.4],[have_python=yes],[have_python=no])
239
# Check which platform to use
241
AC_MSG_CHECKING([for which platform to build])
242
AC_ARG_WITH([platform],
243
[AS_HELP_STRING([--with-platform=gnome|gtk-only (default: gnome)])],
246
*) AC_MSG_ERROR([invalid argument "$withval" for --with-platform]) ;;
248
[with_platform=gnome])
249
AC_MSG_RESULT([$with_platform])
251
AM_CONDITIONAL([HAVE_GNOME],[test "$with_platform" = "gnome"])
253
if test "$with_platform" = "gnome"; then
254
AC_DEFINE([HAVE_GNOME],[1],[Define if GNOME support is enabled])
257
# Check which gtk+ major version to use
259
AC_MSG_CHECKING([which gtk+ version to compile against])
261
[AS_HELP_STRING([--with-gtk=3.0],[which gtk+ version to compile against (default: 3.0)])],
264
[0-9].0) AC_MSG_ERROR([unsupported gtk version $with_gtk specified]) ;;
265
*) AC_MSG_ERROR([invalid gtk version specified]) ;;
268
AC_MSG_RESULT([$with_gtk])
271
3.0) GTK_API_VERSION=3.0
272
GTK_API_MAJOR_VERSION=3
276
AC_SUBST([GTK_API_VERSION])
277
AC_SUBST([GTK_API_MAJOR_VERSION])
283
AC_MSG_CHECKING([for some Win32 platform])
285
*-*-cygwin*|*-*-mingw*)
292
AC_MSG_RESULT([$platform_win32])
293
AM_CONDITIONAL([PLATFORM_WIN32],[test "$platform_win32" = "yes"])
295
AC_MSG_CHECKING([for native Win32])
304
AC_MSG_RESULT([$os_win32])
305
AM_CONDITIONAL([PLATFORM_WIN32_NATIVE],[test "$os_win32" = "yes"])
315
if test "$want_sound" = "yes"; then
316
AC_MSG_CHECKING([whether to enable sound support])
317
AC_ARG_ENABLE([sound],
318
[AS_HELP_STRING([--enable-sound],[Enable sound using libcanberra])],
319
[],[enable_sound=yes])
320
AC_MSG_RESULT([$enable_sound])
325
# ********************
326
# Checks for libraries
327
# ********************
329
PYGOBJECT_REQUIRED=2.28.3
332
3.0) GTK_REQUIRED=2.91.7
334
LIBCANBERRA_GTK_REQUIRED=0.26
335
LIBCANBERRA_GTK_PKGS="libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED"
341
GSTREAMER_REQUIRED=0.10.11
343
# Check for common modules
346
PKG_CHECK_MODULES([GTHREAD],[gthread-2.0])
347
AC_SUBST([GTHREAD_CFLAGS])
348
AC_SUBST([GTHREAD_LIBS])
350
PKG_CHECK_MODULES([GMODULE],[gmodule-2.0])
351
AC_SUBST([GMODULE_CFLAGS])
352
AC_SUBST([GMODULE_LIBS])
354
PKG_CHECK_MODULES([GOBJECT],[gobject-2.0])
355
AC_SUBST([GOBJECT_CFLAGS])
356
AC_SUBST([GOBJECT_LIBS])
358
PKG_CHECK_MODULES([GTK],[gtk+-$GTK_API_VERSION >= $GTK_REQUIRED launchpad-integration-3.0])
359
AC_SUBST([GTK_CFLAGS])
364
PKG_CHECK_MODULES([GIO],[gio-2.0 >= $GIO_REQUIRED],[have_gio_2_26=yes],[have_gio_2_26=no])
368
AM_CONDITIONAL([HAVE_GIO_2_26],[test "$have_gio_2_26" = "yes"])
370
m4_ifdef([GLIB_GSETTINGS],[GLIB_GSETTINGS([],[:])])
372
# Check for GNOME modules
375
AC_PATH_PROG([GCONFTOOL],[gconftool-2])
377
if test "$with_platform" = "gnome"; then
378
PKG_CHECK_MODULES([GNOME],[gconf-2.0 >= $GCONF_REQUIRED])
379
AC_SUBST([GNOME_CFLAGS])
380
AC_SUBST([GNOME_LIBS])
388
if test "$need_rsvg" = "yes"; then
391
if test "$require_cairo_1_10" = "yes"; then
392
CAIRO_REQUIRED=1.10.0
397
# Errors out if rsvg is not found
398
PKG_CHECK_MODULES([RSVG],[
399
librsvg-2.0 >= $RSVG_REQUIRED
400
cairo >= $CAIRO_REQUIRED])
402
AC_SUBST([RSVG_CFLAGS])
403
AC_SUBST([RSVG_LIBS])
405
AC_DEFINE([HAVE_RSVG],[1],[Refine if librsvg is available])
408
AM_CONDITIONAL([HAVE_RSVG],[test "$have_rsvg" = "yes"])
413
if test "$need_sqlite" = "yes"; then
416
# Errors out if sqlite is not found
417
PKG_CHECK_MODULES([SQLITE],[sqlite3])
419
AC_SUBST([SQLITE_CFLAGS])
420
AC_SUBST([SQLITE_LIBS])
422
AC_DEFINE([HAVE_SQLITE],[1],[Refine if sqlite is available])
425
AM_CONDITIONAL([HAVE_SQLITE],[test "$have_sqlite" = "yes"])
430
if test "$need_opengl" = "yes"; then
433
# Errors out if OpenGL is not found
434
PKG_CHECK_MODULES([OPENGL],[
437
AC_SUBST([OPENGL_CFLAGS])
438
AC_SUBST([OPENGL_LIBS])
440
AC_DEFINE([HAVE_OPENGL],[1],[Define if OpenGL is available])
443
AM_CONDITIONAL([HAVE_OPENGL],[test "$have_opengl" = "yes"])
448
if test "$need_glx" = "yes"; then
451
# Errors out if GLX is not found
452
PKG_CHECK_MODULES([GLX],[
455
AC_SUBST([GLX_CFLAGS])
458
AC_DEFINE([HAVE_GLX],[1],[Define if GLX is available])
461
AM_CONDITIONAL([HAVE_GLX],[test "$have_glx" = "yes"])
465
if test "$need_clutter" = "yes"; then
466
CLUTTER_REQUIRED=1.0.0
468
PKG_CHECK_MODULES([CLUTTER],[clutter-1.0 >= $CLUTTER_REQUIRED])
469
AC_SUBST([CLUTTER_CFLAGS])
470
AC_SUBST([CLUTTER_LIBS])
473
3.0) CLUTTER_GTK_API_VERSION=1.0
474
CLUTTER_GTK_REQUIRED=0.91.6
478
PKG_CHECK_MODULES([CLUTTER_GTK],[clutter-gtk-$CLUTTER_GTK_API_VERSION >= $CLUTTER_GTK_REQUIRED])
479
AC_SUBST([CLUTTER_GTK_CFLAGS])
480
AC_SUBST([CLUTTER_GTK_LIBS])
483
AM_CONDITIONAL([HAVE_CLUTTER],[test "$need_clutter" = "yes"])
485
# Check for PyGObject
487
if test "$have_python" = "yes"; then
488
PKG_CHECK_MODULES([PYGOBJECT],[
489
pygobject-2.0 >= $PYGOBJECT_REQUIRED],
490
[have_pygtk=yes],[have_pygtk=no])
494
if test "$have_python" = "yes" -a "$have_pygtk" = "yes"; then
498
if test "$enable_python" = "no" -a "$need_python" = "yes"; then
499
AC_MSG_ERROR([Some games need python, but pygobject packages were not found.])
502
AM_CONDITIONAL([HAVE_PYTHON],[test "$enable_python" = "yes"])
506
AM_CONDITIONAL([WITH_GTHREAD],[test "$need_gthread" = "yes"])
510
if test "$enable_sound" = "yes"; then
511
PKG_CHECK_MODULES([CANBERRA_GTK],[$LIBCANBERRA_GTK_PKGS],[],
512
[AC_MSG_ERROR([Sound support was requested, but libcanberra-gtk not found.])])
514
AC_DEFINE([ENABLE_SOUND],[1],[Define if sound support is enabled])
517
AM_CONDITIONAL([ENABLE_SOUND],[test "$enable_sound" = "yes"])
522
if test "$allow_smclient" = "yes"; then
523
AC_MSG_CHECKING([for GDK target])
525
3.0) for target in $($PKG_CONFIG --variable targets gdk-$GTK_API_VERSION); do
531
AC_MSG_RESULT([$GDK_TARGET])
533
case "$GDK_TARGET" in
535
*) AC_MSG_ERROR([unknown GDK target])
538
AC_MSG_CHECKING([which smclient backend to use])
539
AC_ARG_WITH([smclient],
540
[AS_HELP_STRING([--with-smclient],[which smclient backend to use (xsmp|win32|quartz|no)])],
542
[case "$with_platform" in
543
gnome|gtk-only) case "$GDK_TARGET" in
544
x11) with_smclient=xsmp SMCLIENT_PKGS="sm ice" ;;
545
win32|quartz) with_smclient=$GDK_TARGET ;;
546
*) with_smclient=no ;;
550
AC_MSG_RESULT([$with_smclient])
552
if test "$with_smclient" != "no"; then
553
if test -n "$SMCLIENT_PKGS"; then
554
PKG_CHECK_MODULES([SMCLIENT],[$SMCLIENT_PKGS])
557
AC_DEFINE([WITH_SMCLIENT],[1],[Define if smclient is enabled])
564
AM_CONDITIONAL([WITH_SMCLIENT],[test "$with_smclient" != "no"])
565
AM_CONDITIONAL([WITH_SMCLIENT_XSMP],[test "$with_smclient" = "xsmp"])
566
AM_CONDITIONAL([WITH_SMCLIENT_WIN32],[test "$with_smclient" = "win32"])
567
AM_CONDITIONAL([WITH_SMCLIENT_QUARTZ],[test "$with_smclient" = "quartz"])
573
AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal])
575
# glib-genmarshal --internal only exists since 2.14
576
if $PKG_CONFIG --exists "glib-2.0 >= 2.14.0" ; then
577
GLIB_GENMARSHAL_INTERNAL="--internal"
579
GLIB_GENMARSHAL_INTERNAL=
581
AC_SUBST([GLIB_GENMARSHAL_INTERNAL])
583
if test "$platform_win32" = "yes" -a "$os_win32" = "yes"; then
584
AC_CHECK_TOOL([WINDRES],[windres],[no])
585
if test "$WINDRES" = "no"; then
586
AC_MSG_ERROR([windres is required for native win32])
594
AC_MSG_CHECKING([whether to enable binary relocation support])
595
AC_ARG_ENABLE([binreloc],
596
[AS_HELP_STRING([--enable-binreloc],[enable binary relocation support (default: disabled)])],
598
[enable_binreloc="$platform_win32"])
599
AC_MSG_RESULT([$enable_binreloc])
601
if test "$enable_binreloc" = "yes"; then
603
# Check that all variables use the same prefix
604
# Note: datarootdir exists only since autoconf 2.60, so we have to
605
# check for the old and the new form of datadir.
606
if test "$exec_prefix" != '${prefix}' -o \
607
"$bindir" != '${exec_prefix}/bin' -o \
608
"$sbindir" != '${exec_prefix}/sbin' -o \
609
"$libdir" != '${exec_prefix}/lib' -o \
610
"$libexecdir" != '${exec_prefix}/libexec' -o \
611
"$sysconfdir" != '${prefix}/etc' -o \
612
"$localstatedir" != '${prefix}/var' -o \
613
\( -n "$datarootdir" -a "$datarootdir" != '${prefix}/share' \) -o \
614
\( "$datadir" != '${datarootdir}' -a "$datadir" != '${prefix}/share' \) -o \
615
\( "$localedir" != '${datarootdir}/locale' -a "$localedir" != '${datadir}/locale' \) -o \
616
\( "$mandir" != '${datarootdir}/man' -a "$mandir" != '${datadir}/man' \); then
617
AC_MSG_ERROR([cannot use binary relocation with different prefixes])
620
AC_DEFINE([ENABLE_BINRELOC],[1],[Define for binary relocation support])
625
AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS"
626
AM_CXXFLAGS="$AM_CXXFLAGS $WARN_CXXFLAGS"
632
GETTEXT_PACKAGE=gnome-games
633
AC_SUBST(GETTEXT_PACKAGE)
634
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext package name])
637
IT_PROG_INTLTOOL([0.35.0])
639
# ********************
640
# Game specific checks
641
# ********************
643
if test "$allow_gnuchess" = "yes"; then
644
AC_ARG_ENABLE([gnuchess],
645
[AS_HELP_STRING([--disable-gnuchess],[Disable included gnuchess for glChess])],
646
[],[enable_gnuchess=yes])
648
if test "$enable_gnuchess" = "yes"; then
649
AC_DEFINE([ENABLE_GNUCHESS],[1],[Enable compilation of included GNU Chess as AI chess engine for glChess])
650
AC_CHECK_HEADER(pthread.h, [],
651
AC_MSG_ERROR([*** Cannot find pthread.h header]))
652
AC_CHECK_LIB(pthread, pthread_create,
653
[PTHREAD_LDFLAGS="$PTHREAD_LDFLAGS -lpthread"
654
PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT"],
655
[AC_CHECK_LIB(c_r, pthread_create,
656
[PTHREAD_LDFLAGS="$PTHREAD_LDFLAGS -pthread"
657
PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"],
658
AC_MSG_ERROR([*** Cannot find pthread library]))])
659
AC_SUBST(PTHREAD_CFLAGS)
660
AC_SUBST(PTHREAD_LDFLAGS)
664
AM_CONDITIONAL([WITH_INCLUDED_GNUCHESS],[test "$enable_gnuchess" = "yes"])
666
# Check for library functions
667
# ===========================
669
AC_CHECK_FUNCS([dup2 strcasecmp strchr strerror \
671
[AC_MSG_ERROR([cannot find required function])])
672
AC_CHECK_FUNCS([fork select])
673
AC_CHECK_FUNCS([alarm getpwuid getenv setenv close hstrerror kill socketpair])
679
# Check for PF_LOCAL/PF_UNIX
680
# ==========================
681
# There should be an autoconf macro to check this???
683
# Not having this is not necessarily a fatal error. It should mean that
684
# the WinAPI interface is used instead.
685
AC_MSG_CHECKING([for PF_LOCAL])
686
AC_EGREP_CPP(PF_LOCAL,
687
[#include <sys/types.h>
688
#include <sys/socket.h>
691
AC_MSG_CHECKING([for PF_UNIX])
692
AC_EGREP_CPP(PF_UNIX, [ #include <sys/types.h>
693
#include <sys/socket.h>
697
AC_DEFINE([PF_LOCAL], PF_UNIX,
698
[PF_UNIX is available])
699
AC_DEFINE([AF_LOCAL], AF_UNIX,
700
[AF_UNIX is available])])],
703
# Check for header files
704
# ======================
705
AC_CHECK_HEADERS([fcntl.h libintl.h limits.h locale.h sys/time.h time.h \
707
[AC_MSG_ERROR([cannot find required header file])])
711
# Checks for typedefs, structures, and compiler characteristics
722
# We support various ways to present help to the user:
723
# ghelp: using the ghelp: protocol, most likely displaying in Yelp
724
# file: showing html or xhtml files in the web browser
725
# library: in the web browser loaded remotedly from library.gnome.org
727
# Note that for help using [x]html files, we can't use gnome-doc-utils.make
728
# since it doesn't currently support this. The packager will have to use
729
# gnome-doc-tool directly to build the documentation in the right format.
730
# The help files must be installed in $(pkgdatadir)/$(DOC_MODULE)/$(LOCALE) .
732
AC_MSG_CHECKING([which help method to use])
733
AC_ARG_WITH([help-method],
734
[AS_HELP_STRING([--with-help-method],[which help method to use (ghelp|file|library; default: ghelp)])],
736
[case "$with_platform" in
737
*) if test "$platform_win32" = "yes"; then
738
with_help_method=file
740
with_help_method=ghelp
743
AC_MSG_RESULT([$with_help_method])
745
case "$with_help_method" in
746
ghelp) AC_DEFINE([WITH_HELP_METHOD_GHELP],[1],[Define to use help using ghelp]) ;;
747
file) AC_DEFINE([WITH_HELP_METHOD_FILE],[1],[Define to use help using file]) ;;
748
library) AC_DEFINE([WITH_HELP_METHOD_LIBRARY],[1],[Define to use help using library.gnome.org]) ;;
749
*) AC_MSG_ERROR([unknown help method "$with_help_method"]) ;;
752
if test "$with_help_method" = "file"; then
753
AC_MSG_CHECKING([for help file format])
754
AC_ARG_WITH([help-file-format],
755
[AS_HELP_STRING([--with-help-file-format],[which file format to use for help (html|xhtml; default: html)])],
756
[case "$with_help_file_format" in
758
*) AC_MSG_ERROR([unknown help file format "$with_help_file_format"]) ;;
760
[with_help_file_format=html])
761
AC_MSG_RESULT([$with_help_file_format])
763
AC_DEFINE_UNQUOTED([HELP_FILE_FORMAT],["$with_help_file_format"],[The help file format])
766
GNOME_DOC_INIT([0.10.0],
769
if test "$with_help_method" = "ghelp"; then
770
AC_MSG_ERROR([ghelp requested, but gnome-doc-utils not found!])
773
AM_CONDITIONAL([BUILD_HELP],[test "$with_help_method" = "ghelp"])
779
AC_ARG_ENABLE([setgid],
780
[AS_HELP_STRING([--disable-setgid],
781
[Disable the use of setgid binaries])],
782
[case "${enableval}" in
785
*) AC_MSG_ERROR([bad value ${enableval} for --disable-setgid]) ;;
787
[if test "$platform_win32" = "yes"; then
795
scoredir='${localstatedir}/games'
799
if test "$enable_setgid" = "yes"; then
800
AC_DEFINE([ENABLE_SETGID],[1],[Define if use of setgid binaries is enabled])
802
AC_ARG_WITH(scores-group,
803
AS_HELP_STRING([--with-scores-group=group],
804
[Group for the high score tables and binaries]),
805
scores_group="$withval",scores_group="games")
806
AC_ARG_WITH(scores-user,
807
AS_HELP_STRING([--with-scores-user=user],
808
[User for the high score tables]),
809
scores_user="$withval",scores_user="games")
812
AM_CONDITIONAL([ENABLE_SETGID],[test "$enable_setgid" = "yes"])
815
AC_SUBST(scores_group)
816
AC_SUBST(scores_user)
819
# *********************
820
# GObject Introspection
821
# *********************
823
GOBJECT_INTROSPECTION_CHECK([0.6.3])
825
##############################################
827
AC_SUBST([AM_CPPFLAGS])
828
AC_SUBST([AM_CFLAGS])
829
AC_SUBST([AM_CXXFLAGS])
830
AC_SUBST([AM_LDFLAGS])
832
##############################################
833
##############################################
840
libgames-support/Makefile
844
gnect/pixmaps/Makefile
847
gnomine/icons/Makefile
848
gnomine/help/Makefile
850
swell-foop/help/Makefile
852
mahjongg/help/Makefile
859
gnotravex/gnotravex.desktop.in
860
gnotravex/help/Makefile
861
gnotravex/pixmaps/Makefile
863
gnotski/help/Makefile
865
glines/glines.desktop.in
867
quadrapassel/Makefile
868
quadrapassel/pix/Makefile
869
quadrapassel/help/Makefile
871
gnobots2/help/Makefile
873
gnibbles/help/Makefile
874
gnibbles/pix/Makefile
876
glchess/data/Makefile
877
glchess/data/pieces/Makefile
878
glchess/data/pieces/3d/Makefile
879
glchess/data/pieces/fancy/Makefile
880
glchess/data/pieces/simple/Makefile
881
glchess/data/textures/Makefile
882
glchess/gnuchess/Makefile
883
glchess/help/Makefile
885
gnome-sudoku/Makefile
886
gnome-sudoku/src/Makefile
887
gnome-sudoku/src/lib/Makefile
888
gnome-sudoku/src/lib/defs.py
889
gnome-sudoku/src/lib/gtk_goodies/Makefile
890
gnome-sudoku/data/Makefile
891
gnome-sudoku/images/Makefile
892
gnome-sudoku/help/Makefile
893
swell-foop/data/themes/Makefile
894
swell-foop/data/themes/colors/Makefile
895
swell-foop/data/themes/shapesandcolors/Makefile
896
swell-foop/swell-foop.desktop.in
897
swell-foop/src/Makefile
898
quadrapassel/quadrapassel.desktop.in
899
gnobots2/gnobots2.desktop.in
900
gnibbles/gnibbles.desktop.in
901
gnotski/gnotski.desktop.in
902
glchess/glchess.desktop.in
903
mahjongg/mahjongg.desktop.in
904
gtali/gtali.desktop.in
905
gnome-sudoku/gnome-sudoku.desktop.in
906
iagno/iagno.desktop.in
907
gnect/data/gnect.desktop.in
908
gnomine/gnomine.desktop.in
910
lightsoff/help/Makefile
911
lightsoff/lightsoff.desktop.in
912
lightsoff/data/themes/Makefile
913
lightsoff/data/themes/tango/Makefile
914
lightsoff/data/themes/up/Makefile
915
lightsoff/src/Makefile
922
Source code location: ${srcdir}
925
Platform: ${with_platform}"
927
if test -n "$with_platform_variant"; then
929
Platform variant: ${with_platform_variant}"
933
Games to be compiled: ${gamelist}
935
GTK+ API version: ${GTK_API_VERSION}
936
Help method: ${with_help_method} ${with_help_file_format}
937
Using SM Client: ${with_smclient}
938
Using RSVG: ${have_rsvg}
939
Using SQLite: ${have_sqlite}
940
Card theme formats: ${with_card_theme_formats}
941
Default theme format: ${with_default_card_theme_format}
942
Default theme: ${with_default_card_theme}
943
Sound support: ${with_sound}
944
Use setgid binaries: ${enable_setgid}
945
Scores user: ${scores_user}
946
Scores & setgid group: ${scores_group}
947
Binreloc: ${enable_binreloc}
948
Introspection data: ${enable_introspection}
951
if grep "$scores_group:" /etc/group > /dev/null; then
955
echo "Warning: The $scores_group group does not exist. Installation will"
956
echo " succeed, but high score logging will not work. To specify a"
957
echo " different group use the --with-scores-group option."