diff options
author | Jason Molenda <jmolenda@apple.com> | 1998-03-31 00:46:48 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1998-03-31 00:46:48 +0000 |
commit | f45d80805eb447a9720bf80deeb84ce196a3e28a (patch) | |
tree | 4de9630e24604b4fd8bcff65c5a1e0844f6a6350 /gdb/rdi-share/configure.in | |
parent | 6ed00b060706ba0b2ef7cb68bd2d0275d846e99c (diff) | |
download | gdb-f45d80805eb447a9720bf80deeb84ce196a3e28a.zip gdb-f45d80805eb447a9720bf80deeb84ce196a3e28a.tar.gz gdb-f45d80805eb447a9720bf80deeb84ce196a3e28a.tar.bz2 |
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.)
Diffstat (limited to 'gdb/rdi-share/configure.in')
-rw-r--r-- | gdb/rdi-share/configure.in | 61 |
1 files changed, 26 insertions, 35 deletions
diff --git a/gdb/rdi-share/configure.in b/gdb/rdi-share/configure.in index cd4a715..aabe070 100644 --- a/gdb/rdi-share/configure.in +++ b/gdb/rdi-share/configure.in @@ -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) |