shithub: sox

Download patch

ref: e79e6e1af4b55a69a4f43b47823f13a9ab4349c8
parent: 9163657fe8c5cda17365382bfd6685943ebce227
author: rrt <rrt>
date: Fri Dec 22 21:32:53 EST 2006

Use libtool.

Make gsm man pages and headers install.

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,7 +4,7 @@
 
 bin_PROGRAMS = sox
 bin_SCRIPTS = play libst-config
-lib_LIBRARIES = libst.a
+lib_LTLIBRARIES = libst.la
 include_HEADERS = st.h stconfig.h ststdint.h
 
 formats = 8svx.c adpcm.c adpcm.h aiff.c au.c auto.c avr.c cdr.c \
@@ -23,7 +23,7 @@
 	  reverb.c reverse.c silence.c speed.c stat.c \
 	  stretch.c swap.c synth.c tone.c trim.c vibro.c vol.c
 
-libst_a_SOURCES = $(formats) $(effects) alsa.c oss.c sunaudio.c handlers.c misc.c \
+libst_la_SOURCES = $(formats) $(effects) alsa.c oss.c sunaudio.c handlers.c misc.c \
 	  st_i.h stio.c util.c xmalloc.c xmalloc.h getopt.c getopt1.c getopt.h
 
 AM_CFLAGS = $(LUA_INCLUDES)
@@ -30,11 +30,11 @@
 AM_LDFLAGS = @SAMPLERATE_LIBS@
 
 sox_SOURCES = sox.c
-sox_LDADD = libst.a libgsm/libgsm.a $(LUA_LIBS)
+sox_LDADD = libst.a libgsm/libgsm.la $(LUA_LIBS)
 
 all: sox soxmix play rec
 
-libgsm/libgsm.a:
+libgsm/libgsm.la:
 	$(MAKE) -C libgsm
 
 soxmix: sox
--- a/src/libgsm/Makefile.am
+++ b/src/libgsm/Makefile.am
@@ -2,8 +2,8 @@
 
 AM_CFLAGS = $(SASR)
 
-lib_LIBRARIES = libgsm.a
+lib_LTLIBRARIES = libgsm.la
 include_HEADERS = gsm.h
-libgsm_a_SOURCES = add.c code.c decode.c long_term.c lpc.c preprocess.c	\
+libgsm_la_SOURCES = add.c code.c decode.c long_term.c lpc.c preprocess.c	\
 		rpe.c gsm_destroy.c gsm_decode.c gsm_encode.c gsm_create.c \
 		gsm_option.c short_term.c table.c private.h