3 # $Id: sinfg.m4,v 1.1.1.1 2005/01/07 03:34:35 darco Exp $
5 # By Robert B. Quattlebaum Jr. <darco@users.sf.net>
12 AC_CHECK_FUNCS([floor pow sqrt],,$2)
16 AC_DEFUN([USING_SINFG],
18 AC_ARG_WITH(sinfg-includes,
19 [ --with-sinfg-includes Specify location of sinfg headers],[
20 CXXFLAGS="$CXXFLAGS -I$withval"
23 AC_PATH_PROG(SINFG_CONFIG,sinfg-config,no)
25 if test "$SINFG_CONFIG" = "no"; then
29 AC_MSG_CHECKING([if $SINFG_CONFIG works])
30 if $SINFG_CONFIG --libs >/dev/null 2>&1; then
31 SINFG_VERSION="`$SINFG_CONFIG --version`"
32 AC_MSG_RESULT([yes, $SINFG_VERSION])
33 SINFG_CXXFLAGS="`$SINFG_CONFIG --cxxflags`"
34 SINFG_CFLAGS="`$SINFG_CONFIG --cflags`"
35 SINFG_LIBS="`$SINFG_CONFIG --libs`"
36 CXXFLAGS="$CXXFLAGS $SINFG_CXXFLAGS"
37 AC_SUBST(SINFG_CXXFLAGS)
39 AC_SUBST(SINFG_CFLAGS)