diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-12-11 17:08:34 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-12-11 17:08:34 +0000 |
commit | 960450680b4811aedefe53827d68fa936379375d (patch) | |
tree | de78779b6bc5811f8b08608fcf2da5f2a4b3927d /configure | |
parent | 77135ff9c038d029b2ebe9f274ce8cb14b8b5d3d (diff) | |
download | prosody-960450680b4811aedefe53827d68fa936379375d.tar.gz prosody-960450680b4811aedefe53827d68fa936379375d.zip |
configure: Add 'openbsd' preset (thanks xavier)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -59,6 +59,8 @@ Configure Prosody prior to building. Default is $CC --linker=CC The linker to use when building modules. Default is $LD +--require-config Will cause Prosody to refuse to run when + it fails to find a configuration file EOF } @@ -110,7 +112,7 @@ do CFLAGS="-Wall -fPIC" LDFLAGS="-shared" fi - if [ "$OSTYPE" = "freebsd" ] + if [ "$OSTYPE" = "freebsd" -o "$OSTYPE" = "openbsd" ] then LUA_INCDIR="/usr/local/include/lua51" LUA_INCDIR_SET=yes CFLAGS="-Wall -fPIC -I/usr/local/include" @@ -120,11 +122,17 @@ do LUA_DIR=/usr/local LUA_DIR_SET=yes fi + if [ "$OSTYPE" = "openbsd" ] + then LUA_INCDIR="/usr/local/include"; + fi ;; --datadir=*) DATADIR="$value" DATADIR_SET=yes ;; + --require-config) + REQUIRE_CONFIG=yes + ;; --lua-suffix=*) LUA_SUFFIX="$value" LUA_SUFFIX_SET=yes @@ -322,6 +330,7 @@ LUA_DIR=$LUA_DIR LUA_INCDIR=$LUA_INCDIR LUA_LIBDIR=$LUA_LIBDIR LUA_BINDIR=$LUA_BINDIR +REQUIRE_CONFIG=$REQUIRE_CONFIG IDN_LIB=$IDN_LIB IDNA_LIBS=$IDNA_LIBS OPENSSL_LIB=$OPENSSL_LIB |