#!/bin/sh # multipackage configure script if test "x$1" = "x--help" -o "x$1" = "x-help"; then cat << __EOF configure: General: --prefix=/where/to/install [default is here] --with-boost=/boost/include MPI Support (or not): --with-mpi=no --with-mpi=/where/is/root/of/mpi/installation which must then contain bin/mpiCC and include/mpi.h. Alternatively: --with-mpi-cxx=/where/is/mpiCC --with-mpi-inc='-I/where/is/mpi.h' If configure dies trying to make subdir 'neo/', try setting environment var MAKE to point at a gnu make. __EOF exit 0 fi /bin/rm -f config.status cat << __EOF > config.status # # configure run as # ./configure $* # __EOF /bin/rm -f reconfigure cat << __EOF > reconfigure #!/bin/sh `pwd`/configure $* __EOF chmod a+x reconfigure BUILD_ROOT=`pwd` cat Makefile.in |sed -e "s%@BUILD_ROOT@%$BUILD_ROOT%g" > Makefile defprefix=$BUILD_ROOT pkgs="neo eg-neo test" # this is how it would be if all were components if test "x" = "y" ; then for p in $pkgs ; do echo "Configuring $p" (cd $p; echo `pwd` $*) done fi # but alas, neo is the framework interface and has to # be installed as well before components configure right. # so we cheat and do also a local pre-install in addition to the # prefix specified one. for a in "$MAKE" make gmake gnumake ; do if test -z "$a" ; then continue ; fi ; if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then gnu_make_command=$a ; break; fi done # If there was a GNU version, then set ifGNUmake to the empty string, '#' otherwise if test "x$gnu_make_command" != "x" ; then ifGNUmake='' ; else ifGNUmake='#' ; fi MAKE=$gnu_make_command if test "x$ifGNUmake" = "x#" ; then MAKE=make fi # at least for autoconf 2.13, the last prefix flag seen wins, # so if the user specifies a prefix, it will override defprefix (cd neo; ./configure --prefix=$defprefix $*) # install headers and scripts only. no compiles. # this could fail if prefix is not writable. (cd neo; $MAKE install-files) (cd eg-neo; ./configure --prefix=$defprefix $*) (cd test; ./configure --prefix=$defprefix $*) exit 0