forked from Imagelibrary/binutils-gdb
* config/tcl.m4 (SC_PATH_TCLCONFIG): Don't exit 0 if tclconfig fails.
(SC_PATH_TKCONFIG): Don't exit 0 if tkconfig fails. (SC_LOAD_TCLCONFIG): Quote all uses of TCL_BIN_DIR, it may contain "# no Tcl configs found". (SC_LOAD_TKCONFIG): Similarily for TK_BIN_DIR. * gdb/configure.ac (gdbkt): Check both no_tcl/no_tk first, before doing any further tcl/tk configury. Don't configure gdbtk if tcl or tk check fails. * gdb/aclocal.m4: Regenerate. * gdb/configure: Regenerate. * gdb/gdbtk/plugins/aclocal.m4: Regenerate. * gdb/gdbtk/plugins/configure: Regenerate.
This commit is contained in:
366
gdb/configure
vendored
366
gdb/configure
vendored
@@ -6552,6 +6552,7 @@ am__api_version="1.9"
|
||||
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
||||
# OS/2's system install, which has a completely different semantic
|
||||
# ./install, which can be erroneously created by make from ./install.sh.
|
||||
# Reject install programs that cannot install multiple files.
|
||||
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
||||
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
||||
if test -z "$INSTALL"; then
|
||||
@@ -6585,8 +6586,18 @@ case $as_dir/ in
|
||||
# program-specific install script used by HP pwplus--don't use.
|
||||
:
|
||||
else
|
||||
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
||||
break 3
|
||||
rm -rf conftest.one conftest.two conftest.dir
|
||||
echo one > conftest.one
|
||||
echo two > conftest.two
|
||||
mkdir conftest.dir
|
||||
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
||||
test -s conftest.one && test -s conftest.two &&
|
||||
test -s conftest.dir/conftest.one &&
|
||||
test -s conftest.dir/conftest.two
|
||||
then
|
||||
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
||||
break 3
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
@@ -6595,15 +6606,16 @@ case $as_dir/ in
|
||||
esac
|
||||
done
|
||||
|
||||
rm -rf conftest.one conftest.two conftest.dir
|
||||
|
||||
fi
|
||||
if test "${ac_cv_path_install+set}" = set; then
|
||||
INSTALL=$ac_cv_path_install
|
||||
else
|
||||
# As a last resort, use the slow shell script. We don't cache a
|
||||
# path for INSTALL within a source directory, because that will
|
||||
# As a last resort, use the slow shell script. Don't cache a
|
||||
# value for INSTALL within a source directory, because that will
|
||||
# break other packages using the cache if that directory is
|
||||
# removed, or if the path is relative.
|
||||
# removed, or if the value is a relative name.
|
||||
INSTALL=$ac_install_sh
|
||||
fi
|
||||
fi
|
||||
@@ -8538,6 +8550,7 @@ done
|
||||
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
||||
# OS/2's system install, which has a completely different semantic
|
||||
# ./install, which can be erroneously created by make from ./install.sh.
|
||||
# Reject install programs that cannot install multiple files.
|
||||
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
||||
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
||||
if test -z "$INSTALL"; then
|
||||
@@ -8571,8 +8584,18 @@ case $as_dir/ in
|
||||
# program-specific install script used by HP pwplus--don't use.
|
||||
:
|
||||
else
|
||||
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
||||
break 3
|
||||
rm -rf conftest.one conftest.two conftest.dir
|
||||
echo one > conftest.one
|
||||
echo two > conftest.two
|
||||
mkdir conftest.dir
|
||||
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
||||
test -s conftest.one && test -s conftest.two &&
|
||||
test -s conftest.dir/conftest.one &&
|
||||
test -s conftest.dir/conftest.two
|
||||
then
|
||||
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
||||
break 3
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
@@ -8581,15 +8604,16 @@ case $as_dir/ in
|
||||
esac
|
||||
done
|
||||
|
||||
rm -rf conftest.one conftest.two conftest.dir
|
||||
|
||||
fi
|
||||
if test "${ac_cv_path_install+set}" = set; then
|
||||
INSTALL=$ac_cv_path_install
|
||||
else
|
||||
# As a last resort, use the slow shell script. We don't cache a
|
||||
# path for INSTALL within a source directory, because that will
|
||||
# As a last resort, use the slow shell script. Don't cache a
|
||||
# value for INSTALL within a source directory, because that will
|
||||
# break other packages using the cache if that directory is
|
||||
# removed, or if the path is relative.
|
||||
# removed, or if the value is a relative name.
|
||||
INSTALL=$ac_install_sh
|
||||
fi
|
||||
fi
|
||||
@@ -19939,7 +19963,6 @@ fi
|
||||
TCL_BIN_DIR="# no Tcl configs found"
|
||||
{ echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
|
||||
echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
|
||||
exit 0
|
||||
else
|
||||
no_tcl=
|
||||
TCL_BIN_DIR=${ac_cv_c_tclconfig}
|
||||
@@ -19948,127 +19971,9 @@ echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -z "${no_tcl}"; then
|
||||
|
||||
echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
|
||||
echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
|
||||
|
||||
if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
|
||||
echo "$as_me:$LINENO: result: loading" >&5
|
||||
echo "${ECHO_T}loading" >&6
|
||||
. ${TCL_BIN_DIR}/tclConfig.sh
|
||||
else
|
||||
echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
|
||||
echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
|
||||
fi
|
||||
|
||||
# eval is required to do the TCL_DBGX substitution
|
||||
eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
|
||||
eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
|
||||
|
||||
# If the TCL_BIN_DIR is the build directory (not the install directory),
|
||||
# then set the common variable name to the value of the build variables.
|
||||
# For example, the variable TCL_LIB_SPEC will be set to the value
|
||||
# of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
|
||||
# instead of TCL_BUILD_LIB_SPEC since it will work with both an
|
||||
# installed and uninstalled version of Tcl.
|
||||
if test -f ${TCL_BIN_DIR}/Makefile ; then
|
||||
TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
|
||||
TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
|
||||
TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
|
||||
elif test "`uname -s`" = "Darwin"; then
|
||||
# If Tcl was built as a framework, attempt to use the libraries
|
||||
# from the framework at the given location so that linking works
|
||||
# against Tcl.framework installed in an arbitary location.
|
||||
case ${TCL_DEFS} in
|
||||
*TCL_FRAMEWORK*)
|
||||
if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
|
||||
for i in "`cd ${TCL_BIN_DIR}; pwd`" \
|
||||
"`cd ${TCL_BIN_DIR}/../..; pwd`"; do
|
||||
if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
|
||||
TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
|
||||
TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
|
||||
TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# eval is required to do the TCL_DBGX substitution
|
||||
eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
|
||||
eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
|
||||
eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
|
||||
eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Check for in-tree tcl
|
||||
here=`pwd`
|
||||
cd ${srcdir}/..
|
||||
topdir=`pwd`
|
||||
cd ${here}
|
||||
|
||||
intree="no"
|
||||
if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
|
||||
intree="yes"
|
||||
fi
|
||||
|
||||
# Find Tcl private headers
|
||||
if test x"${intree}" = xno; then
|
||||
|
||||
echo "$as_me:$LINENO: checking for Tcl private headers" >&5
|
||||
echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
|
||||
private_dir=""
|
||||
dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
|
||||
if test -f ${dir}/tclInt.h ; then
|
||||
private_dir=${dir}
|
||||
fi
|
||||
|
||||
if test x"${private_dir}" = x; then
|
||||
{ { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
|
||||
echo "$as_me: error: could not find private Tcl headers" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
else
|
||||
TCL_PRIVATE_INCLUDE="-I${private_dir}"
|
||||
echo "$as_me:$LINENO: result: ${private_dir}" >&5
|
||||
echo "${ECHO_T}${private_dir}" >&6
|
||||
fi
|
||||
|
||||
TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
|
||||
TCL_LIBRARY="${TCL_LIB_SPEC}"
|
||||
TCL_DEPS=""
|
||||
else
|
||||
# If building tcl in the same src tree, private headers
|
||||
# are not needed, but we need to be sure to use the right
|
||||
# headers library
|
||||
TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
|
||||
TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
|
||||
TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
# If $no_tk is nonempty, then we can't do Tk, and there is no
|
||||
# point to doing Tcl.
|
||||
if test -z "${no_tk}"; then
|
||||
# If $no_tk is nonempty, then we can't do Tk, and there is no
|
||||
# point to doing Tcl.
|
||||
|
||||
#
|
||||
# Ok, lets find the tk configuration
|
||||
@@ -20179,7 +20084,6 @@ fi
|
||||
TK_BIN_DIR="# no Tk configs found"
|
||||
{ echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
|
||||
echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
|
||||
exit 0
|
||||
else
|
||||
no_tk=
|
||||
TK_BIN_DIR=${ac_cv_c_tkconfig}
|
||||
@@ -20189,6 +20093,125 @@ echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
|
||||
fi
|
||||
|
||||
|
||||
if test -z "${no_tcl}" -a -z "${no_tk}"; then
|
||||
|
||||
echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
|
||||
echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
|
||||
|
||||
if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
|
||||
echo "$as_me:$LINENO: result: loading" >&5
|
||||
echo "${ECHO_T}loading" >&6
|
||||
. ${TCL_BIN_DIR}/tclConfig.sh
|
||||
else
|
||||
echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
|
||||
echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
|
||||
fi
|
||||
|
||||
# eval is required to do the TCL_DBGX substitution
|
||||
eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
|
||||
eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
|
||||
|
||||
# If the TCL_BIN_DIR is the build directory (not the install directory),
|
||||
# then set the common variable name to the value of the build variables.
|
||||
# For example, the variable TCL_LIB_SPEC will be set to the value
|
||||
# of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
|
||||
# instead of TCL_BUILD_LIB_SPEC since it will work with both an
|
||||
# installed and uninstalled version of Tcl.
|
||||
if test -f "${TCL_BIN_DIR}/Makefile" ; then
|
||||
TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
|
||||
TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
|
||||
TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
|
||||
elif test "`uname -s`" = "Darwin"; then
|
||||
# If Tcl was built as a framework, attempt to use the libraries
|
||||
# from the framework at the given location so that linking works
|
||||
# against Tcl.framework installed in an arbitary location.
|
||||
case ${TCL_DEFS} in
|
||||
*TCL_FRAMEWORK*)
|
||||
if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
|
||||
for i in "`cd ${TCL_BIN_DIR}; pwd`" \
|
||||
"`cd ${TCL_BIN_DIR}/../..; pwd`"; do
|
||||
if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
|
||||
TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
|
||||
TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
|
||||
TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# eval is required to do the TCL_DBGX substitution
|
||||
eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
|
||||
eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
|
||||
eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
|
||||
eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Check for in-tree tcl
|
||||
here=`pwd`
|
||||
cd ${srcdir}/..
|
||||
topdir=`pwd`
|
||||
cd ${here}
|
||||
|
||||
intree="no"
|
||||
if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
|
||||
intree="yes"
|
||||
fi
|
||||
|
||||
# Find Tcl private headers
|
||||
if test x"${intree}" = xno; then
|
||||
|
||||
echo "$as_me:$LINENO: checking for Tcl private headers" >&5
|
||||
echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
|
||||
private_dir=""
|
||||
dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
|
||||
if test -f ${dir}/tclInt.h ; then
|
||||
private_dir=${dir}
|
||||
fi
|
||||
|
||||
if test x"${private_dir}" = x; then
|
||||
{ { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
|
||||
echo "$as_me: error: could not find private Tcl headers" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
else
|
||||
TCL_PRIVATE_INCLUDE="-I${private_dir}"
|
||||
echo "$as_me:$LINENO: result: ${private_dir}" >&5
|
||||
echo "${ECHO_T}${private_dir}" >&6
|
||||
fi
|
||||
|
||||
TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
|
||||
TCL_LIBRARY="${TCL_LIB_SPEC}"
|
||||
TCL_DEPS=""
|
||||
else
|
||||
# If building tcl in the same src tree, private headers
|
||||
# are not needed, but we need to be sure to use the right
|
||||
# headers library
|
||||
TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
|
||||
TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
|
||||
TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
|
||||
echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
|
||||
|
||||
@@ -20211,7 +20234,7 @@ echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
|
||||
# of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
|
||||
# instead of TK_BUILD_LIB_SPEC since it will work with both an
|
||||
# installed and uninstalled version of Tcl.
|
||||
if test -f ${TK_BIN_DIR}/Makefile ; then
|
||||
if test -f "${TK_BIN_DIR}/Makefile" ; then
|
||||
TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
|
||||
TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
|
||||
TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
|
||||
@@ -20221,7 +20244,7 @@ echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
|
||||
# against Tk.framework installed in an arbitary location.
|
||||
case ${TK_DEFS} in
|
||||
*TK_FRAMEWORK*)
|
||||
if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
|
||||
if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
|
||||
for i in "`cd ${TK_BIN_DIR}; pwd`" \
|
||||
"`cd ${TK_BIN_DIR}/../..; pwd`"; do
|
||||
if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
|
||||
@@ -20230,7 +20253,7 @@ echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
|
||||
if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
|
||||
TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
|
||||
TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
|
||||
fi
|
||||
@@ -20257,14 +20280,14 @@ echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
|
||||
|
||||
|
||||
|
||||
# Check for in-tree Tk
|
||||
intree="no"
|
||||
if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
|
||||
intree="yes"
|
||||
fi
|
||||
# Check for in-tree Tk
|
||||
intree="no"
|
||||
if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
|
||||
intree="yes"
|
||||
fi
|
||||
|
||||
# Find Tk private headers
|
||||
if test x"${intree}" = xno; then
|
||||
# Find Tk private headers
|
||||
if test x"${intree}" = xno; then
|
||||
|
||||
echo "$as_me:$LINENO: checking for Tk private headers" >&5
|
||||
echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
|
||||
@@ -20284,50 +20307,49 @@ echo "$as_me: error: could not find Tk private headers" >&2;}
|
||||
echo "${ECHO_T}${private_dir}" >&6
|
||||
fi
|
||||
|
||||
TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
|
||||
TK_LIBRARY=${TK_LIB_SPEC}
|
||||
TK_DEPS=""
|
||||
else
|
||||
TK_INCLUDE="-I${TK_SRC_DIR}/generic"
|
||||
TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
|
||||
TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
|
||||
fi
|
||||
TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
|
||||
TK_LIBRARY=${TK_LIB_SPEC}
|
||||
TK_DEPS=""
|
||||
else
|
||||
TK_INCLUDE="-I${TK_SRC_DIR}/generic"
|
||||
TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
|
||||
TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
|
||||
ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
|
||||
|
||||
# Include some libraries that Tcl and Tk want.
|
||||
TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
|
||||
# Yes, the ordering seems wrong here. But it isn't.
|
||||
# TK_LIBS is the list of libraries that need to be linked
|
||||
# after Tcl/Tk. Note that this isn't put into LIBS. If it
|
||||
# were in LIBS then any link tests after this point would
|
||||
# try to include things like `$(LIBGUI)', which wouldn't work.
|
||||
GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
|
||||
# Include some libraries that Tcl and Tk want.
|
||||
TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
|
||||
# Yes, the ordering seems wrong here. But it isn't.
|
||||
# TK_LIBS is the list of libraries that need to be linked
|
||||
# after Tcl/Tk. Note that this isn't put into LIBS. If it
|
||||
# were in LIBS then any link tests after this point would
|
||||
# try to include things like `$(LIBGUI)', which wouldn't work.
|
||||
GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
|
||||
|
||||
CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
|
||||
CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
|
||||
CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
|
||||
CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
|
||||
CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
|
||||
CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
|
||||
CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
|
||||
CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
|
||||
CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
|
||||
CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
|
||||
CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
|
||||
CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
|
||||
CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
|
||||
CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
|
||||
|
||||
if test x$gdb_cv_os_cygwin = xyes; then
|
||||
WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
|
||||
WIN32LDAPP="-Wl,--subsystem,console"
|
||||
CONFIG_OBS="${CONFIG_OBS} gdbres.o"
|
||||
fi
|
||||
if test x$gdb_cv_os_cygwin = xyes; then
|
||||
WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
|
||||
WIN32LDAPP="-Wl,--subsystem,console"
|
||||
CONFIG_OBS="${CONFIG_OBS} gdbres.o"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
subdirs="$subdirs gdbtk"
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user