view arogue5/mach_dep.h @ 221:71cb5b647f2b

Rogue V5: remove troublesome automatic platform detection. configure.ac used AC_CANONICAL_SYSTEM to guess the GNU system description triplets. The target description was substituted into the Makefile and formatted into the filename for the binary distribution tarball. But 'target' is only intended for cross-compilers. 'host_os' might have been a better choice. The tarball filename can still be changed manually, by running make with an argument of 'DESTSYS=systemname'. Cross-compiling may be more difficult now, but I am not certain that it worked properly previously, and due to pending autoconf changes, it was likely to break anyway. The top-level config.guess and config.sub are no longer needed, but they may reappear if better support for cross-compilation is added.
author John "Elwin" Edwards
date Fri, 12 Feb 2016 14:25:47 -0500
parents dfeed24bb616
children
line wrap: on
line source

/*
 * machine dependicies
 *
 * Advanced Rogue
 * Copyright (C) 1984, 1985 Michael Morgan, Ken Dalka and AT&T
 * All rights reserved.
 *
 * Based on "Rogue: Exploring the Dungeons of Doom"
 * Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman
 * All rights reserved.
 *
 * See the file LICENSE.TXT for full copyright and licensing information.
 */

/*
 * Things that get set in config.h have been #if 0'd out.  You should only
 * need to set them here if you don't use configure and want to enable those
 * features.
 */

/*
 * define that the wizard commands exist
 */
#if 0
#undef WIZARD	/*1*/
#endif

/*
 * define if you want to limit scores to one per class per userid
 */
#if 0
#undef LIMITSCORE 
#endif

/*
 * where scorefile should live
 */
#if 0
#define SCOREFILE	"/var/local/games/roguelike/arogue5.scr"
#define LOGFILE		"/var/local/games/roguelike/arogue5.log"
#define SAVEDIR		"/var/local/games/roguelike/arogue5save/"
#endif

/*
 * Variables for checking to make sure the system isn't too loaded
 * for people to play
 */

#if 0
#undef	MAXUSERS	/*40*/	/* max number of users for this game */
#undef	MAXLOAD		/*40*/	/* 10 * max 15 minute load average */
#endif

#undef	CHECKTIME	/*15*/	/* number of minutes between load checks */
				/* if not defined checks are only on startup */

#ifdef MAXLOAD
#define	LOADAV			/* defined if rogue should provide loadav() */

#ifdef LOADAV
#define	NAMELIST	"/unix"	/* where the system namelist lives */
#endif
#endif

#ifdef MAXUSERS
#define	UCOUNT			/* defined if rogue should provide ucount() */

#ifdef UCOUNT
#define UTMP	"/etc/utmp"	/* where utmp file lives */
#endif
#endif

#undef AUTHOR /*212*/

/*
 * define the current author of the program for "special handling"
 */
#ifndef AUTHOR
#define AUTHOR 0	/* Default to root if not specified above */
#endif