Skip to content

Commit

Permalink
2007-04-03 Sebastien Pouliot <sebastien@ximian.com>
Browse files Browse the repository at this point in the history
	* configure.in: Add check for visibility ("hidden") attribute (based
	on mono's configure.in) to enable hiding libgdiplus internals.


svn path=/trunk/libgdiplus/; revision=75359
  • Loading branch information
Sebastien Pouliot committed Apr 3, 2007
1 parent 3598503 commit 64cc94c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2007-04-03 Sebastien Pouliot <sebastien@ximian.com>

* configure.in: Add check for visibility ("hidden") attribute (based
on mono's configure.in) to enable hiding libgdiplus internals.

2007-02-21 Sebastien Pouliot <sebastien@ximian.com>

* configure.in: Disable the "newer" PDF and SVG surface backends as
Expand Down
29 changes: 29 additions & 0 deletions configure.in
Expand Up @@ -162,6 +162,35 @@ if test "$gdip_ok" = "yes"; then
AC_DEFINE(HAVE_SIGSETJMP, 1, sigsetjmp is available)
fi


# when possible hide stuff we don't want to export
AC_MSG_CHECKING(for visibility __attribute__)
AC_TRY_COMPILE([], [
void __attribute__ ((visibility ("hidden"))) doit (void) {}
void main () { doit (); }
], [
have_visibility_hidden=yes
AC_MSG_RESULT(yes)
], [
have_visibility_hidden=no
AC_MSG_RESULT(no)
])

case "$host" in
i*86-*-*)
case $host_os in
solaris*)
# On solaris 10 x86, gcc prints a warning saying 'visibility attribute not supported on this configuration; ignored', but linking fails.
have_visibility_hidden=no
esac
;;
esac

if test "x$have_visibility_hidden" = "xyes"; then
AC_DEFINE(HAVE_VISIBILITY_HIDDEN, 1, [Support for the visibility ("hidden") attribute])
fi


AC_ARG_WITH(libjpeg,
[AC_HELP_STRING([--without-libjpeg], [disable JPEG file IO])])
AC_ARG_WITH(libtiff,
Expand Down

0 comments on commit 64cc94c

Please sign in to comment.