X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=f9958b329a14f2e7eecb6cc50813a776e6f559fb;hb=33687d6ed7b923662566e6a6f2761792bb087fb4;hp=d59e0bea35ee64618169ce4feac351559ab5cfa2;hpb=afae4fa61ffd8dee62667e60f931e371061c7d7d;p=libsigrokdecode.git diff --git a/configure.ac b/configure.ac index d59e0be..f9958b3 100644 --- a/configure.ac +++ b/configure.ac @@ -40,9 +40,16 @@ AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S +AC_C_CONST + # 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 @@ -132,6 +139,17 @@ AC_SYS_LARGEFILE 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 ## ############################## @@ -175,4 +193,6 @@ Detected libraries (required): $srd_pkglibs_summary Detected libraries (optional): $srd_pkglibs_opt_summary +Optional features: + - IRMP support library .......... $enable_irmp_so _EOF