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
|
Rev | Line | |
---|
[6164] | 1 | |
---|
| 2 | dnl AX_CHECK_HEADER_LIB([HEADER-NAME], [LIBRARY-NAME], [FUNCTION-IN-LIB], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], [LIB-WEB-PAGE]) |
---|
| 3 | AC_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"]) |
---|
[6271] | 9 | if [test "x$_header_check" = "xyes" && test "x$_lib_check" = "xyes"] ; then |
---|
[6164] | 10 | LIBS="$LIBS -l$2" |
---|
| 11 | $4 |
---|
| 12 | else |
---|
[6271] | 13 | echo "no Support for $2" |
---|
[6164] | 14 | $5 |
---|
| 15 | fi |
---|
| 16 | ]) |
---|
| 17 | |
---|
Note: See
TracBrowser
for help on using the repository browser.