configure 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #!/bin/sh
  2. # Copyright (C) Igor Sysoev
  3. # Copyright (C) Nginx, Inc.
  4. . auto/options
  5. . auto/init
  6. . auto/sources
  7. test -d $NGX_OBJS || mkdir $NGX_OBJS
  8. echo > $NGX_AUTO_HEADERS_H
  9. echo > $NGX_AUTOCONF_ERR
  10. echo "#define NGX_CONFIGURE \"$NGX_CONFIGURE\"" > $NGX_AUTO_CONFIG_H
  11. if [ $NGX_DEBUG = YES ]; then
  12. have=NGX_DEBUG . auto/have
  13. fi
  14. if test -z "$NGX_PLATFORM"; then
  15. echo "checking for OS"
  16. NGX_SYSTEM=`uname -s 2>/dev/null`
  17. NGX_RELEASE=`uname -r 2>/dev/null`
  18. NGX_MACHINE=`uname -m 2>/dev/null`
  19. echo " + $NGX_SYSTEM $NGX_RELEASE $NGX_MACHINE"
  20. NGX_PLATFORM="$NGX_SYSTEM:$NGX_RELEASE:$NGX_MACHINE";
  21. case "$NGX_SYSTEM" in
  22. MINGW32_*)
  23. NGX_PLATFORM=win32
  24. ;;
  25. esac
  26. else
  27. echo "building for $NGX_PLATFORM"
  28. NGX_SYSTEM=$NGX_PLATFORM
  29. fi
  30. . auto/cc/conf
  31. if [ "$NGX_PLATFORM" != win32 ]; then
  32. . auto/headers
  33. fi
  34. . auto/os/conf
  35. if [ "$NGX_PLATFORM" != win32 ]; then
  36. . auto/unix
  37. fi
  38. . auto/modules
  39. . auto/lib/conf
  40. case ".$NGX_PREFIX" in
  41. .)
  42. NGX_PREFIX=${NGX_PREFIX:-/usr/local/nginx}
  43. have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
  44. ;;
  45. .!)
  46. NGX_PREFIX=
  47. ;;
  48. *)
  49. have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
  50. ;;
  51. esac
  52. if [ ".$NGX_CONF_PREFIX" != "." ]; then
  53. have=NGX_CONF_PREFIX value="\"$NGX_CONF_PREFIX/\"" . auto/define
  54. fi
  55. have=NGX_SBIN_PATH value="\"$NGX_SBIN_PATH\"" . auto/define
  56. have=NGX_CONF_PATH value="\"$NGX_CONF_PATH\"" . auto/define
  57. have=NGX_PID_PATH value="\"$NGX_PID_PATH\"" . auto/define
  58. have=NGX_LOCK_PATH value="\"$NGX_LOCK_PATH\"" . auto/define
  59. have=NGX_ERROR_LOG_PATH value="\"$NGX_ERROR_LOG_PATH\"" . auto/define
  60. have=NGX_HTTP_LOG_PATH value="\"$NGX_HTTP_LOG_PATH\"" . auto/define
  61. have=NGX_HTTP_CLIENT_TEMP_PATH value="\"$NGX_HTTP_CLIENT_TEMP_PATH\""
  62. . auto/define
  63. have=NGX_HTTP_PROXY_TEMP_PATH value="\"$NGX_HTTP_PROXY_TEMP_PATH\""
  64. . auto/define
  65. have=NGX_HTTP_FASTCGI_TEMP_PATH value="\"$NGX_HTTP_FASTCGI_TEMP_PATH\""
  66. . auto/define
  67. have=NGX_HTTP_UWSGI_TEMP_PATH value="\"$NGX_HTTP_UWSGI_TEMP_PATH\""
  68. . auto/define
  69. have=NGX_HTTP_SCGI_TEMP_PATH value="\"$NGX_HTTP_SCGI_TEMP_PATH\""
  70. . auto/define
  71. . auto/make
  72. . auto/lib/make
  73. . auto/install
  74. # STUB
  75. . auto/stubs
  76. have=NGX_USER value="\"$NGX_USER\"" . auto/define
  77. have=NGX_GROUP value="\"$NGX_GROUP\"" . auto/define
  78. . auto/summary