Re: [Sqlrelay-discussion] SQLRelay snippet for autotools
Brought to you by:
mused
|
From: David M. <dav...@fi...> - 2008-06-12 22:03:44
|
I use this in another project of mine, it might work for you:
dnl Checks for sqlrelay
echo
echo "***** SQL Relay **************"
AC_MSG_CHECKING(for sqlrelay)
if ( test -n "$SQLRELAYPREFIX" )
then
SQLRELAYCONFIG="$SQLRELAYPREFIX/bin/sqlrclient-config"
else
AC_PATH_PROG(SQLRELAYCONFIG,sqlrclient-config,"","/bin:/usr/bin:/usr/local/bin:/opt/sfw/bin:/usr/pkg/bin:/usr/local/firstworks/bin:/usr/local/sqlrelay/bin")
fi
SQLRELAYCFLAGS="`$SQLRELAYCONFIG --cflags 2> /dev/null`"
SQLRELAYLIBS="`$SQLRELAYCONFIG --libs 2> /dev/null`"
if ( test -n "$SQLRELAYLIBS" )
then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
AC_MSG_ERROR("sqlrclient not found.")
fi
AC_SUBST(SQLRELAYCFLAGS)
AC_SUBST(SQLRELAYLIBS)
echo "******************************"
David Muse
dav...@fi...
On Tue, 2008-06-03 at 16:25 +0300, Denis Chapligin wrote:
> Hello!
>
>
> Is there any good SQLRelay detection and configuration code for autotools?
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Sqlrelay-discussion mailing list
> Sql...@li...
> https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion
>
>
> __________________________________________________
> D O T E A S Y - "Join the web hosting revolution!"
> http://www.doteasy.com
__________________________________________________
D O T E A S Y - "Join the web hosting revolution!"
http://www.doteasy.com
|