aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
blob: 5e3f89bb5f3c7a53b728b93d9c191046853aad33 (plain)
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(bridge-utils, 1.5)
AC_CONFIG_HEADERS(libbridge/config.h)

AC_ARG_WITH( linux-headers, [  --with-linux-headers     Location of the linux headers to use], 
    KERNEL_HEADERS=$withval, KERNEL_HEADERS="/usr/src/linux/include")

dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(sys/ioctl.h sys/time.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_TIME

dnl Checks for library functions.
AC_CHECK_FUNCS(gethostname socket strdup uname)
AC_CHECK_FUNCS(if_nametoindex if_indextoname)

AC_SUBST(KERNEL_HEADERS)

AC_OUTPUT(doc/Makefile libbridge/Makefile brctl/Makefile Makefile bridge-utils.spec)