Mon Mar 30 16:42:12 1998 Jason Molenda (crash@bugshack.cygnus.com)

* 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.)
This commit is contained in:
Jason Molenda 1998-03-31 00:46:48 +00:00
parent 6ed00b0607
commit f45d80805e
10 changed files with 2565 additions and 168 deletions

View File

@ -1,3 +1,13 @@
Mon Mar 30 16:42:12 1998 Jason Molenda (crash@bugshack.cygnus.com)
* 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.
Sun Mar 29 15:17:16 1998 Keith Seitz <keiths@onions.cygnus.com> Sun Mar 29 15:17:16 1998 Keith Seitz <keiths@onions.cygnus.com>
* tracepoint.c (trace_start_command): Set trace_running_p. * tracepoint.c (trace_start_command): Set trace_running_p.

View File

@ -23,8 +23,10 @@ Do-first:
Things-to-keep: Things-to-keep:
Makefile.am
Makefile.in Makefile.in
README.CYGNUS README.CYGNUS
aclocal.m4
adp.h adp.h
adperr.h adperr.h
angel.h angel.h
@ -37,6 +39,7 @@ bytesex.h
chandefs.h chandefs.h
channels.h channels.h
chanpriv.h chanpriv.h
configure
configure.in configure.in
crc.c crc.c
crc.h crc.h
@ -73,6 +76,7 @@ tx.c
unixcomm.c unixcomm.c
unixcomm.h unixcomm.h
# Things which are explicitly *not* kept, for now. # Things which are explicitly *not* kept, for now.
Things-to-lose: Things-to-lose:

19
gdb/rdi-share/Makefile.am Normal file
View File

@ -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"'

View File

@ -1,165 +1,299 @@
prefix = /usr/local # Makefile.in generated automatically by automake 1.2e from Makefile.am
program_transform_name = # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
exec_prefix = $(prefix) # This Makefile.in is free software; the Free Software Foundation
bindir = $(exec_prefix)/bin # gives unlimited permission to copy and/or distribute it,
libdir = $(exec_prefix)/lib # with or without modifications, as long as this notice is preserved.
tooldir = $(libdir)/$(target_alias)
datadir = $(prefix)/share # This program is distributed in the hope that it will be useful,
mandir = $(prefix)/man # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
man1dir = $(mandir)/man1 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
man2dir = $(mandir)/man2 # PARTICULAR PURPOSE.
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 SHELL = @SHELL@
INSTALL = `cd $(srcdir)/../..;pwd`/install.sh -c srcdir = @srcdir@
INSTALL_PROGRAM = $(INSTALL) top_srcdir = @top_srcdir@
INSTALL_DATA = $(INSTALL) VPATH = @srcdir@
INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)' prefix = @prefix@
INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1 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 = ar
AR_FLAGS = qv CFLAGS = @CFLAGS@
RANLIB = ranlib COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
HEADERS = $(noinst_HEADERS)
LD = ld DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in
# 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, DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
# this exact string is matched for by the "configure" script.
srcdir = .
# It is also possible that you will need to add -I/usr/include/sys to the TAR = tar
# CFLAGS section if your system doesn't have fcntl.h in /usr/include (which GZIP = --best
# is where it should be according to Posix). SOURCES = $(libangsd_a_SOURCES)
OBJECTS = $(libangsd_a_OBJECTS)
# Set this up with gcc if you have gnu ld and the loader will print out default: all
# line numbers for undefinded refs.
#CC-LD=gcc -static
CC-LD=${CC}
# All the includes used for CFLAGS and for lint. .SUFFIXES:
# -I. for config files. .SUFFIXES: .S .c .o .s
# -I${srcdir} possibly for regex.h also. $(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
# -I${srcdir}/config for more generic config files. cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
INCLUDE_CFLAGS = -I. -I${srcdir}
# M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
# from the config/ directory. cd $(top_builddir) \
GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS} -DRETRANS -DARM_RELEASE=$(ARM_RELEASE) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
#PROFILE_CFLAGS = -pg
# CFLAGS is specifically reserved for setting from the command line $(ACLOCAL_M4): @MAINT@ configure.in
# when running make. I.E. "make CFLAGS=-Wmissing-prototypes". cd $(srcdir) && $(ACLOCAL)
CFLAGS = -g
# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros. config.status: $(srcdir)/configure
INTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} \ $(SHELL) ./config.status --recheck
${BFD_CFLAGS} ${MMALLOC_CFLAGS} ${INCLUDE_CFLAGS} $(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)
# LDFLAGS is specifically reserved for setting from the command line mostlyclean-noinstLIBRARIES:
# when running make.
# Host and target-dependent makefile fragments come in here. clean-noinstLIBRARIES:
#### -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
# End of host and target-dependent makefile fragments
# All source files that go into linking GDB remote server. distclean-noinstLIBRARIES:
SFILES = $(srcdir)/ maintainer-clean-noinstLIBRARIES:
DEPFILES =
SOURCES = $(SFILES) $(ALLDEPFILES)
TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
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
# 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: .c.o:
${CC} -c ${INTERNAL_CFLAGS} $< $(COMPILE) -c $<
all: libangsd.a .s.o:
$(COMPILE) -c $<
libangsd.a: $(OBS) .S.o:
rm -f libangsd.a $(COMPILE) -c $<
$(AR) $(AR_FLAGS) libangsd.a $(OBS)
$(RANLIB) libangsd.a
# Traditionally "install" depends on "all". But it may be useful mostlyclean-compile:
# not to; for example, if the user has made some trivial change to a -rm -f *.o core *.core
# 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: clean-compile:
installcheck: 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: check:
info dvi: $(MAKE)
installcheck:
install-info: install-info:
clean-info: install-exec:
@$(NORMAL_INSTALL)
config.status: install-data:
@echo "You must configure rdi-share. Look at the README file for details." @$(NORMAL_INSTALL)
@false
clean: install: install-exec install-data all
rm -f *.o ${ADD_FILES} *~ @:
rm -f gdbserver core make.log
distclean: clean uninstall:
rm -f config.status
rm -f Makefile
maintainer-clean realclean: clean all: Makefile $(LIBRARIES) $(HEADERS)
rm -f config.status
rm -f Makefile
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) install-strip:
$(SHELL) ./config.status $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
installdirs:
force:
# GNU Make has an annoying habit of putting *all* the Makefile variables mostlyclean-generic:
# into the environment, unless you include this target as a circumvention. -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
# Rumor is that this will be fixed (and this target can be removed)
# in GNU Make 4.0. clean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
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)
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
clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
mostlyclean
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
.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
# 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: .NOEXPORT:
# 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=
## 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".

