From 5e8f666c2abfbf455a284b54750dad19f97fe5fe Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 5 May 2017 14:43:29 +0200 Subject: [PATCH] configure: Check if PKG_INSTALLDIR is defined before using it. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 60138fc..fcafad1 100644 --- a/configure.ac +++ b/configure.ac @@ -50,7 +50,8 @@ AC_ARG_VAR(PERL, [Perl interpreter command]) LT_INIT([dlopen]) # pkg-config interface -PKG_INSTALLDIR +# PKG_INSTALLDIR is only available for pkg-config >= 0.27 +m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], []) AC_ARG_WITH(pkgconfigdir, AC_HELP_STRING([--with-pkgconfigdir], [Use the specified pkgconfig dir (default is libdir/pkgconfig)]), -- 2.30.2