diff options
| author | Maxime Devos <maximedevos@telenet.be> | 2021-08-25 12:42:23 +0200 |
|---|---|---|
| committer | Mathieu Othacehe <othacehe@gnu.org> | 2021-09-20 11:15:08 +0000 |
| commit | 0515ebb0d17f4350b094cace66d5469640029da7 (patch) | |
| tree | 9533bc6f9b37a965b00306b19c583a03137252ff /gnu/packages/avahi.scm | |
| parent | 35e1a572f6424c4d9bd2679590be14d664dd2121 (diff) | |
gnu: avahi: Find 'TARGET-pkg-config' when cross-compiling.
The configure script first tests whether "pkg-config" is in PATH,
and then uses "TARGET-pkg-config". Pretend "pkg-config" exists.
* gnu/packages/avahi.scm (avah)[arguments]<#:configure-flags>: Set
ac_cv_prog_have_pkg_config=yes when cross-compiling.
Diffstat (limited to 'gnu/packages/avahi.scm')
| -rw-r--r-- | gnu/packages/avahi.scm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/packages/avahi.scm b/gnu/packages/avahi.scm index 602f9d79979..5582df479e5 100644 --- a/gnu/packages/avahi.scm +++ b/gnu/packages/avahi.scm | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> | 3 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> |
| 4 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> | 4 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
| 5 | ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com> | 5 | ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com> |
| 6 | ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> | ||
| 6 | ;;; | 7 | ;;; |
| 7 | ;;; This file is part of GNU Guix. | 8 | ;;; This file is part of GNU Guix. |
| 8 | ;;; | 9 | ;;; |
| @@ -58,7 +59,7 @@ | |||
| 58 | #t)))) | 59 | #t)))) |
| 59 | (build-system gnu-build-system) | 60 | (build-system gnu-build-system) |
| 60 | (arguments | 61 | (arguments |
| 61 | '(#:configure-flags '("--with-distro=none" | 62 | `(#:configure-flags '("--with-distro=none" |
| 62 | "--disable-static" | 63 | "--disable-static" |
| 63 | "--localstatedir=/var" ; for the DBus socket | 64 | "--localstatedir=/var" ; for the DBus socket |
| 64 | "--disable-python" | 65 | "--disable-python" |
| @@ -68,7 +69,10 @@ | |||
| 68 | "--enable-tests" | 69 | "--enable-tests" |
| 69 | "--disable-qt4" "--disable-qt5" | 70 | "--disable-qt4" "--disable-qt5" |
| 70 | "--disable-gtk" "--disable-gtk3" | 71 | "--disable-gtk" "--disable-gtk3" |
| 71 | "--enable-compat-libdns_sd"))) | 72 | "--enable-compat-libdns_sd" |
| 73 | ,@(if (%current-target-system) | ||
| 74 | '("ac_cv_prog_have_pkg_config=yes") | ||
| 75 | '())))) | ||
| 72 | (inputs | 76 | (inputs |
| 73 | `(("dbus" ,dbus) | 77 | `(("dbus" ,dbus) |
| 74 | ("expat" ,expat) | 78 | ("expat" ,expat) |
