git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/Rdisop@63551 bc3139a8-67e5-0310-9ffc-ced21a209358
1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,43 +0,0 @@ |
1 |
-dnl package name, version |
|
2 |
-AC_INIT([Rdisop], 0.4) |
|
3 |
- |
|
4 |
-dnl require version 2.5+ of autoconf |
|
5 |
-AC_PREREQ(2.50) |
|
6 |
- |
|
7 |
-dnl the CC and CFLAGS variables control configure tests, and they need to |
|
8 |
-dnl be the same as what will be used when the package is built. There is |
|
9 |
-dnl no need to place these flags in Makevars, and if no configure tests are |
|
10 |
-dnl done they are not needed here (see "Writing R Extensions" manual). |
|
11 |
-: ${R_HOME=`R RHOME`} |
|
12 |
-if test -z "${R_HOME}"; then |
|
13 |
- echo "Could not determine R home directory" |
|
14 |
- exit 1 |
|
15 |
-fi |
|
16 |
-CXX=`"${R_HOME}/bin/R" CMD config CXX` |
|
17 |
-CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS` |
|
18 |
- |
|
19 |
-AC_LANG(C++) dnl using C++ |
|
20 |
- |
|
21 |
-AC_REQUIRE_CPP |
|
22 |
- |
|
23 |
-dnl configure IMS include/load flags and copy sample source to inst/doc |
|
24 |
-dnl if IMS not found via PKG, use included static Version |
|
25 |
- |
|
26 |
-#echo "Configuring libims.a in imslib..." |
|
27 |
-#cd src/imslib |
|
28 |
-#./configure --enable-shared --disable-static |
|
29 |
-#./configure --enable-static --disable-shared |
|
30 |
-#make src/libims.la |
|
31 |
-#cd ../../ |
|
32 |
-IMS_CFLAGS=-I./imslib/src/ |
|
33 |
- |
|
34 |
-RCPPCLASSIC_LDFLAGS=`${R_HOME}/bin/Rscript -e "Rcpp:::LdFlags()"` |
|
35 |
-RCPPCLASSIC_LDFLAGS+=" " |
|
36 |
-RCPPCLASSIC_LDFLAGS=`${R_HOME}/bin/Rscript -e "RcppClassic:::LdFlags()"` |
|
37 |
- |
|
38 |
-AC_SUBST([CPPFLAGS], ["${CPPFLAGS} $IMS_CFLAGS"]) |
|
39 |
-AC_SUBST([LDFLAGS], ["${LDFLAGS} ${RCPPCLASSIC_LDFLAGS}"]) |
|
40 |
- |
|
41 |
-AC_SUBST(WANT_MSI_TRUE) |
|
42 |
-AC_SUBST(CPPFLAGS) |
|
43 |
-AC_SUBST(LDFLAGS) |
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/Rdisop@63004 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -23,30 +23,21 @@ AC_REQUIRE_CPP |
23 | 23 |
dnl configure IMS include/load flags and copy sample source to inst/doc |
24 | 24 |
dnl if IMS not found via PKG, use included static Version |
25 | 25 |
|
26 |
-echo "Configuring libims.a in imslib..." |
|
27 |
-cd src/imslib |
|
28 |
-./configure --enable-shared --disable-static |
|
29 |
-make src/libims.la |
|
30 |
-cd ../../ |
|
26 |
+#echo "Configuring libims.a in imslib..." |
|
27 |
+#cd src/imslib |
|
28 |
+#./configure --enable-shared --disable-static |
|
29 |
+#./configure --enable-static --disable-shared |
|
30 |
+#make src/libims.la |
|
31 |
+#cd ../../ |
|
31 | 32 |
IMS_CFLAGS=-I./imslib/src/ |
32 | 33 |
|
33 |
-AC_SUBST([CPPFLAGS], ["${CPPFLAGS} -I../RcppSrc $IMS_CFLAGS"]) |
|
34 |
-AC_SUBST([LDFLAGS], ["${LDFLAGS} -L../RcppSrc -lRcpp"]) |
|
35 |
-AC_SUBST([LIBS], ["${LIBS} -lRcpp"]) |
|
34 |
+RCPPCLASSIC_LDFLAGS=`${R_HOME}/bin/Rscript -e "Rcpp:::LdFlags()"` |
|
35 |
+RCPPCLASSIC_LDFLAGS+=" " |
|
36 |
+RCPPCLASSIC_LDFLAGS=`${R_HOME}/bin/Rscript -e "RcppClassic:::LdFlags()"` |
|
36 | 37 |
|
37 |
-echo "Building libRcpp.a in RcppSrc..." |
|
38 |
-cd RcppSrc |
|
39 |
-make RHOME=${R_HOME} |
|
40 |
-cd .. |
|
41 |
- |
|
42 |
-if test \! -d inst |
|
43 |
-then |
|
44 |
- mkdir inst |
|
45 |
-fi |
|
46 |
-cp RcppSrc/Rcpp-license.txt inst |
|
38 |
+AC_SUBST([CPPFLAGS], ["${CPPFLAGS} $IMS_CFLAGS"]) |
|
39 |
+AC_SUBST([LDFLAGS], ["${LDFLAGS} ${RCPPCLASSIC_LDFLAGS}"]) |
|
47 | 40 |
|
48 | 41 |
AC_SUBST(WANT_MSI_TRUE) |
49 | 42 |
AC_SUBST(CPPFLAGS) |
50 | 43 |
AC_SUBST(LDFLAGS) |
51 |
-AC_SUBST(LIBS) |
|
52 |
-AC_OUTPUT(src/Makevars) |
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/Rdisop@49289 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -1,5 +1,8 @@ |
1 |
-AC_INIT([Rdisop], 0.4) dnl package name, version |
|
2 |
-AC_PREREQ(2.50) dnl require version 2.5+ of autoconf |
|
1 |
+dnl package name, version |
|
2 |
+AC_INIT([Rdisop], 0.4) |
|
3 |
+ |
|
4 |
+dnl require version 2.5+ of autoconf |
|
5 |
+AC_PREREQ(2.50) |
|
3 | 6 |
|
4 | 7 |
dnl the CC and CFLAGS variables control configure tests, and they need to |
5 | 8 |
dnl be the same as what will be used when the package is built. There is |
... | ... |
@@ -18,33 +21,24 @@ AC_LANG(C++) dnl using C++ |
18 | 21 |
AC_REQUIRE_CPP |
19 | 22 |
|
20 | 23 |
dnl configure IMS include/load flags and copy sample source to inst/doc |
21 |
-PKG_CHECK_MODULES(IMS, [libims >= 0.5.0], [echo OK], [ |
|
22 | 24 |
dnl if IMS not found via PKG, use included static Version |
23 | 25 |
|
24 |
-#echo "Building libims.a in imslib..." |
|
25 |
-( cd src/imslib ; ./configure ) |
|
26 |
-#./autogen.sh |
|
27 |
-#make ./src/libims.la |
|
28 |
-#cd .. |
|
29 |
- |
|
26 |
+echo "Configuring libims.a in imslib..." |
|
27 |
+cd src/imslib |
|
28 |
+./configure --enable-shared --disable-static |
|
29 |
+make src/libims.la |
|
30 |
+cd ../../ |
|
30 | 31 |
IMS_CFLAGS=-I./imslib/src/ |
31 |
-IMS_LIBS="-L./imslib/src/.libs/ -lims" |
|
32 |
-]) |
|
33 | 32 |
|
34 | 33 |
AC_SUBST([CPPFLAGS], ["${CPPFLAGS} -I../RcppSrc $IMS_CFLAGS"]) |
35 |
-AC_SUBST([LDFLAGS], ["${LDFLAGS} -L../RcppSrc -lRcpp $IMS_LIBS"]) |
|
36 |
-AC_SUBST([LIBS], ["${LIBS} -lRcpp $IMS_LIBS"]) |
|
37 |
-AC_SUBST([WANT_IMS_TRUE], ["libims"]) |
|
38 |
- |
|
34 |
+AC_SUBST([LDFLAGS], ["${LDFLAGS} -L../RcppSrc -lRcpp"]) |
|
35 |
+AC_SUBST([LIBS], ["${LIBS} -lRcpp"]) |
|
39 | 36 |
|
40 | 37 |
echo "Building libRcpp.a in RcppSrc..." |
41 | 38 |
cd RcppSrc |
42 | 39 |
make RHOME=${R_HOME} |
43 | 40 |
cd .. |
44 | 41 |
|
45 |
-echo "Debugging Library stuff" |
|
46 |
-find ${DPKG}/libs/ |
|
47 |
- |
|
48 | 42 |
if test \! -d inst |
49 | 43 |
then |
50 | 44 |
mkdir inst |
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/Rdisop@29744 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -37,13 +37,13 @@ AC_SUBST([LIBS], ["${LIBS} -lRcpp $IMS_LIBS"]) |
37 | 37 |
AC_SUBST([WANT_IMS_TRUE], ["libims"]) |
38 | 38 |
|
39 | 39 |
|
40 |
-#echo "Building libRcpp.a in RcppSrc..." |
|
40 |
+echo "Building libRcpp.a in RcppSrc..." |
|
41 | 41 |
cd RcppSrc |
42 | 42 |
make RHOME=${R_HOME} |
43 | 43 |
cd .. |
44 | 44 |
|
45 | 45 |
echo "Debugging Library stuff" |
46 |
-ls -l ${DPKG}/libs/ |
|
46 |
+find ${DPKG}/libs/ |
|
47 | 47 |
|
48 | 48 |
if test \! -d inst |
49 | 49 |
then |
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/Rdisop@29713 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/Rdisop@27972 bc3139a8-67e5-0310-9ffc-ced21a209358
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,57 @@ |
1 |
+AC_INIT([Rdisop], 0.4) dnl package name, version |
|
2 |
+AC_PREREQ(2.50) dnl require version 2.5+ of autoconf |
|
3 |
+ |
|
4 |
+dnl the CC and CFLAGS variables control configure tests, and they need to |
|
5 |
+dnl be the same as what will be used when the package is built. There is |
|
6 |
+dnl no need to place these flags in Makevars, and if no configure tests are |
|
7 |
+dnl done they are not needed here (see "Writing R Extensions" manual). |
|
8 |
+: ${R_HOME=`R RHOME`} |
|
9 |
+if test -z "${R_HOME}"; then |
|
10 |
+ echo "Could not determine R home directory" |
|
11 |
+ exit 1 |
|
12 |
+fi |
|
13 |
+CXX=`"${R_HOME}/bin/R" CMD config CXX` |
|
14 |
+CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS` |
|
15 |
+ |
|
16 |
+AC_LANG(C++) dnl using C++ |
|
17 |
+ |
|
18 |
+AC_REQUIRE_CPP |
|
19 |
+ |
|
20 |
+dnl configure IMS include/load flags and copy sample source to inst/doc |
|
21 |
+PKG_CHECK_MODULES(IMS, [libims >= 0.5.0], [echo OK], [ |
|
22 |
+dnl if IMS not found via PKG, use included static Version |
|
23 |
+ |
|
24 |
+#echo "Building libims.a in imslib..." |
|
25 |
+( cd src/imslib ; ./configure ) |
|
26 |
+#./autogen.sh |
|
27 |
+#make ./src/libims.la |
|
28 |
+#cd .. |
|
29 |
+ |
|
30 |
+IMS_CFLAGS=-I./imslib/src/ |
|
31 |
+IMS_LIBS="-L./imslib/src/.libs/ -lims" |
|
32 |
+]) |
|
33 |
+ |
|
34 |
+AC_SUBST([CPPFLAGS], ["${CPPFLAGS} -I../RcppSrc $IMS_CFLAGS"]) |
|
35 |
+AC_SUBST([LDFLAGS], ["${LDFLAGS} -L../RcppSrc -lRcpp $IMS_LIBS"]) |
|
36 |
+AC_SUBST([LIBS], ["${LIBS} -lRcpp $IMS_LIBS"]) |
|
37 |
+AC_SUBST([WANT_IMS_TRUE], ["libims"]) |
|
38 |
+ |
|
39 |
+ |
|
40 |
+#echo "Building libRcpp.a in RcppSrc..." |
|
41 |
+cd RcppSrc |
|
42 |
+make RHOME=${R_HOME} |
|
43 |
+cd .. |
|
44 |
+ |
|
45 |
+ |
|
46 |
+ |
|
47 |
+if test \! -d inst |
|
48 |
+then |
|
49 |
+ mkdir inst |
|
50 |
+fi |
|
51 |
+cp RcppSrc/Rcpp-license.txt inst |
|
52 |
+ |
|
53 |
+AC_SUBST(WANT_MSI_TRUE) |
|
54 |
+AC_SUBST(CPPFLAGS) |
|
55 |
+AC_SUBST(LDFLAGS) |
|
56 |
+AC_SUBST(LIBS) |
|
57 |
+AC_OUTPUT(src/Makevars) |