summaryrefslogtreecommitdiffstats
path: root/src/ceph/cmake/modules/FindNSPR.cmake
diff options
context:
space:
mode:
authorQiaowei Ren <qiaowei.ren@intel.com>2018-03-01 14:38:11 +0800
committerQiaowei Ren <qiaowei.ren@intel.com>2018-03-01 14:38:11 +0800
commit7da45d65be36d36b880cc55c5036e96c24b53f00 (patch)
treed4f944eb4f8f8de50a9a7584ffa408dc3a3185b2 /src/ceph/cmake/modules/FindNSPR.cmake
parent691462d09d0987b47e112d6ee8740375df3c51b2 (diff)
remove ceph code
This patch removes initial ceph code, due to license issue. Change-Id: I092d44f601cdf34aed92300fe13214925563081c Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
Diffstat (limited to 'src/ceph/cmake/modules/FindNSPR.cmake')
-rw-r--r--src/ceph/cmake/modules/FindNSPR.cmake104
1 files changed, 0 insertions, 104 deletions
diff --git a/src/ceph/cmake/modules/FindNSPR.cmake b/src/ceph/cmake/modules/FindNSPR.cmake
deleted file mode 100644
index 94d6a06..0000000
--- a/src/ceph/cmake/modules/FindNSPR.cmake
+++ /dev/null
@@ -1,104 +0,0 @@
-# - Try to find NSPR
-# Once done this will define
-#
-# NSPR_FOUND - system has NSPR
-# NSPR_INCLUDE_DIRS - the NSPR include directory
-# NSPR_LIBRARIES - Link these to use NSPR
-# NSPR_DEFINITIONS - Compiler switches required for using NSPR
-#
-# Copyright (c) 2010 Andreas Schneider <asn@redhat.com>
-#
-# Redistribution and use is allowed according to the terms of the New
-# BSD license.
-# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-#
-
-
-if (NSPR_LIBRARIES AND NSPR_INCLUDE_DIRS)
- # in cache already
- set(NSPR_FOUND TRUE)
-else (NSPR_LIBRARIES AND NSPR_INCLUDE_DIRS)
- find_package(PkgConfig)
- if (PKG_CONFIG_FOUND)
- pkg_check_modules(_NSPR nspr)
- endif (PKG_CONFIG_FOUND)
-
- find_path(NSPR_INCLUDE_DIR
- NAMES
- nspr.h
- PATHS
- ${_NSPR_INCLUDEDIR}
- /usr/include
- /usr/local/include
- /opt/local/include
- /sw/include
- PATH_SUFFIXES
- nspr4
- nspr
- )
-
- find_library(PLDS4_LIBRARY
- NAMES
- plds4
- PATHS
- ${_NSPR_LIBDIR}
- /usr/lib
- /usr/local/lib
- /opt/local/lib
- /sw/lib
- )
-
- find_library(PLC4_LIBRARY
- NAMES
- plc4
- PATHS
- ${_NSPR_LIBDIR}
- /usr/lib
- /usr/local/lib
- /opt/local/lib
- /sw/lib
- )
-
- find_library(NSPR4_LIBRARY
- NAMES
- nspr4
- PATHS
- ${_NSPR_LIBDIR}
- /usr/lib
- /usr/local/lib
- /opt/local/lib
- /sw/lib
- )
-
- set(NSPR_INCLUDE_DIRS
- ${NSPR_INCLUDE_DIR}
- )
-
- if (PLDS4_LIBRARY)
- set(NSPR_LIBRARIES
- ${NSPR_LIBRARIES}
- ${PLDS4_LIBRARY}
- )
- endif (PLDS4_LIBRARY)
-
- if (PLC4_LIBRARY)
- set(NSPR_LIBRARIES
- ${NSPR_LIBRARIES}
- ${PLC4_LIBRARY}
- )
- endif (PLC4_LIBRARY)
-
- if (NSPR4_LIBRARY)
- set(NSPR_LIBRARIES
- ${NSPR_LIBRARIES}
- ${NSPR4_LIBRARY}
- )
- endif (NSPR4_LIBRARY)
-
- include(FindPackageHandleStandardArgs)
- find_package_handle_standard_args(NSPR DEFAULT_MSG NSPR_LIBRARIES NSPR_INCLUDE_DIRS)
-
- # show the NSPR_INCLUDE_DIRS and NSPR_LIBRARIES variables only in the advanced view
- mark_as_advanced(NSPR_INCLUDE_DIRS NSPR_LIBRARIES)
-
-endif (NSPR_LIBRARIES AND NSPR_INCLUDE_DIRS)