Changeset

7633:9ddc9401911f

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 24 Aug 2016 15:58:16 +0200
parents 7631:f50c039d6bb1 (current diff) 7632:2b14e2121700 (diff)
children 7636:7674cb520557
files
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Aug 24 00:34:46 2016 +0200
+++ b/configure	Wed Aug 24 15:58:16 2016 +0200
@@ -32,8 +32,8 @@
 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 @@
          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";