From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30487 invoked by alias); 2 Apr 2002 19:56:02 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30480 invoked from network); 2 Apr 2002 19:56:01 -0000 Received: from unknown (HELO nerodeguest) (24.161.107.98) by sources.redhat.com with SMTP; 2 Apr 2002 19:56:01 -0000 Received: from neroden by nerodeguest with local (Exim 3.35 #1 (Debian)) id 16sUO7-0002h6-00 for ; Tue, 02 Apr 2002 14:56:15 -0500 Date: Tue, 02 Apr 2002 11:56:00 -0000 To: gdb-patches@sources.redhat.com Subject: spu autoconfiscation patch Message-ID: <20020402195614.GA10282@doctormoo.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i From: Nathanael Nerode X-SW-Source: 2002-04/txt/msg00031.txt.bz2 Reposting... 'configure' is not included in the patch below because I couldn't get cvs diff to handle a new file. It's generated from configure.in anyway. The whole files are probably easier to read than the diffs. I did not attempt to cure any bugs or portability issues in SPU, as I do not feel that I am a competent enough C programmer to do so; this is just enough that the 'utils' and top level autoconfiscations will be possible. With this patch, spu configures, builds, and has no behavior changes on my Debian woody system (i686-pc-linux-gnu). (The programs which SPU generates are identical before and after.) Apr 2 2002 Nathanael Nerode * utils/spu/configure.in: autoconfiscated. * utils/spu/Makefile.in: autoconfiscated. * utils/spu/configure: new autoconf-generated file. Index: Makefile.in =================================================================== RCS file: /cvs/src/src/utils/spu/Makefile.in,v retrieving revision 1.1.1.1 diff -r1.1.1.1 Makefile.in 1c1 < # Copyright 1993, 1994 Free Software Foundation, Inc. --- > # Copyright 1993, 1994, 2002 Free Software Foundation, Inc. 3c3 < # This file is part of GNU CC. --- > # This file is part of SPU. 17a18 > VPATH = @srcdir@ 19c20 < prefix = /usr/local --- > SHELL = /bin/sh 21,25c22,33 < program_transform_name = < exec_prefix = $(prefix) < bindir = $(exec_prefix)/bin < libdir = $(exec_prefix)/lib < tooldir = $(libdir)/$(target_alias) --- > prefix = @prefix@ > exec_prefix = @exec_prefix@ > bindir = @bindir@ > libdir = @libdir@ > datadir = @datadir@ > mandir = @mandir@ > infodir = @infodir@ > includedir = @includedir@ > srcdir = @srcdir@ > > CC = @CC@ > CFLAGS = @CFLAGS@ 27,28d34 < datadir = $(prefix)/share < mandir = $(prefix)/man 38,41c44 < infodir = $(prefix)/info < includedir = $(prefix)/include < < SHELL = /bin/sh --- > tooldir = $(libdir)/$(target_alias) 43c46 < INSTALL = install -c --- > INSTALL = @INSTALL@ 47,54d49 < AR = ar < AR_FLAGS = qv < RANLIB = ranlib < < # Directory containing source files. Don't clean up the spacing, < # this exact string is matched for by the "configure" script. < srcdir = . < 57,58c52 < INCLUDE_DIR = ${srcdir}/../../include < INCLUDE_DEP = $$(INCLUDE_DIR) --- > INCLUDE_DIR = ${srcdir}/../../include 67,71d60 < # CFLAGS is specifically reserved for setting from the command line < # when running make. I.E. "make CFLAGS=-Wmissing-prototypes". < < CFLAGS = -g < 74,96c63 < ALL_CFLAGS = $(CFLAGS) $(INCLUDE_CFLAGS) < < # None of the things in CFLAGS will do any harm, and on some systems < # (e.g. SunOS4) it is important to use the MH_CFLAGS. < < LDFLAGS = $(CFLAGS) < < # Where is the "-liberty" library, containing getopt and obstack? < < LIBIBERTY_DIR = ${srcdir}/../../libiberty < LIBIBERTY = ./../../libiberty${subdir}/libiberty.a < < # Host and target-dependent makefile fragments come in here. < #### < # End of host and target-dependent makefile fragments < < # Prevent Sun make from putting in the machine type. Setting < # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1. < < .c.o: < ${CC} -c ${ALL_CFLAGS} $< < < OFILES = spu.o --- > ALL_CFLAGS = @DEFS@ $(INCLUDE_CFLAGS) $(CFLAGS) 104,106c71 < install-info: < < spu: ${OFILES} --- > spu: spu.o 109c74,77 < spu.o: spu.c --- > # Prevent Sun make from putting in the machine type. Setting > # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1. > spu.o: $(srcdir)/spu.c > ${CC} -c ${ALL_CFLAGS} $(srcdir)/spu.c 113c81 < clean: mostlyclean --- > clean: mostlyclean 116,117c84,87 < distclean: clean < rm -f Makefile config.status --- > distclean: clean > rm -f Makefile config.status config.log config.cache > > maintainer-clean realclean: distclean 119c89,90 < maintainer-clean realclean: distclean --- > Makefile: $(srcdir)/Makefile.in config.status > ./config.status 121,122c92,93 < Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag) < $(SHELL) config.status --- > config.status: $(srcdir)/configure > ./config.status --recheck 124c95,96 < force: --- > $(srcdir)/configure: $(srcdir)/configure.in > cd $(srcdir) && autoconf Index: configure.in =================================================================== RCS file: /cvs/src/src/utils/spu/configure.in,v retrieving revision 1.1.1.1 diff -r1.1.1.1 configure.in 1,4c1 < # This file is a shell script fragment that supplies the information < # necessary to tailor a template configure script into the configure < # script appropriate for this directory. For more information, check < # any existing configure script. --- > # Process this file with autoconf to produce a configure script. 6,7c3 < srctrigger=spu.c < srcname="spu" --- > # Copyright 2002 Free Software Foundation, Inc. 9c5 < # per-host: --- > # This file is part of SPU. 11c7,19 < # per-target: --- > # This program is free software; you can redistribute it and/or modify > # it under the terms of the GNU General Public License as published by > # the Free Software Foundation; either version 2 of the License, or > # (at your option) any later version. > # > # This program is distributed in the hope that it will be useful, > # but WITHOUT ANY WARRANTY; without even the implied warranty of > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > # GNU General Public License for more details. > # > # You should have received a copy of the GNU General Public License > # along with this program; if not, write to the Free Software > # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 13c21,40 < # post-target: --- > AC_INIT([spu.c]) > > # Checks for programs. > AC_PROG_CC > AC_PROG_INSTALL > > # Checks for header files. > # The program doesn't actually handle failure. > #AC_HEADER_STDC > #AC_CHECK_HEADERS([stdlib.h string.h]) > > # Checks for typedefs, structures, and compiler characteristics. > AC_C_CONST > > # Checks for library functions. > # The program doesn't actually handle failure. > #AC_FUNC_MALLOC > #AC_CHECK_FUNCS([memset strtol]) > > AC_OUTPUT([Makefile])