aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-06-26 18:00:57 +0000
committerIan Lance Taylor <ian@airs.com>1997-06-26 18:00:57 +0000
commitd29cd970711906c81a0e854a39eab0e742bd05ec (patch)
treee62b668dc9f97959798e4ad05ed8d1d410b9300c /configure
parent34260fe0d09563e710be5b70417df5441eebd8c2 (diff)
downloadfsf-binutils-gdb-d29cd970711906c81a0e854a39eab0e742bd05ec.zip
fsf-binutils-gdb-d29cd970711906c81a0e854a39eab0e742bd05ec.tar.gz
fsf-binutils-gdb-d29cd970711906c81a0e854a39eab0e742bd05ec.tar.bz2
* Makefile.in (WINDRES): New variable.
(WINDRES_FOR_TARGET): New variable. (BASE_FLAGS_TO_PASS): Add WINDRES_FOR_TARGET. (EXTRA_HOST_FLAGS): Add WINDRES. (EXTRA_TARGET_FLAGS): Add WINDRES. (EXTRA_GCC_FLAGS): Add WINDRES. ($(DO_X)): Pass down WINDRES. ($(CONFIGURE_TARGET_MODULES)): Set WINDRES when configuring. * configure: Treat WINDRES like DLLTOOL, and WINDRES_FOR_TARGET like DLLTOOL_FOR_TARGET.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 621deda..d96874d 100755
--- a/configure
+++ b/configure
@@ -738,6 +738,7 @@ if [ "${build}" != "${host}" ]; then
tools="${tools} DLLTOOL DLLTOOL_FOR_TARGET GCC_FOR_TARGET HOST_PREFIX"
tools="${tools} HOST_PREFIX_1 LD LD_FOR_TARGET LEX MAKEINFO NM"
tools="${tools} NM_FOR_TARGET RANLIB RANLIB_FOR_TARGET"
+ tools="${tools} WINDRES WINDRES_FOR_TARGET"
for var in ${tools}; do
if [ -z "`eval 'echo $'"${var}"`" -a -r Makefile ]; then
@@ -778,6 +779,8 @@ t loop
NM_FOR_TARGET=${NM_FOR_TARGET-${target_alias}-nm}
RANLIB=${RANLIB-${host_alias}-ranlib}
RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET-${target_alias}-ranlib}
+ WINDRES=${WINDRES-${host_alias}-windres}
+ WINDRES_FOR_TARGET=${WINDRES_FOR_TARGET-${target_alias}-windres}
if [ -z "${BISON}" ]; then
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
@@ -825,6 +828,7 @@ t loop
export LD
export NM
export RANLIB
+ export WINDRES
else
# If CC is still not set, try to get gcc.
if [ -z "${CC}" ]; then