[gnome-build-meta/abderrahim/aarch64-config-sub-guess] project.conf: allow for projects that don't put configure or config.{sub, guess} in the root director



commit 479d38e3b99bec85cdb14cf00d3e5e52e9b597d3
Author: Abderrahim Kitouni <a kitouni gmail com>
Date:   Wed Apr 25 22:22:17 2018 +0100

    project.conf: allow for projects that don't put configure or config.{sub,guess} in the root directory.

 project.conf | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/project.conf b/project.conf
index 80adf7a..1ffd09a 100644
--- a/project.conf
+++ b/project.conf
@@ -90,13 +90,15 @@ elements:
       # to fix compilation on recent architectures such as aarch64.
       autogen: |
         export NOCONFIGURE=1
-        if [ -x configure ]; then cp /usr/share/automake*/config.{sub,guess} .
+        if [ -x %{conf-cmd} ]; then cp /usr/share/automake*/config.{sub,guess} %{conf-aux}
         elif [ -x autogen ]; then ./autogen
         elif [ -x autogen.sh ]; then ./autogen.sh
         elif [ -x bootstrap ]; then ./bootstrap
         elif [ -x bootstrap.sh ]; then ./bootstrap.sh
         else autoreconf -ivf
         fi
+      # the directory where config.sub and config.guess are stored
+      conf-aux: .
 
   cmake:
     variables:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]