diff options
author | John Stebbins <[email protected]> | 2019-04-15 10:48:56 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-04-15 10:48:56 -0600 |
commit | a144fd366bd8ca1030aa785f7cbfa27e84a0b428 (patch) | |
tree | 218cb9a2d9856d6c83f5d2414d457ff5090eacc9 /gtk | |
parent | d572956c90cffd6c221368af69ad129e2bc84bdb (diff) |
configure: add option to enable/disable libnuma
It is not supported or not useful in some Linux environments, so allow
disabling it.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/configure.ac | 9 | ||||
-rw-r--r-- | gtk/module.defs | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gtk/configure.ac b/gtk/configure.ac index c27be12e2..4a1788efb 100644 --- a/gtk/configure.ac +++ b/gtk/configure.ac @@ -73,6 +73,10 @@ AC_ARG_ENABLE(x265, AS_HELP_STRING([--enable-x265], [enable x265 encoder]), use_x265=yes, use_x265=no) +AC_ARG_ENABLE(numa, + AS_HELP_STRING([--enable-numa], [enable x265 NUMA support]), + use_numa=yes, use_numa=no) + AC_ARG_ENABLE(qsv, AS_HELP_STRING([--enable-qsv], [enable QSV encoder]), use_qsv=yes, use_qsv=no) @@ -186,7 +190,10 @@ if test "x$use_fdk_aac" = "xyes" ; then fi if test "x$use_x265" = "xyes" ; then - HB_LIBS="$HB_LIBS -lx265 -lnuma" + HB_LIBS="$HB_LIBS -lx265" +if test "x$use_numa" = "xyes" ; then + HB_LIBS="$HB_LIBS -lnuma" +fi fi if test "x$use_qsv" = "xyes" ; then diff --git a/gtk/module.defs b/gtk/module.defs index 28b5ee38a..2f1e5a021 100644 --- a/gtk/module.defs +++ b/gtk/module.defs @@ -38,6 +38,9 @@ endif ifeq (1,$(FEATURE.x265)) GTK.CONFIGURE.extra += --enable-x265 +ifeq (1,$(FEATURE.numa)) + GTK.CONFIGURE.extra += --enable-numa +endif endif ifeq (1,$(FEATURE.qsv)) |