aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2010-12-14 18:54:55 +0100
committerTobias Markmann <tm@ayena.de>2010-12-14 18:54:55 +0100
commit8f4671cca2312164afb0f7b123fbf21d881426fc (patch)
treea954c2c240053926ce989da0a109d2222f135738 /configure
parent52b97c49a81277aabf8e74c853fcb6da266e50fb (diff)
downloadprosody-8f4671cca2312164afb0f7b123fbf21d881426fc.tar.gz
prosody-8f4671cca2312164afb0f7b123fbf21d881426fc.zip
Make libidn default when not specifiying a IDN lib.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 6 insertions, 8 deletions
diff --git a/configure b/configure
index 6a1d656e..50591f29 100755
--- a/configure
+++ b/configure
@@ -20,6 +20,7 @@ LD=gcc
CFLAGS="-fPIC -Wall"
LDFLAGS="-shared"
+IDN_LIBRARY=idn
# Help
show_help() {
@@ -272,15 +273,12 @@ 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
+if [ "$IDN_LIBRARY" = "idn" ]
+then
+ IDNA_LIBS="-l$IDN_LIB"
+fi
+
LDFLAGS="$LDFLAGS -llua$LUA_SUFFIX"
echo -n "Checking Lua includes... "