version reorg, precedence patch for stat check
[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
9 # The version number consists of three segments: major, API minor, and
10 # implementation minor. Whenever a change is made to AS_DCP.h, the API minor
11 # version will increment. Changes made to the internal implementation will
12 # result in the incrementing of the implementation minor version.
13 #
14 # For example, if asdcplib version 1.0.0 were modified to accomodate changes
15 # in file format, and if no changes were made to AS_DCP.h, the new version would be
16 # 1.0.1. If changes were also required in AS_DCP.h, the new version would be 1.1.1.
17 AC_INIT([asdcplib], [1.3.19], [asdcplib@cinecert.com])
18
19 AC_CONFIG_AUX_DIR([build-aux])
20 AC_CONFIG_SRCDIR([src/KM_error.h])
21 #AC_CONFIG_HEADER([src/config.h])
22 AM_INIT_AUTOMAKE([1.9 foreign])
23
24 # Checks for programs.
25 AC_CANONICAL_BUILD
26 AC_CANONICAL_HOST
27 AC_PROG_CC
28 AC_PROG_CXX
29 AC_PROG_LIBTOOL
30 AC_PROG_INSTALL
31 AC_PROG_RANLIB
32
33 AC_SYS_LARGEFILE
34 if test "$ac_cv_sys_largefile_CC" != no; then
35    CXX=$CXX$ac_cv_sys_largefile_CC
36 fi
37
38 AX_LIB_OPENSSL([0.9.7])
39 AX_LIB_EXPAT
40 AX_LIB_XERCES
41 #AM_PATH_PYTHON([2.3], , [:])
42 AZ_PYTHON_DEFAULT
43 AZ_PYTHON_WITH
44 AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
45
46 # Checks for libraries.
47 AC_CHECK_LIB([pthread], [pthread_create])
48
49 # Checks for header files.
50 #AC_HEADER_DIRENT
51 #AC_HEADER_STDC
52 #AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h wchar.h])
53
54 # Checks for typedefs, structures, and compiler characteristics.
55 #AC_C_CONST
56 #AC_C_INLINE
57 #AC_TYPE_OFF_T
58 #AC_TYPE_SIZE_T
59 #AC_STRUCT_TM
60
61 # Checks for library functions.
62 #AC_FUNC_CLOSEDIR_VOID
63 #AC_FUNC_MALLOC
64 #AC_FUNC_MEMCMP
65 #AC_FUNC_STAT
66 #AC_CHECK_FUNCS([getcwd memset regcomp strchr strerror strrchr strstr strtol])
67
68 AC_CONFIG_FILES([Makefile
69                  src/Makefile])
70 AC_OUTPUT