21 --help This help. |
22 --help This help. |
22 --prefix=DIR Prefix where Prosody should be installed. |
23 --prefix=DIR Prefix where Prosody should be installed. |
23 Default is $PREFIX |
24 Default is $PREFIX |
24 --sysconfdir=DIR Location where the config file should be installed. |
25 --sysconfdir=DIR Location where the config file should be installed. |
25 Default is \$PREFIX/etc/prosody |
26 Default is \$PREFIX/etc/prosody |
|
27 --datadir=DIR Location where the server data should be stored. |
|
28 Default is \$PREFIX/var/lib/prosody |
26 --lua-suffix=SUFFIX Versioning suffix to use in Lua filenames. |
29 --lua-suffix=SUFFIX Versioning suffix to use in Lua filenames. |
27 Default is "$LUA_SUFFIX" (lua$LUA_SUFFIX...) |
30 Default is "$LUA_SUFFIX" (lua$LUA_SUFFIX...) |
28 --with-lua=PREFIX Use Lua from given prefix. |
31 --with-lua=PREFIX Use Lua from given prefix. |
29 Default is $LUA_DIR |
32 Default is $LUA_DIR |
30 --with-lua-include=DIR You can also specify Lua's includes dir. |
33 --with-lua-include=DIR You can also specify Lua's includes dir. |
98 then SYSCONFDIR=/etc/prosody |
105 then SYSCONFDIR=/etc/prosody |
99 else SYSCONFDIR=$PREFIX/etc/prosody |
106 else SYSCONFDIR=$PREFIX/etc/prosody |
100 fi |
107 fi |
101 fi |
108 fi |
102 |
109 |
|
110 if [ "$PREFIX_SET" = "yes" -a ! "$DATADIR_SET" = "yes" ] |
|
111 then |
|
112 if [ "$PREFIX" = "/usr" ] |
|
113 then DATADIR=/var/lib/prosody |
|
114 else DATADIR=$PREFIX/var/lib/prosody |
|
115 fi |
|
116 fi |
|
117 |
103 find_program() { |
118 find_program() { |
104 path="$PATH" |
119 path="$PATH" |
105 item="`echo "$path" | sed 's/\([^:]*\):.*/\1/'`" |
120 item="`echo "$path" | sed 's/\([^:]*\):.*/\1/'`" |
106 path="`echo "$path" | sed -n 's/[^:]*::*\(.*\)/\1/p'`" |
121 path="`echo "$path" | sed -n 's/[^:]*::*\(.*\)/\1/p'`" |
107 found="no" |
122 found="no" |
219 # This file was automatically generated by the configure script. |
234 # This file was automatically generated by the configure script. |
220 # Run "./configure --help" for details. |
235 # Run "./configure --help" for details. |
221 |
236 |
222 PREFIX=$PREFIX |
237 PREFIX=$PREFIX |
223 SYSCONFDIR=$SYSCONFDIR |
238 SYSCONFDIR=$SYSCONFDIR |
|
239 DATADIR=$DATADIR |
224 LUA_SUFFIX=$LUA_SUFFIX |
240 LUA_SUFFIX=$LUA_SUFFIX |
225 LUA_DIR=$LUA_DIR |
241 LUA_DIR=$LUA_DIR |
226 LUA_INCDIR=$LUA_INCDIR |
242 LUA_INCDIR=$LUA_INCDIR |
227 LUA_LIBDIR=$LUA_LIBDIR |
243 LUA_LIBDIR=$LUA_LIBDIR |
228 LUA_BINDIR=$LUA_BINDIR |
244 LUA_BINDIR=$LUA_BINDIR |