Commit Graph

14 Commits

Author SHA1 Message Date
Daniel Elstner 69f68553ae sigrok.m4: Remove SR_PROG_MAKE_NO_PRINT_DIRECTORY 2015-09-10 19:38:10 +02:00
Daniel Elstner a6e8a8f766 sigrok.m4: Add SR_PROG_VERSION macro 2015-09-08 04:57:59 +02:00
Daniel Elstner c178386178 sigrok.m4: Suppress make variable for ORDER 2015-09-08 04:10:44 +02:00
Daniel Elstner 2defc4116b sigrok.m4: Update serial 2015-09-07 23:57:03 +02:00
Daniel Elstner 82b01e42f8 sigrok.m4: Add SR_PROG_MAKE_NO_PRINT_DIRECTORY macro 2015-09-07 23:54:00 +02:00
Daniel Elstner c2b0f42989 sigrok.m4: Add SR_PROG_MAKE_ORDER_ONLY macro 2015-09-07 23:20:17 +02:00
Daniel Elstner 38662688e8 sigrok.m4: Add generic macro for optional dependencies
Provide SR_ARG_OPT_CHECK, a generalized variant of SRG_ARG_OPT_PKG
that can be used with custom check commands. Implement the latter
in terms of SR_ARG_OPT_CHECK.
2015-09-07 23:20:17 +02:00
Uwe Hermann 64bc73f528 sigrok.m4: License header consistency fixes.
Use the same wording and formatting as in the rest of the codebase.
2015-08-25 17:01:22 +02:00
Daniel Elstner 2d2240bb99 Build: Fix SR_CHECK_COMPILE_FLAGS
Do not put "no" into the flags if the check fails.
2015-08-25 00:17:09 +02:00
Daniel Elstner bc8ff24de6 Build: Leave LIBS alone during configure
Put the extra libraries into SR_EXTRA_LIBS instead of LIBS.
Create an SR_CHECK_LIBS macro to make that easy. Substitute
SR_EXTRA_LIBS into libsigrok.pc, too.
2015-08-24 22:19:05 +02:00
Daniel Elstner b84a733105 Build: Check for accepted compiler flags
Introduce the SR_CHECK_COMPILE_FLAGS macro and use it to check
for additional compiler flags. Put the accepted flags into the
separate substitution variable SR_EXTRA_CFLAGS.

With this and the preceding changes, bug #578 should now be fixed.
2015-08-24 20:12:47 +02:00
Daniel Elstner 1bb196e496 Build: Move package check macros to m4/sigrok.m4
Define generic macros for pkg-config dependency checks etc. in
m4/sigrok.m4, so they can be easily reused by downstream modules.
2015-08-24 20:10:18 +02:00
Daniel Elstner 4cf2f34f43 Build: Make compiler warnings configurable
Use the SR_ARG_ENABLE_WARNINGS macro to configure and check for
the availability of compiler warning flags. Maintain separate
sets of warning flags for C and C++.

The configure option --enable-warnings=[min|max|fatal|no] can
be used to set the compiler warning level for all languages.
The default level is "max".
2015-08-24 20:08:24 +02:00
Daniel Elstner 24138539c1 Build: Move custom Autoconf macros to separate file
Place custom Autoconf macros which other sigrok modules may
re-use into a separate file m4/sigrok.m4. Also, introduce new
macros for defining the package and library versions, and for
gathering compiler warning flags.
2015-08-24 20:07:01 +02:00