This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfa] PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later


> 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 <stdint.h>
>     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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]