diff options
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index f52ce11..c8e7775 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -397,6 +397,12 @@ else links="${links} nm.h" fi +# Make it possible to use the GUI without doing a full install +if [ "${enable_gdbtk}" = "yes" ] ; then + files="${files} gdbtk.tcl" + links="${links} gdbtk.tcl" +fi + # post-target: case ${srcdir} in @@ -413,6 +419,15 @@ if [ "${nativefile}" = "" ] ; then mv -f Makefile.tem Makefile fi +if [ "${enable_gdbtk}" = "yes" ] ; then + sed -e '/# End of host and/i\ +\ +ENABLE_DEPFILES = gdbtk.o\ +ENABLE_CLIBS = -ltcl -ltk -lX11 -lm +' < Makefile > Makefile.tem + mv -f Makefile.tem Makefile +fi + sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp |