From 9f1aabc110ff549cfe86da2a6f9a2ec842d02c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sat, 28 Feb 2004 21:11:17 +0100 Subject: [PATCH] Now passes --build to the bundle configure in case of compiling with rntcl. This should help with stuff that uses config.guess. Rev: src/configure.in:1.786 --- src/configure.in | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/configure.in b/src/configure.in index 84303c88da..780e3009f5 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1,4 +1,4 @@ -AC_REVISION("$Id: configure.in,v 1.785 2004/02/27 16:01:11 grubba Exp $") +AC_REVISION("$Id: configure.in,v 1.786 2004/02/28 20:11:17 grubba Exp $") AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h) @@ -6932,7 +6932,24 @@ $bundle_info]) # subshell unsetting it shouldn't be a problem. unset INSTALL - ${CONFIG_SHELL-/bin/sh} "$bundle_source_dir/configure" --prefix="$pike_bundle_prefix" \ + extra_configure_args="" + # Some libraries insist in using config.guess; + # they tend to have problems with rntcl... + # Let's help them along. + if echo foo "$CC" | egrep 'rntc.|rnt.cl' >/dev/null; then + cpu="`uname -m`" + if test "$cpu" = "x86"; then + # Normalize the cpu. + cpu="i386" + fi + extra_configure_args="--build=${cpu}-unknown-winnt`uname -r`" + fi + + echo "${CONFIG_SHELL-/bin/sh} \"$bundle_source_dir/configure\"" \ + "--prefix=\"$pike_bundle_prefix\"" ${extra_configure_args} \ + "--disable-shared --cache-file=config.cache" + ${CONFIG_SHELL-/bin/sh} "$bundle_source_dir/configure" \ + --prefix="$pike_bundle_prefix" ${extra_configure_args} \ --disable-shared --cache-file=config.cache || exit 1 if test -f "Makefile"; then :; else echo "Makefile not found in `pwd`." -- GitLab