|
|
@@ -5,7 +5,7 @@
|
|
|
CheckFunctionExists
|
|
|
-------------------
|
|
|
|
|
|
-Check if a C function can be linked
|
|
|
+Check once if a C function can be linked from system libraries.
|
|
|
|
|
|
.. command:: check_function_exists
|
|
|
|
|
|
@@ -14,8 +14,7 @@ Check if a C function can be linked
|
|
|
check_function_exists(<function> <variable>)
|
|
|
|
|
|
Checks that the ``<function>`` is provided by libraries on the system and store
|
|
|
- the result in a ``<variable>``, which will be created as an internal
|
|
|
- cache variable.
|
|
|
+ the result in internal cache variable ``<variable>``.
|
|
|
|
|
|
The following variables may be set before calling this macro to modify the
|
|
|
way the check is run:
|
|
|
@@ -34,8 +33,8 @@ way the check is run:
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
- Prefer using :Module:`CheckSymbolExists` instead of this module,
|
|
|
- for the following reasons:
|
|
|
+ Prefer using :module:`CheckSymbolExists` or :module:`CheckSourceCompiles`
|
|
|
+ instead of this module, for the following reasons:
|
|
|
|
|
|
* ``check_function_exists()`` can't detect functions that are inlined
|
|
|
in headers or specified as a macro.
|