summaryrefslogtreecommitdiffhomepage
path: root/auto/modules/conf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--auto/modules/conf37
1 files changed, 37 insertions, 0 deletions
diff --git a/auto/modules/conf b/auto/modules/conf
new file mode 100644
index 00000000..e7f21b9e
--- /dev/null
+++ b/auto/modules/conf
@@ -0,0 +1,37 @@
+
+# Copyright (C) Igor Sysoev
+# Copyright (C) NGINX, Inc.
+
+
+if [ ! -f $NXT_AUTOCONF_DATA ]; then
+ echo
+ echo Please run common $0 before configuring module \"$nxt_module\".
+ echo
+ exit 1
+fi
+
+. $NXT_AUTOCONF_DATA
+
+
+case "$nxt_module" in
+
+ python)
+ . auto/modules/python
+ ;;
+
+ php)
+ . auto/modules/php
+ ;;
+
+ go)
+ . auto/modules/go
+ ;;
+
+ *)
+ echo
+ echo $0: error: invalid module \"$nxt_module\".
+ echo
+ exit 1
+ ;;
+
+esac