forked from oracle/ktf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
59 lines (43 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
51
52
53
54
55
56
57
58
59
# Process this file with autoconf to produce a configure script.
# Prelude.
AC_PREREQ([2.59])
AC_INIT([ktf], [1.0], [[email protected]])
# unique source file --- primitive safety check
AC_CONFIG_SRCDIR([kernel/ktf.h])
# place to put some extra build scripts installed
AC_CONFIG_AUX_DIR([ac])
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
# Look for/generate m4 files under top/m4
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
# Silent rules by default - use make V=1 for verbose
AM_SILENT_RULES([yes])
# temporary measure to see if running make sequentially will eliminate some
# spurious build errors:
# NB! this comment is interpreted by terse, keep as is:
# Sequential make
# Checks for programs.
AC_PROG_CXX
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_FUNC_MALLOC
AC_ARG_WITH([googletest], AS_HELP_STRING([--with-googletest], [Optional path to a gtest install]),
[gtest_prefix="$withval"],AS_IF([test "x$prefix" != "xNONE" -a "x$prefix" != "x"],[gtest_prefix=$prefix]))
AM_CONFIG_KTF
AM_KTF_DIR([kernel])
AM_KTF_DIR([selftest])
AM_KTF_DIR([examples])
AC_CONFIG_FILES([Makefile
kernel/Makefile
selftest/Makefile
examples/Makefile
lib/Makefile
user/Makefile
doc/Makefile
])
AC_OUTPUT