aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-07-31 14:34:26 -0400
committerGlenn Morris2012-07-31 14:34:26 -0400
commit4515017f63ee7dad0f7e714022e21e555d372c25 (patch)
tree30cb07edb2514df6c61ab2262cdd49a9f395ece9
parent8d8e2dfea4550988e389bf0d81eb24648a2438a5 (diff)
downloademacs-4515017f63ee7dad0f7e714022e21e555d372c25.tar.gz
emacs-4515017f63ee7dad0f7e714022e21e555d372c25.zip
* src/conf_post.h [HPUX]: Undefine HAVE_RANDOM and HAVE_RINT.
This is a belt-and-braces approach. * configure.ac: Related comment.
-rw-r--r--configure.ac1
-rw-r--r--src/ChangeLog2
-rw-r--r--src/conf_post.h9
3 files changed, 9 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 21ed77460a7..2c1b90e225b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2725,7 +2725,6 @@ if test $opsys != unixware; then
2725 AC_CHECK_FUNCS(getwd) 2725 AC_CHECK_FUNCS(getwd)
2726fi 2726fi
2727 2727
2728dnl FIXME Fragile: see above.
2729## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines 2728## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
2730## has a broken `rint' in some library versions including math library 2729## has a broken `rint' in some library versions including math library
2731## version number A.09.05. 2730## version number A.09.05.
diff --git a/src/ChangeLog b/src/ChangeLog
index fccb46f788e..26a93dbd817 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12012-07-31 Glenn Morris <rgm@gnu.org> 12012-07-31 Glenn Morris <rgm@gnu.org>
2 2
3 * conf_post.h [HPUX]: Undefine HAVE_RANDOM and HAVE_RINT.
4
3 * conf_post.h (AMPERSAND_FULL_NAME, subprocesses): 5 * conf_post.h (AMPERSAND_FULL_NAME, subprocesses):
4 Move to configure.ac. 6 Move to configure.ac.
5 7
diff --git a/src/conf_post.h b/src/conf_post.h
index f8b76a1b19e..aa09ae7228c 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -71,11 +71,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
71 renaming the functions via macros. The system's stdlib.h has fully 71 renaming the functions via macros. The system's stdlib.h has fully
72 prototyped declarations, which yields a conflicting definition of 72 prototyped declarations, which yields a conflicting definition of
73 srand48; it tries to redeclare what was once srandom to be srand48. 73 srand48; it tries to redeclare what was once srandom to be srand48.
74 So we go with HAVE_LRAND48 being defined. Note we also undef 74 So we go with HAVE_LRAND48 being defined. */
75 HAVE_RANDOM via configure. */
76#ifdef HPUX 75#ifdef HPUX
77#undef srandom 76#undef srandom
78#undef random 77#undef random
78/* We try to avoid checking for random and rint on hpux in
79 configure.ac, but some other configure test might check for them as
80 a dependency, so to be safe we also undefine them here.
81 */
82#undef HAVE_RANDOM
83#undef HAVE_RINT
79#endif 84#endif
80 85
81#ifdef IRIX6_5 86#ifdef IRIX6_5