aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 9e1a91c..5aa5d07 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -57,11 +57,28 @@ if test "${enable_gdbtk}" = "yes"; then
CYGNUS_PATH_TCL
ENABLE_GDBTK=1
+
+ if test "x$x_includes" != "x" ;
+ then
+ X_INCDIR="-I$x_includes"
+ else
+ X_INCDIR=""
+ fi
+
+ if test "x$x_libraries" != "x" ;
+ then
+ X_LIBDIR="-L$x_libraries"
+ else
+ X_LIBDIR=""
+ fi
+
TCL_LIBS='$(TCL) $(TK) $(X11)'
ENABLE_CLIBS="${ENABLE_CLIBS} ${TCL_LIBS} -lm"
ENABLE_OBS="${ENABLE_OBS} gdbtk.o"
fi
AC_SUBST(ENABLE_GDBTK)
+AC_SUBST(X_INCDIR)
+AC_SUBST(X_LIBDIR)
# end-sanitize-gdbtk
AC_SUBST(ENABLE_CFLAGS)