Revision 1863 trunk/configure.in

configure.in (revision 1863)
53 53
       esac],[proxy=true])
54 54

                
55 55
AC_ARG_ENABLE(testsuite,
56
        [  --disable-testsuite     Build the testsuite (enabled by default)],
56
       [  --disable-testsuite     Build the testsuite (enabled by default)],
57
       [case "x${enableval}" in
58
               xyes) testsuite=true ;;
59
               xno) testsuite=false ;;
60
               *) AC_MSG_ERROR(bad value ${enableval} for --disable-testsuite) ;;
61
       esac],[testsuite=true])
62

                
63
AC_ARG_ENABLE(online-tests,
64
       [  --disable-online-tests  Disable the tests from the testsuite which require an internet connection (enabled by default)],
57 65
        [case "x${enableval}" in
58
                xyes) testsuite=true ;;
59
                xno) testsuite=false ;;
60
                *) AC_MSG_ERROR(bad value ${enableval} for --disable-testsuite) ;;
61
        esac],[testsuite=true])
62
AM_CONDITIONAL(BUILD_TESTSUITE, $testsuite)
66
                xyes) online_tests=true ;;
67
                xno) online_tests=false ;;
68
                *) AC_MSG_ERROR(bad value ${enableval} for --disable-online-tests) ;;
69
        esac],[online_tests=true])
63 70

                
64 71
# Search for GLib
65 72
PKG_CHECK_MODULES(GLIB,
... ...
74 81
       have_gio=false; [AC_MSG_RESULT([* GLib 2.16.0 or higher could not be found. Without GLib 2.16.0, automatic NZB import won't be possible])])
75 82

                
76 83
# Search for socket support in GIO
77
AC_MSG_CHECKING(if GIO >= 2.22.0)
78
pkg-config --atleast-version=2.22.0 gio-2.0
84
AC_MSG_CHECKING(if GIO >= 2.26.0)
85
pkg-config --atleast-version=2.26.0 gio-2.0
79 86
if test `echo $?` = 0; then
80 87
       AC_MSG_RESULT([yes]);
81 88
       AC_DEFINE_UNQUOTED(HAVE_GIO_SOCKET, 1, [Do we have socket support in GIO])
... ...
83 90
       AC_MSG_RESULT([no])
84 91
fi
85 92

                
93
# Search for GTest support in GLib
94
AC_MSG_CHECKING(if we need to enable the testsuite)
95
pkg-config --atleast-version=2.16.0 glib-2.0
96
if test `echo $?` != 0; then
97
       if test "$testsuite" = "true" ; then
98
               testsuite=false
99
       fi
100
fi
101
if test "$testsuite" = "true" ; then
102
       AC_MSG_RESULT([yes])
103
else
104
       AC_MSG_RESULT([no])
105
fi
106
AM_CONDITIONAL(BUILD_TESTSUITE, $testsuite)
107
AM_CONDITIONAL(ENABLE_ONLINE_TESTS, $online_tests)
108

                
86 109
# Search for dbus-glib
87 110
if test "$dbus" = "true" ; then
88 111
       PKG_CHECK_MODULES(DBUS,

Also available in: Unified diff