mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 05:07:42 +03:00
configure: Add ostype preset for NetBSD
This commit is contained in:
parent
a73876f45b
commit
6468ca11f9
1 changed files with 11 additions and 2 deletions
13
configure
vendored
13
configure
vendored
|
@ -32,8 +32,8 @@ cat <<EOF
|
|||
Configure Prosody prior to building.
|
||||
|
||||
--help This help.
|
||||
--ostype=OS Use one of the OS presets.
|
||||
May be one of: debian, macosx, linux, freebsd, openbsd
|
||||
--ostype=OS Use one of the OS presets. May be one of:
|
||||
debian, macosx, linux, freebsd, openbsd, netbsd
|
||||
--prefix=DIR Prefix where Prosody should be installed.
|
||||
Default is $PREFIX
|
||||
--sysconfdir=DIR Location where the config file should be installed.
|
||||
|
@ -146,6 +146,15 @@ do
|
|||
LUA_INCDIR="/usr/local/include";
|
||||
LUA_INCDIR_SET="yes"
|
||||
fi
|
||||
if [ "$OSTYPE" = "netbsd" ]; then
|
||||
RUNWITH="lua5.1"
|
||||
LUA_INCDIR="/usr/pkg/include/lua-5.1"
|
||||
LUA_INCDIR_SET=yes
|
||||
LUA_LIBDIR="/usr/pkg/lib/lua/5.1"
|
||||
LUA_LIBDIR_SET=yes
|
||||
CFLAGS="-Wall -fPIC -I/usr/pkg/include"
|
||||
LDFLAGS="-L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -shared"
|
||||
fi
|
||||
if [ "$OSTYPE" = "pkg-config" ]; then
|
||||
if [ "$LUA_SUFFIX_SET" != "yes" ]; then
|
||||
LUA_SUFFIX="5.1";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue