summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: 9f1d972ebc04128c81cdabb2d3078fa88b3b6170 (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
26
AC_INIT()
 
AC_PROG_CC
 
PACKAGE=layman
VERSION=0.1
 
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)

LT_INIT([disable-static])

# Get Python 2.6 library and include locations
AC_ARG_WITH([python-include-path],
  [AS_HELP_STRING([--with-python-include-path],
    [location of the Python 2.6 headers, defaults to /usr/include/python2.6])],
  [PYTHON_CFLAGS="-I$withval"],
  [PYTHON_CFLAGS='-I/usr/include/python2.6'])
AC_SUBST([PYTHON_CFLAGS])

AC_ARG_WITH([python-lib-path],
  [AS_HELP_STRING([--with-python-lib-path], [location of the Python 2.6 library])],
  [PYTHON_LIBS="-L$withval -lpython2.6"],
  [PYTHON_LIBS='-lpython2.6'])
AC_SUBST([PYTHON_LIBS])
 
AC_OUTPUT(Makefile src/Makefile)