Commit Graph

62 Commits

Author SHA1 Message Date
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
Takashi Iwai
fc0e54c3cc Drop -I$includedir/alsa from alsa.pc
We used to put the additional include path $includedir/alsa in
pkgconfig just because some applications have included asoundlib.h
like
  #include <asoundlib.h>
although the canonical form should be
  #include <alsa/asoundlib.h>

However, adding this include path is significantly dangerous due to
possible conflicts of file names like version.h.  It's already the
reason to discourage people using alsa.pc for the packages.

In this patch, the additional include path from alsa.pc is dropped
finally.  At the same time, as a rescue plan for the programs
including via <asoundlib.h>, a stub header file is provided in
include/sound/asoundlib.h.  It just includes alsa/asoundlib.h with a
warning to suggest for replacing with alsa/asoundlib.h.
Actually this is the same file as we install into sys/asoundlib.h, so
the whole changes are very minimal here.

Acked-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-03-28 08:01:34 +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
Patrick Welche
b669b50de2 autotools: update style
- rename configure.in to configure.ac
- replace INCLUDES with AM_CPPFLAGS
- modernize AM_INIT_AUTOMAKE invocation

Signed-off-by: Patrick Welche <prlw1@cam.ac.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-02-26 08:16:22 +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
98d4ed8810 Introduce --with-pkgconfdir, add 64-bit defaults to gitcompile
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2012-01-20 16:14:44 +01: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
70e4ec9d08 Allow build without libdl and libpthread
Allow building alsa-lib without libdl and libpthread.
Added new options to configure, --with-libdl and --with-pthread.
2007-03-22 00:48:18 +01:00
Jaroslav Kysela
7668e264af alsa.pc's Libs shouldn't contain -lm -ldl -lpthread
-lm -ldl -lpthread are _not_ needed in Libs (since the alsa interface
doesn't depend on libm, libdl or libpthread interface) and just bring
unneeded dependencies. These should rather be put in Libs.private:

Libs: -L${libdir} -lasound
Libs.private: -lm -ldl -lpthread

See ALSA bug#2212 .
2006-10-06 10:38:39 +02:00
Jaroslav Kysela
5c51b6570e Changed permissions for scripts and added .hgignore file
Initial version of .hgignore file
2006-04-06 19:14:01 +02:00
Takashi Iwai
8c09d72743 Add $include/alsa to the include path
Added $include/alsa to the include path again for backward compatibility.
Some apps fail to be built without this.
2005-05-15 14:49:11 +00:00
Takashi Iwai
c2644837fd Fix the include path
Fixed the include path.  Apps should include like <alsa/xxx>.
2005-02-08 20:30:15 +00: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
Jaroslav Kysela
871206c848 Added rpmbuild detection 2004-03-14 17:06:01 +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
4894758be0 clean up the spec file by Ronny V. Vindenes. 2003-02-25 15:34:23 +00:00
Takashi Iwai
ec415ef3a9 added pkg-config file alsa.pc. 2002-09-18 16:38:18 +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
41bb3d04fe Updated... 2001-11-20 09:30:15 +00:00
Jaroslav Kysela
8a99a9eb4f Added support for SuSE and automake 2001-11-20 09:29:21 +00:00
Jaroslav Kysela
df4a432789 Modifications by Miroslav Benes <mbenes@tenez.cz> 2001-11-12 09:36:14 +00:00
Jaroslav Kysela
23d8f9a0b0 Fixed paths by Mark Cooke 2001-09-26 07:41:05 +00:00
Jaroslav Kysela
40f3f992dc Added /usr/share/alsa directory 2001-09-21 08:29:32 +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
c92b54b3d3 .tar.gz -> .tar.bz2 2000-02-27 13:35:01 +00:00
Jaroslav Kysela
9fd441885c jcu.cz -> alsa-project.org modifications & other cleanups 2000-01-10 13:29:00 +00:00
Jaroslav Kysela
b998850dc2 Lang additions.. 1999-08-06 13:56:45 +00:00
Jaroslav Kysela
dc02bee60a Some patches for clean compilation... 1999-01-18 22:42:55 +00:00
Jaroslav Kysela
37af3fde26 Fixes.. 1998-12-30 17:21:11 +00:00
Jaroslav Kysela
ffcff61ceb Mainly tarbal distribution fixes... 1998-12-30 17:11:51 +00:00