Skip to content

Commit

Permalink
Automatically disable libidn add-on under --disable-shared.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland McGrath committed Oct 9, 2012
1 parent b8493de commit 7f82e4f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
6 changes: 6 additions & 0 deletions libidn/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2012-10-09 Roland McGrath <roland@hack.frob.com>

* configure.in: If $shared != yes, just disable the add-on entirely
and issue a warning.
* configure: Regenerated.

2012-03-07 Ulrich Drepper <drepper@gmail.com>

* Makefile (distribute): Remove variable.
Expand Down
14 changes: 11 additions & 3 deletions libidn/configure
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# This file is generated from configure.in by Autoconf. DO NOT EDIT!

libc_add_on_canonical=
libc_add_on_subdirs=.

# Get this defined in config.h for main source code to test.
$as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
if test "$shared" = yes; then :

libc_add_on_subdirs=.

# Get this defined in config.h for main source code to test.
$as_echo "#define HAVE_LIBIDN 1" >>confdefs.h


else
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libidn add-on ignored with --disable-shared" >&5
$as_echo "$as_me: WARNING: libidn add-on ignored with --disable-shared" >&2;}
fi
9 changes: 6 additions & 3 deletions libidn/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -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])])

0 comments on commit 7f82e4f

Please sign in to comment.