=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/configure,v retrieving revision 1.1 retrieving revision 1.13 diff -u -p -r1.1 -r1.13 --- OpenXM_contrib2/asir2000/configure 1999/12/03 07:39:06 1.1 +++ OpenXM_contrib2/asir2000/configure 2003/01/16 04:35:07 1.13 @@ -1,11 +1,78 @@ #!/bin/sh -# $OpenXM: OpenXM/src/asir99/configure,v 1.1.1.1 1999/11/10 08:12:24 noro Exp $ -if [ $# = 1 ]; then - oxhome=$1 -else - oxhome=`( cd ../../OpenXM ; pwd )` +# $OpenXM: OpenXM_contrib2/asir2000/configure,v 1.12 2003/01/14 03:27:13 ohara Exp $ + +use_plot=0 +use_pari=0 +use_interval=0 +use_fep=0 +oxhome=/usr/local + +if [ -d ../../OpenXM ]; then +oxhome=`( cd ../../OpenXM ; pwd )` fi + +while [ $# -gt 0 ] +do + case $1 in + -oxhome) + shift; oxhome=$1 ;; + -plot) + use_plot=1 ;; + -oldpari) + use_pari=1 ;; + -pari) + use_pari=2 ;; + -interval) + use_interval=1 ;; + -fep) + use_fep=1 ;; + esac + shift +done + +libname=libasir + rm -f include/config.h -cat > include/config.h <> include/config.h + +#cat > include/config.h <> include/config.h +fi + +if [ $use_pari = 2 ]; then +libname=$libname"_pari" +libpari=pari-2.2 +echo "#define USE_PARI" >> include/config.h +fi + +if [ $use_plot != 0 ]; then +libname=$libname"_X" +echo "#define USE_PLOT" >> include/config.h +fi + +if [ $use_interval != 0 ]; then +libname=$libname"_itv" +echo "#define USE_INTERVAL" >> include/config.h +fi + +if [ $use_fep != 0 ]; then +echo "#define USE_FEP" >> include/config.h +fi + +echo LIBPARI=$libpari >> include/config.h +echo LIBASIR=$libname.a >> include/config.h + +case "`PATH=/usr/bin:/bin uname`" in +FreeBSD|SunOS|CYGWIN*) + (cd gc; ./configure --disable-threads) + ;; +*) + (cd gc; ./configure) + ;; +esac