forked from laanwj/etnaviv_gpu_tests
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
48 lines (40 loc) · 1.33 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
AC_PREREQ([2.60])
AC_INIT([etnaviv_gpu_tests], [0.1],
[https://github.com/etnaviv])
AC_CONFIG_AUX_DIR([bin])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([foreign]) # tar-ustar dist-xz subdir-objects])
dnl Check for progs
AC_PROG_CPP
AC_PROG_CC
AC_PROG_RANLIB
AC_CHECK_PROGS([PYTHON3], [python3])
AC_PROG_SED
# Check for dependenicies
LIBDRM_REQUIRED=2.4.64
LIBDRM_ETNAVIV_REQUIRED=2.4.71
PKG_CHECK_MODULES([LIBDRM], [libdrm >= $LIBDRM_REQUIRED],
[have_libdrm=yes], [have_libdrm=no])
if test "x$have_libdrm" != xyes; then
AC_MSG_ERROR([$1 requires libdrm >= $LIBDRM_REQUIRED])
fi
PKG_CHECK_MODULES([LIBDRM_ETNAVIV], [libdrm_etnaviv >= $LIBDRM_ETNAVIV_REQUIRED],
[have_libdrm_etnaviv=yes], [have_libdrm_etnaviv=no])
if test "x$have_libdrm" != xyes; then
AC_MSG_ERROR([$1 requires libdrm_etnaviv >= $LIBDRM_ETNAVIV_REQUIRED])
fi
AC_CHECK_LIB([m], [exp2f])
# Flags
CFLAGS="$CFLAGS -Wall -Wextra -O2 -g -std=c99 -Wno-unused-parameter -Wno-unused-function -Wno-missing-field-initializers"
# Generate makefiles
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
dnl
dnl Output some configuration info for the user
dnl
echo ""
echo " prefix: $prefix"
echo " exec_prefix: $exec_prefix"
echo " libdir: $libdir"
echo " includedir: $includedir"