Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd an autoconf template #313
Comments
This comment has been minimized.
This comment has been minimized.
Unfortunately I just don't think autoconf scripts are used frequently enough to make it worthwhile to invest in term in usethis. |
This comment has been minimized.
This comment has been minimized.
That’s understandable. Thanks for your work on the package. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: I actually implemented this functionality before I read the request to file an issue beforehand in the contributor guidelines, so if you'd like to see an implementation you can check out this commit.
One seriously difficult hurdle I have encountered as a package author is determining how to add
autoconf
-based configure scripts to an Rcpp package that needed to detect a particular C++ library installed on a system. This is the recommended approach in Writing R Extensions for solving this problem, but I found few accessible resources on how to actually write these scripts (specific to R, anyway). Moreover, there are actually a ton of other, related steps in order to get R CMD check to play nicely withautoconf
's generated files (permissions, thecleanup
script,autoconf
-related artifacts, etc).All this to say that once I finally figured it out I wanted to make it easier for others, and the usethis package seems like the most promising veneue for providing "this is how you should do this" functionality, even though this is a relatively uncommon need for package authors.
In short, I imagine a
use_autoconf()
function that:configure.ac
file with some helpful comments to get you started on what you might want to modify;cleanup
script used by R to removeautoconf
-related build artifacts;src/Makevars
to work nicely withautoconf
;autoconf
itself when you configure script is out-of-dateIs this outside of the scope of the usethis package?