From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Bad configure check Date: Thu, 25 Apr 2002 16:19:46 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1019748919 8046 127.0.0.1 (25 Apr 2002 15:35:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 25 Apr 2002 15:35:19 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 170lHD-00025Y-00 for ; Thu, 25 Apr 2002 17:35:19 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 170lJQ-0004xC-00 for ; Thu, 25 Apr 2002 17:37:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 170k9f-0000iA-00; Thu, 25 Apr 2002 10:23:27 -0400 Original-Received: from ns.suse.de ([213.95.15.193] helo=Cantor.suse.de) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 170k6a-0000U1-00 for ; Thu, 25 Apr 2002 10:20:16 -0400 Original-Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id 443641EC28; Thu, 25 Apr 2002 16:19:53 +0200 (MEST) X-Authentication-Warning: sykes.suse.de: schwab set sender to schwab@suse.de using -f Original-To: Colin Walters X-Yow: I'm shaving!! I'M SHAVING!! Original-Lines: 31 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3263 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3263 This configure check is bad: AC_MSG_CHECKING([for access to game group "$gameuser"]) rm -f conf$$chown.file touch conf$$chown.file dnl If we can't chown a file to group games, then the users dnl can't share scores. if chown "$gameuser" conf$$chown.file 1>/dev/null 2>&1; then AC_MSG_RESULT([yes]) if test "$gamedir" = "yes"; then gamedir="${localstatedir}/games/emacs" fi eval tgamedir=\"$gamedir\" AC_DEFINE_UNQUOTED(HAVE_SHARED_GAME_DIR, "$tgamedir", [Define to the name of the shared game directory.]) else AC_MSG_RESULT([no]) gamedir=no fi The ability to do chown depends on the environment, this cannot be checked at configure time. The user who runs configure is usually different to the user who runs Emacs. The test must be performed at runtime. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."