From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2490 invoked by alias); 6 Jul 2002 02:10:46 -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 2434 invoked from network); 6 Jul 2002 02:10:44 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sources.redhat.com with SMTP; 6 Jul 2002 02:10:44 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id B4BF9D2F70; Fri, 5 Jul 2002 19:10:43 -0700 (PDT) Date: Sun, 07 Jul 2002 08:46:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: [RFA] gdb/configure: Add check for sys/proc.h Message-ID: <20020706021043.GA1091@gnat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2002-07/txt/msg00106.txt.bz2 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 786 This is in preparation for some later patches porting GDB to i386-interix: when compiling proc-api.c, we try to include 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 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? Thanks, -- Joel --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Description: HAVE_SYS_PROC_H.diff Content-Disposition: attachment; filename="HAVE_SYS_PROC_H.diff" Content-length: 3304 Index: configure.in =================================================================== RCS file: /cvs/src/src/gdb/configure.in,v retrieving revision 1.88 diff -c -3 -p -r1.88 configure.in *** configure.in 21 Jun 2002 23:48:39 -0000 1.88 --- configure.in 6 Jul 2002 01:52:41 -0000 *************** esac; esac *** 121,127 **** AC_CHECK_HEADERS(ctype.h nlist.h link.h thread_db.h proc_service.h \ memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \ ! string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \ term.h termio.h termios.h unistd.h wait.h sys/wait.h \ wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \ time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \ --- 121,127 ---- AC_CHECK_HEADERS(ctype.h nlist.h link.h thread_db.h proc_service.h \ memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \ ! string.h sys/procfs.h sys/proc.h sys/ptrace.h sys/reg.h stdint.h \ term.h termio.h termios.h unistd.h wait.h sys/wait.h \ wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \ time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \ Index: config.in =================================================================== RCS file: /cvs/src/src/gdb/config.in,v retrieving revision 1.38 diff -c -3 -p -r1.38 config.in *** config.in 21 Jun 2002 23:48:32 -0000 1.38 --- config.in 6 Jul 2002 01:52:36 -0000 *************** *** 367,372 **** --- 367,375 ---- /* Define if you have the header file. */ #undef HAVE_SYS_POLL_H + /* Define if you have the header file. */ + #undef HAVE_SYS_PROC_H + /* Define if you have the header file. */ #undef HAVE_SYS_PROCFS_H *************** *** 379,392 **** /* Define if you have the header file. */ #undef HAVE_SYS_SELECT_H - /* Define if you have the header file. */ - #undef HAVE_SYS_STAT_H - /* Define if you have the header file. */ #undef HAVE_SYS_SYSCALL_H - - /* Define if you have the header file. */ - #undef HAVE_SYS_TYPES_H /* Define if you have the header file. */ #undef HAVE_SYS_USER_H --- 382,389 ---- Index: configure =================================================================== RCS file: /cvs/src/src/gdb/configure,v retrieving revision 1.86 diff -c -3 -p -r1.86 configure *** configure 21 Jun 2002 23:48:32 -0000 1.86 --- configure 6 Jul 2002 01:52:40 -0000 *************** esac; esac *** 3389,3395 **** for ac_hdr in ctype.h nlist.h link.h thread_db.h proc_service.h \ memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \ ! string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \ term.h termio.h termios.h unistd.h wait.h sys/wait.h \ wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \ time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \ --- 3389,3395 ---- for ac_hdr in ctype.h nlist.h link.h thread_db.h proc_service.h \ memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \ ! string.h sys/procfs.h sys/proc.h sys/ptrace.h sys/reg.h stdint.h \ term.h termio.h termios.h unistd.h wait.h sys/wait.h \ wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \ time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \ --2oS5YaxWCcQjTEyO--