[alsa-devel] Alsa lib configure asoundlib.h

Takashi Iwai tiwai at suse.de
Fri Jul 6 11:46:59 CEST 2007


At Thu, 05 Jul 2007 12:15:06 -0300,
Fausto Carvalho Marques SIlva wrote:
> 
> In salsa library(this library really saved my life, from am alsa-lib of 
> 600K to 45K!!!), developed by Takashi Iwai, the creation of  asoundlib.h 
> is dynamic and based on the configure options ( --disable-mixer will 
> remove mixer.h from asoundlib.h).
> Can alsa-lib do the same??I think it is a good "cleanup" way of doing 
> client header files.
> 
> Example from configure.ac from salsa-0.0.6:
> 
> "
> echo "Creating asoundlib.h..."
> cp "$srcdir"/src/asoundlib-head.h src/asoundlib.h
> test "$mixer" = "yes" && echo "#include \"mixer.h\"" >> src/asoundlib.h
> test "$rawmidi" = "yes" && echo "#include \"rawmidi.h\"" >> src/asoundlib.h
> test "$hwdep" = "yes" && echo "#include \"hwdep.h\"" >> src/asoundlib.h
> test "$timer" = "yes" && echo "#include \"timer.h\"" >> src/asoundlib.h
> test "$sndconf" = "yes" && echo "#include \"conf.h\"" >> src/asoundlib.h
> test "$sndseq" = "yes" && echo "#include \"seq_event.h\"" >> src/asoundlib.h
> test "$sndseq" = "yes" && echo "#include \"seq.h\"" >> src/asoundlib.h
> test "$sndseq" = "yes" && echo "#include \"seqmid.h\"" >> src/asoundlib.h
> cat "$srcdir"/src/asoundlib-tail.h >> src/asoundlib.h
> "

Yeah, it's feasible, but a lower priority work.
I'll fix them later...  Or, it'd be great if you send a patch ;)


Takashi


More information about the Alsa-devel mailing list