summaryrefslogtreecommitdiff
path: root/src/external/libini_config.m4
blob: 93a4bd94ae79cf2164e4bc87a4f8048c881ecab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
PKG_CHECK_MODULES(INI_CONFIG, [
    ini_config >= 1.0.0], [

        AC_DEFINE_UNQUOTED(HAVE_LIBINI_CONFIG_V1, 1, [libini_config version greater than 1.0.0])
    ], [
        AC_MSG_WARN([libini_config-devel >= 1.0.0 not available, trying older version])
        PKG_CHECK_MODULES(INI_CONFIG, [
            ini_config >= 0.6.1], [

                AC_DEFINE_UNQUOTED(HAVE_LIBINI_CONFIG_V0, 1, [libini_config version lesser than 1.0.0])
            ], [
                AC_MSG_ERROR([Please install libini_config-devel])
            ]
        )
    ]
)

AC_SUBST(INI_CONFIG_OBJ)
AC_SUBST(INI_CONFIG_CFLAGS)
AC_SUBST(INI_CONFIG_LIBS)