-
Notifications
You must be signed in to change notification settings - Fork 5
/
configure.ac
49 lines (36 loc) · 880 Bytes
/
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT([OpenDPX], 0.5.0)
AM_INIT_AUTOMAKE
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
# libtool
AM_DISABLE_SHARED
AM_PROG_LIBTOOL
# Checks for libraries.
AC_CHECK_LIB(tiff,_TIFFmalloc,have_libtiff='yes',have_libtiff='no')
AM_CONDITIONAL(HAVE_LIBTIFF, test "$have_libtiff" != "no")
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(ctime)
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_STRUCT_TM
# Checks for library functions.
AC_HEADER_STDC
AC_FUNC_STRFTIME
AC_CHECK_FUNCS([memset])
AC_OUTPUT([
Makefile
libdpx/Makefile
tools/Makefile
tools/dpxheader/Makefile
tools/dpx2tiff/Makefile
])
AC_MSG_RESULT([OpenDPX: build libtiff apps... "$have_libtiff"])