Browse Source

- properly find fastcgi.h in /usr/include/fastcgi

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1364 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.13
Marcus Rückert 15 years ago
parent
commit
56de5af1cd
  1. 2
      configure.in
  2. 8
      src/mod_fastcgi.c
  3. 5
      tests/fcgi-auth.c
  4. 5
      tests/fcgi-responder.c

2
configure.in

@ -510,7 +510,7 @@ AM_CONDITIONAL(CROSS_COMPILING, test "x$cross_compiling" = xyes)
dnl check for fastcgi lib, for the tests only
fastcgi_found=no
AC_CHECK_LIB(fcgi, FCGI_Accept, [
AC_CHECK_HEADERS([fastcgi.h],[
AC_CHECK_HEADERS([fastcgi.h fastcgi/fastcgi.h],[
fastcgi_found=yes
])
])

8
src/mod_fastcgi.c

@ -25,7 +25,15 @@
#include "stat_cache.h"
#include "status_counter.h"
#ifdef HAVE_FASTCGI_FASTCGI_H
#include <fastcgi/fastcgi.h>
#else
#ifdef HAVE_FASTCGI_H
#include <fastcgi.h>
#else
#include "fastcgi.h"
#endif
#endif /* HAVE_FASTCGI_FASTCGI_H */
#include <stdio.h>
#ifdef HAVE_SYS_FILIO_H

5
tests/fcgi-auth.c

@ -1,4 +1,9 @@
#include "config.h"
#ifdef HAVE_FASTCGI_FASTCGI_H
#include <fastcgi/fcgi_stdio.h>
#else
#include <fcgi_stdio.h>
#endif
#include <stdlib.h>
#include <unistd.h>
#include <string.h>

5
tests/fcgi-responder.c

@ -1,4 +1,9 @@
#include "config.h"
#ifdef HAVE_FASTCGI_FASTCGI_H
#include <fastcgi/fcgi_stdio.h>
#else
#include <fcgi_stdio.h>
#endif
#include <stdlib.h>
#include <unistd.h>
#include <string.h>

Loading…
Cancel
Save