Code

configure: Check if PKG_INSTALLDIR is defined before using it.
authorFlorian Forster <ff@octo.it>
Fri, 5 May 2017 12:43:29 +0000 (14:43 +0200)
committerFlorian Forster <ff@octo.it>
Fri, 5 May 2017 12:43:29 +0000 (14:43 +0200)
configure.ac

index 60138fc5cd0e4f9582c3da00f5e4508908b3f5ca..fcafad15b5a778b7ecbb76dc8578af6d3ee971fc 100644 (file)
@@ -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)]),