nodist_pkginclude_HEADERS = version.h
noinst_HEADERS = libsigrokdecode-internal.h
+if WITH_IRMP
+lib_LTLIBRARIES += libirmp.la
+libirmp_la_SOURCES = \
+ irmp/irmp-main-sharedlib.c \
+ irmp/irmp-main-sharedlib.h \
+ irmp/irmp.h \
+ irmp/irmpconfig.h \
+ irmp/irmpsystem.h \
+ irmp/irmpprotocols.h
+noinst_HEADERS += irmp/irmp.c
+libirmp_la_LDFLAGS = -no-undefined -version-info 0:0:0
+endif
+
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libsigrokdecode.pc
# Required for per-target flags or subdir-objects with C sources.
AM_PROG_CC_C_O
+# Support building Windows DLLs.
+AC_LIBTOOL_WIN32_DLL
+AM_PROG_CC_STDC
+AM_PROG_LIBTOOL
+
# Set the standard the C library headers should conform to.
AH_VERBATIM([_POSIX_C_SOURCE], [/* The targeted POSIX standard. */
#ifndef _POSIX_C_SOURCE
AC_C_BIGENDIAN
+#########################
+## Optional features. ##
+#########################
+
+# Enable IRMP support by default. Accept user overrides.
+AC_ARG_ENABLE([irmp],
+ [AS_HELP_STRING([--enable-irmp], [enable IRMP shared object [default=yes]])],
+ [], [enable_irmp_so=yes])
+AM_CONDITIONAL([WITH_IRMP], [test "x$enable_irmp_so" = "xyes"])
+test -n "$enable_irmp_so" || enable_irmp_so=no
+
##############################
## Finalize configuration ##
##############################
$srd_pkglibs_summary
Detected libraries (optional):
$srd_pkglibs_opt_summary
+Optional features:
+ - IRMP support library .......... $enable_irmp_so
_EOF