@@ -63,10 +63,15 @@ AC_CHECK_HEADER([signal.h],[],[AC_MSG_ERROR("signal.h not found")])
6363AC_CHECK_HEADER ( [ gnutls/gnutls.h] ,[ have_gnutls="yes"] ,[ AC_MSG_WARN ( "gnutls/gnutls.h not found. TLS will be disabled" ) ; have_gnutls="no"] )
6464
6565# Checks for libmicrohttpd
66- PKG_CHECK_MODULES([ LIBMICROHTTPD] ,[ libmicrohttpd >= 0.9.9 ] ,[ ] ,[ AC_MSG_ERROR ( "libmicrohttpd not present or too old - install libmicrohttpd >= 0.9.9 " ) ] )
66+ PKG_CHECK_MODULES([ LIBMICROHTTPD] ,[ libmicrohttpd >= 0.9.7 ] ,[ ] ,[ AC_MSG_ERROR ( "libmicrohttpd not present or too old - install libmicrohttpd >= 0.9.7 " ) ] )
6767# AC_CHECK_HEADER([microhttpd.h],[],[AC_MSG_ERROR("Microhttpd header files not found. Please use a version >= 0.9.9.")])
6868# AC_CHECK_LIB([microhttpd],[MHD_start_daemon],[],[AC_MSG_ERROR("Microhttpd header files not found. Please use a version >= 0.9.9.")])
6969
70+ m4_pattern_allow ( [ AC_TYPE_SIZE_T ] )
71+ m4_pattern_allow ( [ AC_TYPE_UINT16_T ] )
72+ m4_pattern_allow ( [ AC_TYPE_UINT32_T ] )
73+ m4_pattern_allow ( [ AC_TYPE_UINT64_T ] )
74+
7075# Checks for typedefs, structures, and compiler characteristics.
7176AC_TYPE_SIZE_T
7277AC_TYPE_UINT16_T
@@ -168,6 +173,7 @@ AM_CONDITIONAL([GUILE], [test x$guile = xtrue])
168173AM_CONDITIONAL([ DOC] , [ test x$doc = xtrue] )
169174
170175LANGUAGES="C++"
176+ OUTPUT_LANG=""
171177
172178DX_HTML_FEATURE(ON)
173179DX_CHM_FEATURE(OFF)
@@ -236,6 +242,7 @@ if test x$python = xtrue; then
236242 AC_SUBST_FILE ( [ PYTHON_AUTOGENERATION] )
237243 PYTHON_AUTOGENERATION=$srcdir/src/autogen_helpers/support_command
238244 LANGUAGES="$LANGUAGES Python"
245+ OUTPUT_LANG="$OUTPUT_LANG src/python/Makefile"
239246fi
240247
241248if test x$java = xtrue; then
@@ -266,6 +273,7 @@ if test x$java = xtrue; then
266273 AC_SUBST_FILE ( [ JAVA_AUTOGENERATION] )
267274 JAVA_AUTOGENERATION=$srcdir/src/autogen_helpers/support_command
268275 LANGUAGES="$LANGUAGES Java"
276+ OUTPUT_LANG="$OUTPUT_LANG src/java/Makefile"
269277fi
270278
271279if test x$php = xtrue; then
@@ -281,6 +289,7 @@ if test x$php = xtrue; then
281289 AC_SUBST_FILE ( [ PHP_AUTOGENERATION] )
282290 PHP_AUTOGENERATION=$srcdir/src/autogen_helpers/support_command
283291 LANGUAGES="$LANGUAGES PHP"
292+ OUTPUT_LANG="$OUTPUT_LANG src/php/Makefile"
284293fi
285294
286295if test x$lua = xtrue; then
@@ -307,6 +316,7 @@ if test x$lua = xtrue; then
307316 AC_SUBST_FILE ( [ LUA_AUTOGENERATION] )
308317 LUA_AUTOGENERATION=$srcdir/src/autogen_helpers/support_command
309318 LANGUAGES="$LANGUAGES LUA"
319+ OUTPUT_LANG="$OUTPUT_LANG src/lua/Makefile"
310320fi
311321
312322if test x$perl = xtrue; then
@@ -322,6 +332,7 @@ if test x$perl = xtrue; then
322332 AC_SUBST_FILE ( [ PERL_AUTOGENERATION] )
323333 PERL_AUTOGENERATION=$srcdir/src/autogen_helpers/support_command
324334 LANGUAGES="$LANGUAGES Perl"
335+ OUTPUT_LANG="$OUTPUT_LANG src/perl/Makefile"
325336fi
326337
327338if test x$ruby = xtrue; then
@@ -352,6 +363,7 @@ if test x$ruby = xtrue; then
352363 AC_SUBST_FILE ( [ RUBY_AUTOGENERATION] )
353364 RUBY_AUTOGENERATION=$srcdir/src/autogen_helpers/support_command
354365 LANGUAGES="$LANGUAGES Ruby"
366+ OUTPUT_LANG="$OUTPUT_LANG src/ruby/Makefile"
355367fi
356368
357369if test x$guile = xtrue; then
@@ -363,6 +375,7 @@ if test x$guile = xtrue; then
363375 AC_SUBST_FILE ( [ GUILE_AUTOGENERATION] )
364376 GUILE_AUTOGENERATION=$srcdir/src/autogen_helpers/support_command
365377 LANGUAGES="$LANGUAGES Guile"
378+ OUTPUT_LANG="$OUTPUT_LANG src/guile/Makefile"
366379fi
367380
368381AC_SUBST ( LHT_LIBDEPS )
@@ -377,13 +390,7 @@ AC_OUTPUT(
377390 libhttpserver.pc
378391 Makefile
379392 src/Makefile
380- src/python/Makefile
381- src/java/Makefile
382- src/php/Makefile
383- src/lua/Makefile
384- src/perl/Makefile
385- src/ruby/Makefile
386- src/guile/Makefile
393+ $OUTPUT_LANG
387394 debian/changelog
388395 debian/control
389396 debian/libhttpserver-dev.install
0 commit comments