-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
50 lines (39 loc) · 1.37 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT([prophet],[0.1],[[email protected], [email protected]])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_TESTDIR([tests])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign -Wall -Werror -Wno-portability subdir-objects])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
# Checks for programs.
AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_LN_S
AC_PROG_MKDIR_P
AC_PROG_SED
LT_INIT([disable-static pic-only])
LT_INIT
AC_DEFINE_UNQUOTED([EXTRA_CLANG_INCLUDE_PATH], [`$srcdir/tools/test_clang_path.py`],
[the extra include path arguments that need to pass to clang when build AST tree])
AC_DEFINE_UNQUOTED([CLANG_WRAP_PATH], ["`readlink -f ./$builddir`/wrap"],
[the location of the wrapper for instrument the file])
AC_DEFINE_UNQUOTED([CLANG_CMD], ["`which clang`"],
[the clang cmd full path])
AC_DEFINE_UNQUOTED([GCC_CMD], ["`which gcc`"],
[the gcc cmd full path])
# Checks for OS.
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_SIZEOF([void *])
AC_CHECK_SIZEOF([int])
AC_CHECK_SIZEOF([long])
# Checks for library functions.
AC_CONFIG_FILES([
Makefile
src/Makefile
wrap/Makefile
include/Makefile
])
AC_OUTPUT