-
Notifications
You must be signed in to change notification settings - Fork 11
/
configure.ac
46 lines (32 loc) · 948 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
AC_INIT([nvptx-tools])
ACX_PKGVERSION([nvptx-tools])
ACX_BUGURL([https://github.com/SourceryTools/nvptx-tools/issues])
AC_CONFIG_SRCDIR([nvptx-as.cc])
AC_CONFIG_MACRO_DIRS([config])
AC_PROG_CC
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX(11, noext)
ACX_PROG_CXX_WARNING_OPTS([-Wall -Wextra])
ACX_PROG_CXX_WARNINGS_ARE_ERRORS([manual])
#AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PATH_PROG(RANLIB, ranlib)
AC_PATH_PROG(AR, ar)
AC_CHECK_HEADERS(unistd.h sys/stat.h)
AC_CHECK_DECLS(getopt)
DL_LIBS=
AC_SUBST(DL_LIBS)
AC_CHECK_LIB(dl, dlsym, [DL_LIBS=-ldl])
NVPTX_RUN=nvptx-none-run
AC_SUBST(NVPTX_RUN)
if test x"$DL_LIBS" = x; then
AC_MSG_NOTICE([not able to build $NVPTX_RUN])
NVPTX_RUN=
fi
AC_CONFIG_SUBDIRS([libiberty])
AC_CONFIG_FILES([Makefile dejagnu.exp])
# Testsuite
# As of 2020-12-18, there is no standard way to invoke lit; see 'test/README'.
AC_CHECK_PROGS([LIT], [lit] [lit.py] [llvm-lit])
AC_CONFIG_FILES([test/lit.site.cfg.py])
AC_OUTPUT