|
|
@ -49,14 +49,14 @@ AC_ARG_ENABLE(qt-dbus, |
|
|
|
|
|
|
|
|
|
|
|
# Detect OS |
|
|
|
# Detect OS |
|
|
|
AC_MSG_CHECKING([whether OS is FreeBSD]) |
|
|
|
AC_MSG_CHECKING([whether OS is FreeBSD]) |
|
|
|
AS_IF([test "x$host_os" == "x*freebsd*"], |
|
|
|
AS_IF([test "x$host_os" = "x*freebsd*"], |
|
|
|
[AC_MSG_RESULT([yes]) |
|
|
|
[AC_MSG_RESULT([yes]) |
|
|
|
LIBS="-lexecinfo $LIBS"], |
|
|
|
LIBS="-lexecinfo $LIBS"], |
|
|
|
[AC_MSG_RESULT([no])]) |
|
|
|
[AC_MSG_RESULT([no])]) |
|
|
|
|
|
|
|
|
|
|
|
# Require 0.26 pkg-config |
|
|
|
# Require 0.26 pkg-config |
|
|
|
PKG_PROG_PKG_CONFIG([0.26]) |
|
|
|
PKG_PROG_PKG_CONFIG([0.26]) |
|
|
|
AS_IF([test "x$PKG_CONFIG" == "x"], |
|
|
|
AS_IF([test "x$PKG_CONFIG" = "x"], |
|
|
|
[AC_MSG_ERROR([Could not find pkg-config])]) |
|
|
|
[AC_MSG_ERROR([Could not find pkg-config])]) |
|
|
|
|
|
|
|
|
|
|
|
# Check which arguments were set and act accordingly |
|
|
|
# Check which arguments were set and act accordingly |
|
|
@ -96,7 +96,7 @@ AS_CASE(["x$with_qt5"], |
|
|
|
FIND_QT5()], |
|
|
|
FIND_QT5()], |
|
|
|
[AC_MSG_RESULT([$with_qt5]) |
|
|
|
[AC_MSG_RESULT([$with_qt5]) |
|
|
|
AC_MSG_ERROR([Unknown option "$with_qt5". Use either "yes" or "no".])]) |
|
|
|
AC_MSG_ERROR([Unknown option "$with_qt5". Use either "yes" or "no".])]) |
|
|
|
AS_IF([test "x$QT_QMAKE" == "x"], |
|
|
|
AS_IF([test "x$QT_QMAKE" = "x"], |
|
|
|
[AC_MSG_ERROR([Could not find qmake]) |
|
|
|
[AC_MSG_ERROR([Could not find qmake]) |
|
|
|
]) |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
@ -105,7 +105,7 @@ AS_CASE(["x$enable_qt_dbus"], |
|
|
|
["xyes"], |
|
|
|
["xyes"], |
|
|
|
[AC_MSG_RESULT([yes]) |
|
|
|
[AC_MSG_RESULT([yes]) |
|
|
|
FIND_QTDBUS() |
|
|
|
FIND_QTDBUS() |
|
|
|
AS_IF([test "x$HAVE_QTDBUS" == "xfalse"], |
|
|
|
AS_IF([test "x$HAVE_QTDBUS" = "xfalse"], |
|
|
|
[AC_MSG_ERROR([Could not find QtDBus])], |
|
|
|
[AC_MSG_ERROR([Could not find QtDBus])], |
|
|
|
[QBT_ADD_CONFIG="$QBT_ADD_CONFIG dbus"] |
|
|
|
[QBT_ADD_CONFIG="$QBT_ADD_CONFIG dbus"] |
|
|
|
)], |
|
|
|
)], |
|
|
@ -119,19 +119,19 @@ AS_CASE(["x$enable_qt_dbus"], |
|
|
|
AX_BOOST_BASE([1.35]) |
|
|
|
AX_BOOST_BASE([1.35]) |
|
|
|
# HAVE_BOOST is set to an empty value when Boost is found. I don't know |
|
|
|
# HAVE_BOOST is set to an empty value when Boost is found. I don't know |
|
|
|
# how to test for a set vs unset variable. |
|
|
|
# how to test for a set vs unset variable. |
|
|
|
AS_IF([test "x$BOOST_CPPFLAGS" == "x"], |
|
|
|
AS_IF([test "x$BOOST_CPPFLAGS" = "x"], |
|
|
|
[AC_MSG_ERROR([Could not find Boost])], |
|
|
|
[AC_MSG_ERROR([Could not find Boost])], |
|
|
|
[AC_MSG_NOTICE([Boost CPPFLGAS: $BOOST_CPPFLAGS]) |
|
|
|
[AC_MSG_NOTICE([Boost CPPFLGAS: $BOOST_CPPFLAGS]) |
|
|
|
CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS" |
|
|
|
CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS" |
|
|
|
LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"]) |
|
|
|
LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"]) |
|
|
|
|
|
|
|
|
|
|
|
AX_BOOST_SYSTEM() |
|
|
|
AX_BOOST_SYSTEM() |
|
|
|
# HAVE_BOOST_SYSTEM is set to an empty value when Boost.System is found. |
|
|
|
# HAVE_BOOST_SYSTEM is set to an empty value when Boost.System is found. |
|
|
|
# I don't know how to test for a set vs unset variable. |
|
|
|
# I don't know how to test for a set vs unset variable. |
|
|
|
AS_IF([test "x$BOOST_SYSTEM_LIB" == "x"], |
|
|
|
AS_IF([test "x$BOOST_SYSTEM_LIB" = "x"], |
|
|
|
[AC_MSG_ERROR([Could not find Boost.System])], |
|
|
|
[AC_MSG_ERROR([Could not find Boost.System])], |
|
|
|
[AC_MSG_NOTICE([Boost.System LIB: $BOOST_SYSTEM_LIB]) |
|
|
|
[AC_MSG_NOTICE([Boost.System LIB: $BOOST_SYSTEM_LIB]) |
|
|
|
LIBS="$BOOST_SYSTEM_LIB $LIBS"]) |
|
|
|
LIBS="$BOOST_SYSTEM_LIB $LIBS"]) |
|
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to embed the GeoIP database]) |
|
|
|
AC_MSG_CHECKING([whether to embed the GeoIP database]) |
|
|
|
AS_CASE(["x$with_geoip_database_embedded"], |
|
|
|
AS_CASE(["x$with_geoip_database_embedded"], |
|
|
@ -190,7 +190,7 @@ $QT_QMAKE [$CONFDIR]/qbittorrent.pro |
|
|
|
ret="$?" |
|
|
|
ret="$?" |
|
|
|
|
|
|
|
|
|
|
|
AS_ECHO() |
|
|
|
AS_ECHO() |
|
|
|
AS_IF([test "x$ret" == "x0"], |
|
|
|
AS_IF([test "x$ret" = "x0"], |
|
|
|
[AC_MSG_NOTICE([Good, your configure finished.])], |
|
|
|
[AC_MSG_NOTICE([Good, your configure finished.])], |
|
|
|
[AC_MSG_ERROR([Failed running $QT_QMAKE to generate the makefile])]) |
|
|
|
[AC_MSG_ERROR([Failed running $QT_QMAKE to generate the makefile])]) |
|
|
|
AS_ECHO() |
|
|
|
AS_ECHO() |
|
|
|