From e5f4e5aaff76424f6977d9938cb6ffa10e24f354 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 29 Mar 1999 22:24:23 +0000 Subject: Patch from Ralf Corsepius : rtems-rc-19990326-2.diff: Enhancements to autoconf support for librdbg * autoconf-checks for AWK and RPCGEN * disable librdbg if either AWK, RPCGEN or librdbg/$target_cpu cannot be found --- configure.in | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 481540061c..bbae5d09c4 100644 --- a/configure.in +++ b/configure.in @@ -1,3 +1,4 @@ + dnl Process this file with autoconf to produce a configure script. dnl dnl $Id$ @@ -310,7 +311,22 @@ if test "$RTEMS_HAS_NETWORKING" = "yes"; then RTEMS_CHECK_MAKEFILE(c/src/lib/libnetworking) RTEMS_CHECK_MAKEFILE(c/src/lib/librpc) if test "$RTEMS_HAS_RDBG" = "yes"; then - RTEMS_CHECK_MAKEFILE(c/src/lib/librdbg) + AC_MSG_CHECKING([whether cpu supports rdbg? ]) + test ! -d "$srcdir/c/src/lib/librdbg/$target_cpu" && RTEMS_HAS_RDBG="no" ; + AC_MSG_RESULT($RTEMS_HAS_RDBG) + if test "$RTEMS_HAS_RDBG" = "yes"; then + AC_PATH_PROG(RPCGEN,rpcgen) + test -z "$RPCGEN" && RTEMS_HAS_RDBG="no" + fi + if test "$RTEMS_HAS_RDBG" = "yes"; then + AC_PROG_AWK + test -z "$AWK" && RTEMS_HAS_RDBG="no" + fi + if test "$RTEMS_HAS_RDBG" = "yes"; then + RTEMS_CHECK_MAKEFILE(c/src/lib/librdbg) + else + AC_MSG_WARN([*** warning disabling --enable-rdbg]) + fi fi fi -- cgit v1.2.3