*** empty log message ***
[asdcplib.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.59])
5 # If you change this, you should update the libtool version number specified
6 # in src/Makefile.am. Read <http://www.gnu.org/software/libtool/manual.html#Versioning>
7 # for suggestions on doing so.
8 AC_INIT([asdcplib], [1.3.19], [asdcplib@cinecert.com])
9 AC_CONFIG_AUX_DIR([build-aux])
10 AC_CONFIG_SRCDIR([src/KM_error.h])
11 AC_CONFIG_HEADER([src/config.h])
12 AM_INIT_AUTOMAKE([1.9 foreign])
13
14 # Checks for programs.
15 AC_CANONICAL_BUILD
16 AC_CANONICAL_HOST
17 AC_PROG_CC
18 AC_PROG_CXX
19 AC_PROG_LIBTOOL
20 AC_PROG_INSTALL
21 AC_PROG_RANLIB
22
23 AC_SYS_LARGEFILE
24
25 CHECK_SSL
26 AX_LIB_EXPAT
27 #AM_PATH_PYTHON([2.3], , [:])
28 AZ_PYTHON_DEFAULT
29 AZ_PYTHON_WITH
30 AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
31
32 # Checks for header files.
33 AC_HEADER_DIRENT
34 AC_HEADER_STDC
35 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h wchar.h])
36
37 # Checks for typedefs, structures, and compiler characteristics.
38 AC_C_CONST
39 AC_C_INLINE
40 AC_TYPE_OFF_T
41 AC_TYPE_SIZE_T
42 AC_STRUCT_TM
43
44 # Checks for library functions.
45 AC_FUNC_CLOSEDIR_VOID
46 AC_FUNC_MALLOC
47 AC_FUNC_MEMCMP
48 AC_FUNC_STAT
49 AC_CHECK_FUNCS([getcwd memset regcomp strchr strerror strrchr strstr strtol])
50
51 AC_CONFIG_FILES([Makefile
52                  src/Makefile])
53 AC_OUTPUT