Files
whipper-gui/configure.ac
Michał Górny 209b7d6621 Use standard AM_PATH_PYTHON rather than broken AS_PATH_PYTHON.
The AS_PATH_PYTHON macro is broken and does not respect $PYTHON when
version is specified. This causes serious breakage on Gentoo. Instead,
use the AM_PATH_PYTHON macro that is integral part of automake.
2014-05-16 09:38:10 +02:00

79 lines
2.1 KiB
Plaintext

dnl initialize autoconf
dnl when going to/from release please remove/add the nano (fourth number)
dnl releases only do Wall, trunk and prerelease does Werror too
AC_INIT(morituri, 0.2.2.1,
http://thomas.apestaart.org/morituri/trac/newticket,
morituri)
dnl initialize automake
AM_INIT_AUTOMAKE
dnl define PACKAGE_VERSION_* variables
AS_VERSION
AS_NANO
dnl authors
AC_SUBST_FILE(AUTHORS)
AUTHORS=$srcdir/AUTHORS
dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
AM_MAINTAINER_MODE
dnl Add parameters for aclocal
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
dnl check for python
AM_PATH_PYTHON(2.3)
dnl check for where to install our python stuff
PYVER=[`$PYTHON -c "import sys ; print sys.version[:3]"`]
dnl This is the best way of installing in an arch-independent location for now
AS_AC_EXPAND(PYTHONLIBDIR, "\${exec_prefix}/lib/python$PYVER/site-packages")
AC_MSG_NOTICE(Installing python code in $PYTHONLIBDIR)
AC_SUBST(PYTHONLIBDIR)
AS_AC_EXPAND(PLUGINSDIR, "\${libdir}/morituri/plugins")
AC_MSG_NOTICE(Setting plugins directory to $PLUGINSDIR)
dnl get git revision for installed.py.in
AC_SUBST(REVISION, `$PYTHON -c 'from morituri.configure import configure; print configure.revision'`)
AC_MSG_NOTICE(Setting revision to $REVISION)
dnl check for epydoc
AC_CHECK_PROG(EPYDOC, epydoc, yes, no)
AM_CONDITIONAL(HAVE_EPYDOC, test "x$EPYDOC" = "xyes")
dnl check for pychecker
AC_CHECK_PROG(PYCHECKER, pychecker, yes, no)
AM_CONDITIONAL(HAVE_PYCHECKER, test "x$PYCHECKER" = "xyes")
dnl output stuff
AC_CONFIG_FILES([bin/rip], [chmod +x bin/rip])
AC_CONFIG_FILES([etc/bash_completion.d/bash-compgen],
[chmod +x etc/bash_completion.d/bash-compgen])
AC_OUTPUT(
Makefile
bin/Makefile
etc/Makefile
etc/bash_completion.d/Makefile
m4/Makefile
morituri/Makefile
morituri/rip/Makefile
morituri/common/Makefile
morituri/configure/Makefile
morituri/configure/uninstalled.py
morituri/configure/installed.py
morituri/extern/Makefile
morituri/image/Makefile
morituri/program/Makefile
morituri/result/Makefile
morituri/test/Makefile
doc/Makefile
misc/Makefile
morituri.spec
)