configure.ac: Emit a warning if the C++ bindings are not being built.

This commit is contained in:
Uwe Hermann 2018-07-17 19:43:54 +02:00
parent 51bf39a163
commit 9bf093011a
1 changed files with 21 additions and 0 deletions

View File

@ -612,3 +612,24 @@ Enabled language bindings:
- Java............................ $BINDINGS_JAVA$sr_report_java
_EOF
# Emit a warning if the C++ bindings are not being built.
AM_COND_IF([BINDINGS_CXX], [], [
cat >&AS_MESSAGE_FD <<_EOF
===============================================================================
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
===============================================================================
=== ===
=== The libsigrok C++ bindings are not being built since you ===
=== are missing one or more dependencies (see above)! ===
=== ===
=== This means you won't be able to compile frontends that require ===
=== the C++ bindings (such as PulseView)! You also won't be able to build ===
=== other bindings and frontends using those (such as sigrok-meter)! ===
=== ===
===============================================================================
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
===============================================================================
_EOF
])