summaryrefslogtreecommitdiffstats
path: root/src/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/configure.in.in')
-rw-r--r--src/configure.in.in37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/configure.in.in b/src/configure.in.in
new file mode 100644
index 0000000..78547c8
--- /dev/null
+++ b/src/configure.in.in
@@ -0,0 +1,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