xref: /unit/auto/modules/conf (revision 216:07257705cd64)
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6if [ ! -f $NXT_AUTOCONF_DATA ]; then
7   echo
8   echo Please run common $0 before configuring module \"$nxt_module\".
9   echo
10   exit 1
11fi
12
13. $NXT_AUTOCONF_DATA
14
15
16case "$nxt_module" in
17
18   python)
19       . auto/modules/python
20   ;;
21
22   php)
23       . auto/modules/php
24   ;;
25
26   go)
27       . auto/modules/go
28   ;;
29
30   *)
31       echo
32       echo $0: error: invalid module \"$nxt_module\".
33       echo
34       exit 1
35   ;;
36
37esac
38