configure revision e18a033b
1#!/bin/sh
2
3# Copyright (C) Igor Sysoev
4# Copyright (C) Nginx, Inc.
5
6
7LC_ALL=C
8export LC_ALL
9
10. auto/options
11. auto/init
12. auto/sources
13
14test -d $NGX_OBJS || mkdir -p $NGX_OBJS
15
16echo > $NGX_AUTO_HEADERS_H
17echo > $NGX_AUTOCONF_ERR
18
19echo "#define NGX_CONFIGURE \"$NGX_CONFIGURE\"" > $NGX_AUTO_CONFIG_H
20
21
22if [ $NGX_DEBUG = YES ]; then
23    have=NGX_DEBUG . auto/have
24fi
25
26
27if test -z "$NGX_PLATFORM"; then
28    echo "checking for OS"
29
30    NGX_SYSTEM=`uname -s 2>/dev/null`
31    NGX_RELEASE=`uname -r 2>/dev/null`
32    NGX_MACHINE=`uname -m 2>/dev/null`
33
34    echo " + $NGX_SYSTEM $NGX_RELEASE $NGX_MACHINE"
35
36    NGX_PLATFORM="$NGX_SYSTEM:$NGX_RELEASE:$NGX_MACHINE";
37
38    case "$NGX_SYSTEM" in
39        MINGW32_*)
40            NGX_PLATFORM=win32
41        ;;
42    esac
43
44else
45    echo "building for $NGX_PLATFORM"
46    NGX_SYSTEM=$NGX_PLATFORM
47fi
48
49. auto/cc/conf
50
51if [ "$NGX_PLATFORM" != win32 ]; then
52    . auto/headers
53fi
54
55. auto/os/conf
56
57if [ "$NGX_PLATFORM" != win32 ]; then
58    . auto/unix
59fi
60
61. auto/threads
62. auto/modules
63. auto/lib/conf
64
65case ".$NGX_PREFIX" in
66    .)
67        NGX_PREFIX=${NGX_PREFIX:-/usr/local/nginx}
68        have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
69    ;;
70
71    .!)
72        NGX_PREFIX=
73    ;;
74
75    *)
76        have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
77    ;;
78esac
79
80if [ ".$NGX_CONF_PREFIX" != "." ]; then
81    have=NGX_CONF_PREFIX value="\"$NGX_CONF_PREFIX/\"" . auto/define
82fi
83
84have=NGX_SBIN_PATH value="\"$NGX_SBIN_PATH\"" . auto/define
85have=NGX_CONF_PATH value="\"$NGX_CONF_PATH\"" . auto/define
86have=NGX_PID_PATH value="\"$NGX_PID_PATH\"" . auto/define
87have=NGX_LOCK_PATH value="\"$NGX_LOCK_PATH\"" . auto/define
88have=NGX_ERROR_LOG_PATH value="\"$NGX_ERROR_LOG_PATH\"" . auto/define
89
90have=NGX_HTTP_LOG_PATH value="\"$NGX_HTTP_LOG_PATH\"" . auto/define
91have=NGX_HTTP_CLIENT_TEMP_PATH value="\"$NGX_HTTP_CLIENT_TEMP_PATH\""
92. auto/define
93have=NGX_HTTP_PROXY_TEMP_PATH value="\"$NGX_HTTP_PROXY_TEMP_PATH\""
94. auto/define
95have=NGX_HTTP_FASTCGI_TEMP_PATH value="\"$NGX_HTTP_FASTCGI_TEMP_PATH\""
96. auto/define
97have=NGX_HTTP_UWSGI_TEMP_PATH value="\"$NGX_HTTP_UWSGI_TEMP_PATH\""
98. auto/define
99have=NGX_HTTP_SCGI_TEMP_PATH value="\"$NGX_HTTP_SCGI_TEMP_PATH\""
100. auto/define
101
102. auto/make
103. auto/lib/make
104. auto/install
105
106# STUB
107. auto/stubs
108
109have=NGX_USER value="\"$NGX_USER\"" . auto/define
110have=NGX_GROUP value="\"$NGX_GROUP\"" . auto/define
111
112if [ ".$NGX_BUILD" != "." ]; then
113    have=NGX_BUILD value="\"$NGX_BUILD\"" . auto/define
114fi
115
116. auto/summary
117