diff options
author | Michael Meissner <gnu@the-meissners.org> | 1995-04-06 21:08:05 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1995-04-06 21:08:05 +0000 |
commit | 77a8995732352e5c16d0a2b9da61e8e4f448537c (patch) | |
tree | b857c1c56f217f2e9a91d083d88650270401a3eb /gdb/configure.in | |
parent | 84ccb887528da1a73efbfbaf81646f97292322b7 (diff) | |
download | gdb-77a8995732352e5c16d0a2b9da61e8e4f448537c.zip gdb-77a8995732352e5c16d0a2b9da61e8e4f448537c.tar.gz gdb-77a8995732352e5c16d0a2b9da61e8e4f448537c.tar.bz2 |
Initial Linux ELF support.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index c2fc4ba1..52cebd8 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -437,11 +437,30 @@ fi # start-sanitize-gdbtk if [ "${enable_gdbtk}" = "yes" ] ; then + if [ x"${other_options}" != x"" ]; then + for opt in $other_options; do + case "$opt" in + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + X11_INCLUDES=`echo "$opt" | sed 's/[-_a-zA-Z0-9]*=//'` + sed -e "s;^\\(X11_INCLUDES[ ]*=\\).*\$;\\1 -I${X11_INCLUDES};" \ + < Makefile > Makefile.tem + mv -f Makefile.tem Makefile;; + + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + X11_LIB_SWITCHES=`echo "$opt" | sed 's/[-_a-zA-Z0-9]*=//'` + sed -e "s;^\\(X11_LIB_SWITCHES[ ]*=\\).*\$;\\1 -L${X11_LIB_SWITCHES};" \ + < Makefile > Makefile.tem + mv -f Makefile.tem Makefile;; + esac + done + fi sed -e '/# End of host and/i\ \ ENABLE_GDBTK = 1\ ENABLE_DEPFILES = gdbtk.o\ -ENABLE_CLIBS = $(TCL) $(TK) -lX11 -lm +ENABLE_CLIBS = $(TCL) $(TK) $(X11_LIB_SWITCHES) $(X11_LIBS) -lm ' < Makefile > Makefile.tem mv -f Makefile.tem Makefile fi |