diff options
Diffstat (limited to 'va')
-rw-r--r-- | va/Makefile.am | 1 | ||||
-rw-r--r-- | va/meson.build | 2 | ||||
-rw-r--r-- | va/va.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/va/Makefile.am b/va/Makefile.am index e67c588..1a97b2c 100644 --- a/va/Makefile.am +++ b/va/Makefile.am @@ -24,6 +24,7 @@ SUBDIRS = AM_CPPFLAGS = \ -I$(top_srcdir) \ + -DSYSCONFDIR='"$(sysconfdir)"' \ -DVA_DRIVERS_PATH="\"$(LIBVA_DRIVERS_PATH)\"" LDADD = \ diff --git a/va/meson.build b/va/meson.build index 45707b6..e140a4b 100644 --- a/va/meson.build +++ b/va/meson.build @@ -63,7 +63,7 @@ libva = shared_library( libva_headers_priv, soversion : libva_lt_current, version : libva_lt_version, - c_args : ['-DVA_DRIVERS_PATH="' + driverdir + '"'] + va_c_args, + c_args : [ '-DSYSCONFDIR="' + sysconfdir + '"'] + ['-DVA_DRIVERS_PATH="' + driverdir + '"'] + va_c_args, include_directories : configinc, link_args : '-Wl,-version-script,' + libva_sym_path, link_depends : libva_sym, @@ -71,7 +71,7 @@ int va_parseConfig(char *env, char *env_value) if (env == NULL) return 1; - fp = fopen("/etc/libva.conf", "r"); + fp = fopen(SYSCONFDIR "/libva.conf", "r"); while (fp && (fgets(oneline, 1024, fp) != NULL)) { if (strlen(oneline) == 1) continue; |