1
0
Fork 0

Fix autoconf nuances with AM_CONDITIONAL

This commit is contained in:
krcroft 2020-01-26 10:51:12 -08:00 committed by Patryk Obara
parent f6060a5148
commit ec8fcb4af2
2 changed files with 17 additions and 15 deletions

View file

@ -20,12 +20,6 @@ libdecoders_a_SOURCES = \
xxhash.c \
xxhash.h
if USE_OPUS
libdecoders_a_SOURCES += opus.c
AM_CFLAGS += -DUSE_OPUS $(OPUSFILE_CFLAGS)
LDADD += $(OPUSFILE_LIBS)
endif
libdecoders_a_CXXFLAGS = \
$(AM_CXXFLAGS) \
$(CXXFLAGS) \
@ -37,3 +31,8 @@ libdecoders_a_CFLAGS = \
$(CFLAGS) \
-Wpedantic \
-Wall
if USE_OPUS
libdecoders_a_SOURCES += opus.c
libdecoders_a_CFLAGS += -DUSE_OPUS $(OPUSFILE_CFLAGS)
endif