Commit graph

35 commits

Author SHA1 Message Date
Sam James
1fc1c1b7dc utils/alsa.m4: include <stdlib.h> for exit()
Clang 16 makes -Wimplicit-function-declaration an error by default
and it's easier to just explicitly include <stdlib.h> rather
than hope the ALSA headers always have it.

Fixes: https://github.com/alsa-project/alsa-lib/pull/278
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2023-01-29 18:51:54 +01:00
asavah
e4aed044f9 utils/alsa.m4: another quick fix for the brackets
BugLink: https://github.com/alsa-project/alsa-lib/pull/133
From: asavah <asavah@avh.od.ua>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-04-14 08:08:43 +02:00
Jaroslav Kysela
f9ace404fd utils/alsa.m4: a quick fix for missing end brackets
Fixes: c6e0f24e ("utils/alsa.m4: update for newer autoconf.")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-04-13 20:30:20 +02:00
Ozkan Sezer
c6e0f24ef9 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>
2021-04-13 19:45:33 +02:00
Jaroslav Kysela
78fea15390 alsa.m4: another fix to not link all binaries with -latopology
Preserve LIBS when the -latopology is tested. It's added later.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2020-02-18 19:45:19 +01:00
Jaroslav Kysela
ad8527d81b alsa.m4: another try to fix the libatopology detection
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2019-12-04 09:50:27 +01:00
Takashi Iwai
09b40fdcfe alsa.m4: Fix the detection of topology library availability
The header file alsa/topology.h is mandatory and needs to be checked,
too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-11-27 10:26:42 +01:00
Jaroslav Kysela
75d393a563 create separated libatopology library with the topology routines
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2019-11-14 15:01:12 +01:00
Thomas De Schampheleire
178fe66bc8 utils/alsa.m4: conditionally enable libdl in AM_PATH_ALSA m4 macro
The AM_PATH_ALSA macro in utils/alsa.m4 unconditionally uses
-ldl. This breaks compilation of alsa-utils (and probably other
packages using this macro) for targets that do not support dynamic
loading.

This patch updates the macro to check if dlopen is available, and use
that result to conditionally add -ldl to the list of libraries.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-11-02 14:57:50 +01:00
Arun Raghavan
480d3204fe build: Disable another compile chack with --disable-alsatest
Signed-off-by: Arun Raghavan <arun.raghavan@collabora.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-07-17 14:57:10 +02:00
Jaroslav Kysela
d25e281230 Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-15 10:24:55 +02:00
Takashi Iwai
cc17f92972 [ALSA-LIB] remove the library replacement for $LIBS
Don't remove libs (e.g. -lm -ldl) from $LIBS incorrectly.
Better to keep them than wrong replacement.
2004-09-15 18:48:07 +00:00
Takashi Iwai
bc2f075269 - fixed for the recent autoconf/automake.
- implemented --enable-alsatest feature.
2004-01-16 18:14:22 +00:00
Takashi Iwai
ea83756fbe - removed snd_seq_create_event from seq.h. it's deprecated.
the function itself still exists for compatibility
  but protected by DOC_HIDDEN.
- a bit more comments about snd_seq_free_event.

- since alsa.m4 used snd_seq_create_event for checking libasound,
  now it's replaced with snd_ctl_open.
2002-05-27 11:14:20 +00:00
Jaroslav Kysela
2c03ec1530 Reverted and fixed AC_TRY_COMPILE 2002-04-04 07:08:41 +00:00
Jaroslav Kysela
bc17ff6258 Changed AC_TRY_COMPILE to AC_TRY_RUN 2002-04-04 07:07:13 +00:00
Jaroslav Kysela
5ba91b544f Added Id: 2001-12-19 07:28:40 +00:00
Jaroslav Kysela
a74d1ea689 Added pthread library 2001-12-18 07:00:57 +00:00
Jaroslav Kysela
b1be87d51e Changed location of asoundlib.h 2001-09-11 09:35:42 +00:00
Jaroslav Kysela
b7c05ad942 Removed snd_defaults_ functions.
Updated the syntax of configuration file to substitute values from
the environment space.
Updated alsa.conf to replace old snd_defaults_ functions.
2001-06-08 10:15:25 +00:00
Jaroslav Kysela
bd9958168d One more fix 2001-04-19 10:46:49 +00:00
Jaroslav Kysela
199d3e4277 Working replacement 2001-04-19 10:40:27 +00:00
Jaroslav Kysela
ad9f4cd3a6 Added removal of duplicated -lm and -ldl entries 2001-04-19 10:30:35 +00:00
Jaroslav Kysela
7b06e6f762 Modifications to handle the if-not-found situation 2001-01-14 19:59:51 +00:00
Jaroslav Kysela
2fe1219099 Added -ldl to LIBS 2000-12-18 22:32:37 +00:00
Jaroslav Kysela
17fe446785 snd_cards->snd_defaults_card 2000-12-04 16:19:43 +00:00
Takashi Iwai
e5d597c48c Fix the check of ALSA_CFLAGS. 2000-08-29 11:33:47 +00:00
Abramo Bagnara
cc0f850c56 Cleaning from Henrik Theiling 2000-08-28 06:29:24 +00:00
Takashi Iwai
1c7056eeca - Fix the old function prototype in pcm_plugin.h
- Remove double -lasound and add -lm in alsa.m4.
  -lm is required for PPC (and maybe others).
2000-05-18 18:16:38 +00:00
Jaroslav Kysela
b998850dc2 Lang additions.. 1999-08-06 13:56:45 +00:00
Jaroslav Kysela
ebfe8d8a24 Added backward compatility for version checking... 1998-11-25 18:57:37 +00:00
Jaroslav Kysela
0816652974 Updates for new version scheme... 1998-11-24 22:08:07 +00:00
Chris Cannam
9da4b22ac2 I misunderstood the purpose of alsa.m4 - apologies... 1998-11-18 21:27:36 +00:00
Jaroslav Kysela
08f809064d utils/alsa.m4 renamed to aclocal.m4 1998-11-02 10:10:21 +00:00
Jaroslav Kysela
a6547af23c M4 macros for autoconf 1998-10-30 23:36:15 +00:00