diff options
Diffstat (limited to 'qpid/cpp/src/linearstore.cmake')
| -rw-r--r-- | qpid/cpp/src/linearstore.cmake | 57 |
1 files changed, 37 insertions, 20 deletions
diff --git a/qpid/cpp/src/linearstore.cmake b/qpid/cpp/src/linearstore.cmake index 6365905c57..d481ae8418 100644 --- a/qpid/cpp/src/linearstore.cmake +++ b/qpid/cpp/src/linearstore.cmake @@ -17,7 +17,7 @@ # under the License. # # -# Legacy store library CMake fragment, to be included in CMakeLists.txt +# Linear store library CMake fragment, to be included in CMakeLists.txt # if (DEFINED linearstore_force) @@ -26,28 +26,45 @@ else (DEFINED linearstore_force) set (linearstore_default OFF) if (UNIX) # - # Find required BerkelyDB + # Find required BerkeleyDB # include (finddb.cmake) if (DB_FOUND) - # - # find libaio - # - CHECK_LIBRARY_EXISTS (aio io_queue_init "" HAVE_AIO) - CHECK_INCLUDE_FILES (libaio.h HAVE_AIO_H) - if (HAVE_AIO AND HAVE_AIO_H) # - # find libuuid - # - CHECK_LIBRARY_EXISTS (uuid uuid_compare "" HAVE_UUID) - CHECK_INCLUDE_FILES(uuid/uuid.h HAVE_UUID_H) - IF (HAVE_UUID AND HAVE_UUID_H) - # - # allow linearstore to be built - # - set (linearstore_default ON) - ENDIF (HAVE_UUID AND HAVE_UUID_H) - endif (HAVE_AIO AND HAVE_AIO_H) + # find libaio + # + CHECK_LIBRARY_EXISTS (aio io_queue_init "" HAVE_AIO) + CHECK_INCLUDE_FILES (libaio.h HAVE_AIO_H) + if (HAVE_AIO AND HAVE_AIO_H) + # + # find libuuid + # + CHECK_LIBRARY_EXISTS (uuid uuid_compare "" HAVE_UUID) + CHECK_INCLUDE_FILES(uuid/uuid.h HAVE_UUID_H) + if (HAVE_UUID AND HAVE_UUID_H) + # + # allow linearstore to be built + # + message(STATUS "BerkeleyDB for C++, libaio and uuid found, Linearstore support enabled") + set (linearstore_default ON) + else (HAVE_UUID AND HAVE_UUID_H) + if (NOT HAVE_UUID) + message(STATUS "Linearstore requires uuid which is absent.") + endif (NOT HAVE_UUID) + if (NOT HAVE_UUID_H) + message(STATUS "Linearstore requires uuid.h which is absent.") + endif (NOT HAVE_UUID_H) + endif (HAVE_UUID AND HAVE_UUID_H) + else (HAVE_AIO AND HAVE_AIO_H) + if (NOT HAVE_AIO) + message(STATUS "Linearstore requires libaio which is absent.") + endif (NOT HAVE_AIO) + if (NOT HAVE_AIO_H) + message(STATUS "Linearstore requires libaio.h which is absent.") + endif (NOT HAVE_AIO_H) + endif (HAVE_AIO AND HAVE_AIO_H) + else (DB_FOUND) + message(STATUS "Linearstore requires BerkeleyDB for C++ which is absent.") endif (DB_FOUND) endif (UNIX) endif (DEFINED linearstore_force) @@ -59,7 +76,7 @@ if (BUILD_LINEARSTORE) message(FATAL_ERROR "Linearstore produced only on Unix platforms") endif (NOT UNIX) if (NOT DB_FOUND) - message(FATAL_ERROR "Linearstore requires BerkeleyDB which is absent.") + message(FATAL_ERROR "Linearstore requires BerkeleyDB for C++ which is absent.") endif (NOT DB_FOUND) if (NOT HAVE_AIO) message(FATAL_ERROR "Linearstore requires libaio which is absent.") |
