Changeset View
Changeset View
Standalone View
Standalone View
build-aux/m4/bitcoin_qt.m4
Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | [[ | ||||
#endif | #endif | ||||
]])], | ]])], | ||||
[bitcoin_cv_qt5=yes], | [bitcoin_cv_qt5=yes], | ||||
[bitcoin_cv_qt5=no]) | [bitcoin_cv_qt5=no]) | ||||
])]) | ])]) | ||||
dnl Internal. Check if the included version of Qt is greater than Qt58. | dnl Internal. Check if the included version of Qt is greater than Qt58. | ||||
dnl Requires: INCLUDES must be populated as necessary. | dnl Requires: INCLUDES must be populated as necessary. | ||||
dnl Output: bitcoin_cv_qt5=yes|no | dnl Output: bitcoin_cv_qt58=yes|no | ||||
AC_DEFUN([_BITCOIN_QT_CHECK_QT58],[ | AC_DEFUN([_BITCOIN_QT_CHECK_QT58],[ | ||||
AC_CACHE_CHECK(for > Qt 5.7, bitcoin_cv_qt58,[ | AC_CACHE_CHECK(for > Qt 5.7, bitcoin_cv_qt58,[ | ||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||||
#include <QtCore/qconfig.h> | #include <QtCore/qconfig.h> | ||||
#ifndef QT_VERSION | #ifndef QT_VERSION | ||||
# include <QtCore/qglobal.h> | # include <QtCore/qglobal.h> | ||||
#endif | #endif | ||||
]], | ]], | ||||
▲ Show 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | BITCOIN_QT_CHECK([ | ||||
fi | fi | ||||
if test "x$TARGET_OS" = xwindows; then | if test "x$TARGET_OS" = xwindows; then | ||||
AC_CHECK_LIB([imm32], [main],, BITCOIN_QT_FAIL(libimm32 not found)) | AC_CHECK_LIB([imm32], [main],, BITCOIN_QT_FAIL(libimm32 not found)) | ||||
fi | fi | ||||
]) | ]) | ||||
BITCOIN_QT_CHECK(AC_CHECK_LIB([z] ,[main],,AC_MSG_WARN([zlib not found. Assuming qt has it built-in]))) | BITCOIN_QT_CHECK(AC_CHECK_LIB([z] ,[main],,AC_MSG_WARN([zlib not found. Assuming qt has it built-in]))) | ||||
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([jpeg_create_decompress] ,[qtjpeg jpeg],,AC_MSG_WARN([libjpeg not found. Assuming qt has it built-in]))) | |||||
if test x$bitcoin_cv_qt58 = xno; then | if test x$bitcoin_cv_qt58 = xno; then | ||||
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([png_error] ,[qtpng png],,AC_MSG_WARN([libpng not found. Assuming qt has it built-in]))) | BITCOIN_QT_CHECK(AC_SEARCH_LIBS([png_error] ,[qtpng png],,AC_MSG_WARN([libpng not found. Assuming qt has it built-in]))) | ||||
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([pcre16_exec], [qtpcre pcre16],,AC_MSG_WARN([libpcre16 not found. Assuming qt has it built-in]))) | BITCOIN_QT_CHECK(AC_SEARCH_LIBS([pcre16_exec], [qtpcre pcre16],,AC_MSG_WARN([libpcre16 not found. Assuming qt has it built-in]))) | ||||
else | else | ||||
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([png_error] ,[qtlibpng png],,AC_MSG_WARN([libpng not found. Assuming qt has it built-in]))) | BITCOIN_QT_CHECK(AC_SEARCH_LIBS([png_error] ,[qtlibpng png],,AC_MSG_WARN([libpng not found. Assuming qt has it built-in]))) | ||||
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([pcre2_match_16], [qtpcre2 libqtpcre2],,AC_MSG_WARN([libqtpcre2 not found. Assuming qt has it built-in]))) | BITCOIN_QT_CHECK(AC_SEARCH_LIBS([pcre2_match_16], [qtpcre2 libqtpcre2],,AC_MSG_WARN([libqtpcre2 not found. Assuming qt has it built-in]))) | ||||
fi | fi | ||||
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([hb_ot_tags_from_script] ,[qtharfbuzzng qtharfbuzz harfbuzz],,AC_MSG_WARN([libharfbuzz not found. Assuming qt has it built-in or support is disabled]))) | BITCOIN_QT_CHECK(AC_SEARCH_LIBS([hb_ot_tags_from_script] ,[qtharfbuzzng qtharfbuzz harfbuzz],,AC_MSG_WARN([libharfbuzz not found. Assuming qt has it built-in or support is disabled]))) | ||||
Show All 29 Lines |