-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
87 lines (75 loc) · 2.39 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
74
75
76
77
78
79
80
81
82
83
84
85
86
AC_INIT(acc2ocl, version-0.1)
AC_PROG_CC
AC_ARG_WITH(boost, [ --with-boost BOOST path, used by ROSE])
if test "$with_boost" == ""
then
AC_MSG_ERROR([Need BOOST path for ROSE])
else
AC_MSG_NOTICE([BOOST path provided])
AC_SUBST(boost_path, $with_boost)
fi
AC_ARG_WITH(opencl-inc, [ --with-opencl-inc OpenCL headers path, used by libOpenACC])
if test "$with_opencl_inc" == ""
then
AC_MSG_ERROR([Need OpenCL headers path])
else
AC_MSG_NOTICE([OpenCL headers path provided])
AC_SUBST(opencl_inc_path, $with_opencl_inc)
fi
AC_ARG_WITH(opencl-lib, [ --with-opencl-lib OpenCL library path, used by libOpenACC])
if test "$with_opencl_lib" == ""
then
AC_MSG_ERROR([Need OpenCL library path])
else
AC_MSG_NOTICE([OpenCL library path provided])
AC_SUBST(opencl_lib_path, $with_opencl_lib)
fi
AC_ARG_WITH(sqlite-inc, [ --with-sqlite-inc SQLite headers path, used to save evaluation and profiling])
if test "$with_sqlite_inc" == ""
then
AC_MSG_ERROR([Need SQLite headers path])
else
AC_MSG_NOTICE([SQLite headers path provided])
AC_SUBST(sqlite_inc_path, $with_sqlite_inc)
fi
AC_ARG_WITH(sqlite-lib, [ --with-sqlite-lib SQLite library path, used to save evaluation and profiling])
if test "$with_sqlite_lib" == ""
then
AC_MSG_ERROR([Need SQLite library path])
else
AC_MSG_NOTICE([SQLite library path provided])
AC_SUBST(sqlite_lib_path, $with_sqlite_lib)
fi
AC_OUTPUT(libopenacc/lib/Makefile)
AC_OUTPUT(tuner/Makefile)
AC_OUTPUT(tuner/run-103.sh)
AC_OUTPUT(tuner/run-104.sh)
AC_OUTPUT(tuner/run-109.sh)
AC_OUTPUT(tests/001/Makefile)
AC_OUTPUT(tests/002/Makefile)
AC_OUTPUT(tests/101/Makefile)
AC_OUTPUT(tests/102/Makefile)
AC_OUTPUT(tests/103/Makefile)
AC_OUTPUT(tests/104/Makefile)
AC_OUTPUT(tests/109/Makefile)
AC_OUTPUT(tests/501/Makefile)
AC_OUTPUT(tests/509/Makefile)
AC_OUTPUT(tests/X09-tunning/execute-109.sh)
AC_OUTPUT(tests/X09-tunning/Makefile)
AC_OUTPUT(tests/scripts/100-rules.mk)
AC_OUTPUT(tests/scripts/500-rules.mk)
AC_OUTPUT(tests/scripts/environment.mk)
AC_OUTPUT(rose.sh)
chmod +x rose.sh
chmod +x tuner/run-103.sh
chmod +x tuner/run-104.sh
chmod +x tuner/run-109.sh
chmod +x tests/X09-tunning/execute-109.sh
if test -d benchmark
then
AC_OUTPUT(benchmark/generate.sh)
AC_OUTPUT(benchmark/compile.sh)
AC_OUTPUT(benchmark/execute.sh)
AC_OUTPUT(benchmark/config.rc)
chmod +x benchmark/execute.sh benchmark/generate.sh benchmark/compile.sh
fi