diff options
author | Detlev Casanova <detlev.casanova@gmail.com> | 2010-07-16 23:13:50 +0200 |
---|---|---|
committer | Detlev Casanova <detlev.casanova@gmail.com> | 2010-07-16 23:13:50 +0200 |
commit | fda03749df61a57bd5ab4c74e7fc16569a805a98 (patch) | |
tree | 27e6167e99dc83f9d3cc7a07864d3a74f9ec91e6 /configure.ac | |
parent | 5ee230352df6d06cdba6f48da3d83a608847785c (diff) | |
download | layman-fda03749df61a57bd5ab4c74e7fc16569a805a98.tar.gz layman-fda03749df61a57bd5ab4c74e7fc16569a805a98.tar.bz2 layman-fda03749df61a57bd5ab4c74e7fc16569a805a98.zip |
Add the autotools building system
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..9f1d972 --- /dev/null +++ b/configure.ac @@ -0,0 +1,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) |