diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-10-03 11:09:32 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-10-03 11:09:32 -0500 |
commit | cb7b57e174d7a559af3ec910a99e0538cc9f99b7 (patch) | |
tree | c9e52f936e1b9560fbd104c6f75743ead4e1a4d6 /cpukit/mghttpd | |
parent | threaddispatch.c: Fix typo (diff) | |
download | rtems-cb7b57e174d7a559af3ec910a99e0538cc9f99b7.tar.bz2 |
mghttpd: Requires POSIX to build server and tests
Formerly, mghttpd was conditional only on networking being
enabled. It uses on pthread and must also be conditional
on POSIX threads support being enabled.
Diffstat (limited to 'cpukit/mghttpd')
-rw-r--r-- | cpukit/mghttpd/Makefile.am | 2 | ||||
-rw-r--r-- | cpukit/mghttpd/preinstall.am | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/mghttpd/Makefile.am b/cpukit/mghttpd/Makefile.am index e4ed9fdee1..78af78d185 100644 --- a/cpukit/mghttpd/Makefile.am +++ b/cpukit/mghttpd/Makefile.am @@ -1,6 +1,7 @@ include $(top_srcdir)/automake/compile.am if LIBNETWORKING +if HAS_PTHREADS include_mghttpddir = $(includedir)/mghttpd project_lib_LIBRARIES = libmghttpd.a @@ -11,6 +12,7 @@ libmghttpd_a_CPPFLAGS += -DNO_SSL -DNO_POPEN -DNO_CGI libmghttpd_a_SOURCES = mongoose.c mongoose.h include_mghttpd_HEADERS = mongoose.h endif +endif include $(srcdir)/preinstall.am include $(top_srcdir)/automake/local.am diff --git a/cpukit/mghttpd/preinstall.am b/cpukit/mghttpd/preinstall.am index aa246f014e..305a91449f 100644 --- a/cpukit/mghttpd/preinstall.am +++ b/cpukit/mghttpd/preinstall.am @@ -24,6 +24,7 @@ $(PROJECT_LIB)/$(dirstamp): PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp) if LIBNETWORKING +if HAS_PTHREADS $(PROJECT_INCLUDE)/mghttpd/$(dirstamp): @$(MKDIR_P) $(PROJECT_INCLUDE)/mghttpd @: > $(PROJECT_INCLUDE)/mghttpd/$(dirstamp) @@ -37,3 +38,4 @@ $(PROJECT_INCLUDE)/mghttpd/mongoose.h: mongoose.h $(PROJECT_INCLUDE)/mghttpd/$(d $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mghttpd/mongoose.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/mghttpd/mongoose.h endif +endif |