| This configure stuff is Greek to me. So I'm probably not the
person to ask...
At 13:15 11/03/2008, you wrote:
>But -framework CsoundLib doesn't need setting -L or -I to find libs and
>headers? I just found this macro on google:
>
>dnl Function to check for Mac OS X frameworks (stolen from Basilisk)
>dnl AC_CHECK_FRAMEWORK($1=NAME, $2=INCLUDES)
>AC_DEFUN([AC_CHECK_FRAMEWORK], [
> AS_VAR_PUSHDEF([ac_Framework], [have_framework_$1])dnl
> AC_CACHE_CHECK([whether compiler supports framework $1],
> ac_Framework, [
> saved_LIBS="$LIBS"
> LIBS="$LIBS -framework $1"
> AC_TRY_LINK(
> [$2], [],
> [AS_VAR_SET(ac_Framework, yes)], [AS_VAR_SET(ac_Framework,
>no); LIBS="$saved_LIBS"]
> )
> ])
> AS_IF([test AS_VAR_GET(ac_Framework) = yes],
> [AC_DEFINE(AS_TR_CPP(HAVE_FRAMEWORK_$1), 1, [Define if framework
>$1 is available.])]
> )
> AS_VAR_POPDEF([ac_Framework])dnl
>])
>
>I hope it means I can just do something like this:
>
>AC_CHECK_FRAMEWORK([CsoundLib],[])
>if test "x$have_framework_CsoundLib" = xyes
>then
> AC_DEFINE([HAVE_CSOUND],[],[csound])
>else
> AC_SEARCH_LIBS(csoundCompile, [csound], \
> AC_DEFINE([HAVE_CSOUND],[],[csound])
>fi
>
>Too bad I don't have a Mac here to try it out...
>
>Victor Lazzarini wrote:
> > Can try to look for
> > /Library/Frameworks/CsoundLib.framework/CsoundLib
> >
> > At 12:18 11/03/2008, you wrote:
> >> Ok, thanks!
> >> Does anyone have any tips on how I could construct my configure.in so
> >> that it can find and link with the CsoundLib framework if
> >> AC_SEARCH_LIBS() did not find it as a library?
> >>
> >> victor wrote:
> >>> libcsnd.dylib is the 'interfaces' library. You need to link
> >>> to the CsoundLib framework (compile() is there).
> >>>
> >>> -framework CsoundLib
> >>>
> >>>
> >>> ----- Original Message -----
> >>> From: "Jonatan Liljedahl"
> >>> To: "Developer discussions"
> >>> Sent: Tuesday, March 11, 2008 3:48 AM
> >>> Subject: [Cs-dev] linking with csound framework
> >>>
> >>>
> >>>> I'm trying to link to the csound framework from my app, building it
> >>>> under MacPorts... I'm using autoconf and automake.
> >>>>
> >>>> I see that libcsnd.dylib is present in /usr/local/lib but for some
> >>>> reason this doesn't find it:
> >>>>
> >>>> AC_SEARCH_LIBS(csoundCompile, [csound csnd], \
> >>>> AC_DEFINE([HAVE_CSOUND],[],[csound])])
> >>>>
> >>>> config.log says there isn't any _csoundCompile symbol in the lib...
> >>>>
> >>>> passing -lcsnd in CFLAGS manually _does_ make the app link to csound,
> >>>> but then my configure script doesn't know about it and since I have
> >>>> conditional compile of csound support it won't be built.
> >>>>
> >>>> any ideas?
> >> --
> >> /Jonatan [ http://kymatica.com ]
>--
>/Jonatan [ http://kymatica.com ]
>
>-------------------------------------------------------------------------
>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/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel
Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth
-------------------------------------------------------------------------
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/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |