PageRenderTime 35ms CodeModel.GetById 32ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/aclocal/check-goahead.m4

http://rtems-atapi.googlecode.com/
m4 | 32 lines | 25 code | 7 blank | 0 comment | 0 complexity | 557ae4801fdd03afd2e363dcd5555895 MD5 | raw file
 1dnl $Id: check-bsps.m4,v 1.33 2007/08/10 08:14:46 thomas Exp $
 2
 3dnl See what HTTPD is supported.
 4dnl
 5dnl RTEMS_CHECK_HTTPD()
 6AC_DEFUN([RTEMS_CHECK_HTTPD],
 7[
 8  AC_REQUIRE([RTEMS_ENABLE_RTEMSBSP])dnl sets RTEMS_BSP_INC
 9
10  AC_MSG_CHECKING([for HTTPD])
11
12  RTEMS_HAS_HTTPD=no
13  RTEMS_HTTPD=
14
15  AS_IF([test -f ${RTEMS_BSP_INC}/goahead/webs.h],
16        [RTEMS_HAS_HTTPD=yes
17         RTEMS_HAS_HTTPD_GOAHEAD=yes
18         RTEMS_HTTPD="GoAhead ${RTEMS_HTTPD}"],
19        [RTEMS_HAS_HTTPD_GOAHEAD=no])
20
21  AS_IF([test -f ${RTEMS_BSP_INC}/shttpd/shttpd.h],
22        [RTEMS_HAS_HTTPD=yes
23         RTEMS_HAS_HTTPD_SHTTPD=yes
24         RTEMS_HTTPD="SimpleHTTPD ${RTEMS_HTTPD}"],
25        [RTEMS_HAS_HTTPD_SHTTPD=no])
26
27  AM_CONDITIONAL(RTEMS_HAS_HTTPD, test x"${RTEMS_HAS_HTTPD}" = x"yes")
28  AM_CONDITIONAL(RTEMS_HAS_HTTPD_GOAHEAD, test x"${RTEMS_HAS_HTTPD_GOAHEAD}" = x"yes")
29  AM_CONDITIONAL(RTEMS_HAS_HTTPD_SHTTPD, test x"${RTEMS_HAS_HTTPD_SHTTPD}" = x"yes")
30
31  AC_MSG_RESULT(${RTEMS_HTTPD})
32])dnl