liballeg/allegro5
CMakeLists.txt
:771
check_library_exists(Xcursor XcursorImageCreate "" CAN_XCURSOR)
check_library_exists(Xcursor XcursorImageCreate "" CAN_XCURSOR)
check_library_exists(Xss XScreenSaverQueryExtension "" CAN_XSCREENSAVER)
check_library_exists(X11 XOpenIM "" CAN_XIM)
check_library_exists(rt shm_open "" HAVE_LIB_RT)
CHECK_LIBRARY_EXISTS(m log2 "" HAVE_LIB_M)
CHECK_LIBRARY_EXISTS("socket" "connect" "" CMAKE_HAVE_CONNECT)
check_library_exists(${OPENSSL_SSL_LIBRARY} "TLSv1_2_method" "" HAVE_TLS_V1_2)
check_library_exists(c fopen "" LIBUNWIND_HAS_C_LIB)
check_library_exists(dl dladdr "" LIBUNWIND_HAS_DL_LIB)
check_library_exists(pthread pthread_once "" LIBUNWIND_HAS_PTHREAD_LIB)
check_library_exists(pthread pthread_attr_get_np "" HAVE_PTHREAD_ATTR_GET_NP)
check_library_exists(pthread pthread_getattr_np "" HAVE_PTHREAD_GETATTR_NP)
check_library_exists(pthread pthread_condattr_setclock "" HAVE_PTHREAD_CONDATTR_SETCLOCK)
check_library_exists("socket" "connect" "" HAVE_LIBSOCKET)
check_library_exists(m llrint "${CMAKE_LIBRARY_PREFIX}" HAVE_LLRINT)
check_library_exists(pthread sem_timedwait "${CMAKE_LIBRARY_PREFIX}" HAVE_SEM_TIMEDWAIT)
check_library_exists("ssp.a" __stack_chk_fail "" HAVE_LIBSSP)
check_library_exists("dnet" "dnet_ntoa" "" X11_LIB_DNET_HAS_DNET_NTOA)
check_library_exists("posix" "remove" "" CMAKE_LIB_POSIX_HAS_REMOVE)
check_library_exists("ipc" "shmat" "" CMAKE_LIB_IPS_HAS_SHMAT)
check_library_exists("ICE" "IceConnectionNumber" "${X11_LIBRARY_DIR}"
CMAKE_LIB_ICE_HAS_ICECONNECTIONNUMBER)
check_library_exists(m lround "" HAVE_LIB_M)
check_library_exists(m pow "" HAVE_LIB_M)
check_library_exists(pthread pthread_mutex_timedlock "" WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_LIB)
CHECK_LIBRARY_EXISTS(${LIBLZMA_LIBRARY_check} lzma_lzma_preset "" LIBLZMA_HAS_LZMA_PRESET)
check_library_exists(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
CHECK_LIBRARY_EXISTS(pthread pthread_create "" CMAKE_HAVE_PTHREAD_CREATE)
CHECK_LIBRARY_EXISTS ("${LIBRARY};${LINK_LIBS}" ${SYMBOL} "" ${VARIABLE})
CHECK_LIBRARY_EXISTS ("${LIBRARY};${LINK_LIBS}" ${SYMBOL} "" ${VARIABLE})
CHECK_LIBRARY_EXISTS (posix4 clock_gettime "" CLOCK_GETTIME_IN_LIBPOSIX4)
check_library_exists(atomic __atomic_fetch_add_4 "" HAVE_LIBATOMIC)
check_library_exists(atomic __atomic_load_8 "" HAVE_CXX_LIBATOMICS64)
check_library_exists(m sin "" HAVE_LIB_M)
check_library_exists(m cos "" _EXPAT_LIBM_FOUND)
CHECK_LIBRARY_EXISTS ("${LIBRARY};${LINK_LIBS}" ${SYMBOL} "" ${VARIABLE})
CHECK_LIBRARY_EXISTS(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME_RT)
check_library_exists(readline add_history "" HAVE_READLINE)
check_library_exists(crc32c crc32c_value "" HAVE_CRC32C)
check_library_exists(snappy snappy_compress "" HAVE_SNAPPY)
check_library_exists(zstd zstd_compress "" HAVE_ZSTD)
CHECK_LIBRARY_EXISTS("${GD_LIBRARY}" "gdImageJpeg" "${GD_LIB_PATH}" GD_SUPPORTS_JPEG)
check_library_exists(rt clock_gettime "time.h" NEED_LIBRT)
check_library_exists(
pthread
pthread_create
""
HAVE_PTHREAD_CREATE
)
check_library_exists(m pow "" WITH_HDRHISTOGRAM)
check_library_exists(Xxf86dga XDGAQueryExtension
"${X11_LIB_SEARCH_PATH}" XDGA_FOUND)
check_library_exists (m floor "" LIBM_REQUIRED)
check_library_exists (sqlite3 sqlite3_close "" HAVE_SQLITE3)
check_library_exists(m sin "" LUA_USE_LIBM)
check_library_exists(m sin "" LUA_USE_LIBM)
CHECK_LIBRARY_EXISTS(m sin "" MINILUA_USE_LIBM)
CHECK_LIBRARY_EXISTS(pq "PQserverVersion" POSTGRESQL_LIBRARY POSTGIS_HAS_SERVER_VERSION)
CHECK_LIBRARY_EXISTS("${GD_LIBRARY}" "gdImagePng" "${GD_LIB_PATH}" GD_SUPPORTS_PNG)
CHECK_LIBRARY_EXISTS("${GD_LIBRARY}" "gdImageJpeg" "${GD_LIB_PATH}" GD_SUPPORTS_JPEG)
CHECK_LIBRARY_EXISTS("${GD_LIBRARY}" "gdFontCacheSetup" "${GD_LIB_PATH}" GD_SUPPORTS_FREETYPE)
check_library_exists(m pow "" LIBM_FOUND)
check_library_exists(rt clock_nanosleep "" CLOCK_NANOSLEEP_IN_RT_FOUND)
check_library_exists(kstat kstat_lookup "kstat.h" HAVE_LIBKSTAT)
check_library_exists(kvm kvm_open "kvm.h" HAVE_LIBKVM)
check_library_exists(sendfile sendfile "" HAVE_LIBSENDFILE)
check_library_exists(curses tgetent "" HAVE_LIBCURSES)
check_library_exists(tinfo tgetent "" HAVE_LIBTINFO)
check_library_exists(${LIB} ${SYM} "" ${DEF})
check_library_exists(wolfssl::wolfssl wolfSSL_CTX_LoadCRLBuffer "" NNG_WOLFSSL_HAVE_CRL)
check_library_exists(wolfssl::wolfssl wolfSSL_get_verify_result "" NNG_WOLFSSL_HAVE_VERIFY)
check_library_exists(wolfssl::wolfssl wolfSSL_CTX_set_default_passwd_cb "" NNG_WOLFSSL_HAVE_PASSWORD)
check_library_exists(wolfssl::wolfssl wolfSSL_CTX_SetTmpDH "" NNG_WOLFSSL_HAVE_DH)
check_library_exists(wolfssl::wolfssl wolfSSL_CTX_set_psk_client_callback "" NNG_WOLFSSL_HAVE_PSK)
check_library_exists(rt shm_open "" HAVE_LIB_RT)
check_library_exists (atomic __atomic_load_8 "" LIBATOMIC_WORKS)
CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" LIB_NSL_HAS_GETHOSTBYNAME)
CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" LIB_NSL_HAS_GETHOSTBYNAME)
CHECK_LIBRARY_EXISTS(rt sched_yield "" HAVE_SCHED_YIELD)
check_library_exists(c clock_gettime "time.h" PARSEC_HAVE_CLOCK_GETTIME)
check_library_exists(ws2_32 WSAStartup "" PARSEC_HAVE_WS2_32)
check_library_exists(rt shm_open "" PARSEC_SHM_OPEN_IN_LIBRT)
check_library_exists("ayudame" AYU_event ${AYUDAME_LIBRARY} AYUDAME_LIB_WORKS)
check_library_exists("${GD_LIBRARY}" "gdImagePng" "${GD_LIB_PATH}" GD_SUPPORTS_PNG)
check_library_exists("${GD_LIBRARY}" "gdImageGif" "${GD_LIB_PATH}" GD_SUPPORTS_GIF)
check_library_exists(${HWLOC_LIBRARY} hwloc_bitmap_free "" PARSEC_HAVE_HWLOC_BITMAP)
check_library_exists("ze_loader" "zeInit" "${LEVEL_ZERO_LIBRARY_DIR}" LEVEL_ZERO_HAVE_ZE_LOADER)
check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME)
check_library_exists(dl dladdr "" HAVE_LIBDL)
check_library_exists(m exp "" HAVE_LIBM)
check_library_exists(lzo2 lzo1x_1_15_compress "" HAVE_LIBLZO2)
check_library_exists(lz4 LZ4_compress_default "" HAVE_LIBLZ4)
check_library_exists(atomic __atomic_fetch_add_4 "" HAVE_LIBATOMIC)
check_library_exists(atomic __atomic_fetch_add_8 "" HAVE_LIBATOMIC)
# check_library_exists("${TPL_SCALAPACK_LIBRARIES}" pdgemm_ "" TPL_SCALAPACK_WORKS_U)
check_library_exists("" pdgemm_ "" SCALAPACK_JUST_WORKS_U)
check_library_exists(m sin "" HAVE_LIB_M)
check_library_exists(vorbis vorbis_bitrate_addblock "" HAVE_LIBVORBISENC2)
#check_library_exists(vorbis vorbis_info_init "" HAVE_LIBVORBIS)
#check_library_exists(vorbis vorbis_bitrate_addblock "" HAVE_LIBVORBISENC2)
check_library_exists(Crun __RTTI___ "" HAVE_CRUN_LIB)
check_library_exists(m sqrt "" HAVE_LIBM)
check_library_exists(quota quotacursor_skipidtype "" HAVE_LIBQUOTA)
check_library_exists("${X}" "${FUNCNAME}" "${DIRS}" ${VAR_NAME})
check_library_exists(atomic __atomic_fetch_add_4 "" HAVE_LIBATOMIC)
check_library_exists(atomic __atomic_fetch_add_4 "" HAVE_LIBATOMIC)
CHECK_LIBRARY_EXISTS(dl dlopen "" HAVE_LIBDL)