]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
update configure Release-13.0.2
authorEric Bollengier <eric@baculasystems.com>
Sat, 18 Feb 2023 09:19:36 +0000 (10:19 +0100)
committerEric Bollengier <eric@baculasystems.com>
Sat, 18 Feb 2023 09:21:25 +0000 (10:21 +0100)
bacula/configure

index 5b61051ed5db79f979d459354798bb707c8336bd..88191d4ced613282b30a15496f9fe1376f550b81 100755 (executable)
@@ -24140,8 +24140,13 @@ if test $? = 0; then
       PYTHON=python
       CYTHON="$CYTHON -2"
    fi
-   CYTHON_LIBS=`${PYTHON}-config --libs 2>/dev/null`
-   CYTHON_INC=`${PYTHON}-config --includes 2>/dev/null`
+   # Thanks to Python, in 3.8 the new --embed flag is necessary
+   # but it break any previous version. So, let's do it 2 times
+   CYTHON_LIBS=`${PYTHON}-config --ldflags --embed 2>/dev/null`
+   if test $? != 0; then
+      CYTHON_LIBS=`${PYTHON}-config --ldflags 2>/dev/null`
+   fi
+   CYTHON_INC=`${PYTHON}-config --cflags 2>/dev/null`
 else
    CYTHON=
 fi