Back to home page

Nginx cross reference

 
 

    


0001 #!/bin/sh
0002 
0003 # Copyright (C) Igor Sysoev
0004 # Copyright (C) Nginx, Inc.
0005 
0006 
0007 LC_ALL=C
0008 export LC_ALL
0009 
0010 . auto/options
0011 . auto/init
0012 . auto/sources
0013 
0014 test -d $NGX_OBJS || mkdir $NGX_OBJS
0015 
0016 echo > $NGX_AUTO_HEADERS_H
0017 echo > $NGX_AUTOCONF_ERR
0018 
0019 echo "#define NGX_CONFIGURE \"$NGX_CONFIGURE\"" > $NGX_AUTO_CONFIG_H
0020 
0021 
0022 if [ $NGX_DEBUG = YES ]; then
0023     have=NGX_DEBUG . auto/have
0024 fi
0025 
0026 
0027 if test -z "$NGX_PLATFORM"; then
0028     echo "checking for OS"
0029 
0030     NGX_SYSTEM=`uname -s 2>/dev/null`
0031     NGX_RELEASE=`uname -r 2>/dev/null`
0032     NGX_MACHINE=`uname -m 2>/dev/null`
0033 
0034     echo " + $NGX_SYSTEM $NGX_RELEASE $NGX_MACHINE"
0035 
0036     NGX_PLATFORM="$NGX_SYSTEM:$NGX_RELEASE:$NGX_MACHINE";
0037 
0038     case "$NGX_SYSTEM" in
0039         MINGW32_*)
0040             NGX_PLATFORM=win32
0041         ;;
0042     esac
0043 
0044 else
0045     echo "building for $NGX_PLATFORM"
0046     NGX_SYSTEM=$NGX_PLATFORM
0047 fi
0048 
0049 . auto/cc/conf
0050 
0051 if [ "$NGX_PLATFORM" != win32 ]; then
0052     . auto/headers
0053 fi
0054 
0055 . auto/os/conf
0056 
0057 if [ "$NGX_PLATFORM" != win32 ]; then
0058     . auto/unix
0059 fi
0060 
0061 . auto/modules
0062 . auto/lib/conf
0063 
0064 case ".$NGX_PREFIX" in
0065     .)
0066         NGX_PREFIX=${NGX_PREFIX:-/usr/local/nginx}
0067         have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
0068     ;;
0069 
0070     .!)
0071         NGX_PREFIX=
0072     ;;
0073 
0074     *)
0075         have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
0076     ;;
0077 esac
0078 
0079 if [ ".$NGX_CONF_PREFIX" != "." ]; then
0080     have=NGX_CONF_PREFIX value="\"$NGX_CONF_PREFIX/\"" . auto/define
0081 fi
0082 
0083 have=NGX_SBIN_PATH value="\"$NGX_SBIN_PATH\"" . auto/define
0084 have=NGX_CONF_PATH value="\"$NGX_CONF_PATH\"" . auto/define
0085 have=NGX_PID_PATH value="\"$NGX_PID_PATH\"" . auto/define
0086 have=NGX_LOCK_PATH value="\"$NGX_LOCK_PATH\"" . auto/define
0087 have=NGX_ERROR_LOG_PATH value="\"$NGX_ERROR_LOG_PATH\"" . auto/define
0088 
0089 have=NGX_HTTP_LOG_PATH value="\"$NGX_HTTP_LOG_PATH\"" . auto/define
0090 have=NGX_HTTP_CLIENT_TEMP_PATH value="\"$NGX_HTTP_CLIENT_TEMP_PATH\""
0091 . auto/define
0092 have=NGX_HTTP_PROXY_TEMP_PATH value="\"$NGX_HTTP_PROXY_TEMP_PATH\""
0093 . auto/define
0094 have=NGX_HTTP_FASTCGI_TEMP_PATH value="\"$NGX_HTTP_FASTCGI_TEMP_PATH\""
0095 . auto/define
0096 have=NGX_HTTP_UWSGI_TEMP_PATH value="\"$NGX_HTTP_UWSGI_TEMP_PATH\""
0097 . auto/define
0098 have=NGX_HTTP_SCGI_TEMP_PATH value="\"$NGX_HTTP_SCGI_TEMP_PATH\""
0099 . auto/define
0100 
0101 . auto/make
0102 . auto/lib/make
0103 . auto/install
0104 
0105 # STUB
0106 . auto/stubs
0107 
0108 have=NGX_USER value="\"$NGX_USER\"" . auto/define
0109 have=NGX_GROUP value="\"$NGX_GROUP\"" . auto/define
0110 
0111 . auto/summary