From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29120 invoked by alias); 1 Aug 2012 10:46:57 -0000 Received: (qmail 29108 invoked by uid 22791); 1 Aug 2012 10:46:56 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_DJ,TW_GP,TW_JG,TW_SD X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Aug 2012 10:46:43 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SwWRu-0000x9-Kg from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Wed, 01 Aug 2012 03:46:42 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 1 Aug 2012 03:46:42 -0700 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Wed, 1 Aug 2012 03:46:41 -0700 From: Yao Qi To: Subject: [readline, djgpp] Check $build_os instead of $host_os in configure Date: Wed, 01 Aug 2012 10:46:00 -0000 Message-ID: <1343817987-460-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00013.txt.bz2 Hi, When I configure gdb as '--host=i586-pc-msdosdjgpp --target=i586-pc-msdosdjgpp' on x86-linux, I get following configure error in readline. readline/configure: line 6268: pwd.exe: command not found Looks like the configure script should check $build_os instead of $host_os. This patch is to fix this problem. Is it OK? Note that I am not sure that AC_CANONICAL_BUILD is necessary here, because after I add it in configure.in, the re-generated configure is nearly unchanged. readline: * readline/configure.in: Invoke AC_CANONICAL_BUILD. Change $host_os to $build_os. * readline/configure: Regenerated. --- readline/configure | 3 ++- readline/configure.in | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/readline/configure b/readline/configure index 0187311..09de45d 100755 --- a/readline/configure +++ b/readline/configure @@ -2285,6 +2285,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + opt_curses=no opt_purify=no @@ -6264,7 +6265,7 @@ fi -case "$host_os" in +case "$build_os" in msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file *) BUILD_DIR=`pwd` ;; esac diff --git a/readline/configure.in b/readline/configure.in index f09f4e5..b395af4 100644 --- a/readline/configure.in +++ b/readline/configure.in @@ -39,6 +39,7 @@ dnl update the value of RL_READLINE_VERSION in readline.h when this changes LIBVERSION=6.2 AC_CANONICAL_HOST +AC_CANONICAL_BUILD dnl configure defaults opt_curses=no @@ -268,7 +269,7 @@ AC_SUBST(SHARED_TARGET) AC_SUBST(STATIC_INSTALL_TARGET) AC_SUBST(SHARED_INSTALL_TARGET) -case "$host_os" in +case "$build_os" in msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file *) BUILD_DIR=`pwd` ;; esac -- 1.7.7.6