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