From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30622 invoked by alias); 25 Feb 2003 18:10:19 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30600 invoked from network); 25 Feb 2003 18:10:17 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by 172.16.49.205 with SMTP; 25 Feb 2003 18:10:17 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 09BD2D34B6; Tue, 25 Feb 2003 10:10:16 -0800 (PST) Date: Tue, 25 Feb 2003 18:10:00 -0000 From: Joel Brobecker To: Michael Elizabeth Chastain Cc: ac131313@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [rfa] PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later Message-ID: <20030225181015.GP910@gnat.com> References: <200302251710.h1PHAhv07449@duracef.shout.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302251710.h1PHAhv07449@duracef.shout.net> User-Agent: Mutt/1.4i X-SW-Source: 2003-02/txt/msg00645.txt.bz2 > This could be detected at autoconf time, something like: > > AC_MSG_CHECKING(for uintptr_t support in glibc) > AC_CACHE_VAL(ac_cv_c_uintptr_t, > [AC_TRY_COMPILE(, [ > #include > uintptr_t foo; > ], > ac_cv_c_uintptr_t=yes, ac_cv_c_uintptr_t=no)]) > AC_MSG_RESULT($ac_cv_c_uintptr_t) > if test $ac_cv_c_uintptr_t = yes; then > AC_DEFINE(HAVE_UINTPTR_T) > fi > > Then gdb_thread_db.h could produce a better error message if it > gets compiled. It's used only on *-*-*linux* and s390-*-*, > not everywhere. Why not even fail at autoconf time? -- Joel