File: funcs.m4

package info (click to toggle)
flmsg 4.0.23-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,040 kB
  • sloc: cpp: 73,204; ansic: 11,555; sh: 4,266; makefile: 359
file content (15 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# args: function, search-libs, other-libraries
AC_DEFUN([AC_FLMSG_SEARCH_LIBS], [

m4_define([FUNC_NAME_UC], m4_translit([$1], [a-z], [A-Z]))

LIBS_search_libs_save="$LIBS"
LIBS=""
AC_SEARCH_LIBS($1, $2, [ac_cv_have_func_[]$1=1], [ac_cv_have_func_[]$1=0], $3)
if test "x$LIBS" != "x"; then
    echo "$EXTRA_LIBS" | grep -q -e "$LIBS" || EXTRA_LIBS="$EXTRA_LIBS $LIBS"
fi
AC_DEFINE_UNQUOTED([HAVE_]FUNC_NAME_UC, $ac_cv_have_func_[]$1, [Define to 1 if we have $1])
LIBS="$LIBS_search_libs_save"

])