mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
Removes some DEC Alpha cruft from H5detect and H5private.h (#708)
This commit is contained in:
parent
50d0888f49
commit
5e4625c04f
@ -198,9 +198,6 @@
|
||||
/* Define to 1 if you have the `ioctl' function. */
|
||||
#cmakedefine H5_HAVE_IOCTL @H5_HAVE_IOCTL@
|
||||
|
||||
/* Define to 1 if you have the <io.h> header file. */
|
||||
#cmakedefine H5_HAVE_IO_H @H5_HAVE_IO_H@
|
||||
|
||||
/* Define to 1 if you have the `crypto' library (-lcrypto). */
|
||||
#cmakedefine H5_HAVE_LIBCRYPTO @H5_HAVE_LIBCRYPTO@
|
||||
|
||||
|
@ -123,19 +123,10 @@ CHECK_INCLUDE_FILE_CONCAT ("stddef.h" ${HDF_PREFIX}_HAVE_STDDEF_H)
|
||||
CHECK_INCLUDE_FILE_CONCAT ("unistd.h" ${HDF_PREFIX}_HAVE_UNISTD_H)
|
||||
|
||||
# Windows
|
||||
CHECK_INCLUDE_FILE_CONCAT ("io.h" ${HDF_PREFIX}_HAVE_IO_H)
|
||||
if (NOT CYGWIN)
|
||||
CHECK_INCLUDE_FILE_CONCAT ("winsock2.h" ${HDF_PREFIX}_HAVE_WINSOCK2_H)
|
||||
endif ()
|
||||
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "OSF")
|
||||
CHECK_INCLUDE_FILE_CONCAT ("sys/sysinfo.h" ${HDF_PREFIX}_HAVE_SYS_SYSINFO_H)
|
||||
CHECK_INCLUDE_FILE_CONCAT ("sys/proc.h" ${HDF_PREFIX}_HAVE_SYS_PROC_H)
|
||||
else ()
|
||||
set (${HDF_PREFIX}_HAVE_SYS_SYSINFO_H "" CACHE INTERNAL "" FORCE)
|
||||
set (${HDF_PREFIX}_HAVE_SYS_PROC_H "" CACHE INTERNAL "" FORCE)
|
||||
endif ()
|
||||
|
||||
CHECK_INCLUDE_FILE_CONCAT ("globus/common.h" ${HDF_PREFIX}_HAVE_GLOBUS_COMMON_H)
|
||||
CHECK_INCLUDE_FILE_CONCAT ("pdb.h" ${HDF_PREFIX}_HAVE_PDB_H)
|
||||
CHECK_INCLUDE_FILE_CONCAT ("pthread.h" ${HDF_PREFIX}_HAVE_PTHREAD_H)
|
||||
|
@ -1252,15 +1252,15 @@ esac
|
||||
## Windows
|
||||
case "`uname`" in
|
||||
CYGWIN*)
|
||||
AC_CHECK_HEADERS([io.h sys/timeb.h])
|
||||
AC_CHECK_HEADERS([sys/timeb.h])
|
||||
UNAME_CYGWIN="yes"
|
||||
;;
|
||||
MINGW*)
|
||||
AC_CHECK_HEADERS([io.h winsock2.h sys/timeb.h])
|
||||
AC_CHECK_HEADERS([winsock2.h sys/timeb.h])
|
||||
AC_HAVE_LIBRARY([ws2_32])
|
||||
;;
|
||||
*)
|
||||
AC_CHECK_HEADERS([io.h winsock2.h sys/timeb.h])
|
||||
AC_CHECK_HEADERS([winsock2.h sys/timeb.h])
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -1655,21 +1655,6 @@ main(int argc, char *argv[])
|
||||
if (!rawoutstream)
|
||||
rawoutstream = stdout;
|
||||
|
||||
#if defined(H5_HAVE_SETSYSINFO) && defined(SSI_NVPAIRS)
|
||||
#if defined(UAC_NOPRINT) && defined(UAC_SIGBUS)
|
||||
/*
|
||||
* Make sure unaligned access generates SIGBUS and doesn't print warning
|
||||
* messages so that we can detect alignment constraints on the DEC Alpha.
|
||||
*/
|
||||
int nvpairs[2];
|
||||
nvpairs[0] = SSIN_UACPROC;
|
||||
nvpairs[1] = UAC_NOPRINT | UAC_SIGBUS;
|
||||
if (setsysinfo(SSI_NVPAIRS, nvpairs, 1, 0, 0) < 0) {
|
||||
fprintf(stderr, "H5detect: unable to turn off UAC handling: %s\n", HDstrerror(errno));
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(H5SETJMP) && defined(H5_HAVE_SIGNAL)
|
||||
/* verify the SIGBUS and SIGSEGV handlers work properly */
|
||||
if (verify_signal_handlers(SIGBUS, sigbus_handler) != 0) {
|
||||
|
@ -126,21 +126,6 @@
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* System information. These are needed on the DEC Alpha to turn off fixing
|
||||
* of unaligned accesses by the operating system during detection of
|
||||
* alignment constraints in H5detect.c:main().
|
||||
*/
|
||||
#ifdef H5_HAVE_SYS_SYSINFO_H
|
||||
#include <sys/sysinfo.h>
|
||||
#endif
|
||||
#ifdef H5_HAVE_SYS_PROC_H
|
||||
#include <sys/proc.h>
|
||||
#endif
|
||||
#ifdef H5_HAVE_IO_H
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Dynamic library handling. These are needed for dynamically loading I/O
|
||||
* filters and VFDs.
|
||||
@ -175,6 +160,7 @@
|
||||
|
||||
#include <windows.h>
|
||||
#include <direct.h> /* For _getcwd() */
|
||||
#include <io.h> /* POSIX I/O */
|
||||
|
||||
#endif /*H5_HAVE_WIN32_API*/
|
||||
|
||||
|
@ -29,10 +29,6 @@
|
||||
#include <sys/stat.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef H5_HAVE_IO_H
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
#ifdef H5_HAVE_UNISTD_H
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
Loading…
Reference in New Issue
Block a user