diff --git a/config b/config index 8208d46..cc4f2a3 100644 --- a/config +++ b/config @@ -84,6 +84,16 @@ RTMP_HTTP_SRCS=" \ ngx_module_incs=$ngx_addon_dir ngx_module_deps=$RTMP_DEPS +if [ "$ngx_module_link" = "" ] ; then + # Old nginx version + ngx_module_link=NONE + + CORE_MODULES="$CORE_MODULES $RTMP_CORE_MODULES" + HTTP_MODULES="$HTTP_MODULES $RTMP_HTTP_MODULES" + NGX_ADDON_DEPS="$NGX_ADDON_DEPS $RTMP_DEPS" + NGX_ADDON_SRCS="$NGX_ADDON_SRCS $RTMP_CORE_SRCS $RTMP_HTTP_SRCS" +fi + if [ $ngx_module_link = DYNAMIC ] ; then ngx_module_name="$RTMP_CORE_MODULES $RTMP_HTTP_MODULES" ngx_module_srcs="$RTMP_CORE_SRCS $RTMP_HTTP_SRCS"