Software /
code /
prosody
Comparison
configure @ 3882:4f88ea5f05ea
util.encodings: Support for ICU for IDNA operations.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Tue, 14 Dec 2010 15:03:37 +0100 |
parent | 3352:770e27bf11ea |
child | 3763:1ae89ac7bf62 |
comparison
equal
deleted
inserted
replaced
3881:5f3e9d7064a4 | 3882:4f88ea5f05ea |
---|---|
9 LUA_DIR="/usr" | 9 LUA_DIR="/usr" |
10 LUA_BINDIR="/usr/bin" | 10 LUA_BINDIR="/usr/bin" |
11 LUA_INCDIR="/usr/include" | 11 LUA_INCDIR="/usr/include" |
12 LUA_LIBDIR="/usr/lib" | 12 LUA_LIBDIR="/usr/lib" |
13 IDN_LIB=idn | 13 IDN_LIB=idn |
14 ICU_FLAGS="-licui18n -licudata -licuuc" | |
14 OPENSSL_LIB=crypto | 15 OPENSSL_LIB=crypto |
15 CC=gcc | 16 CC=gcc |
17 CXX=g++ | |
16 LD=gcc | 18 LD=gcc |
17 | 19 |
18 CFLAGS="-fPIC -Wall" | 20 CFLAGS="-fPIC -Wall" |
19 LDFLAGS="-shared" | 21 LDFLAGS="-shared" |
20 | 22 |
41 Default is \$LUA_DIR/include | 43 Default is \$LUA_DIR/include |
42 --with-lua-lib=DIR You can also specify Lua's libraries dir. | 44 --with-lua-lib=DIR You can also specify Lua's libraries dir. |
43 Default is \$LUA_DIR/lib | 45 Default is \$LUA_DIR/lib |
44 --with-idn=LIB The name of the IDN library to link with. | 46 --with-idn=LIB The name of the IDN library to link with. |
45 Default is $IDN_LIB | 47 Default is $IDN_LIB |
48 --idn-library=(idn|icu) Select library to use for IDNA functionality. | |
49 idn: use GNU libidn (default) | |
50 icu: use ICU from IBM | |
46 --with-ssl=LIB The name of the SSL to link with. | 51 --with-ssl=LIB The name of the SSL to link with. |
47 Default is $OPENSSL_LIB | 52 Default is $OPENSSL_LIB |
48 --cflags=FLAGS Flags to pass to the compiler | 53 --cflags=FLAGS Flags to pass to the compiler |
49 Default is $CFLAGS | 54 Default is $CFLAGS |
50 --ldflags=FLAGS Flags to pass to the linker | 55 --ldflags=FLAGS Flags to pass to the linker |
94 if [ "$OSTYPE" = "macosx" ] | 99 if [ "$OSTYPE" = "macosx" ] |
95 then LUA_INCDIR=/usr/local/include; | 100 then LUA_INCDIR=/usr/local/include; |
96 LUA_INCDIR_SET=yes | 101 LUA_INCDIR_SET=yes |
97 LUA_LIBDIR=/usr/local/lib | 102 LUA_LIBDIR=/usr/local/lib |
98 LUA_LIBDIR_SET=yes | 103 LUA_LIBDIR_SET=yes |
99 CFLAGS="-Wall" | |
100 LDFLAGS="-bundle -undefined dynamic_lookup" | 104 LDFLAGS="-bundle -undefined dynamic_lookup" |
101 fi | 105 fi |
102 if [ "$OSTYPE" = "linux" ] | 106 if [ "$OSTYPE" = "linux" ] |
103 then LUA_INCDIR=/usr/local/include; | 107 then LUA_INCDIR=/usr/local/include; |
104 LUA_INCDIR_SET=yes | 108 LUA_INCDIR_SET=yes |
141 LUA_LIBDIR="$value" LUA_LIBDIR_SET=yes | 145 LUA_LIBDIR="$value" LUA_LIBDIR_SET=yes |
142 ;; | 146 ;; |
143 --with-idn=*) | 147 --with-idn=*) |
144 IDN_LIB="$value" | 148 IDN_LIB="$value" |
145 ;; | 149 ;; |
150 --idn-library=*) | |
151 IDN_LIBRARY="$value" | |
152 ;; | |
146 --with-ssl=*) | 153 --with-ssl=*) |
147 OPENSSL_LIB="$value" | 154 OPENSSL_LIB="$value" |
148 ;; | 155 ;; |
149 --cflags=*) | 156 --cflags=*) |
150 CFLAGS="$value" | 157 CFLAGS="$value" |
259 if [ "$LUA_DIR_SET" = "yes" ] | 266 if [ "$LUA_DIR_SET" = "yes" ] |
260 then | 267 then |
261 LUA_BINDIR="$LUA_DIR/bin" | 268 LUA_BINDIR="$LUA_DIR/bin" |
262 fi | 269 fi |
263 | 270 |
271 if [ "$IDN_LIBRARY" = "icu" ] | |
272 then | |
273 IDNA_LIBS="$ICU_FLAGS" | |
274 CFLAGS="$CFLAGS -DUSE_STRINGPREP_ICU" | |
275 else | |
276 if [ "$IDN_LIBRARY" = "idn" ] | |
277 then | |
278 IDNA_LIBS="-l$IDN_LIB" | |
279 else | |
280 echo "Must use idn or icu as argument for --idn-library!" | |
281 exit 1 | |
282 fi | |
283 fi | |
284 LDFLAGS="$LDFLAGS -llua" | |
285 | |
264 echo -n "Checking Lua includes... " | 286 echo -n "Checking Lua includes... " |
265 lua_h="$LUA_INCDIR/lua.h" | 287 lua_h="$LUA_INCDIR/lua.h" |
266 if [ -e "$lua_h" ] | 288 if [ -e "$lua_h" ] |
267 then | 289 then |
268 echo "lua.h found in $lua_h" | 290 echo "lua.h found in $lua_h" |
309 LUA_INCDIR=$LUA_INCDIR | 331 LUA_INCDIR=$LUA_INCDIR |
310 LUA_LIBDIR=$LUA_LIBDIR | 332 LUA_LIBDIR=$LUA_LIBDIR |
311 LUA_BINDIR=$LUA_BINDIR | 333 LUA_BINDIR=$LUA_BINDIR |
312 REQUIRE_CONFIG=$REQUIRE_CONFIG | 334 REQUIRE_CONFIG=$REQUIRE_CONFIG |
313 IDN_LIB=$IDN_LIB | 335 IDN_LIB=$IDN_LIB |
336 IDNA_LIBS=$IDNA_LIBS | |
314 OPENSSL_LIB=$OPENSSL_LIB | 337 OPENSSL_LIB=$OPENSSL_LIB |
315 CFLAGS=$CFLAGS | 338 CFLAGS=$CFLAGS |
316 LDFLAGS=$LDFLAGS | 339 LDFLAGS=$LDFLAGS |
317 CC=$CC | 340 CC=$CC |
341 CXX=$CXX | |
318 LD=$LD | 342 LD=$LD |
319 | 343 |
320 EOF | 344 EOF |
321 | 345 |
322 echo "Installation prefix: $PREFIX" | 346 echo "Installation prefix: $PREFIX" |