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
|
AM_INIT_AUTOMAKE(knemo, 0.4.8)
dnl These are common macros that you might or might not want to use
dnl Image readers/writers
dnl If you want to use this test, you have to define it somewhere
dnl KDE_CHECK_KIMGIO
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_TIME
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h stdlib.h paths.h)
AC_CHECK_FUNCS(usleep)
AC_CHECK_LIB(iw,iw_sockets_open)
dnl Check path to ifconfig, iwconfig and route.
AC_PATH_PROG([PATH_IFCONFIG],[ifconfig],,
[$PATH:/sbin:/usr/sbin:/usr/local/sbin])
AC_PATH_PROG([PATH_IWCONFIG],[iwconfig],,
[$PATH:/sbin:/usr/sbin:/usr/local/sbin])
AC_PATH_PROG([PATH_ROUTE],[route],,
[$PATH:/sbin:/usr/sbin:/usr/local/sbin])
if test -n "${PATH_IFCONFIG}"; then
AC_SUBST([PATH_IFCONFIG])
AC_DEFINE_UNQUOTED(PATH_IFCONFIG, "${PATH_IFCONFIG}", [Path of ifconfig program])
fi
if test -n "${PATH_IWCONFIG}"; then
AC_SUBST([PATH_IWCONFIG])
AC_DEFINE_UNQUOTED(PATH_IWCONFIG, "${PATH_IWCONFIG}", [Path of iwconfig program])
fi
if test -n "${PATH_ROUTE}"; then
AC_SUBST([PATH_ROUTE])
AC_DEFINE_UNQUOTED(PATH_ROUTE, "${PATH_ROUTE}", [Path of route program])
fi
|