about summary refs log tree commit diff
path: root/libidn/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'libidn/configure.in')
-rw-r--r--libidn/configure.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/libidn/configure.in b/libidn/configure.in
index 38b9ad7fac..16740ffb92 100644
--- a/libidn/configure.in
+++ b/libidn/configure.in
@@ -2,7 +2,10 @@ dnl glibc configure fragment for libidn add-on
 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
 
 libc_add_on_canonical=
-libc_add_on_subdirs=.
 
-# Get this defined in config.h for main source code to test.
-AC_DEFINE([HAVE_LIBIDN])
+AS_IF([test "$shared" = yes], [
+  libc_add_on_subdirs=.
+
+  # Get this defined in config.h for main source code to test.
+  AC_DEFINE([HAVE_LIBIDN])
+], [AC_MSG_WARN([libidn add-on ignored with --disable-shared])])