summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-09-27 03:26:03 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-09-27 03:26:03 (GMT)
commitf9fc749ca218a878dbea4022ba1c2fb527f7822c (patch)
tree4fa74f866c489c92901d25872e59e838980a1275
parente1eccc4987c625f4e1d24462e03504e7289fe8ee (diff)
downloadhdf5-f9fc749ca218a878dbea4022ba1c2fb527f7822c.zip
hdf5-f9fc749ca218a878dbea4022ba1c2fb527f7822c.tar.gz
hdf5-f9fc749ca218a878dbea4022ba1c2fb527f7822c.tar.bz2
[svn-r11467] Purpose:
Add the detection of the alarm function. Platforms tested: Tested in heping.
-rwxr-xr-xconfigure3
-rw-r--r--configure.in2
-rw-r--r--src/H5config.h.in3
3 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index db94a8b..0fe169d 100755
--- a/configure
+++ b/configure
@@ -46432,7 +46432,8 @@ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-for ac_func in fork frexpf frexpl gethostname getpwuid getrusage
+
+for ac_func in alarm fork frexpf frexpl gethostname getpwuid getrusage
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
diff --git a/configure.in b/configure.in
index d116d84..2e366e9 100644
--- a/configure.in
+++ b/configure.in
@@ -1605,7 +1605,7 @@ dnl ----------------------------------------------------------------------
dnl Check for functions.
dnl tmpfile needed by h5pdiff.
dnl
-AC_CHECK_FUNCS(fork frexpf frexpl gethostname getpwuid getrusage)
+AC_CHECK_FUNCS(alarm 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)
diff --git a/src/H5config.h.in b/src/H5config.h.in
index e20fdbe..0ffb869 100644
--- a/src/H5config.h.in
+++ b/src/H5config.h.in
@@ -36,6 +36,9 @@
/* Define if gettimeofday() populates the tz pointer passed in */
#undef GETTIMEOFDAY_GIVES_TZ
+/* Define to 1 if you have the `alarm' function. */
+#undef HAVE_ALARM
+
/* Define if the __attribute__(()) extension is present */
#undef HAVE_ATTRIBUTE