Skip to content

Commit

Permalink
Treat SWIGFLAGS correctly in the configure script for astromap
Browse files Browse the repository at this point in the history
  • Loading branch information
bnikolic committed May 15, 2007
1 parent 4a34664 commit bbf5ab5
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .bzrignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,20 @@ CVS
./bnlib/config/depcomp
./bnlib/config/config.sub
./bnlib/config/config.guess
./bnfits/pybind/config/ltmain.sh
./bnfits/pybind/config/depcomp
./bnfits/pybind/config/config.sub
./bnfits/pybind/config/config.guess
./bnfits/config/ltmain.sh
./bnfits/config/depcomp
./bnfits/config/config.sub
./bnfits/config/config.guess
./astromap/plot/config/ltmain.sh
./astromap/plot/config/depcomp
./astromap/plot/config/config.sub
./astromap/plot/config/config.guess
./astromap/config/ltmain.sh
./astromap/config/depcomp
./astromap/config/config.sub
./astromap/config/config.guess
./astromap/config/compile
10 changes: 10 additions & 0 deletions astromap/README
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,13 @@ on hathor:
CFLAGS="${CFLAGS} -I${HOME}/p/bnlib/include -I${HOME}/p/bnfits/include -g" \
LDFLAGS="${LDFLAGS} -L${HOME}/p/bnlib/lib -L${HOME}/p/bnfits/lib" \
--prefix=${HOME}/p/astromap


More notes:
export PYTHON=python2.4
./configure CPPFLAGS="-I${BNPREFIX}/include" \
CFLAGS="-I${BNPREFIX}/include" \
SWIGFLAGS="-I${BNPREFIX}/include" \
LDFLAGS="-L${BNPREFIX}/lib"\
--prefix=${BNPREFIX}

2 changes: 1 addition & 1 deletion astromap/plot/config/swig.am
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
%.cxx %.py: %.i
@SWIG@ -o $@ ${SWIGFLAGS} -c++ -python $<
@SWIG@ -o $@ @SWIGFLAGS@ -c++ -python $<
2 changes: 2 additions & 0 deletions astromap/plot/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ AC_PATH_X()
AC_PATH_XTRA()

AM_CHECK_PYTHON_HEADERS()

AC_PATH_PROGS([SWIG],[swig])
AC_SUBST(SWIGFLAGS)


AC_OUTPUT(Makefile
Expand Down
6 changes: 6 additions & 0 deletions bnlib/README
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ configure as:

./configure --prefix=${HOME}/p/bnlib

Or, even better: define prefix as:
export set BNPREFIX=/home/bn204/d/p/bnprog-devel-main

and then

./configure --prefix=${BNPREFIX}

0 comments on commit bbf5ab5

Please sign in to comment.