193
gdb/rdi-share/aclocal.m4 vendored Normal file
View File

@ -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])

2046
gdb/rdi-share/configure vendored Executable file

File diff suppressed because it is too large Load Diff

View File

@ -1,44 +1,35 @@
srcname="RDI library" dnl Process this file with autoconf to produce a configure script.
srctrigger=ardi.c 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 dnl Checks for libraries.
echo '***' "GDB remote does not support host ${host}" 1>&2
exit 1
fi
# We really shouldn't depend on there being a space after XM_FILE= ... dnl Checks for header files.
hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh` 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 AC_OUTPUT(Makefile)
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:

View File

@ -22,7 +22,7 @@
#ifndef dbg_hif__h #ifndef dbg_hif__h
#define dbg_hif__h #define dbg_hif__h
#if defined __STDC__ || defined ALMOST_STDC #ifdef STDC_HEADERS
# include <stdarg.h> # include <stdarg.h>
#else #else
# include <varargs.h> # include <varargs.h>

View File

@ -25,7 +25,7 @@
#ifdef __hpux #ifdef __hpux
# define uint hide_HPs_uint # define uint hide_HPs_uint
#endif #endif
#ifdef __unix #ifdef STDC_HEADERS
# include <unistd.h> # include <unistd.h>
# ifdef __hpux # ifdef __hpux
# undef uint # undef uint
@ -62,7 +62,7 @@
# include <netdb.h> # include <netdb.h>
# include <sys/time.h> # include <sys/time.h>
# include <sys/ioctl.h> # include <sys/ioctl.h>
# if !defined(__hpux) && !defined(__linux__) && !defined(_WIN32) # ifdef HAVE_SYS_FILIO_H
# include <sys/filio.h> # include <sys/filio.h>
# endif # endif
# include <netinet/in.h> # include <netinet/in.h>
@ -79,7 +79,7 @@
#include "ethernet.h" #include "ethernet.h"
#ifndef COMPILING_ON_WINDOWS #if !defined(COMPILING_ON_WINDOWS) && !defined(STDC_HEADERS)
/* These two might not work for windows. */ /* These two might not work for windows. */
extern int sys_nerr; extern int sys_nerr;
extern char * sys_errlist[]; extern char * sys_errlist[];

View File

@ -17,7 +17,7 @@
#include <stdio.h> #include <stdio.h>
#if defined(__unix) || defined(__CYGWIN32__) #ifdef HAVE_SYS_TIME_H
# include <sys/time.h> # include <sys/time.h>
#else #else
# include "winsock.h" # include "winsock.h"