This is the mail archive of the gdb-patches@sourceware.org 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: [hpux] Fix build problem on hpux


On Fri, Mar 10, 2006 at 08:19:21AM +0800, Randolph Chung wrote:
> 2005-03-09  Randolph Chung  <tausq@debian.org>
> 
> 	* hpread.c (hpread_start_psymtab): Remove hpread_psymtab_to_symtab
> 	declaration.
> 	* acinclude.m4 (gdb_AC_HPUX): Define.
> 	* config.in (_XOPEN_SOURCE_EXTENDED): Define if needed.
> 	* configure.ac: Call gdb_AC_HPUX.
> 	* configure: Regenerate.

config.in is a generated file, as the comment at the top says.

> +AC_DEFUN(gdb_AC_HPUX,
> +[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl
> +AC_BEFORE([$0], [AC_TRY_RUN])dnl
> +AC_MSG_CHECKING(for HPUX)
> +AC_EGREP_CPP(yes,
> +[#ifdef _HPUX_SOURCE
> +  yes
> +#endif
> +], [AC_MSG_RESULT(yes); AC_DEFINE(_XOPEN_SOURCE_EXTENDED)], AC_MSG_RESULT(no))
> +])
> +

What does the existance of _HPUX_SOURCE have to do with this?

-- 
Daniel Jacobowitz
CodeSourcery


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