diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2016-02-18 13:16:27 -0300 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2016-02-18 13:16:27 -0300 |
| commit | 155405f0de1b949269e71028f39f4df5a9711a0e (patch) | |
| tree | 4773ec647e9a9b17430d102bd946b77dd4b94ed8 | |
| parent | 3d86f23d6fe8b41e1c3361c67aa00a000e060802 (diff) | |
Move version check up to beginning of configure.ac.
| -rw-r--r-- | configure.ac | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index e1a5ec3..8d0a34c 100644 --- a/configure.ac +++ b/configure.ac @@ -28,6 +28,15 @@ m4_define([lt_current_minus_age], [m4_eval(lt_current - lt_age)]) SO_VERSION=lt_version_info AC_SUBST(SO_VERSION) +# Check version number coherency between RtAudio.h and configure.ac +AC_MSG_CHECKING([that version numbers are coherent]) +AC_RUN_IFELSE( + [AC_LANG_PROGRAM([#include <string.h> + `grep "define RTAUDIO_VERSION" $srcdir/RtAudio.h`], + [return strcmp(RTAUDIO_VERSION, PACKAGE_VERSION);])], + [AC_MSG_RESULT([yes])], + [AC_MSG_FAILURE([testing RTAUDIO_VERSION==PACKAGE_VERSION failed, check that RtAudio.h defines RTAUDIO_VERSION as "$PACKAGE_VERSION" or that the first line of configure.ac has been updated.])]) + # Enable some nice automake features if they are available m4_ifdef([AM_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) @@ -65,15 +74,6 @@ AC_CONFIG_MACRO_DIR([m4]) AC_HEADER_STDC AC_CHECK_HEADERS(sys/ioctl.h unistd.h) -# Check version number coherency between RtAudio.h and configure.ac -AC_MSG_CHECKING([that version numbers are coherent]) -AC_RUN_IFELSE( - [AC_LANG_PROGRAM([#include <string.h> - `grep "define RTAUDIO_VERSION" $srcdir/RtAudio.h`], - [return strcmp(RTAUDIO_VERSION, PACKAGE_VERSION);])], - [AC_MSG_RESULT([yes])], - [AC_MSG_FAILURE([testing RTAUDIO_VERSION==PACKAGE_VERSION failed, check that RtAudio.h defines RTAUDIO_VERSION as "$PACKAGE_VERSION" or that the first line of configure.ac has been updated.])]) - # Check for debug AC_MSG_CHECKING(whether to compile debug version) AC_ARG_ENABLE(debug, |
