[RFA] gdb/configure: Add check for sys/proc.h

Andrew Cagney ac131313@ges.redhat.com
Mon Jul 8 21:24:00 GMT 2002


> This is in preparation for some later patches porting GDB to
> i386-interix: when compiling proc-api.c, we try to include <sys/proc.h>
> but this header file does not exist. I haven't checked this myself,
> but I trust that the definitions that proc-api was needing from this
> file will be found elsewhere. So I would like to conditionalize the
> inclusion of this file using the HAVE_SYS_PROC_H macro. The following
> patch introduces this macro.
> 
> 2002-07-05  Joel Brobecker  <brobecker@gnat.com>
> 
>         Define HAVE_SYS_PROC_H if sys/proc.h exists
>         * configure.in: Add check for sys/proc.h
>         * config.in: Regenerate.
>         * configure: Regenerate.
> 
> This patch has been tested on x86-linux (no sys/proc.h), and on
> sparc-solaris (have sys/proc.h).
> 
> Ok to commit?

Yes.  In general, any developer ``brave enough'' can commit changes to 
configure.in.  Just post them first for comment.

Can you just check that you're using the BINUTILS 000227 autoconf.  I'm 
asking as I noticed:

> ***************
> *** 379,392 ****
>   /* Define if you have the <sys/select.h> header file.  */
>   #undef HAVE_SYS_SELECT_H
>   
> - /* Define if you have the <sys/stat.h> header file.  */
> - #undef HAVE_SYS_STAT_H
> - 
>   /* Define if you have the <sys/syscall.h> header file.  */
>   #undef HAVE_SYS_SYSCALL_H
> - 
> - /* Define if you have the <sys/types.h> header file.  */
> - #undef HAVE_SYS_TYPES_H
>   
>   /* Define if you have the <sys/user.h> header file.  */
>   #undef HAVE_SYS_USER_H

which has me puzzled.  I suspect it might just be that config.in is 
out-of-datem dig dig.  Yep :-/

Andrew




More information about the Gdb-patches mailing list