forked from apache/singa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
73 lines (66 loc) · 2.16 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(singa, 0.0.1, [email protected])
AC_CONFIG_SRCDIR([src/utils/common.cc])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([subdir-objects])
ACLOCAL_AMFLAGS = -I m4 --install
# Checks for programs.
AC_PROG_CXX([g++])
AC_PROG_CC
AC_PROG_LIBTOOL
# Checks for libraries.
AC_SEARCH_LIBS([cblas_sgemm], [openblas], [], [
AC_MSG_ERROR([unable to find the cblas_sgemm() function])
])
AC_SEARCH_LIBS([zmsg_new], [czmq], [], [
AC_MSG_ERROR([unable to find the zmsg_new() function])
])
AC_CHECK_LIB([gflags], [main], [], [
AC_MSG_ERROR([unable to find the InitGoogleLogging() function])
])
AC_CHECK_LIB([glog], [main], [], [
AC_MSG_ERROR([unable to find the InitGoogleLogging() function])
])
AC_CHECK_LIB([protobuf], [main], [], [
AC_MSG_ERROR([unable to find the InitGoogleLogging() function])
])
AC_CHECK_LIB([opencv_imgproc], [main], [], [
AC_MSG_ERROR([unable to find the opencv_imgproc])
])
AC_CHECK_LIB([opencv_highgui], [main], [], [
AC_MSG_ERROR([unable to find the opencv_highgui])
])
AC_CHECK_LIB([opencv_core], [main], [], [
AC_MSG_ERROR([unable to find the opencv_core])
])
#AC_SEARCH_LIBS([google_InitGoogleLogging], [glog], [], [
# AC_MSG_ERROR([unable to find the InitGoogleLogging() function])
# ])
#AC_SEARCH_LIBS([ParseCommandLineFlags], [gflags], [], [
# AC_MSG_ERROR([unable to find the ParseCommandLineFlags() function])
# ])
#AC_SEARCH_LIBS([DebugString], [protobuf], [], [
# AC_MSG_ERROR([unable to find the DebugString() function])
# ])
AC_SEARCH_LIBS([mdb_env_create], [lmdb], [], [
AC_MSG_ERROR([unable to find the mdb_env_create() function])
])
AC_SEARCH_LIBS([zmq_ctx_new], [zmq], [], [
AC_MSG_ERROR([unable to find the czmq() function])
])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h malloc.h stdlib.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_C_VOLATILE
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_STAT
AC_CHECK_FUNCS([gethostname memset mkdir pow sqrt])
AC_OUTPUT(Makefile)