~ubuntu-branches/ubuntu/quantal/nginx/quantal-updates

« back to all changes in this revision

Viewing changes to debian/modules/nginx-lua/config

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2011-04-16 13:47:58 UTC
  • mfrom: (4.2.31 sid)
  • Revision ID: james.westby@ubuntu.com-20110416134758-yqca2qp5crh2hw2f
Tags: 1.0.0-2
* debian/rules:
  + Removed --with-file-aio support. Fixed FTBFS on kFreeBSD-* arch
    (Closes: #621882)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
ngx_feature_path=
7
7
ngx_feature_test="(void) luaL_newstate();"
8
8
 
9
 
if [ -n "$LUAJIT_INC" -o -n "$LIBJIT_LIB" ]; then
 
9
if [ -n "$LUAJIT_INC" -o -n "$LUAJIT_LIB" ]; then
10
10
    # explicit set lua lib path
11
 
    ngx_feature="lua library in $LUAJIT_LIB and $LUAJIT_INC (specified by the LUAJIT_LIB and LUAJIT_INC env)"
 
11
    ngx_feature="LuaJIT library in $LUAJIT_LIB and $LUAJIT_INC (specified by the LUAJIT_LIB and LUAJIT_INC env)"
12
12
    ngx_feature_path="$LUAJIT_INC"
13
13
    if [ $NGX_RPATH = YES ]; then
14
14
        ngx_feature_libs="-R$LUAJIT_LIB -L$LUAJIT_LIB -lluajit-5.1 -lm"
24
24
END
25
25
        exit 1
26
26
    fi
 
27
 
 
28
        case "$NGX_PLATFORM" in
 
29
                Darwin:*)
 
30
                        case "$NGX_MACHINE" in
 
31
                                amd64 | x86_64)
 
32
                                        echo "adding extra linking options needed by LuaJIT"
 
33
                                        ngx_feature_libs="$ngx_feature_libs -pagezero_size 10000 -image_base 100000000"
 
34
                                ;;
 
35
 
 
36
                                *)
 
37
                                ;;
 
38
                        esac
 
39
                ;;
 
40
 
 
41
                *)
 
42
                ;;
 
43
        esac
27
44
else
28
 
    if [ -n "$LUA_INC" -o -n "$LIB_LIB" ]; then
 
45
    if [ -n "$LUA_INC" -o -n "$LUA_LIB" ]; then
29
46
        # explicit set lua lib path
30
47
        ngx_feature="lua library in $LUA_LIB and $LUA_INC (specified by the LUA_LIB and LUA_INC env)"
31
48
        ngx_feature_path="$LUA_INC"
50
67
        . auto/feature
51
68
 
52
69
        if [ $ngx_found = no ]; then
53
 
            # FreeBSD, OpenBSD
 
70
            # OpenBSD
54
71
            ngx_feature="lua library in /usr/local/"
55
72
            ngx_feature_path="/usr/local/include"
56
73
            if [ $NGX_RPATH = YES ]; then
86
103
        fi
87
104
 
88
105
        if [ $ngx_found = no ]; then
 
106
            # FreeBSD
 
107
            ngx_feature="lua library in /usr/local/../lua51/"
 
108
            ngx_feature_path="/usr/local/include/lua51"
 
109
            if [ $NGX_RPATH = YES ]; then
 
110
                ngx_feature_libs="-R/usr/local/lib/lua51 -L/usr/local/lib/lua51 -llua -lm"
 
111
            else
 
112
                ngx_feature_libs="-L/usr/local/lib/lua51 -llua -lm"
 
113
            fi
 
114
            . auto/feature
 
115
        fi
 
116
 
 
117
        if [ $ngx_found = no ]; then
89
118
            # Debian
90
119
            ngx_feature="lua library in /usr/"
91
120
            ngx_feature_path="/usr/include/lua5.1"
111
140
 
