-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure
executable file
·25 lines (24 loc) · 921 Bytes
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env sh
GSL_CFLAGS=`${R_HOME}/bin/Rscript -e "require(RcppGSL);RcppGSL:::CFlags()"`
GSL_LIBS=`${R_HOME}/bin/Rscript -e "require(RcppGSL);RcppGSL:::LdFlags()"`
CC=`"${R_HOME}/bin/R" CMD config CC`
CPP=`"${R_HOME}/bin/R" CMD config CPP`
CXX=`"${R_HOME}/bin/R" CMD config CXX`
CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS`
ALL_CXXFLAGS=`"${R_HOME}/bin/R" CMD config ALL_CXXFLAGS`
sed -e "s|@GSL_LIBS@|${GSL_LIBS}|" \
-e "s|@GSL_CFLAGS@|${GSL_CFLAGS}|" \
-e "s|@CC@|${CC}|" \
-e "s|@CPP@|${CPP}|" \
-e "s|@CXX@|${CXX}|" \
-e "s|@CFLAGS@|${CXXFLAGS}|" \
src/Makevars.in > src/Makevars
sed -e "s|@GSL_LIBS@|${GSL_LIBS}|" \
-e "s|@GSL_CFLAGS@|${GSL_CFLAGS}|" \
-e "s|@CXX@|${CXX}|" \
-e "s|@CPP@|${CPP}|" \
-e "s|@CFLAGS@|${CXXFLAGS}|" \
-e "s|@CPICFLAGS@|${CXXPICFLAGS}|" \
src/graphm/Makefile.in > src/graphm/Makefile