Commit 4515017f authored by Glenn Morris's avatar Glenn Morris
Browse files

* src/conf_post.h [HPUX]: Undefine HAVE_RANDOM and HAVE_RINT.

This is a belt-and-braces approach.

* configure.ac: Related comment.
parent 8d8e2dfe
......@@ -2725,7 +2725,6 @@ if test $opsys != unixware; then
AC_CHECK_FUNCS(getwd)
fi
dnl FIXME Fragile: see above.
## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
## has a broken `rint' in some library versions including math library
## version number A.09.05.
......
2012-07-31 Glenn Morris <rgm@gnu.org>
* conf_post.h [HPUX]: Undefine HAVE_RANDOM and HAVE_RINT.
* conf_post.h (AMPERSAND_FULL_NAME, subprocesses):
Move to configure.ac.
......
......@@ -71,11 +71,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
renaming the functions via macros. The system's stdlib.h has fully
prototyped declarations, which yields a conflicting definition of
srand48; it tries to redeclare what was once srandom to be srand48.
So we go with HAVE_LRAND48 being defined. Note we also undef
HAVE_RANDOM via configure. */
So we go with HAVE_LRAND48 being defined. */
#ifdef HPUX
#undef srandom
#undef random
/* We try to avoid checking for random and rint on hpux in
configure.ac, but some other configure test might check for them as
a dependency, so to be safe we also undefine them here.
*/
#undef HAVE_RANDOM
#undef HAVE_RINT
#endif
#ifdef IRIX6_5
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment