From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30920 invoked by alias); 4 May 2010 20:06:07 -0000 Received: (qmail 30905 invoked by uid 22791); 4 May 2010 20:06:05 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from aussmtpmrkpc120.us.dell.com (HELO aussmtpmrkpc120.us.dell.com) (143.166.82.159) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 04 May 2010 20:05:57 +0000 X-Loopcount0: from 12.110.134.31 Received: from unknown (HELO M31.equallogic.com) ([12.110.134.31]) by aussmtpmrkpc120.us.dell.com with SMTP; 04 May 2010 15:05:56 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [RFC] Make string printing work on NetBSD (iconv issue) Date: Tue, 04 May 2010 20:06:00 -0000 Message-ID: In-Reply-To: References: <19424.30941.651367.946330@pkoning-laptop.equallogic.com> From: "Paul Koning" To: "Andreas Schwab" Cc: 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: 2010-05/txt/msg00076.txt.bz2 > Paul Koning writes: >=20 > > +dnl Check if iconv handles wchar_t, and if not, what to use instead. > > +if test "x$am_cv_func_iconv" =3D "xyes"; then > > + AC_MSG_CHECKING(iconv codeset for wchar_t) > > + if iconv -f ascii -t wchar_t /dev/null; then > > + AC_MSG_RESULT(wchar_t) > > + AC_DEFINE([ICONV_INTERMEDIATE_ENCODING],["wchar_t"], > > + [Codeset name that corresponds to wchar_t encoding.]) >=20 > That tests iconv on the build system, but gdb uses iconv on the host > system. True. Is there a way to test the host iconv? I can make the check conditional on "not a cross build". Then what about cross builds? If there isn't a test that gives the answer, I could do something based on host OS type. Or that plus libiconv present/absent? paul