Browse Source
* rdi-share/Makefile.am, rdi-share/aclocal.m4,
rdi-share/configure: New files.
* rdi-share/configure.in: Rewritten to be an autoconf input file.
* rdi-share/Makefile.in, rdi-share/configure: Generated by
automake/autoconf.
* rdi-share/dbg_hif.h, etherdrv.c, hostchan.c: Use autoconf tests
to check environment.
automake/autoconfiscate rdi-share. We don't use the checks that autoconf
provides too much for now, but it'll be easier to use them if any problems
crop up in the future. (rdi-share/ is foreign code and it probably isn't
worth spending any more time than necessary messing with it.)
gdb-4_18-branch
10 changed files with 2571 additions and 174 deletions
@ -0,0 +1,19 @@ |
|||
## Process this file with automake to generate Makefile.in
|
|||
|
|||
AUTOMAKE_OPTIONS = cygnus |
|||
|
|||
noinst_LIBRARIES = libangsd.a |
|||
|
|||
libangsd_a_SOURCES = ardi.c bytesex.c crc.c devsw.c drivers.c etherdrv.c \
|
|||
hostchan.c hsys.c logging.c msgbuild.c params.c rx.c \
|
|||
serdrv.c serpardr.c tx.c unixcomm.c |
|||
|
|||
noinst_HEADERS = adp.h adperr.h angel.h ardi.h armdbg.h buffers.h bytesex.h \
|
|||
chandefs.h channels.h chanpriv.h crc.h dbg_conf.h dbg_cp.h \
|
|||
dbg_hif.h dbg_rdi.h devclnt.h devices.h devsw.h drivers.h \
|
|||
endian.h ethernet.h host.h hostchan.h hsys.h logging.h \
|
|||
msgbuild.h params.h rxtx.h sys.h unixcomm.h |
|||
|
|||
EXTRA_DIST = README.CYGNUS |
|||
|
|||
libangsd_a_INCLUDES = -DRETRANS DARM_RELEASE='"Berkeley Licence for Cygnus"' |
|||
@ -1,165 +1,299 @@ |
|||
prefix = /usr/local |
|||
|
|||
program_transform_name = |
|||
exec_prefix = $(prefix) |
|||
bindir = $(exec_prefix)/bin |
|||
libdir = $(exec_prefix)/lib |
|||
tooldir = $(libdir)/$(target_alias) |
|||
|
|||
datadir = $(prefix)/share |
|||
mandir = $(prefix)/man |
|||
man1dir = $(mandir)/man1 |
|||
man2dir = $(mandir)/man2 |
|||
man3dir = $(mandir)/man3 |
|||
man4dir = $(mandir)/man4 |
|||
man5dir = $(mandir)/man5 |
|||
man6dir = $(mandir)/man6 |
|||
man7dir = $(mandir)/man7 |
|||
man8dir = $(mandir)/man8 |
|||
man9dir = $(mandir)/man9 |
|||
infodir = $(prefix)/info |
|||
includedir = $(prefix)/include |
|||
|
|||
ARM_RELEASE='"Berkeley Licence for Cygnus"' |
|||
|
|||
SHELL = /bin/sh |
|||
|
|||
INSTALL = `cd $(srcdir)/../..;pwd`/install.sh -c |
|||
INSTALL_PROGRAM = $(INSTALL) |
|||
INSTALL_DATA = $(INSTALL) |
|||
INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)' |
|||
INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1 |
|||
|
|||
# Makefile.in generated automatically by automake 1.2e from Makefile.am
|
|||
|
|||
# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
|||
# This Makefile.in is free software; the Free Software Foundation
|
|||
# gives unlimited permission to copy and/or distribute it,
|
|||
# with or without modifications, as long as this notice is preserved.
|
|||
|
|||
# This program is distributed in the hope that it will be useful,
|
|||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|||
# PARTICULAR PURPOSE.
|
|||
|
|||
|
|||
SHELL = @SHELL@ |
|||
|
|||
srcdir = @srcdir@ |
|||
top_srcdir = @top_srcdir@ |
|||
VPATH = @srcdir@ |
|||
prefix = @prefix@ |
|||
exec_prefix = @exec_prefix@ |
|||
|
|||
bindir = @bindir@ |
|||
sbindir = @sbindir@ |
|||
libexecdir = @libexecdir@ |
|||
datadir = @datadir@ |
|||
sysconfdir = @sysconfdir@ |
|||
sharedstatedir = @sharedstatedir@ |
|||
localstatedir = @localstatedir@ |
|||
libdir = @libdir@ |
|||
infodir = @infodir@ |
|||
mandir = @mandir@ |
|||
includedir = @includedir@ |
|||
oldincludedir = /usr/include |
|||
|
|||
pkgdatadir = $(datadir)/@PACKAGE@ |
|||
pkglibdir = $(libdir)/@PACKAGE@ |
|||
pkgincludedir = $(includedir)/@PACKAGE@ |
|||
|
|||
top_builddir = . |
|||
|
|||
ACLOCAL = @ACLOCAL@ |
|||
AUTOCONF = @AUTOCONF@ |
|||
AUTOMAKE = @AUTOMAKE@ |
|||
AUTOHEADER = @AUTOHEADER@ |
|||
|
|||
INSTALL = @INSTALL@ |
|||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|||
INSTALL_DATA = @INSTALL_DATA@ |
|||
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
|||
transform = @program_transform_name@ |
|||
|
|||
NORMAL_INSTALL = : |
|||
PRE_INSTALL = : |
|||
POST_INSTALL = : |
|||
NORMAL_UNINSTALL = : |
|||
PRE_UNINSTALL = : |
|||
POST_UNINSTALL = : |
|||
CC = @CC@ |
|||
EXEEXT = @EXEEXT@ |
|||
MAINT = @MAINT@ |
|||
MAKEINFO = @MAKEINFO@ |
|||
PACKAGE = @PACKAGE@ |
|||
RANLIB = @RANLIB@ |
|||
VERSION = @VERSION@ |
|||
|
|||
AUTOMAKE_OPTIONS = cygnus |
|||
|
|||
noinst_LIBRARIES = libangsd.a |
|||
|
|||
libangsd_a_SOURCES = ardi.c bytesex.c crc.c devsw.c drivers.c etherdrv.c \
|
|||
hostchan.c hsys.c logging.c msgbuild.c params.c rx.c \
|
|||
serdrv.c serpardr.c tx.c unixcomm.c |
|||
|
|||
noinst_HEADERS = adp.h adperr.h angel.h ardi.h armdbg.h buffers.h bytesex.h \
|
|||
chandefs.h channels.h chanpriv.h crc.h dbg_conf.h dbg_cp.h \
|
|||
dbg_hif.h dbg_rdi.h devclnt.h devices.h devsw.h drivers.h \
|
|||
endian.h ethernet.h host.h hostchan.h hsys.h logging.h \
|
|||
msgbuild.h params.h rxtx.h sys.h unixcomm.h |
|||
|
|||
EXTRA_DIST = README.CYGNUS |
|||
|
|||
libangsd_a_INCLUDES = -DRETRANS DARM_RELEASE='"Berkeley Licence for Cygnus"' |
|||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
|||
mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs |
|||
CONFIG_CLEAN_FILES = |
|||
LIBRARIES = $(noinst_LIBRARIES) |
|||
|
|||
|
|||
DEFS = @DEFS@ -I. -I$(srcdir) |
|||
CPPFLAGS = @CPPFLAGS@ |
|||
LDFLAGS = @LDFLAGS@ |
|||
LIBS = @LIBS@ |
|||
libangsd_a_LIBADD = |
|||
libangsd_a_OBJECTS = ardi.o bytesex.o crc.o devsw.o drivers.o \
|
|||
etherdrv.o hostchan.o hsys.o logging.o msgbuild.o params.o rx.o \ |
|||
serdrv.o serpardr.o tx.o unixcomm.o |
|||
AR = ar |
|||
AR_FLAGS = qv |
|||
RANLIB = ranlib |
|||
|
|||
LD = ld |
|||
|
|||
# If you are compiling with GCC, make sure that either 1) You use the
|
|||
# -traditional flag, or 2) You have the fixed include files where GCC
|
|||
# can reach them. Otherwise the ioctl calls in inflow.c
|
|||
# will be incorrectly compiled. The "fixincludes" script in the gcc
|
|||
# distribution will fix your include files up.
|
|||
#CC=cc
|
|||
#CC=gcc -traditional
|
|||
GCC=gcc |
|||
|
|||
# Directory containing source files. Don't clean up the spacing,
|
|||
# this exact string is matched for by the "configure" script.
|
|||
srcdir = . |
|||
CFLAGS = @CFLAGS@ |
|||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
|||
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ |
|||
HEADERS = $(noinst_HEADERS) |
|||
|
|||
# It is also possible that you will need to add -I/usr/include/sys to the
|
|||
# CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
|
|||
# is where it should be according to Posix).
|
|||
DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in |
|||
|
|||
# Set this up with gcc if you have gnu ld and the loader will print out
|
|||
# line numbers for undefinded refs.
|
|||
#CC-LD=gcc -static
|
|||
CC-LD=${CC} |
|||
|
|||
# All the includes used for CFLAGS and for lint.
|
|||
# -I. for config files.
|
|||
# -I${srcdir} possibly for regex.h also.
|
|||
# -I${srcdir}/config for more generic config files.
|
|||
INCLUDE_CFLAGS = -I. -I${srcdir} |
|||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) |
|||
|
|||
# M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
|
|||
# from the config/ directory.
|
|||
GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS} -DRETRANS -DARM_RELEASE=$(ARM_RELEASE) |
|||
#PROFILE_CFLAGS = -pg
|
|||
TAR = tar |
|||
GZIP = --best |
|||
SOURCES = $(libangsd_a_SOURCES) |
|||
OBJECTS = $(libangsd_a_OBJECTS) |
|||
|
|||
# CFLAGS is specifically reserved for setting from the command line
|
|||
# when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
|
|||
CFLAGS = -g |
|||
default: all |
|||
|
|||
# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
|
|||
INTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} \
|
|||
${BFD_CFLAGS} ${MMALLOC_CFLAGS} ${INCLUDE_CFLAGS} |
|||
.SUFFIXES: |
|||
.SUFFIXES: .S .c .o .s |
|||
$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) |
|||
cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile |
|||
|
|||
# LDFLAGS is specifically reserved for setting from the command line
|
|||
# when running make.
|
|||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
|||
cd $(top_builddir) \
|
|||
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
|||
|
|||
# Host and target-dependent makefile fragments come in here.
|
|||
####
|
|||
# End of host and target-dependent makefile fragments
|
|||
$(ACLOCAL_M4): @MAINT@ configure.in |
|||
cd $(srcdir) && $(ACLOCAL) |
|||
|
|||
# All source files that go into linking GDB remote server.
|
|||
config.status: $(srcdir)/configure |
|||
$(SHELL) ./config.status --recheck |
|||
$(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) |
|||
cd $(srcdir) && $(AUTOCONF) |
|||
|
|||
SFILES = $(srcdir)/ |
|||
mostlyclean-noinstLIBRARIES: |
|||
|
|||
DEPFILES = |
|||
clean-noinstLIBRARIES: |
|||
-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) |
|||
|
|||
SOURCES = $(SFILES) $(ALLDEPFILES) |
|||
TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS} |
|||
distclean-noinstLIBRARIES: |
|||
|
|||
OBS = hostchan.o drivers.o devsw.o rx.o tx.o params.o hsys.o crc.o \
|
|||
logging.o msgbuild.o ardi.o serdrv.o serpardr.o etherdrv.o bytesex.o \ |
|||
unixcomm.o |
|||
maintainer-clean-noinstLIBRARIES: |
|||
|
|||
# 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 ${INTERNAL_CFLAGS} $< |
|||
$(COMPILE) -c $< |
|||
|
|||
.s.o: |
|||
$(COMPILE) -c $< |
|||
|
|||
.S.o: |
|||
$(COMPILE) -c $< |
|||
|
|||
mostlyclean-compile: |
|||
-rm -f *.o core *.core |
|||
|
|||
clean-compile: |
|||
|
|||
distclean-compile: |
|||
-rm -f *.tab.c |
|||
|
|||
maintainer-clean-compile: |
|||
|
|||
libangsd.a: $(libangsd_a_OBJECTS) $(libangsd_a_DEPENDENCIES) |
|||
-rm -f libangsd.a |
|||
$(AR) cru libangsd.a $(libangsd_a_OBJECTS) $(libangsd_a_LIBADD) |
|||
$(RANLIB) libangsd.a |
|||
|
|||
tags: TAGS |
|||
|
|||
ID: $(HEADERS) $(SOURCES) $(LISP) |
|||
here=`pwd` && cd $(srcdir) \
|
|||
&& mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) |
|||
|
|||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) |
|||
tags=; \
|
|||
here=`pwd`; \
|
|||
list='$(SOURCES) $(HEADERS)'; \
|
|||
unique=`for i in $$list; do echo $$i; done | \
|
|||
awk ' { files[$$0] = 1; } \
|
|||
END { for (i in files) print i; }'`; \
|
|||
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
|||
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) |
|||
|
|||
mostlyclean-tags: |
|||
|
|||
clean-tags: |
|||
|
|||
distclean-tags: |
|||
-rm -f TAGS ID |
|||
|
|||
maintainer-clean-tags: |
|||
|
|||
distdir = $(PACKAGE)-$(VERSION) |
|||
top_distdir = $(distdir) |
|||
|
|||
# This target untars the dist file and tries a VPATH configuration. Then
|
|||
# it guarantees that the distribution is self-contained by making another
|
|||
# tarfile.
|
|||
distcheck: dist |
|||
-rm -rf $(distdir) |
|||
GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz |
|||
mkdir $(distdir)/=build |
|||
mkdir $(distdir)/=inst |
|||
dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
|||
cd $(distdir)/=build \
|
|||
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
|||
&& $(MAKE) \
|
|||
&& $(MAKE) dvi \
|
|||
&& $(MAKE) check \
|
|||
&& $(MAKE) install \
|
|||
&& $(MAKE) installcheck \
|
|||
&& $(MAKE) dist |
|||
-rm -rf $(distdir) |
|||
@echo "========================"; \
|
|||
echo "$(distdir).tar.gz is ready for distribution"; \
|
|||
echo "========================" |
|||
dist: distdir |
|||
-chmod -R a+r $(distdir) |
|||
GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) |
|||
-rm -rf $(distdir) |
|||
dist-all: distdir |
|||
-chmod -R a+r $(distdir) |
|||
GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) |
|||
-rm -rf $(distdir) |
|||
distdir: $(DISTFILES) |
|||
-rm -rf $(distdir) |
|||
mkdir $(distdir) |
|||
-chmod 777 $(distdir) |
|||
@for file in $(DISTFILES); do \
|
|||
if test -f $$file; then d=.; else d=$(srcdir); fi; \
|
|||
test -f $(distdir)/$$file \
|
|||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
|||
|| cp -p $$d/$$file $(distdir)/$$file; \
|
|||
done |
|||
info: |
|||
dvi: |
|||
check: |
|||
$(MAKE) |
|||
installcheck: |
|||
install-info: |
|||
install-exec: |
|||
@$(NORMAL_INSTALL) |
|||
|
|||
all: libangsd.a |
|||
install-data: |
|||
@$(NORMAL_INSTALL) |
|||
|
|||
libangsd.a: $(OBS) |
|||
rm -f libangsd.a |
|||
$(AR) $(AR_FLAGS) libangsd.a $(OBS) |
|||
$(RANLIB) libangsd.a |
|||
install: install-exec install-data all |
|||
@: |
|||
|
|||
# Traditionally "install" depends on "all". But it may be useful
|
|||
# not to; for example, if the user has made some trivial change to a
|
|||
# source file and doesn't care about rebuilding or just wants to save the
|
|||
# time it takes for make to check that all is up to date.
|
|||
# install-only is intended to address that need.
|
|||
install: all install-only |
|||
install-only: |
|||
uninstall: |
|||
|
|||
uninstall: |
|||
all: Makefile $(LIBRARIES) $(HEADERS) |
|||
|
|||
installcheck: |
|||
check: |
|||
info dvi: |
|||
install-info: |
|||
clean-info: |
|||
install-strip: |
|||
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install |
|||
installdirs: |
|||
|
|||
config.status: |
|||
@echo "You must configure rdi-share. Look at the README file for details." |
|||
@false |
|||
|
|||
clean: |
|||
rm -f *.o ${ADD_FILES} *~ |
|||
rm -f gdbserver core make.log |
|||
mostlyclean-generic: |
|||
-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) |
|||
|
|||
distclean: clean |
|||
rm -f config.status |
|||
rm -f Makefile |
|||
clean-generic: |
|||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) |
|||
|
|||
maintainer-clean realclean: clean |
|||
rm -f config.status |
|||
rm -f Makefile |
|||
distclean-generic: |
|||
-rm -f Makefile $(DISTCLEANFILES) |
|||
-rm -f config.cache config.log stamp-h stamp-h[0-9]* |
|||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) |
|||
|
|||
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) |
|||
$(SHELL) ./config.status |
|||
maintainer-clean-generic: |
|||
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) |
|||
-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) |
|||
mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \ |
|||
mostlyclean-tags mostlyclean-generic |
|||
|
|||
force: |
|||
clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ |
|||
mostlyclean |
|||
|
|||
# GNU Make has an annoying habit of putting *all* the Makefile variables
|
|||
# into the environment, unless you include this target as a circumvention.
|
|||
# Rumor is that this will be fixed (and this target can be removed)
|
|||
# in GNU Make 4.0.
|
|||
.NOEXPORT: |
|||
distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \ |
|||
distclean-generic clean |
|||
-rm -f config.status |
|||
|
|||
maintainer-clean: maintainer-clean-noinstLIBRARIES \ |
|||
maintainer-clean-compile maintainer-clean-tags \
|
|||
maintainer-clean-generic distclean |
|||
@echo "This command is intended for maintainers to use;" |
|||
@echo "it deletes files that may require special tools to rebuild." |
|||
-rm -f config.status |
|||
|
|||
# GNU Make 3.63 has a different problem: it keeps tacking command line
|
|||
# overrides onto the definition of $(MAKE). This variable setting
|
|||
# will remove them.
|
|||
MAKEOVERRIDES= |
|||
.PHONY: default mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ |
|||
clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ |
|||
mostlyclean-compile distclean-compile clean-compile \ |
|||
maintainer-clean-compile tags mostlyclean-tags distclean-tags \ |
|||
clean-tags maintainer-clean-tags distdir info dvi installcheck \ |
|||
install-info install-exec install-data install uninstall all \ |
|||
installdirs mostlyclean-generic distclean-generic clean-generic \ |
|||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean |
|||
|
|||
## This is ugly, but I don't want GNU make to put these variables in
|
|||
## the environment. Older makes will see this as a set of targets
|
|||
## with no dependencies and no actions.
|
|||
unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET : |
|||
|
|||
# This is the end of "Makefile.in".
|
|||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
|||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
|||
.NOEXPORT: |
|||
|
|||
@ -0,0 +1,193 @@ |
|||
dnl aclocal.m4 generated automatically by aclocal 1.2e |
|||
|
|||
dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. |
|||
dnl This Makefile.in is free software; the Free Software Foundation |
|||
dnl gives unlimited permission to copy and/or distribute it, |
|||
dnl with or without modifications, as long as this notice is preserved. |
|||
|
|||
dnl This program is distributed in the hope that it will be useful, |
|||
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
|||
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
|||
dnl PARTICULAR PURPOSE. |
|||
|
|||
# Do all the work for Automake. This macro actually does too much -- |
|||
# some checks are only needed if your package does certain things. |
|||
# But this isn't really a big deal. |
|||
|
|||
# serial 1 |
|||
|
|||
dnl Usage: |
|||
dnl AM_INIT_AUTOMAKE(package,version, [no-define]) |
|||
|
|||
AC_DEFUN(AM_INIT_AUTOMAKE, |
|||
[AC_REQUIRE([AM_PROG_INSTALL]) |
|||
PACKAGE=[$1] |
|||
AC_SUBST(PACKAGE) |
|||
VERSION=[$2] |
|||
AC_SUBST(VERSION) |
|||
dnl test to see if srcdir already configured |
|||
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
|||
AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
|||
fi |
|||
ifelse([$3],, |
|||
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") |
|||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")) |
|||
AC_REQUIRE([AM_SANITY_CHECK]) |
|||
AC_REQUIRE([AC_ARG_PROGRAM]) |
|||
dnl FIXME This is truly gross. |
|||
missing_dir=`cd $ac_aux_dir && pwd` |
|||
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) |
|||
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) |
|||
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) |
|||
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) |
|||
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) |
|||
AC_REQUIRE([AC_PROG_MAKE_SET])]) |
|||
|
|||
|
|||
# serial 1 |
|||
|
|||
AC_DEFUN(AM_PROG_INSTALL, |
|||
[AC_REQUIRE([AC_PROG_INSTALL]) |
|||
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
|||
AC_SUBST(INSTALL_SCRIPT)dnl |
|||
]) |
|||
|
|||
# |
|||
# Check to make sure that the build environment is sane. |
|||
# |
|||
|
|||
AC_DEFUN(AM_SANITY_CHECK, |
|||
[AC_MSG_CHECKING([whether build environment is sane]) |
|||
# Just in case |
|||
sleep 1 |
|||
echo timestamp > conftestfile |
|||
# Do `set' in a subshell so we don't clobber the current shell's |
|||
# arguments. Must try -L first in case configure is actually a |
|||
# symlink; some systems play weird games with the mod time of symlinks |
|||
# (eg FreeBSD returns the mod time of the symlink's containing |
|||
# directory). |
|||
if ( |
|||
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
|||
if test "[$]*" = "X"; then |
|||
# -L didn't work. |
|||
set X `ls -t $srcdir/configure conftestfile` |
|||
fi |
|||
if test "[$]*" != "X $srcdir/configure conftestfile" \ |
|||
&& test "[$]*" != "X conftestfile $srcdir/configure"; then |
|||
|
|||
# If neither matched, then we have a broken ls. This can happen |
|||
# if, for instance, CONFIG_SHELL is bash and it inherits a |
|||
# broken ls alias from the environment. This has actually |
|||
# happened. Such a system could not be considered "sane". |
|||
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
|||
alias in your environment]) |
|||
fi |
|||
|
|||
test "[$]2" = conftestfile |
|||
) |
|||
then |
|||
# Ok. |
|||
: |
|||
else |
|||
AC_MSG_ERROR([newly created file is older than distributed files! |
|||
Check your system clock]) |
|||
fi |
|||
rm -f conftest* |
|||
AC_MSG_RESULT(yes)]) |
|||
|
|||
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) |
|||
dnl The program must properly implement --version. |
|||
AC_DEFUN(AM_MISSING_PROG, |
|||
[AC_MSG_CHECKING(for working $2) |
|||
# Run test in a subshell; some versions of sh will print an error if |
|||
# an executable is not found, even if stderr is redirected. |
|||
# Redirect stdin to placate older versions of autoconf. Sigh. |
|||
if ($2 --version) < /dev/null > /dev/null 2>&1; then |
|||
$1=$2 |
|||
AC_MSG_RESULT(found) |
|||
else |
|||
$1="$3/missing $2" |
|||
AC_MSG_RESULT(missing) |
|||
fi |
|||
AC_SUBST($1)]) |
|||
|
|||
# Add --enable-maintainer-mode option to configure. |
|||
# From Jim Meyering |
|||
|
|||
# serial 1 |
|||
|
|||
AC_DEFUN(AM_MAINTAINER_MODE, |
|||
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
|||
dnl maintainer-mode is disabled by default |
|||
AC_ARG_ENABLE(maintainer-mode, |
|||
[ --enable-maintainer-mode enable make rules and dependencies not useful |
|||
(and sometimes confusing) to the casual installer], |
|||
USE_MAINTAINER_MODE=$enableval, |
|||
USE_MAINTAINER_MODE=no) |
|||
AC_MSG_RESULT($USE_MAINTAINER_MODE) |
|||
if test $USE_MAINTAINER_MODE = yes; then |
|||
MAINT= |
|||
else |
|||
MAINT='#M#' |
|||
fi |
|||
AC_SUBST(MAINT)dnl |
|||
] |
|||
) |
|||
|
|||
# Check to see if we're running under Win32, without using |
|||
# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe". |
|||
# Otherwise set it to "". |
|||
|
|||
dnl AM_EXEEXT() |
|||
dnl This knows we add .exe if we're building in the Cygwin32 |
|||
dnl environment. But if we're not, then it compiles a test program |
|||
dnl to see if there is a suffix for executables. |
|||
AC_DEFUN(AM_EXEEXT, |
|||
[AC_REQUIRE([AM_CYGWIN32]) |
|||
AC_REQUIRE([AM_MINGW32]) |
|||
AC_MSG_CHECKING([for executable suffix]) |
|||
AC_CACHE_VAL(am_cv_exeext, |
|||
[if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then |
|||
am_cv_exeext=.exe |
|||
else |
|||
cat > am_c_test.c << 'EOF' |
|||
int main() { |
|||
/* Nothing needed here */ |
|||
} |
|||
EOF |
|||
${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 |
|||
am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` |
|||
rm -f am_c_test*]) |
|||
test x"${am_cv_exeext}" = x && am_cv_exeext=no |
|||
fi |
|||
EXEEXT="" |
|||
test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} |
|||
AC_MSG_RESULT(${am_cv_exeext}) |
|||
AC_SUBST(EXEEXT)]) |
|||
|
|||
# Check to see if we're running under Cygwin32, without using |
|||
# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes". |
|||
# Otherwise set it to "no". |
|||
|
|||
dnl AM_CYGWIN32() |
|||
AC_DEFUN(AM_CYGWIN32, |
|||
[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32, |
|||
[AC_TRY_COMPILE(,[return __CYGWIN32__;], |
|||
am_cv_cygwin32=yes, am_cv_cygwin32=no) |
|||
rm -f conftest*]) |
|||
CYGWIN32= |
|||
test "$am_cv_cygwin32" = yes && CYGWIN32=yes]) |
|||
|
|||
# Check to see if we're running under Mingw, without using |
|||
# AC_CANONICAL_*. If so, set output variable MINGW32 to "yes". |
|||
# Otherwise set it to "no". |
|||
|
|||
dnl AM_MINGW32() |
|||
AC_DEFUN(AM_MINGW32, |
|||
[AC_CACHE_CHECK(for Mingw32 environment, am_cv_mingw32, |
|||
[AC_TRY_COMPILE(,[return __MINGW32__;], |
|||
am_cv_mingw32=yes, am_cv_mingw32=no) |
|||
rm -f conftest*]) |
|||
MINGW32= |
|||
test "$am_cv_mingw32" = yes && MINGW32=yes]) |
|||
|
|||
File diff suppressed because it is too large
@ -1,44 +1,35 @@ |
|||
srcname="RDI library" |
|||
srctrigger=ardi.c |
|||
dnl Process this file with autoconf to produce a configure script. |
|||
AC_INIT(adp.h) |
|||
|
|||
# per-host: |
|||
AM_INIT_AUTOMAKE(rdi-share, 1.0) |
|||
|
|||
. ${srcdir}/../configure.host |
|||
PACKAGE=rdi-share |
|||
VERSION=1.0 |
|||
|
|||
echo "rdi-share/configure.in: host is $host, target is $target" |
|||
dnl Checks for programs. |
|||
AC_PROG_CC |
|||
AC_PROG_INSTALL |
|||
AC_PROG_MAKE_SET |
|||
AC_PROG_RANLIB |
|||
|
|||
if [ ! -f ${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh ]; then |
|||
echo '***' "GDB remote does not support host ${host}" 1>&2 |
|||
exit 1 |
|||
fi |
|||
dnl Checks for libraries. |
|||
|
|||
# We really shouldn't depend on there being a space after XM_FILE= ... |
|||
hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh` |
|||
dnl Checks for header files. |
|||
AC_HEADER_STDC |
|||
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h sys/filio.h) |
|||
|
|||
# per-target: |
|||
dnl Checks for typedefs, structures, and compiler characteristics. |
|||
AC_C_CONST |
|||
AC_TYPE_SIZE_T |
|||
AC_HEADER_TIME |
|||
|
|||
. ${srcdir}/../configure.tgt |
|||
dnl Checks for library functions. |
|||
AC_PROG_GCC_TRADITIONAL |
|||
AC_TYPE_SIGNAL |
|||
AC_FUNC_VPRINTF |
|||
AC_CHECK_FUNCS(gettimeofday select socket strtod strtoul memcpy memmove) |
|||
|
|||
echo "rdi-share/configure.in: host_cpu is $host_cpu, target_cpu is $target_cpu" |
|||
AM_MAINTAINER_MODE |
|||
AM_EXEEXT |
|||
|
|||
if [ ! -f ${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt ]; then |
|||
echo '***' "GDB remote does not support target ${target}" 1>&2 |
|||
exit 1 |
|||
fi |
|||
|
|||
if [ -z "${removing}" ] ; then |
|||
cat ${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh ${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt | awk '$1 == "#msg" { |
|||
print substr($0,6)}' |
|||
fi |
|||
|
|||
# We really shouldn't depend on there being a space after TM_FILE= ... |
|||
targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt` |
|||
|
|||
if [ "${target}" = "${host}" ] ; then |
|||
nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh` |
|||
fi |
|||
|
|||
host_makefile_frag=../config/${gdb_host_cpu}/${gdb_host}.mh |
|||
target_makefile_frag=../config/${gdb_target_cpu}/${gdb_target}.mt |
|||
|
|||
# post-target: |
|||
AC_OUTPUT(Makefile) |
|||
|
|||
Loading…
Reference in new issue