Only use the SCM_ API when the function `scm_slot_exists_p' exists

(needed for GOOPS support).  This function was renamed during the
Guile 1.5 series from `scm_slots_exists_p'.

Report the right runtime library when invoked with -scm -ldflags.1


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5263 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Matthias Köppe 2003-11-04 19:15:59 +00:00
commit d62a05a6b4
2 changed files with 3 additions and 2 deletions

View file

@ -172,7 +172,7 @@ public:
}
}
else if (strcmp (argv[i], "-ldflags") == 0) {
printf("%s\n", SWIG_GUILE_RUNTIME);
printf("%s\n", use_scm_interface ? SWIG_GUILESCM_RUNTIME : SWIG_GUILE_RUNTIME);
SWIG_exit (EXIT_SUCCESS);
}
else if (strcmp (argv[i], "-Linkage") == 0