Skip to content

Commit 989f94c

Browse files
committed
Generated config in RcppArmadillo/config
1 parent 30fced8 commit 989f94c

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

cleanup

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ rm -f config.log config.status confdefs.h \
1717
vignettes/*~ \
1818
*/*~ *~ \
1919
inst/include/RcppArmadilloLapack.h \
20-
inst/include/RcppArmadillo/internal/RcppArmadilloConfigGenerated.h \
20+
inst/include/RcppArmadillo/config/RcppArmadilloConfigGenerated.h \
2121
src/Makevars \
2222
vignettes/jss.bst vignettes/pinp.cls
2323

configure

+2-2
Original file line numberDiff line numberDiff line change
@@ -3407,7 +3407,7 @@ ARMA_HAVE_OPENMP="${arma_have_openmp}"
34073407
34083408
OPENMP_FLAG="${openmp_flag}"
34093409
3410-
ac_config_files="$ac_config_files inst/include/RcppArmadillo/internal/RcppArmadilloConfigGenerated.h src/Makevars"
3410+
ac_config_files="$ac_config_files inst/include/RcppArmadillo/config/RcppArmadilloConfigGenerated.h src/Makevars"
34113411
34123412
cat >confcache <<\_ACEOF
34133413
# This file is a shell script that caches the results of configure
@@ -4109,7 +4109,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41094109
for ac_config_target in $ac_config_targets
41104110
do
41114111
case $ac_config_target in
4112-
"inst/include/RcppArmadillo/internal/RcppArmadilloConfigGenerated.h") CONFIG_FILES="$CONFIG_FILES inst/include/RcppArmadillo/internal/RcppArmadilloConfigGenerated.h" ;;
4112+
"inst/include/RcppArmadillo/config/RcppArmadilloConfigGenerated.h") CONFIG_FILES="$CONFIG_FILES inst/include/RcppArmadillo/config/RcppArmadilloConfigGenerated.h" ;;
41134113
"src/Makevars") CONFIG_FILES="$CONFIG_FILES src/Makevars" ;;
41144114
41154115
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,5 +207,5 @@ fi
207207
AC_SUBST([ARMA_LAPACK],["${arma_lapack}"])
208208
AC_SUBST([ARMA_HAVE_OPENMP], ["${arma_have_openmp}"])
209209
AC_SUBST([OPENMP_FLAG], ["${openmp_flag}"])
210-
AC_CONFIG_FILES([inst/include/RcppArmadillo/internal/RcppArmadilloConfigGenerated.h src/Makevars])
210+
AC_CONFIG_FILES([inst/include/RcppArmadillo/config/RcppArmadilloConfigGenerated.h src/Makevars])
211211
AC_OUTPUT
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
// This file support the legacy location and includes from the new location
3+
4+
#include "RcppArmadillo/rng/Alt_R_RNG.h"

inst/include/RcppArmadilloConfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
#else
107107
// on the other OSs we test via LAPACK_LIBS (in configure) which
108108
// updates this include file
109-
#include <RcppArmadillo/internal/RcppArmadilloConfigGenerated.h>
109+
#include <RcppArmadillo/config/RcppArmadilloConfigGenerated.h>
110110
#endif
111111

112112
// Many client packages do not set the OpenMP compiler flag in their src/Makevars

0 commit comments

Comments
 (0)