112
141
ngx_addon_name=ngx_http_lua_module
113
142
HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_lua_module"
114
 
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/src/ngx_http_lua_module.c $ngx_addon_dir/src/ngx_http_lua_headers.c $ngx_addon_dir/src/ngx_http_lua_directive.c $ngx_addon_dir/src/ngx_http_lua_hook.c $ngx_addon_dir/src/ngx_http_lua_util.c $ngx_addon_dir/src/ngx_http_lua_cache.c $ngx_addon_dir/src/ngx_http_lua_conf.c $ngx_addon_dir/src/ngx_http_lua_contentby.c $ngx_addon_dir/src/ngx_http_lua_setby.c $ngx_addon_dir/src/ngx_http_lua_filter.c $ngx_addon_dir/src/ngx_http_lua_clfactory.c"
115
 
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $ngx_addon_dir/src/ddebug.h $ngx_addon_dir/src/ngx_http_lua_common.h $ngx_addon_dir/src/ngx_http_lua_directive.h $ngx_addon_dir/src/ngx_http_lua_headers.h $ngx_addon_dir/src/ngx_http_lua_hook.h $ngx_addon_dir/src/ngx_http_lua_util.h $ngx_addon_dir/src/ngx_http_lua_cache.h $ngx_addon_dir/src/ngx_http_lua_conf.h $ngx_addon_dir/src/ngx_http_lua_contentby.h $ngx_addon_dir/src/ngx_http_lua_setby.h $ngx_addon_dir/src/ngx_http_lua_filter.h $ngx_addon_dir/src/ngx_http_lua_clfactory.h"
116
 
CFLAGS="$CFLAGS -DNDK_SET_VAR -DNGX_OPENSSL_MD5 -DNGX_HAVE_OPENSSL_MD5_H -DNGX_HAVE_OPENSSL_SHA1_H -DNDK_SET_VAR -DNDK_HASH -DNDK_SHA1 -DNDK_MD5"
117
 
CORE_LIBS="-Wl,-E $CORE_LIBS"
 
143
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/src/ngx_http_lua_module.c $ngx_addon_dir/src/ngx_http_lua_headers.c $ngx_addon_dir/src/ngx_http_lua_directive.c $ngx_addon_dir/src/ngx_http_lua_hook.c $ngx_addon_dir/src/ngx_http_lua_util.c $ngx_addon_dir/src/ngx_http_lua_cache.c $ngx_addon_dir/src/ngx_http_lua_conf.c $ngx_addon_dir/src/ngx_http_lua_contentby.c $ngx_addon_dir/src/ngx_http_lua_rewriteby.c $ngx_addon_dir/src/ngx_http_lua_accessby.c $ngx_addon_dir/src/ngx_http_lua_setby.c $ngx_addon_dir/src/ngx_http_lua_filter.c $ngx_addon_dir/src/ngx_http_lua_clfactory.c"
 
144
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $ngx_addon_dir/src/ddebug.h $ngx_addon_dir/src/ngx_http_lua_common.h $ngx_addon_dir/src/ngx_http_lua_directive.h $ngx_addon_dir/src/ngx_http_lua_headers.h $ngx_addon_dir/src/ngx_http_lua_hook.h $ngx_addon_dir/src/ngx_http_lua_util.h $ngx_addon_dir/src/ngx_http_lua_cache.h $ngx_addon_dir/src/ngx_http_lua_conf.h $ngx_addon_dir/src/ngx_http_lua_contentby.h $ngx_addon_dir/src/ngx_http_lua_rewriteby.h $ngx_addon_dir/src/ngx_http_lua_accessby.h $ngx_addon_dir/src/ngx_http_lua_setby.h $ngx_addon_dir/src/ngx_http_lua_filter.h $ngx_addon_dir/src/ngx_http_lua_clfactory.h"
 
145
CFLAGS="$CFLAGS -DNDK_SET_VAR"
 
146
 
 
147
ngx_feature="export symbols by default"
 
148
ngx_feature_libs="-Wl,-E"
 
149
ngx_feature_name=
 
150
ngx_feature_run=no
 
151
ngx_feature_incs="#include <stdio.h>"
 
152
ngx_feature_path=
 
153
ngx_feature_test='printf("hello");'
 
154
 
 
155
. auto/feature
 
156
 
 
157
if [ $ngx_found = yes ]; then
 
158
    CORE_LIBS="-Wl,-E $CORE_LIBS"
 
159
fi
 
160
 
 
161
USE_MD5=YES
118
162