about summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-03-08 04:10:31 +0000
committerUlrich Drepper <drepper@redhat.com>2004-03-08 04:10:31 +0000
commite2fd3cbe085d9867710ee7b3d487c16c150fa204 (patch)
tree6c145b6019df3a7c10b005c6a10ace5864047331 /configure
parent01859b1c24e97f30325a3ce189739e66811c40a4 (diff)
downloadglibc-e2fd3cbe085d9867710ee7b3d487c16c150fa204.tar.gz
glibc-e2fd3cbe085d9867710ee7b3d487c16c150fa204.tar.xz
glibc-e2fd3cbe085d9867710ee7b3d487c16c150fa204.zip
Update.
	* config.h.in: Add entry for HAVE_LIBIDN.
	* configure.in: If libidn add-on present define HAVE_LIBIDN.
	* Versions.def: Add entry for libcidn.

2004-03-07  Simon Josefsson  <jas@extundo.com>

	* resolv/netdb.h [__USE_GNU]: Add new AI_IDN ai_flags for addrinfo.
	[__USE_GNU]: Add new error code EAI_IDN_ENCODE for getaddrinfo.
	* sysdeps/posix/getaddrinfo.c: Add prototype for __idna_to_ascii_lz
	and define IDNA_SUCCESS.
	(gaih_inet): If ai_flags have AI_IDN, invoke __idna_to_ascii_lz.
	(getaddrinfo): Fix EAI_BADFLAGS test to include AI_IDN.
	All changes only applicable when glibc is compiled with the libidn
	add-on.

2004-03-07  Ulrich Drepper  <drepper@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 24d5ee3375..4fdb46511d 100755
--- a/configure
+++ b/configure
@@ -7293,6 +7293,7 @@ use_ldconfig=no
 ldd_rewrite_script=no
 libc_cv_sysconfdir=$sysconfdir
 libc_cv_gcc_unwind_find_fde=no
+libc_cv_idn=no
 
 # Iterate over all the sysdep directories we will use, running their
 # configure fragments, and looking for a uname implementation.
@@ -7467,6 +7468,13 @@ if test $shared = default; then
   fi
 fi
 
+if test x"$libc_cv_idn" = xyes; then
+  cat >>confdefs.h <<\_ACEOF
+#define HAVE_LIBIDN 1
+_ACEOF
+
+fi
+
 echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6
 if test "${pic_default+set}" = set; then