Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/m4/ax_check_header_lib.m4 @ 6272

Last change on this file since 6272 was 6271, checked in by bensch, 19 years ago

orxonox/trunk: MUCH better configure-checks

File size: 517 bytes
Line 
1
2dnl AX_CHECK_HEADER_LIB([HEADER-NAME], [LIBRARY-NAME], [FUNCTION-IN-LIB], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], [LIB-WEB-PAGE])
3AC_DEFUN([AX_CHECK_HEADER_LIB], [
4    _header_check=""
5    _lib_check=""
6
7    AC_CHECK_HEADER([$1], [_header_check="yes"], [_header_check="no"])
8    AC_CHECK_LIB([$2], [$3], [_lib_check="yes"], [_lib_check="no"])
9    if [test "x$_header_check" = "xyes" && test "x$_lib_check" = "xyes"] ; then
10         LIBS="$LIBS -l$2"
11         $4
12    else
13         echo "no Support for $2"
14         $5
15    fi
16])
17
Note: See TracBrowser for help on using the repository browser.