File: Libbson.m4

package info (click to toggle)
syslog-ng 3.8.1-10
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 47,320 kB
  • ctags: 43,937
  • sloc: ansic: 159,432; yacc: 25,059; sh: 13,574; makefile: 4,669; python: 3,468; java: 3,218; xml: 2,309; perl: 318; lex: 316; awk: 184
file content (28 lines) | stat: -rw-r--r-- 1,134 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# If --with-libbson=auto, determine if there is a system installed libbson
# greater than our required version.
AS_IF([test "x${with_libbson}" = xauto],
      [PKG_CHECK_MODULES(BSON, [libbson-1.0 >= libbson_required_version],
                         [with_libbson=system],
                         [with_libbson=bundled])])

# If we are to use the system, check for libbson enforcing success.
AS_IF([test "x${with_libbson}" = xsystem],
      [PKG_CHECK_MODULES(BSON,
                         [libbson-1.0 >= libbson_required_version],
                         [],
                         [AC_MSG_ERROR([

  --------------------------------------
   The libbson-1.0 library could not be
   found on your system. Please install
   libbson-1.0  development  package or
   set --with-libbson=auto.
  --------------------------------------
])])])

# If we are using the bundled libbson, recurse into its configure.
AS_IF([test "x${with_libbson}" = xbundled],[
   AC_CONFIG_SUBDIRS([src/libbson])
   AC_SUBST(BSON_CFLAGS, "-I${srcdir}/src/libbson/src/bson -Isrc/libbson/src/bson")
   AC_SUBST(BSON_LIBS, "src/libbson/libbson-1.0.la")
])