Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6271 in orxonox.OLD for trunk/m4


Ignore:
Timestamp:
Dec 23, 2005, 1:54:58 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: MUCH better configure-checks

Location:
trunk/m4
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/m4/ax_check_header_lib.m4

    r6270 r6271  
    1 dnl AX_CHECK_REQUIRED_HEADER_LIB([HEADER-NAME], [LIBRARY-NAME], [FUNCTION-IN-LIB], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], [LIB-WEB-PAGE])
    2 AC_DEFUN([AX_CHECK_REQUIRED_HEADER_LIB], [
    3     _header_check=""
    4     _lib_check=""
    5 
    6     AC_CHECK_HEADER([$1], [_header_check="yes"], [_header_check="no"])
    7     AC_CHECK_LIB([$2], [$3], [_lib_check="yes"], [_lib_check="no"])
    8     if [test x$_header_check = "xyes" && test "x$_lib_check" = "xyes"] ; then
    9          LIBS="$LIBS -l$2"
    10          $4
    11     else
    12          echo "------------------"
    13          echo "LIBRARY $2 not found."
    14          echo "please install the $2-LIBRARY-package which can be found at $6"
    15          echo "------------------"
    16          $5
    17          exit -1
    18     fi
    19 ])
    20 
    211
    222dnl AX_CHECK_HEADER_LIB([HEADER-NAME], [LIBRARY-NAME], [FUNCTION-IN-LIB], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], [LIB-WEB-PAGE])
     
    277    AC_CHECK_HEADER([$1], [_header_check="yes"], [_header_check="no"])
    288    AC_CHECK_LIB([$2], [$3], [_lib_check="yes"], [_lib_check="no"])
    29     if [test x$_header_check = "xyes" && test "x$_lib_check" = "xyes"] ; then
     9    if [test "x$_header_check" = "xyes" && test "x$_lib_check" = "xyes"] ; then
    3010         LIBS="$LIBS -l$2"
    3111         $4
    3212    else
     13         echo "no Support for $2"
    3314         $5
    3415    fi
Note: See TracChangeset for help on using the changeset viewer.