/
configure.ac
58 lines (49 loc) · 1.74 KB
/
configure.ac
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Testbit.eu/Tools configure.ac -*- Autoconf -*-
# Redistributable under GNU GPLv3 or later: http://www.gnu.org/licenses/gpl.html
# == Package Setup ==
AC_INIT([Testbit.eu/Tools],
m4_esyscmd(/bin/sh ./buildfay.sh shellvar configure.ac:TESTBIT_TOOLS_VERSION),
[http://testbit.eu/],
[testbit-tools],
[http://testbit.eu/Tools])
# Package definitions pushed to be available for --help
m4_divert_text([NOTICE],[
TESTBIT_TOOLS_YEAR=11 # increment when ABI or API changes
TESTBIT_TOOLS_MONTH=09 # increment when ABI or API changes
TESTBIT_TOOLS_REVISION=1 # increment while ABI compatible, otherwise reset
TESTBIT_TOOLS_VERSION=$TESTBIT_TOOLS_YEAR.$TESTBIT_TOOLS_MONTH.$TESTBIT_TOOLS_REVISION
debug_default=minimum
])
# Autoconf, automake, etc setup
AC_CONFIG_MACRO_DIR([autotools])
AC_CONFIG_AUX_DIR([autotools])
AC_PREREQ([2.67])
AC_PROG_MAKE_SET
AC_CONFIG_HEADER(configure.h)
AM_INIT_AUTOMAKE([1.10 check-news dist-bzip2 no-dist-gzip -Wno-portability])
AM_MAINTAINER_MODE # maintainer-mode might require exotic tools
AM_SILENT_RULES([yes])
# Configure arguments.
AC_ARG_ENABLE(debug, [ --enable-debug=no/minimum/yes turn on debugging],,enable_debug=$debug_default)
# Checks for programs.
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_CPP
AC_PROG_CC
AC_PROG_CXX
AC_PROG_LIBTOOL
# Checks for Python.
AM_PATH_PYTHON(2.5)
AC_MSG_CHECKING([for usable Python])
if $PYTHON -c "import sys; sys.exit (not sys.version_info >= (2,5))" && test -n "$pythondir" ; then
AC_MSG_RESULT(ok)
else
AC_MSG_RESULT(fail)
AC_MSG_ERROR([failed to check \$PYTHON and \$pythondir])
fi
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile])
AC_OUTPUT