1 dnl Detection and configuration of the visibility feature of gcc
2 dnl Vincent Torri 2006-02-11
4 dnl GCC_CHECK_VISIBILITY([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
5 dnl Check the visibility feature of gcc
7 AC_DEFUN([GCC_CHECK_VISIBILITY],
8 [AC_MSG_CHECKING([whether ${CC} supports symbol visibility])
10 CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
14 #pragma GCC visibility push(hidden)
16 #pragma GCC visibility pop
23 [Defined if GCC supports the visibility feature])
24 m4_if([$1], [], [:], [$1])
26 [m4_if([$2], [], [:], [$2])
30 dnl Configure script for doxygen
31 dnl Vincent Torri 2006-05-11
33 dnl AM_CHECK_DOXYGEN([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
34 dnl Test for the doxygen program, and define BUILD_DOCS and DOXYGEN.
36 AC_DEFUN([AM_CHECK_DOXYGEN],
40 dnl Disable the build of the documentation
45 [--disable-build-docs],
46 [Disable the build of the documentation]),
47 [if test x"$enableval" != x"yes" ; then
48 enable_build_docs="no"
50 enable_build_docs="yes"
52 [enable_build_docs="yes"])
54 if test "$enable_build_docs" = "no" ; then
58 dnl Get the prefix where doxygen is installed.
63 [--with-doxygen=FILE],
64 [doxygen program to use (eg /usr/bin/doxygen)]),
66 dnl Check the given doxygen program.
74 if test $BUILD_DOCS = no; then
76 echo "The doxygen program you specified:"
78 echo "was not found. Please check the path and make sure "
79 echo "the program exists and is executable."
81 [Warning: no doxygen detected. Documentation will not be built])
88 if test ${BUILD_DOCS} = no; then
90 echo "The doxygen program was not found in your execute"
91 echo "You may have doxygen installed somewhere not covered by your path."
93 echo "If this is the case make sure you have the packages installed, AND"
94 echo "that the doxygen program is in your execute path (see your"
95 echo "shell's manual page on setting the \$PATH environment variable), OR"
96 echo "alternatively, specify the program to use with --with-doxygen."
98 [Warning: no doxygen detected. Documentation will not be built])
101 AC_MSG_CHECKING([whether documentation is built])
102 AC_MSG_RESULT([${BUILD_DOCS}])
107 AM_CONDITIONAL(BUILD_DOCS, test "x$BUILD_DOCS" = "xyes")
109 dnl End of acinclude.m4