diff options
author | James Laird <jlaird@hdfgroup.org> | 2005-05-05 17:38:59 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2005-05-05 17:38:59 (GMT) |
commit | b0e5134171d5c92a0b50bae4daba97651eeeafe6 (patch) | |
tree | ddef77a0e5d0a56eda180c068b4fe66398998a68 /configure.in | |
parent | 8570c314ef67c03f9b3ef9609c49cff7ee6488c0 (diff) | |
download | hdf5-b0e5134171d5c92a0b50bae4daba97651eeeafe6.zip hdf5-b0e5134171d5c92a0b50bae4daba97651eeeafe6.tar.gz hdf5-b0e5134171d5c92a0b50bae4daba97651eeeafe6.tar.bz2 |
[svn-r10730] Purpose:
Portability feature
Description:
The random() and srandom() functions are not available on all machines.
Set up the configure script to automatically detect them, rather than
requiring their presence or absence to be hardcoded.
Solution:
Added AC_CHECK_FUNCS macro to configure.in and replaced
#ifdef WIN32 conditionals with #ifdef H5_HAVE_RANDOM conditionals.
Platforms tested:
sleipnir, Windows
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 46dcbad..dce7324 100644 --- a/configure.in +++ b/configure.in @@ -1493,6 +1493,7 @@ dnl AC_CHECK_FUNCS(fork frexpf frexpl gethostname getpwuid getrusage) AC_CHECK_FUNCS(BSDgettimeofday longjmp setsysinfo sigaction) AC_CHECK_FUNCS(signal snprintf vasprintf strdup system waitpid) +AC_CHECK_FUNCS(random srandom) dnl Check for vsnprintf() separately, so we can detect situations where it dnl doesn't return the correct size for formatted strings that are too large |