-
Notifications
You must be signed in to change notification settings - Fork 10
/
configure.ac
24 lines (20 loc) · 871 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
AC_INIT([quic], [1.0], [[email protected]])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
AM_PROG_AR
LT_INIT
PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 3.7.0])
AC_SUBST([LIBGNUTLS_CFLAGS])
AC_SUBST([LIBGNUTLS_LIBS])
AC_SUBST([kernel], [/lib/modules/`uname -r`])
AC_CHECK_FILE([$kernel/kernel/net/quic],
[AC_MSG_NOTICE(quic module with kernel found and skip building it)
AC_CHECK_FILE([/usr/include/linux/quic.h], [], [AC_MSG_ERROR([no kernel-headers found])])],
[AC_SUBST([MODULES], [modules])
AC_SUBST([KERNEL_BUILD], [$kernel/build])
AC_SUBST([KERNEL_EXTRA], [$kernel/extra])
AC_CHECK_FILE([$kernel/build/Makefile], [], [AC_MSG_ERROR(no kernel-devel found)])
AC_CONFIG_FILES([modules/Makefile])])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile libquic/Makefile libquic/libquic.pc tests/Makefile])
AC_OUTPUT