mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-06 04:06:34 -05:00
utils/alsa.m4: update for newer autoconf.
fixes autoconf-2.70 warnings. should be compatible down to autoconf-2.59. BugLink: https://github.com/alsa-project/alsa-lib/pull/106 Signed-off-by: Ozkan Sezer <sezeroz@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
c83ddd8e56
commit
c6e0f24ef9
1 changed files with 9 additions and 12 deletions
|
|
@ -81,12 +81,11 @@ no_alsa=""
|
||||||
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
||||||
AC_MSG_RESULT($alsa_min_major_version.$alsa_min_minor_version.$alsa_min_micro_version)
|
AC_MSG_RESULT($alsa_min_major_version.$alsa_min_minor_version.$alsa_min_micro_version)
|
||||||
|
|
||||||
AC_LANG_SAVE
|
AC_LANG_PUSH([C])
|
||||||
AC_LANG_C
|
|
||||||
AC_MSG_CHECKING([for libasound headers version >= $alsa_min_major_version.$alsa_min_minor_version.$alsa_min_micro_version ($min_alsa_version)])
|
AC_MSG_CHECKING([for libasound headers version >= $alsa_min_major_version.$alsa_min_minor_version.$alsa_min_micro_version ($min_alsa_version)])
|
||||||
AC_TRY_COMPILE([
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||||
#include <alsa/asoundlib.h>
|
#include <alsa/asoundlib.h>
|
||||||
], [
|
]], [[
|
||||||
/* ensure backward compatibility */
|
/* ensure backward compatibility */
|
||||||
#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
|
#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
|
||||||
#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
|
#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
|
||||||
|
|
@ -118,21 +117,20 @@ AC_TRY_COMPILE([
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
exit(0);
|
exit(0);
|
||||||
],
|
]])],
|
||||||
[AC_MSG_RESULT(found.)],
|
[AC_MSG_RESULT(found.)],
|
||||||
[AC_MSG_RESULT(not present.)
|
[AC_MSG_RESULT(not present.)
|
||||||
ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libasound not found.)])
|
ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libasound not found.)])
|
||||||
alsa_found=no]
|
alsa_found=no]
|
||||||
)
|
)
|
||||||
AC_LANG_RESTORE
|
AC_LANG_POP([C])
|
||||||
|
|
||||||
AC_LANG_SAVE
|
AC_LANG_PUSH([C])
|
||||||
AC_LANG_C
|
|
||||||
AC_MSG_CHECKING([for libatopology (sound headers version > 1.1.9)])
|
AC_MSG_CHECKING([for libatopology (sound headers version > 1.1.9)])
|
||||||
AC_TRY_COMPILE([
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||||
#include <alsa/asoundlib.h>
|
#include <alsa/asoundlib.h>
|
||||||
#include <alsa/topology.h>
|
#include <alsa/topology.h>
|
||||||
], [
|
]], [[
|
||||||
/* ensure backward compatibility */
|
/* ensure backward compatibility */
|
||||||
#if !defined(SND_LIB_VERSION)
|
#if !defined(SND_LIB_VERSION)
|
||||||
#define SND_LIB_VERSION 0
|
#define SND_LIB_VERSION 0
|
||||||
|
|
@ -148,8 +146,7 @@ exit(0);
|
||||||
enable_atopology="yes"],
|
enable_atopology="yes"],
|
||||||
[AC_MSG_RESULT(no)]
|
[AC_MSG_RESULT(no)]
|
||||||
)
|
)
|
||||||
AC_LANG_RESTORE
|
AC_LANG_POP([C])
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Now that we know that we have the right version, let's see if we have the library and not just the headers.
|
dnl Now that we know that we have the right version, let's see if we have the library and not just the headers.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue