aboutsummaryrefslogtreecommitdiff
path: root/auto/configure
diff options
context:
space:
mode:
Diffstat (limited to 'auto/configure')
-rwxr-xr-xauto/configure18
1 files changed, 17 insertions, 1 deletions
diff --git a/auto/configure b/auto/configure
index daff4bd86..89390ea69 100755
--- a/auto/configure
+++ b/auto/configure
@@ -19,12 +19,28 @@ if [ $NGX_DEBUG = YES ]; then
fi
+if test -z "$NGX_PLATFORM"; then
+ echo "checking for OS"
+
+ NGX_SYSTEM=`uname -s 2>/dev/null`
+ NGX_RELEASE=`uname -r 2>/dev/null`
+ NGX_MACHINE=`uname -m 2>/dev/null`
+
+ echo " + $NGX_SYSTEM $NGX_RELEASE $NGX_MACHINE"
+
+ NGX_PLATFORM="$NGX_SYSTEM:$NGX_RELEASE:$NGX_MACHINE";
+
+else
+ echo "building for $NGX_PLATFORM"
+fi
+
+
if [ "$NGX_PLATFORM" != win32 ]; then
. auto/headers
fi
-. auto/os/conf
. auto/cc/conf
+. auto/os/conf
if [ "$NGX_PLATFORM" != win32 ]; then
. auto/os/features