mod_storage_sql: Fix commit c806a599224a for compatibility with non-MySQL databases...
[prosody.git] / configure
index 6a1d656eccd8ab6823054c0ee606c151dbd67294..af046223933d8f18b477bc9b5b5d3b8b8befedc2 100755 (executable)
--- a/configure
+++ b/configure
@@ -20,6 +20,7 @@ LD=gcc
 CFLAGS="-fPIC -Wall"
 LDFLAGS="-shared"
 
+IDN_LIBRARY=idn
 # Help
 
 show_help() {
@@ -272,16 +273,11 @@ if [ "$IDN_LIBRARY" = "icu" ]
 then
        IDNA_LIBS="$ICU_FLAGS"
        CFLAGS="$CFLAGS -DUSE_STRINGPREP_ICU"
-else
-       if [ "$IDN_LIBRARY" = "idn" ] 
-       then
-               IDNA_LIBS="-l$IDN_LIB"
-       else
-               echo "Must use idn or icu as argument for --idn-library!"
-               exit 1
-       fi
 fi
-LDFLAGS="$LDFLAGS -llua$LUA_SUFFIX"
+if [ "$IDN_LIBRARY" = "idn" ] 
+then
+       IDNA_LIBS="-l$IDN_LIB"
+fi
 
 echo -n "Checking Lua includes... "
 lua_h="$LUA_INCDIR/lua.h"