diff options
author | Jonathan Perkin <jonathan.perkin@oracle.com> | 2010-06-25 11:02:39 +0100 |
---|---|---|
committer | Jonathan Perkin <jonathan.perkin@oracle.com> | 2010-06-25 11:02:39 +0100 |
commit | 654637d463bc057a911d1ce474f4d5b64a8f8c46 (patch) | |
tree | f9145456a7d38ed166ddd682fe993eb4a784fb9d /cmake | |
parent | 1e37ae0ea251f9c889bbb3b81fa06dbef0f474cd (diff) | |
download | mariadb-git-654637d463bc057a911d1ce474f4d5b64a8f8c46.tar.gz |
Ensure aio is available on Linux.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/build_configurations/mysql_release.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/build_configurations/mysql_release.cmake b/cmake/build_configurations/mysql_release.cmake index b4d3dfc1c17..f4be350d1ae 100644 --- a/cmake/build_configurations/mysql_release.cmake +++ b/cmake/build_configurations/mysql_release.cmake @@ -103,6 +103,16 @@ IF(UNIX) ENDIF() OPTION(WITH_PIC "" ON) # Why? + + # Ensure aio is available on Linux (required by InnoDB) + IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") + CHECK_INCLUDE_FILES(libaio.h HAVE_LIBAIO_H) + CHECK_LIBRARY_EXISTS(aio io_queue_init "" HAVE_LIBAIO) + IF(NOT HAVE_LIBAIO_H OR NOT HAVE_LIBAIO) + MESSAGE(FATAL_ERROR "aio is required on Linux") + ENDIF() + ENDIF() + ENDIF() |