Comparison

configure @ 3884:b623ff8b2202

Make libidn default when not specifiying a IDN lib.
author Tobias Markmann <tm@ayena.de>
date Tue, 14 Dec 2010 18:54:55 +0100
parent 3883:604dbcb2d46e
child 3962:c77eff3ac5e1
comparison
equal deleted inserted replaced
3883:604dbcb2d46e 3884:b623ff8b2202
18 LD=gcc 18 LD=gcc
19 19
20 CFLAGS="-fPIC -Wall" 20 CFLAGS="-fPIC -Wall"
21 LDFLAGS="-shared" 21 LDFLAGS="-shared"
22 22
23 IDN_LIBRARY=idn
23 # Help 24 # Help
24 25
25 show_help() { 26 show_help() {
26 cat <<EOF 27 cat <<EOF
27 Configure Prosody prior to building. 28 Configure Prosody prior to building.
270 271
271 if [ "$IDN_LIBRARY" = "icu" ] 272 if [ "$IDN_LIBRARY" = "icu" ]
272 then 273 then
273 IDNA_LIBS="$ICU_FLAGS" 274 IDNA_LIBS="$ICU_FLAGS"
274 CFLAGS="$CFLAGS -DUSE_STRINGPREP_ICU" 275 CFLAGS="$CFLAGS -DUSE_STRINGPREP_ICU"
275 else 276 fi
276 if [ "$IDN_LIBRARY" = "idn" ] 277 if [ "$IDN_LIBRARY" = "idn" ]
277 then 278 then
278 IDNA_LIBS="-l$IDN_LIB" 279 IDNA_LIBS="-l$IDN_LIB"
279 else 280 fi
280 echo "Must use idn or icu as argument for --idn-library!" 281
281 exit 1
282 fi
283 fi
284 LDFLAGS="$LDFLAGS -llua$LUA_SUFFIX" 282 LDFLAGS="$LDFLAGS -llua$LUA_SUFFIX"
285 283
286 echo -n "Checking Lua includes... " 284 echo -n "Checking Lua includes... "
287 lua_h="$LUA_INCDIR/lua.h" 285 lua_h="$LUA_INCDIR/lua.h"
288 if [ -e "$lua_h" ] 286 if [ -e "$lua_h" ]