also add pkg-config based check for libva's location
alsoI think my patches for aborting compile if withzmpeg = no and v4l2/dvb
= yes need || test case for xauto...
---------- Forwarded message ----------
From: *Андрей Рандрианасулу* <[email protected]>
Date: Tuesday, April 5, 2022
Subject: libdpx c++ check
To: randrianasulu <[email protected]>
--
Андрей Рандрианасулу
diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac
index 67297d4e..990e07a5 100644
--- a/cinelerra-5.1/configure.ac
+++ b/cinelerra-5.1/configure.ac
@@ -71,6 +71,11 @@ CHECK_WITH([nv],[nvenc/nvdec ffnvcodec api],[NV],[yes])
CHECK_WITH([cuda],[nv cuda plugins],[CUDA],[auto])
CHECK_WITH([clang],[use clang instead of gcc/g++],[CLANG],[no])
+AX_CXX_COMPILE_STDCXX(11, noext, optional)
+if test "x$WANT_LIBDPX" = "xauto" || test "x$WANT_LIBDPX" = "xyes"; then
+ CFLAGS+=" -std=c++11"
+fi
+
if test "x$WANT_LV2" != "xno"; then
GTK2_LIBS=`pkg-config --libs gtk+-2.0`
AC_CHECK_LIB([m], [gtk_init], [HAVE_gtk=yes], [HAVE_gtk=no], [$GTK2_LIBS])
@@ -1044,6 +1049,7 @@ FFMPEG_EXTRA_LDFLAGS=""
if test "x$WANT_VAAPI" != "xno" -a "x$HAVE_VAAPI" = "xyes"; then
FFMPEG_EXTRA_LDFLAGS+=' -lva'
EXTRA_LIBS+=' -lva'
+ EXTRA_LIBS+=' `pkg-config --libs libva`'
WANT_VAAPI="yes"
if test "x$HAVE_vaapi_x11" = "xyes"; then
FFMPEG_EXTRA_LDFLAGS+=' -lva-x11'
--
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin