summaryrefslogtreecommitdiffstats
path: root/package/setools/0002-move-python-check.patch
blob: cef2cec996c84995fb2f4439df881eea5c210149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Correct a build issue that occurs when python is not found
in the path. This check should only be done if swig-python
option is selected.

Signed-off-by Clayton Shotwell <clshotwe@rockwellcollins.com>

--- a/configure.ac	2015-05-15 12:28:07.566060349 -0500
+++ b/configure.ac	2015-05-28 15:07:25.357072800 -0500
@@ -217,8 +217,6 @@
    do_swigify=yes
 fi
 
-AM_PATH_PYTHON(2.7)
-
 AC_ARG_ENABLE(swig-python,
               AC_HELP_STRING([--enable-swig-python],
                              [build SWIG interfaces for Python]),
@@ -227,6 +225,7 @@
    if test ${do_swigify} = no; then
       AC_PROG_SWIG(2.0.0)
    fi
+   AM_PATH_PYTHON(2.7)
    SWIG_PYTHON
    do_swigify_python=yes
    do_swigify=yes
OpenPOWER on IntegriCloud