Comparison

configure @ 7617:c6d18ee93e34

configure: Add initial attempt at pkg-config preset
author Kim Alvefur <zash@zash.se>
date Fri, 19 Aug 2016 16:06:07 +0200
parent 7616:a53ae6c998cf
child 7618:5a09c1166d89
comparison
equal deleted inserted replaced
7616:a53ae6c998cf 7617:c6d18ee93e34
144 fi 144 fi
145 if [ "$OSTYPE" = "openbsd" ]; then 145 if [ "$OSTYPE" = "openbsd" ]; then
146 LUA_INCDIR="/usr/local/include"; 146 LUA_INCDIR="/usr/local/include";
147 LUA_INCDIR_SET="yes" 147 LUA_INCDIR_SET="yes"
148 fi 148 fi
149 if [ "$OSTYPE" = "pkg-config" ]; then
150 if [ "$LUA_SUFFIX_SET" != "yes" ]; then
151 LUA_SUFFIX="5.1";
152 LUA_SUFFIX_SET=yes
153 fi
154 LUA_CF="$(pkg-config --cflags-only-I lua$LUA_SUFFIX)"
155 LUA_CF="${LUA_CF#*-I}"
156 LUA_CF="${LUA_CF%% *}"
157 if [ "$LUA_CF" != "" ]; then
158 LUA_INCDIR="$LUA_CF"
159 LUA_INCDIR_SET=yes
160 fi
161 CFLAGS="$CFLAGS -D_GNU_SOURCE"
162 fi
149 ;; 163 ;;
150 --libdir=*) 164 --libdir=*)
151 LIBDIR="$value" 165 LIBDIR="$value"
152 LIBDIR_SET=yes 166 LIBDIR_SET=yes
153 ;; 167 ;;