Added some basic CGI support using kcgi plus a lot of fixes and content updates. (0.41.9)
This commit is contained in:
parent
9698074279
commit
604c415c0c
25 changed files with 407 additions and 13 deletions
19
cmake/Extensions/KCGI.cmake
Normal file
19
cmake/Extensions/KCGI.cmake
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# KCGI (kcgi)
|
||||
option(FUN_WITH_KCGI "Enable kcgi support (CGI/FastCGI via kcgi)" OFF)
|
||||
set(KCGI_INCLUDE_DIRS "")
|
||||
set(KCGI_LINK_LIBS "")
|
||||
|
||||
if(FUN_WITH_KCGI)
|
||||
add_definitions(-DFUN_WITH_KCGI)
|
||||
find_package(PkgConfig QUIET)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
pkg_check_modules(KCGI QUIET kcgi)
|
||||
endif()
|
||||
if(KCGI_FOUND)
|
||||
list(APPEND KCGI_INCLUDE_DIRS ${KCGI_INCLUDE_DIRS} ${KCGI_INCLUDE_DIRS})
|
||||
list(APPEND KCGI_LINK_LIBS ${KCGI_LINK_LIBS} ${KCGI_LIBRARIES})
|
||||
else()
|
||||
# Fallback libs commonly required for kcgi on Linux
|
||||
list(APPEND KCGI_LINK_LIBS kcgi z)
|
||||
endif()
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue