Fix build error due to openal changes 63/169063/1 accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified tizen tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 tizen_9.0 accepted/tizen/5.0/unified/20181102.024031 accepted/tizen/5.5/unified/20191031.010133 accepted/tizen/5.5/unified/mobile/hotfix/20201027.063310 accepted/tizen/5.5/unified/wearable/hotfix/20201027.103129 accepted/tizen/6.0/unified/20201030.104719 accepted/tizen/6.0/unified/hotfix/20201103.000522 accepted/tizen/6.5/unified/20211029.012749 accepted/tizen/7.0/unified/20221110.062807 accepted/tizen/7.0/unified/hotfix/20221116.110756 accepted/tizen/8.0/unified/20231005.094844 accepted/tizen/9.0/unified/20241030.235140 accepted/tizen/unified/20180212.062413 submit/tizen/20180212.033511 submit/tizen_5.0/20181101.000006 submit/tizen_5.5/20191031.000006 submit/tizen_5.5_mobile_hotfix/20201026.185106 submit/tizen_5.5_wearable_hotfix/20201026.184306 submit/tizen_6.0/20201029.205501 submit/tizen_6.0_hotfix/20201102.192901 submit/tizen_6.0_hotfix/20201103.115101 submit/tizen_6.5/20211028.163401 tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
authorSeungbae Shin <seungbae.shin@samsung.com>
Thu, 1 Feb 2018 06:55:37 +0000 (15:55 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Fri, 2 Feb 2018 05:41:20 +0000 (05:41 +0000)
[Version] 1.1.0-5
[Profile] Common
[Issue Type] Build

Change-Id: I0626513649332694ff9ed7f562b6c8985f604c0a

configure.ac
examples/Makefile.am
packaging/freealut.spec
src/Makefile.am
test_suite/Makefile.am

index 2b26d6d..564537e 100644 (file)
@@ -206,6 +206,9 @@ if test "x$enable_efence" = xyes; then
      LIBS=$alut_saved_LIBS])
 fi
 
+PKG_CHECK_MODULES(OPENAL, openal)
+AC_SUBST(OPENAL_CFLAGS)
+AC_SUBST(OPENAL_LIBS)
 ################################################################################
 # Generate output.
 ################################################################################
index 4c99c50..cd3a009 100644 (file)
@@ -2,7 +2,7 @@
 noinst_PROGRAMS = hello_world playfile
 
 # We need to link against our *own* libalut.
-LDADD = ../src/libalut.la
+LDADD = ../src/libalut.la $(OPENAL_LIBS)
 
 # Specifying the following path is needed to find <AL/alut.h>.
-AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include $(OPENAL_CFLAGS)
index 5da9ffa..4ed75a1 100644 (file)
@@ -1,7 +1,7 @@
 Name:       freealut
 Summary:    OpenAL User Toolkit library
 Version:    1.1.0
-Release:    4
+Release:    5
 Group:         System/Libraries
 URL:           http://openal.org/
 License:       LGPL-2.0
@@ -31,6 +31,7 @@ cp %{SOURCE1001} .
 
 
 %build
+./autogen.sh
 %configure --disable-static
 %__make %{?_smp_mflags}
 
index 8bd9a27..6756d7f 100644 (file)
@@ -20,7 +20,7 @@ libalut_la_SOURCES =          \
        alutWaveform.c
 
 # We use sin and floor, so we might need -lm, autoconf takes care of this.
-libalut_la_LIBADD = $(LIBM)
+libalut_la_LIBADD = $(LIBM) $(OPENAL_LIBS)
 
 # The following libtool flag is neccessary for building DLLs on Windows.
 libalut_la_LDFLAGS = -no-undefined
@@ -29,4 +29,4 @@ libalut_la_LDFLAGS = -no-undefined
 libalut_la_LDFLAGS += -version-info @VERSIONINFO@
 
 # Specifying the following path is needed to find <AL/alut.h>.
-libalut_la_CPPFLAGS = -I$(top_srcdir)/include
+libalut_la_CPPFLAGS = -I$(top_srcdir)/include $(OPENAL_CFLAGS)
index 898e192..b99639c 100644 (file)
@@ -15,10 +15,10 @@ noinst_PROGRAMS =           \
        test_waveforms
 
 # We need to link against our *own* libalut.
-LDADD = ../src/libalut.la
+LDADD = ../src/libalut.la $(OPENAL_LIBS)
 
 # Specifying the following path is needed to find <AL/alut.h>.
-AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include $(OPENAL_CFLAGS)
 
 # test_retrostuff tests deprecated functions, but we don't want to get compiler
 # warnings because of that.