cmake: clean up nohsieh.cc
authorMichael Wallner <mike@php.net>
Wed, 4 Nov 2020 06:41:38 +0000 (07:41 +0100)
committerMichael Wallner <mike@php.net>
Wed, 4 Nov 2020 06:41:38 +0000 (07:41 +0100)
CMake/_Include.cmake
src/libhashkit/CMakeLists.txt
src/libhashkit/nohsieh.cc [deleted file]

index 579d85324ee464d255474ebb4be00032f02ddda0..9f983784093856777390f47cf296c1a249f97dc2 100644 (file)
@@ -6,7 +6,7 @@ endif()
 include(GNUInstallDirs)
 include(CMakePackageConfigHelpers)
 
-if(CMAKE_HOST_SYSTEM_NAME STREQUAL "FreeBSD")
+if(CMAKE_HOST_SYSTEM_NAME MATCHES "BSD")
     find_program(PKGCONF pkgconf)
     if(PKGCONF)
         set(PKG_CONFIG_EXECUTABLE ${PKGCONF})
index 20377d8ba34477a1197c4ced95136893e0678064..3b4551dbd1f3e5698b60fed5af987a7bbd0626bf 100644 (file)
@@ -1,9 +1,3 @@
-if(HAVE_HSIEH_HASH)
-    set(HSIEH_CC hsieh.cc)
-else()
-    set(HSIEH_CC nohsieh.cc)
-endif()
-
 add_library(libhashkit SHARED
         aes.cc
         algorithm.cc
@@ -16,7 +10,7 @@ add_library(libhashkit SHARED
         function.cc
         has.cc
         hashkit.cc
-        ${HSIEH_CC}
+        hsieh.cc
         jenkins.cc
         md5.cc
         murmur.cc
diff --git a/src/libhashkit/nohsieh.cc b/src/libhashkit/nohsieh.cc
deleted file mode 100644 (file)
index fdf07fe..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-    +--------------------------------------------------------------------+
-    | libmemcached - C/C++ Client Library for memcached                  |
-    +--------------------------------------------------------------------+
-    | Redistribution and use in source and binary forms, with or without |
-    | modification, are permitted under the terms of the BSD license.    |
-    | You should have received a copy of the license in a bundled file   |
-    | named LICENSE; in case you did not receive a copy you can review   |
-    | the terms online at: https://opensource.org/licenses/BSD-3-Clause  |
-    +--------------------------------------------------------------------+
-    | Copyright (c) 2006-2014 Brian Aker   https://datadifferential.com/ |
-    | Copyright (c) 2020 Michael Wallner   <mike@php.net>                |
-    +--------------------------------------------------------------------+
-*/
-
-#include "libhashkit/common.h"
-
-#ifdef HAVE_HSIEH_HASH
-#  error "not supported"
-#else
-uint32_t hashkit_hsieh(const char *, size_t, void *) {
-  return 0;
-}
-#endif