Don't hardcode pkg-config in configure.ac
Use $PKG_CONFIG instead to make it more cross-compilation friendly.
Closes: #923108
Michael Biebl
3 years ago
0 | From: Helmut Grohne <helmut@subdivi.de> | |
1 | Date: Sun, 17 May 2020 14:14:05 +0200 | |
2 | Subject: Don't hardcode pkg-config in configure.ac | |
3 | ||
4 | Use $PKG_CONFIG instead to make it more cross-compilation friendly. | |
5 | ||
6 | Closes: #923108 | |
7 | --- | |
8 | configure.ac | 2 +- | |
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
10 | ||
11 | diff --git a/configure.ac b/configure.ac | |
12 | index bc769f3..5da39dc 100644 | |
13 | --- a/configure.ac | |
14 | +++ b/configure.ac | |
15 | @@ -108,7 +108,7 @@ fi | |
16 | ] | |
17 | , | |
18 | [dnl Linux distributions | |
19 | - extensiondir=`pkg-config --variable=extensiondir libnautilus-extension`; | |
20 | + extensiondir=`$PKG_CONFIG --variable=extensiondir libnautilus-extension`; | |
21 | if test -n "$extensiondir" ; | |
22 | then | |
23 | AC_SUBST(NAUTILUS_EXTENSIONS_DIR, [$extensiondir]) |