From d1c3b63ad472a72cb0c2b9c92bf9eafc65c98285 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Thu, 16 Aug 2001 22:47:00 +0000 Subject: * configure.in (GDBTK_SRC_DIR): We must have autoconf give us the absolute path to the source directory. * configure: Regenerated. * Makefile.in (GDBTK_SRC_DIR): Add variable so that autoconf can substitue it in for us. (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We really do need an absolute pathname. --- gdb/configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/configure.in') diff --git a/gdb/configure.in b/gdb/configure.in index f676877..6c30972 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -941,6 +941,13 @@ configdir="unix" GDBTKLIBS= if test "${enable_gdbtk}" = "yes"; then + # Gdbtk must have an absolute path to srcdir in order to run + # properly when not installed. + here=`pwd` + cd ${srcdir} + GDBTK_SRC_DIR=`pwd` + cd $here + CY_AC_PATH_TCLCONFIG if test -z "${no_tcl}"; then CY_AC_LOAD_TCLCONFIG @@ -1080,6 +1087,7 @@ AC_SUBST(TIXLIB) AC_SUBST(TIX_DEPS) AC_SUBST(GDBTKLIBS) AC_SUBST(GDBTK_CFLAGS) +AC_SUBST(GDBTK_SRC_DIR) AC_PATH_X -- cgit v1.1