The configure script I set up for gpirt was a little better than my original approach for this package, so I copied it over for RcppDist.