From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20795 invoked by alias); 14 Dec 2002 20:25:03 -0000 Mailing-List: contact dominion-hackers-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: dominion-hackers-owner@sources.redhat.com Received: (qmail 20787 invoked from network); 14 Dec 2002 20:25:02 -0000 Received: from unknown (HELO mailrelay1.lanl.gov) (128.165.4.101) by sources.redhat.com with SMTP; 14 Dec 2002 20:25:02 -0000 Received: from cic-mail.lanl.gov (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (8.12.3/8.12.3/(ccn-5)) with ESMTP id gBEKP29i032465 for ; Sat, 14 Dec 2002 13:25:02 -0700 Received: from smoogen1.lanl.gov (smoogen1.lanl.gov [128.165.65.7]) by cic-mail.lanl.gov (8.12.3/8.12.3/(ccn-5)) with ESMTP id gBEKP1mN021972 for ; Sat, 14 Dec 2002 13:25:02 -0700 Subject: Updates to Makefile.am/configure.ac for 7.3/8.0 From: Stephen Smoogen To: dominion-hackers@sources.redhat.com Content-Type: multipart/mixed; boundary="=-goNU6sHwNHi6K8sjN5L/" Date: Sat, 14 Dec 2002 12:25:00 -0000 Message-Id: <1039897502.13909.1387.camel@smoogen1.lanl.gov> Mime-Version: 1.0 X-SW-Source: 2002-q4/txt/msg00003.txt.bz2 --=-goNU6sHwNHi6K8sjN5L/ Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 749 Have made a new configure.am and some changes to Makefile.am to allow it to compile on a RHL 8.0 machine. This requires autoconf-2.53 and automake-1.6 for it to complete. Both are available with RHL-7.3 also. Steps for compilation: save Makefile.am and configure.ac to /tmp tar xzvf dominion-2.6b.tgz mv dominion-2.6b dominion-2.6c-alpha cd dominion-2.6c-alpha rm acconfig.h configure.in cp /tmp/Makefile.am . cp /tmp/configure.ac . autoreconf-2.53 -ivh then make and install.. working on the next set of things to clear up some old fgets and such. --------------------------- -- Stephen John Smoogen smoogen@lanl.gov Los Alamos National Labrador CCN-2 B-Schedule PH: Ta-03 SM-261 MailStop P208 DP 17U Los Alamos, NM 87545 --=-goNU6sHwNHi6K8sjN5L/ Content-Disposition: attachment; filename=Makefile.am Content-Transfer-Encoding: quoted-printable Content-Type: text/x-makefile; name=Makefile.am; charset=ISO-8859-1 Content-length: 3669 ## Process this file with automake to produce Makefile.in bin_PROGRAMS =3D dominion dom_make dom_add dom_update dom_print bin_SCRIPTS =3D addnews.sh make-new-world.sh info_TEXINFOS =3D dominion.texi dominion_SOURCES =3D dominion.c world.c nation.c user.c ext.c file.c misc.c= \ init.c budget.c techno.c commands.c help.c menus.c diplomacy.c \ reports.c spy.c army.c armylib.c mail.c diplolib.c maglib.c \ cur_stuff.c news.c c_news.c economy.c transport.c spells.c \ spelllib.c root.c cinfo.c construct.c int_mail.c movement.c \ bonds.c bondslib.c cn_params.c dom_make_SOURCES =3D makeworld.c file.c misc.c ext.c armylib.c diplolib.c \ world.c economy.c movement.c bondslib.c cn_params.c dom_add_SOURCES =3D addnation.c file.c misc.c ext.c armylib.c diplolib.c \ world.c economy.c movement.c bondslib.c cn_params.c dom_update_SOURCES =3D update.c file.c misc.c nation.c armylib.c ext.c mail= .c \ techno.c battle.c diplolib.c world.c maglib.c cn_params.c cn.c \ economy.c spelllib.c news.c movement.c cnlib.c bondslib.c dom_print_SOURCES =3D printmap.c file.c misc.c nation.c armylib.c ext.c mag= lib.c\ diplolib.c world.c economy.c movement.c spelllib.c bondslib.c \ cn_params.c BUILT_SOURCES =3D config.h noinst_HEADERS =3D army.h common.h cur_stuff.h dominion.h proto.h bonds.h \ decl.h misc.h cn.h costs.h dom_config.h news.h # The non-source data files are: magic stuff, misc and doc stuff magic_DATA =3D mag_Aule mag_Demonology mag_Insects mag_Necromancy mag_Unity= \ mag_Avian mag_Diana mag_Master mag_Neptune mag_Yavanna mag_Chess \ mag_Inferno mag_Monsters mag_Time mag_orders magicdir =3D $(libdir)/dominion/magic misc_DATA =3D races cns cns.small army_types spirit_types techno_levels miscdir =3D $(libdir)/dominion/misc # play_doc is the documentation that is used while playing # play_doc_DATA =3D dominion.info info_intro refcard play_doc_DATA =3D dominion.info info_intro refcard play_docdir =3D $(libdir)/dominion/doc # the next rule is to create certain subdirectories that don't really get # any files put in them by default install-data-local: -$(mkinstalldirs) $(libdir)/dominion/exec -$(mkinstalldirs) $(libdir)/dominion/options -$(mkinstalldirs) $(libdir)/dominion/params -$(mkinstalldirs) $(libdir)/dominion/mail -$(mkinstalldirs) $(libdir)/dominion/news man_MANS =3D dominion.6 EXTRA_DIST =3D config.rpath mkinstalldirs config.rpath MACHINES TASKS dom= inion.tex gm.tex dominion.info gm.info \ tabular.sty latexinfo.sty addnews.sh make-new-world.sh $(DATA) #CFLAGS =3D -DVERSION=3D\"$(VERSION)\" -DDEF_LIBDIR=3D\"$(libdir)/dominion\= " -g CFLAGS =3D -DDEF_LIBDIR=3D\"$(libdir)/dominion\" -g gm.info: gm.tex echo "You cannot make gm.info from this Makefile" echo "Please contact the Dominion authors, or get the latexinfo" echo "package." #dominion.info: dominion.tex # echo "You cannot make dominion.info from this Makefile" # echo "Please contact the Dominion authors, or get the latexinfo" # echo "package." gm.dvi: gm.tex latex gm.tex latex gm.tex # run latex twice to get the indices right #dominion.dvi: dominion.tex # latex dominion.tex # latex dominion.tex # run latex twice to get the indices right gm.ps: gm.dvi dvips gm.dvi #dominion.ps: dominion.dvi # dvips dominion.dvi # this rule makes a new world; [FIXME] it should be replaced with a # shell script eventually new-world: all install @echo @echo 'all data cleared, and lib files installed' @echo ./dom_make -d $(libdir)/dominion @echo 'newsgroup ' News ' created automatically' -mkdir $(libdir)/dominion/news/News @echo News ' 1 0 0' > $(libdir)/dominion/news/groups /bin/sh ./addnews.sh $(libdir)/dominion/news groups --=-goNU6sHwNHi6K8sjN5L/ Content-Disposition: attachment; filename=configure.ac Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; name=configure.ac; charset=ISO-8859-1 Content-length: 2468 dnl configure.in script for the dominion program dnl original author: Mark Galassi dnl modified by: Stephen J Smoogen dnl license: GNU GENERAL PUBLIC LICENSE version 2 dnl ------------------------------------------------------------- dnl Process this file with autoconf to produce the configure script. dnl AC_INIT([dominion],[2.6c-0.1],[smoogen@lanl.gov],[dominion-2.6c-0.1.tar.gz]) dnl Unique file to test on and end result config file AC_CONFIG_SRCDIR([dominion.c]) AM_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE dnl Require Autoconf-2.53 AC_PREREQ(2.53) dnl Copyright notice AC_COPYRIGHT(GPL v2.0) dnl Revision notice AC_REVISION($Revision: 0.10 $) dnl turn off maintainer removal of configure script dnl AM_MAINTAINER_MODE dnl ------------------------------------------------------------- dnl locate C compiler and Make tools AC_PROG_CC AC_PROG_MAKE_SET AC_PROG_INSTALL dnl not currently needed but will be needed when client and server are dnl split apart and common libraries are needed dnl AC_PROG_LIBTOOL dnl ------------------------------------------------------------- dnl look for posix compliance on some platforms AC_ISC_POSIX AC_DEFINE([PREFIX], "${prefix}", [define for path prefix]) AC_DEFINE([INFO_PATH], "${prefix}/info", [define for path info]) AC_DEFINE([INFO_INTRO], "${prefix}/lib/dominion/doc/info_intro", [define fo= r intro]) AC_DEFINE([VERSION], "$VERSION", [define for version]) AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) dnl ------------------------------------------------------------- dnl Check for programs dnl Email programs AC_CHECK_PROGS(MAIL_PROG, Mail mailx elm pine) dnl ------------------------------------------------------------- dnl Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([fcntl.h limits.h netinet/in.h stdlib.h string.h strings.h= unistd.h]) dnl ------------------------------------------------------------- dnl Check for typedefs, structures, and compiler characteristics. dnl Checks for libraries. AC_CHECK_LIB(termcap, main) AC_CHECK_LIB(ncurses, main) AC_CHECK_LIB(curses, main) AC_CHECK_LIB(m, main) AC_CHECK_LIB(crypt, main) dnl ------------------------------------------------------------- dnl Check for library functions AC_FUNC_CHOWN AC_FUNC_FORK AC_FUNC_MALLOC AC_FUNC_VPRINTF AC_TYPE_SIGNAL AC_CHECK_FUNCS([alarm crypt getcwd gethostname getpass getwd memset pow sqr= t strchr strrchr strstr srandom srand48]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT --=-goNU6sHwNHi6K8sjN5L/--