pypath.m4 470 Bytes
Newer Older
1
AC_DEFUN([adl_CHECK_PYTHON],
2
 [AM_PATH_PYTHON([2.0])
3
4
5
6
  case $PYTHON in
    [[\\/$]]* | ?:[[\\/]]* );;
    *) AC_MSG_ERROR([The PYTHON variable must be set to an absolute filename.]);;
  esac
7
8
  AC_CACHE_CHECK([for $am_display_PYTHON includes directory],
    [adl_cv_python_inc],
9
10
    [adl_cv_python_inc=`$PYTHON -c "import sys; from distutils import sysconfig;]
[sys.stdout.write(sysconfig.get_python_inc())" 2>/dev/null`])
11
  AC_SUBST([PYTHONINC], [$adl_cv_python_inc])])