|
|
@ -1,16 +1,16 @@ |
|
|
|
# SYNOPSIS |
|
|
|
# SYNOPSIS |
|
|
|
# |
|
|
|
# |
|
|
|
# Check if a module exists: |
|
|
|
# Check if a module exists: |
|
|
|
# AX_CXX_CHECK_QT([qt_prefix], [list-of-qt-modules], [optional-modules]) |
|
|
|
# AX_CHECK_QT([qt_prefix], [list-of-qt-modules], [optional-modules]) |
|
|
|
# |
|
|
|
# |
|
|
|
# Abort if a module does not exist: |
|
|
|
# Abort if a module does not exist: |
|
|
|
# AX_CXX_REQUIRE_QT([qt_prefix], [list-of-qt-modules], [optional-modules]) |
|
|
|
# AX_REQUIRE_QT([qt_prefix], [list-of-qt-modules], [optional-modules]) |
|
|
|
# |
|
|
|
# |
|
|
|
# DESCRIPTIONS |
|
|
|
# DESCRIPTIONS |
|
|
|
# |
|
|
|
# |
|
|
|
# qt_prefix |
|
|
|
# qt_prefix |
|
|
|
# |
|
|
|
# |
|
|
|
# Each call to AX_CXX_CHECK_QT should have a different prefix |
|
|
|
# Each call to AX_CHECK_QT should have a different prefix |
|
|
|
# value (with a few exceptions discussed later on). This value, |
|
|
|
# value (with a few exceptions discussed later on). This value, |
|
|
|
# usually provided in uppercase, is used as prefix to the |
|
|
|
# usually provided in uppercase, is used as prefix to the |
|
|
|
# variables holding the compiler flags and libraries reported by |
|
|
|
# variables holding the compiler flags and libraries reported by |
|
|
@ -43,12 +43,18 @@ AC_DEFUN([AX_CXX_QT_TOOL], [ |
|
|
|
AC_MSG_CHECKING([for $2]) |
|
|
|
AC_MSG_CHECKING([for $2]) |
|
|
|
AC_ARG_VAR([$1], [path to Qt tool $2]) |
|
|
|
AC_ARG_VAR([$1], [path to Qt tool $2]) |
|
|
|
$1=${$1:-$(${PKG_CONFIG} --variable=$2_location Qt5Core)} |
|
|
|
$1=${$1:-$(${PKG_CONFIG} --variable=$2_location Qt5Core)} |
|
|
|
|
|
|
|
$1=${$1:-$(${PKG_CONFIG} --variable=host_bins Qt5Core)/$2-qt5} |
|
|
|
$1=${$1:-$(${PKG_CONFIG} --variable=host_bins Qt5Core)/$2} |
|
|
|
$1=${$1:-$(${PKG_CONFIG} --variable=host_bins Qt5Core)/$2} |
|
|
|
$1=${$1:-$(${PKG_CONFIG} --variable=$2_location QtCore)} |
|
|
|
$1=${$1:-$(${PKG_CONFIG} --variable=$2_location QtCore)} |
|
|
|
$1=${$1:-$(${PKG_CONFIG} --variable=host_bins QtCore)/$2} |
|
|
|
$1=${$1:-$(${PKG_CONFIG} --variable=host_bins QtCore)/$2} |
|
|
|
|
|
|
|
$1=${$1:-$(${PKG_CONFIG} --variable=host_bins QtCore)/$2-qt4} |
|
|
|
if ! which "${$1%% *}" > /dev/null; then |
|
|
|
if ! which "${$1%% *}" > /dev/null; then |
|
|
|
if which "$2" > /dev/null; then |
|
|
|
if which "$2-qt5" > /dev/null; then |
|
|
|
|
|
|
|
$1=$2-qt5 |
|
|
|
|
|
|
|
elif which "$2" > /dev/null; then |
|
|
|
$1=$2 |
|
|
|
$1=$2 |
|
|
|
|
|
|
|
elif which "$2-qt4" > /dev/null; then |
|
|
|
|
|
|
|
$1=$2-qt4 |
|
|
|
else |
|
|
|
else |
|
|
|
HAVE_$1=0 |
|
|
|
HAVE_$1=0 |
|
|
|
$1="" |
|
|
|
$1="" |
|
|
@ -179,13 +185,13 @@ qrc_%.cxx: %.qrc |
|
|
|
|
|
|
|
|
|
|
|
# SYNOPSIS |
|
|
|
# SYNOPSIS |
|
|
|
# |
|
|
|
# |
|
|
|
# AX_CXX_CHECK_QT([qt_prefix], [list-of-qt-modules], [optional-modules]) |
|
|
|
# AX_CHECK_QT([qt_prefix], [list-of-qt-modules], [optional-modules]) |
|
|
|
# |
|
|
|
# |
|
|
|
# DESCRIPTIONS |
|
|
|
# DESCRIPTIONS |
|
|
|
# |
|
|
|
# |
|
|
|
# qt_prefix |
|
|
|
# qt_prefix |
|
|
|
# |
|
|
|
# |
|
|
|
# Each call to AX_CXX_CHECK_QT should have a different prefix |
|
|
|
# Each call to AX_CHECK_QT should have a different prefix |
|
|
|
# value (with a few exceptions discussed later on). This value, |
|
|
|
# value (with a few exceptions discussed later on). This value, |
|
|
|
# usually provided in uppercase, is used as prefix to the |
|
|
|
# usually provided in uppercase, is used as prefix to the |
|
|
|
# variables holding the compiler flags and libraries reported by |
|
|
|
# variables holding the compiler flags and libraries reported by |
|
|
|