mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
71 lines
1.8 KiB
Text
71 lines
1.8 KiB
Text
AC_INIT([libbbf_ubus], [0.1], [suvendhu.hansa@iopsys.eu])
|
|
AM_INIT_AUTOMAKE([foreign subdir-objects])
|
|
|
|
AC_PROG_CC
|
|
AC_PROG_CC_C_O
|
|
AC_ENABLE_SHARED
|
|
LT_INIT
|
|
|
|
LIBJSON_LIBS='-ljson-c'
|
|
AC_SUBST([LIBJSON_LIBS])
|
|
|
|
AC_ARG_WITH([uci-include-path],
|
|
[AS_HELP_STRING([--with-uci-include-path],
|
|
[location of the uci library headers])],
|
|
[LIBUCI_CFLAGS="-I$withval"])
|
|
AC_SUBST([LIBUCI_CFLAGS])
|
|
|
|
AC_ARG_WITH([uci-lib-path],
|
|
[AS_HELP_STRING([--with-uci-lib-path], [location of the uci library])], [LIBUCI_LDFLAGS="-L$withval"])
|
|
AC_SUBST([LIBUCI_LDFLAGS])
|
|
|
|
LIBUCI_LIBS='-luci'
|
|
AC_SUBST([LIBUCI_LIBS])
|
|
|
|
LIBTRACE_LIBS='-ltrace'
|
|
AC_SUBST([LIBTRACE_LIBS])
|
|
|
|
AC_ARG_WITH([libubox-include-path],
|
|
[AS_HELP_STRING([--with-libubox-include-path],
|
|
[location of the libubox library headers])],
|
|
[LIBUBOX_CFLAGS="-I$withval"])
|
|
AC_SUBST([LIBUBOX_CFLAGS])
|
|
|
|
AC_ARG_WITH([libubox-lib-path],
|
|
[AS_HELP_STRING([--with-libubox-lib-path], [location of the libubox library])], [LIBUBOX_LDFLAGS="-L$withval"])
|
|
AC_SUBST([LIBUBOX_LDFLAGS])
|
|
|
|
LIBUBOX_LIBS='-lubox'
|
|
AC_SUBST([LIBUBOX_LIBS])
|
|
|
|
AC_ARG_WITH([libubus-include-path],
|
|
[AS_HELP_STRING([--with-libubus-include-path],
|
|
[location of the libubus library headers])],
|
|
[LIBUBUS_CFLAGS="-I$withval"])
|
|
AC_SUBST([LIBUBUS_CFLAGS])
|
|
|
|
AC_ARG_WITH([libubus-lib-path],
|
|
[AS_HELP_STRING([--with-libubus-lib-path], [location of the libubus library])], [LIBUBOX_LDFLAGS="-L$withval"])
|
|
AC_SUBST([LIBUBUS_LDFLAGS])
|
|
|
|
LIBUBUS_LIBS='-lubus'
|
|
AC_SUBST([LIBUBUS_LIBS])
|
|
|
|
LBLOBMSG_LIBS='-lblobmsg_json'
|
|
AC_SUBST([LBLOBMSG_LIBS])
|
|
|
|
LIBDLOPEN_LIBS='-ldl'
|
|
AC_SUBST([LIBDLOPEN_LIBS])
|
|
|
|
LIBCURL_LIBS='-lcurl'
|
|
AC_SUBST([LIBCURL_LIBS])
|
|
|
|
# checks for header files
|
|
AC_CHECK_HEADERS([stdlib.h string.h])
|
|
|
|
# checks for typedefs, structures, and compiler characteristics
|
|
AC_TYPE_UINT8_T
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_OUTPUT
|