File: acinclude.m4

package info (click to toggle)
accerciser 3.22.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,392 kB
  • sloc: python: 8,322; sh: 839; makefile: 245
file content (14 lines) | stat: -rw-r--r-- 324 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
dnl a macro to run a Python script with a return value
dnl AM_CHECK_PYSCRIPT(SCRIPTNAME [, PASS [, FAIL]])
AC_DEFUN([AM_CHECK_PYSCRIPT],
[AC_REQUIRE([AM_PATH_PYTHON])
AC_MSG_CHECKING($1)
if $PYTHON $1
  then
    AC_MSG_RESULT(yes)
    ifelse([$2], [], , [$2])
  else
    AC_MSG_RESULT(no)
    ifelse([$3], [], , [$3])
fi
])