File ginac-check-for-python3.patch of Package ginac

Index: ginac-1.7.8/configure.ac
===================================================================
--- ginac-1.7.8.orig/configure.ac
+++ ginac-1.7.8/configure.ac
@@ -60,7 +60,7 @@ AC_CHECK_HEADERS(unistd.h)
 GINAC_HAVE_RUSAGE
 GINAC_READLINE
 dnl Python is necessary for building function.{cpp,h}
-AC_PATH_PROG(PYTHON, python, "")
+AC_PATH_PROGS(PYTHON, [python python3], "")
 AS_IF([test -z "$PYTHON" -a ! -f "$srcdir/ginac/function.cpp"],
       [AC_MSG_ERROR([GiNaC will not compile because Python is missing])])
 
openSUSE Build Service is sponsored by