root/trunk/wifidog/configure.in @ 213

Revision 213, 2.8 KB (checked in by benoitg, 9 years ago)

2004-08-30 Benoit Gr�goire <bock@…>

  • README.openwrt: Documentation update
  • Makefile.am: Make a ipkg target to ease WRT54G installation
  • ipkg/rules: Add wdctl and the init.d script.
  • Add BUILDROOT variable to the build system so we can use it when needed
  • src/ping_thread.c: Have the server ping immediately on boot. Note that this will only help if the second server responds. The logic of the ping itself should be changed so it iterates in the list until it finds one that responds or exausts the list
  • wifidog.conf: Add more doc, and (most) of ISF's default config in comments.
  • Bump version in anticipation for release
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1## -*-m4-*-
2# $Header$
3
4dnl Process this file with autoconf to produce a configure script.
5
6# FILE:
7# configure.in
8#
9# FUNCTION:
10# implements checks for a variety of system-specific functions
11
12AC_INIT(src/common.h)
13AM_CONFIG_HEADER(config.h)
14AC_CONFIG_AUX_DIR(config)
15AC_PROG_CC
16AC_PROG_CXX
17#AC_PROG_RANLIB
18
19AC_SUBST(BUILDROOT)
20
21WIFIDOG_MAJOR_VERSION=1
22WIFIDOG_MINOR_VERSION=0
23WIFIDOG_MICRO_VERSION=0
24WIFIDOG_VERSION=$WIFIDOG_MAJOR_VERSION.$WIFIDOG_MINOR_VERSION.$WIFIDOG_MICRO_VERSION
25
26AC_SUBST(WIFIDOG_MAJOR_VERSION)
27AC_SUBST(WIFIDOG_MINOR_VERSION)
28AC_SUBST(WIFIDOG_MICRO_VERSION)
29AC_SUBST(WIFIDOG_VERSION)
30AM_INIT_AUTOMAKE(wifidog,$WIFIDOG_VERSION)
31
32
33AM_MAINTAINER_MODE
34
35AC_PROG_INSTALL
36
37AC_LIBTOOL_DLOPEN
38AM_PROG_LIBTOOL
39
40AC_ISC_POSIX
41AC_C_BIGENDIAN
42AC_PROG_MAKE_SET
43AC_HEADER_STDC
44
45 
46# check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/
47# ----------------------------------------------------------------------------
48AC_DEFUN(BB_ENABLE_DOXYGEN,
49[
50AC_ARG_ENABLE(doxygen, [  --enable-doxygen        enable documentation generation with doxygen (auto)])
51AC_ARG_ENABLE(dot, [  --enable-dot            use 'dot' to generate graphs in doxygen (auto)])             
52AC_ARG_ENABLE(html-docs, [  --enable-html-docs      enable HTML generation with doxygen (yes)], [], [ enable_html_docs=yes])             
53AC_ARG_ENABLE(latex-docs, [  --enable-latex-docs     enable LaTeX documentation generation with doxygen (no)], [], [ enable_latex_docs=no])             
54if test "x$enable_doxygen" = xno; then
55        enable_doc=no
56else
57        AC_PATH_PROG(DOXYGEN, doxygen, , $PATH)
58        if test x$DOXYGEN = x; then
59                if test "x$enable_doxygen" = xyes; then
60                        AC_MSG_ERROR([could not find doxygen])
61                fi
62                enable_doc=no
63        else
64                enable_doc=yes
65                AC_PATH_PROG(DOT, dot, , $PATH)
66        fi
67fi
68AM_CONDITIONAL(DOC, test x$enable_doc = xyes)
69
70if test x$DOT = x; then
71        if test "x$enable_dot" = xyes; then
72                AC_MSG_ERROR([could not find dot])
73        fi
74        enable_dot=no
75else
76        enable_dot=yes
77fi
78AM_CONDITIONAL(ENABLE_DOXYGEN, test x$enable_doc = xtrue)
79AC_SUBST(enable_dot)
80AC_SUBST(enable_html_docs)
81AC_SUBST(enable_latex_docs)
82])
83
84# check for doxygen
85# ----------------------------------------------------------------------------
86BB_ENABLE_DOXYGEN
87
88# check for pthread
89AC_CHECK_HEADER(pthread.h, , AC_MSG_ERROR(You need the pthread headers) )
90AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(You need the pthread library) )
91
92# libhttpd dependencies
93echo "Begining libhttpd dependencies check"
94AC_CHECK_HEADERS(string.h strings.h stdarg.h unistd.h)
95AC_HAVE_LIBRARY(socket)
96AC_HAVE_LIBRARY(nsl)
97echo "libhttpd dependencies check complete"
98
99AC_OUTPUT(              Makefile
100                        wifidog.spec
101                        src/Makefile
102                        libhttpd/Makefile
103                        doc/Makefile
104                        )
105
Note: See TracBrowser for help on using the browser.