***sneek_ is now known as sneek
<bhattigurjot>does this "GUILE_CFLAGS = @GUILE_CFLAGS@" work in guile-2.0? <dsmith-work>bhattigurjot: Not in a Makefile, but in the Makefile.in. Usually ./configure does something with sed to change @...@ markers to the real conigured values. <dsmith-work>IF you see @...@ in a Makefile, it's an indication that ./configured didn't do the right thign. <bhattigurjot>this is defined in makefile.in as "GUILE_CFLAGS = @GUILE_CFLAGS@" <bhattigurjot>dsmith-work: you also used a variable to include GUILE_CFLAGS <dsmith-work>Looks like "PKG_CHECK_MODULES([GUILE], [guile-2.0])" generates that. <dsmith-work>Anyone know how to make that work for 2.2 (2.1) also? <dsmith-work>bhattigurjot: btw, I need to set PKG_CONFIG_PATH. As in "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure" <bhattigurjot>and do you know what should be used inplace of "gh_scm2doubles (v, gv);"? <dsmith-work>bhattigurjot: I'm using pkg-config directly. Not using the /usr/local/share/aclocal/guile.m4 <civodul>dsmith-work, bhattigurjot: scm_to_double, yes <civodul>bhattigurjot: you want to get a vector of doubles? <civodul>scm_take_f64vector would give a homogeneous vector <civodul>bhattigurjot: i don't know what gh_scm2doubles did, hence my question :-) <dsmith-work>bhattigurjot: Sounds like you are trying to port some really really old guile code. <dsmith-work>It's some work, but it might be instructive to get the source to a guile where the gh_* was in the depracated state. There are usually files that map the old api to the new one. Useful for clues on how to do it. <civodul>bhattigurjot: the closest thing would be to use SRFI-4 "homogeneous vectors" instead of plain vectors, and then scm_f32vector_elements to access the vector's elements as a C array <civodul>bhattigurjot: what you did may work, but it's inefficient <civodul>SRFI-4 homogeneous vectors were designed for these use cases <civodul>where you have large arrays of numbers to be handled both from C and Scheme <civodul>i don't have examples handy, and i'm a bit busy ;-) <dsmith-work>civodul: Looks that gh_scm2doubles never went through the deperecation cycle. <dsmith-work>civodul: It's in 1.8 (not deprecated) and disappears in 2.0