Skip to content

Commit 1e6bc0f

Browse files
committed
checkin 1.0.4
0 parents  commit 1e6bc0f

File tree

959 files changed

+168384
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

959 files changed

+168384
-0
lines changed

CMakeLists.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
cmake_minimum_required(VERSION 2.8)
2+
3+
Project(openlitespeed)
4+
INCLUDE( ${PROJECT_SOURCE_DIR}/CMakeModules/common.cmake)
5+
6+
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
7+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/config.h)
8+
9+
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeModules)
10+
find_package(ZLIB REQUIRED)
11+
##find_package(LibLdap REQUIRED)
12+
find_package(PCRE REQUIRED)
13+
find_package(EXPAT REQUIRED)
14+
find_package(OpenSSL REQUIRED)
15+
16+
add_subdirectory(src)
17+
18+
19+
20+

CMakeModules/FindLibLdap.cmake

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Try and find libldap.
2+
# As soon as libldap has been found, the following variables will be defined:
3+
#
4+
# LIBLDAP_FOUND
5+
# LDAP_INCLUDE_DIR
6+
# LDAP_LIBRARY:FILEPATH
7+
#
8+
#
9+
# Copyright (c) 2009 Juergen Leising <[email protected]>
10+
#
11+
# Redistribution and use is allowed according to the terms of the New
12+
# BSD license.
13+
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
14+
#
15+
16+
17+
MESSAGE(STATUS "checking for libldap and liblber...")
18+
19+
FIND_PATH(LDAP_INCLUDE_DIR NAMES ldap.h
20+
PATHS /include /usr/include /usr/local/include /usr/share/include /opt/include
21+
DOC "Try and find the header file ldap.h")
22+
23+
FIND_PATH(LBER_INCLUDE_DIR NAMES lber.h
24+
PATHS /include /usr/include /usr/local/include /usr/share/include /opt/include ${LDAP_INCLUDE_DIR}
25+
DOC "Try and find the header file lber.h")
26+
27+
28+
29+
FIND_LIBRARY(LDAP_LIBRARY NAMES ldap
30+
PATHS /usr/lib /lib /usr/local/lib /usr/share/lib /opt/lib /opt/share/lib /var/lib /usr/lib64 /lib64 /usr/local/lib64 /usr/share/lib64 /opt/lib64 /opt/share/lib64 /var/lib64
31+
DOC "Try and find libldap")
32+
33+
34+
IF (LDAP_LIBRARY)
35+
get_filename_component(LDAP_LIBRARY_DIRS ${LDAP_LIBRARY} PATH)
36+
FIND_LIBRARY(LBER_LIBRARY NAMES lber
37+
PATHS /usr/lib /lib /usr/local/lib /usr/share/lib /opt/lib /opt/share/lib /var/lib /usr/lib64 /lib64 /usr/local/lib64 /usr/share/lib64 /opt/lib64 /opt/share/lib64 /var/lib64 ${LDAP_LIBRARY_DIRS}
38+
DOC "Try and find liblber")
39+
ELSE (LDAP_LIBRARY)
40+
FIND_LIBRARY(LBER_LIBRARY NAMES lber
41+
PATHS /usr/lib /lib /usr/local/lib /usr/share/lib /opt/lib /opt/share/lib /var/lib /usr/lib64 /lib64 /usr/local/lib64 /usr/share/lib64 /opt/lib64 /opt/share/lib64 /var/lib64
42+
DOC "Try and find liblber")
43+
ENDIF (LDAP_LIBRARY)
44+
45+
46+
47+
48+
IF (LBER_LIBRARY)
49+
SET( LIBLBER_FOUND 1 )
50+
get_filename_component(LBER_LIBRARY_DIRS ${LBER_LIBRARY} PATH)
51+
MESSAGE(STATUS " Found ${LBER_LIBRARY}")
52+
ELSE(LBER_LIBRARY)
53+
MESSAGE( STATUS " Could NOT find liblber.")
54+
ENDIF (LBER_LIBRARY)
55+
56+
57+
58+
59+
IF (LDAP_INCLUDE_DIR AND LDAP_LIBRARY)
60+
SET( LIBLDAP_FOUND 1 )
61+
MESSAGE(STATUS " Found ${LDAP_LIBRARY}")
62+
ELSE (LDAP_INCLUDE_DIR AND LDAP_LIBRARY)
63+
IF ( LibLdap_FIND_REQUIRED )
64+
MESSAGE( FATAL_ERROR " Could NOT find libldap. The ldap plugin needs this library.")
65+
ELSE ( LibLdap_FIND_REQUIRED )
66+
MESSAGE( STATUS " Could NOT find libldap.")
67+
ENDIF ( LibLdap_FIND_REQUIRED )
68+
ENDIF (LDAP_INCLUDE_DIR AND LDAP_LIBRARY)
69+

CMakeModules/FindPCRE.cmake

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# - Try to find the PCRE regular expression library
2+
# Once done this will define
3+
#
4+
# PCRE_FOUND - system has the PCRE library
5+
# PCRE_INCLUDE_DIR - the PCRE include directory
6+
# PCRE_LIBRARIES - The libraries needed to use PCRE
7+
8+
# Copyright (c) 2006, Alexander Neundorf, <[email protected]>
9+
#
10+
# Redistribution and use is allowed according to the terms of the BSD license.
11+
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
12+
13+
if (PCRE_INCLUDE_DIR AND PCRE_PCREPOSIX_LIBRARY AND PCRE_PCRE_LIBRARY)
14+
# Already in cache, be silent
15+
set(PCRE_FIND_QUIETLY TRUE)
16+
endif (PCRE_INCLUDE_DIR AND PCRE_PCREPOSIX_LIBRARY AND PCRE_PCRE_LIBRARY)
17+
18+
if (NOT WIN32)
19+
# use pkg-config to get the directories and then use these values
20+
# in the FIND_PATH() and FIND_LIBRARY() calls
21+
find_package(PkgConfig)
22+
pkg_check_modules(PC_PCRE QUIET libpcre)
23+
set(PCRE_DEFINITIONS ${PC_PCRE_CFLAGS_OTHER})
24+
endif (NOT WIN32)
25+
26+
find_path(PCRE_INCLUDE_DIR pcre.h
27+
HINTS ${PC_PCRE_INCLUDEDIR} ${PC_PCRE_INCLUDE_DIRS}
28+
PATH_SUFFIXES pcre)
29+
30+
find_library(PCRE_PCRE_LIBRARY NAMES pcre HINTS ${PC_PCRE_LIBDIR} ${PC_PCRE_LIBRARY_DIRS})
31+
32+
find_library(PCRE_PCREPOSIX_LIBRARY NAMES pcreposix HINTS ${PC_PCRE_LIBDIR} ${PC_PCRE_LIBRARY_DIRS})
33+
34+
include(FindPackageHandleStandardArgs)
35+
36+
IF(NOT WIN32)
37+
find_package_handle_standard_args(PCRE DEFAULT_MSG PCRE_INCLUDE_DIR PCRE_PCRE_LIBRARY PCRE_PCREPOSIX_LIBRARY )
38+
mark_as_advanced(PCRE_INCLUDE_DIR PCRE_LIBRARIES PCRE_PCREPOSIX_LIBRARY PCRE_PCRE_LIBRARY)
39+
set(PCRE_LIBRARIES ${PCRE_PCRE_LIBRARY} ${PCRE_PCREPOSIX_LIBRARY})
40+
ELSE()
41+
find_package_handle_standard_args(PCRE DEFAULT_MSG PCRE_INCLUDE_DIR PCRE_PCRE_LIBRARY )
42+
set(PCRE_LIBRARIES ${PCRE_PCRE_LIBRARY} )
43+
mark_as_advanced(PCRE_INCLUDE_DIR PCRE_LIBRARIES PCRE_PCRE_LIBRARY)
44+
ENDIF()

CMakeModules/common.cmake

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cmake_minimum_required(VERSION 2.8)
2+
include_directories ("${PROJECT_SOURCE_DIR}/src")
3+

0 commit comments

Comments
 (0)