diff options
author | Kim Alvefur <zash@zash.se> | 2019-05-13 12:00:28 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-05-13 12:00:28 +0200 |
commit | 61d02f359982574f857674bc314ac121f2735189 (patch) | |
tree | 3e7d16ca976c24d5ec646752d34b08344e0f63be /configure | |
parent | 371260638d19941a80979052d0fac875927659e0 (diff) | |
download | prosody-61d02f359982574f857674bc314ac121f2735189.tar.gz prosody-61d02f359982574f857674bc314ac121f2735189.zip |
configure: Respect previously set paths in macosx preset
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -259,10 +259,14 @@ if [ "$OSPRESET_SET" = "yes" ]; then CFLAGS="$CFLAGS -ggdb" fi if [ "$OSPRESET" = "macosx" ]; then - LUA_INCDIR=/usr/local/include; - LUA_INCDIR_SET=yes - LUA_LIBDIR=/usr/local/lib - LUA_LIBDIR_SET=yes + if [ "$LUA_INCDIR_SET" != "yes" ]; then + LUA_INCDIR=/usr/local/include; + LUA_INCDIR_SET=yes + fi + if [ "$LUA_LIBDIR_SET" != "yes" ]; then + LUA_LIBDIR=/usr/local/lib + LUA_LIBDIR_SET=yes + fi CFLAGS="$CFLAGS -mmacosx-version-min=10.3" LDFLAGS="-bundle -undefined dynamic_lookup" fi |