[gnome-games] build: Default --enable-setgid to off on win32



commit f5017a08c7eccf72a8ffb801001f32180b307374
Author: Christian Persch <chpe gnome org>
Date:   Sat Jul 11 00:55:55 2009 +0200

    build: Default --enable-setgid to off on win32
    
    And add a #define and an AM conditional tracking --enable-setgid.
    Part of bug #445270.

 configure.in |   42 +++++++++++++++++++++++++++++-------------
 1 files changed, 29 insertions(+), 13 deletions(-)
---
diff --git a/configure.in b/configure.in
index 972d132..841a680 100644
--- a/configure.in
+++ b/configure.in
@@ -1109,21 +1109,37 @@ AC_ARG_ENABLE([setgid],
     yes) setgid=true ;;
     no)  setgid=false ;;
     *) AC_MSG_ERROR([bad value ${enableval} for --disable-setgid]) ;;
-   esac],[setgid=true])
-AC_SUBST(setgid)
+   esac],
+  [if test "$platform_win32" = "yes"; then
+     enable_setgid=no
+     setgid=false
+   else
+     enable_setgid=yes
+     setgid=true
+   fi])
+
+scoredir='${localstatedir}/games'
+scores_group=games
+scores_user=games
+
+if test "$enable_setgid" = "yes"; then
+  AC_DEFINE([ENABLE_SETGID],[1],[Define if use of setgid binaries is enabled])
+
+  AC_ARG_WITH(scores-group,
+    AC_HELP_STRING([--with-scores-group=group],
+      [Group for the high score tables and binaries]),
+    scores_group="$withval",scores_group="games")
+  AC_ARG_WITH(scores-user,
+    AC_HELP_STRING([--with-scores-user=user],
+      [User for the high score tables]),
+    scores_user="$withval",scores_user="games")
+fi
+
+AM_CONDITIONAL([ENABLE_SETGID],[test "$enable_setgid" = "yes"])
 
-AC_ARG_WITH(scores-group,
-  AC_HELP_STRING([--with-scores-group=group],
-    [Group for the high score tables and binaries]),
-  scores_group="$withval",scores_group="games")
+AC_SUBST(setgid)
 AC_SUBST(scores_group)
-AC_ARG_WITH(scores-user,
-  AC_HELP_STRING([--with-scores-user=user],
-    [User for the high score tables]),
-  scores_user="$withval",scores_user="games")
 AC_SUBST(scores_user)
-
-scoredir='${localstatedir}/games'
 AC_SUBST(scoredir)
 
 ##############################################
@@ -1266,7 +1282,7 @@ echo "
     Default theme format:  ${with_default_card_theme_format}
     Default theme:         ${with_default_card_theme}
     Sound support:         ${with_sound}
-    Use setgid binaries:   ${setgid}
+    Use setgid binaries:   ${enable_setgid}
     Scores user:           ${scores_user}
     Scores & setgid group: ${scores_group}
     Tests enabled:         ${enable_tests}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]