[libdvdnav-devel] configure: fix build on NIOS II platform

Thomas Petazzoni git at videolan.org
Tue May 20 11:32:56 CEST 2014


libdvdread | branch: master | Thomas Petazzoni <thomas.petazzoni at free-electrons.com> | Sat May 17 10:26:00 2014 +0200| [75f8601ee3b19d8914528860f7e1d2906df4a411] | committer: Jean-Baptiste Kempf

configure: fix build on NIOS II platform

NIOS II is a CPU architecture from Altera, which uses 'nios2' as the
architecture part of the tuple. Unfortunately, 'nios2' matches the
current '*os2*' test done by libdvdread's configure script to detect
the OS/2 operating system. This leads to build issues as the build
process of libdvdread then tries to use OS/2 specific compiler
options, that do not exist in the gcc used for Linux/NIOS2.

To fix this, this patch makes the test for OS/2 a little bit more
specific: in the case of the OS/2 operating system, the OS part of the
tuple contains just 'os2' (confirmed by looking at config.guess and
config.sub in the gnuconfig project). So using '*-os2-*' will properly
match the OS/2 operating system but not the NIOS II architecture.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=75f8601ee3b19d8914528860f7e1d2906df4a411
---

 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 9fa0a19..a50766f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,7 +56,7 @@ AS_CASE([$host],
   [*mingw32* | *cygwin*], [AC_CHECK_FUNCS(gettimeofday)])
 
 AS_CASE([$host],
-  [*os2*], LDFLAGS="-no-undefined -Zbin-files $LDFLAGS")
+  [*-os2-*], LDFLAGS="-no-undefined -Zbin-files $LDFLAGS")
 
 AC_ARG_WITH([libdvdcss],
   AS_HELP_STRING([--with-libdvdcss], [Link directly against libdvdcss @<:@default=no@:>@]))



More information about the libdvdnav-devel mailing list