Annotation of OpenXM_contrib2/asir2000/configure, Revision 1.4
1.1 noro 1: #!/bin/sh
1.4 ! saito 2: # $OpenXM: OpenXM_contrib2/asir2000/configure,v 1.3 2000/03/01 02:29:16 noro Exp $
1.2 noro 3:
1.4 ! saito 4: use_plot=1
! 5: use_pari=1
! 6: use_interval=1
! 7: use_fep=1
1.3 noro 8: oxhome=/usr/local
9:
10: if [ -d ../../OpenXM ]; then
11: oxhome=`( cd ../../OpenXM ; pwd )`
12: fi
1.2 noro 13:
14: while [ $# -gt 0 ]
15: do
16: case $1 in
17: -oxhome)
18: shift; oxhome=$1 ;;
19: -plot)
20: use_plot=1 ;;
21: -pari)
22: use_pari=1 ;;
1.4 ! saito 23: -interval)
! 24: use_interval=1 ;;
! 25: -fep)
! 26: use_fep=1 ;;
1.2 noro 27: esac
28: shift
29: done
30:
31: libname=libasir
32:
33: rm -f include/config.h
34: echo "#define OpenXM_HOME ${oxhome}" >> include/config.h
35:
36: #cat > include/config.h <<EOF
37: ##define OpenXM_HOME ${oxhome}
38: #EOF
39:
40: if [ $use_pari != 0 ]; then
41: libname=$libname"_pari"
42: echo "#define USE_PARI" >> include/config.h
43: fi
44:
45: if [ $use_plot != 0 ]; then
46: libname=$libname"_X"
47: echo "#define USE_PLOT" >> include/config.h
1.1 noro 48: fi
1.2 noro 49:
1.4 ! saito 50: if [ $use_interval != 0 ]; then
! 51: libname=$libname"_itv"
! 52: echo "#define USE_INTERVAL" >> include/config.h
! 53: fi
! 54:
! 55: if [ $use_fep != 0 ]; then
! 56: echo "#define USE_FEP" >> include/config.h
! 57: fi
! 58:
1.2 noro 59: echo LIBASIR=$libname.a >> include/config.h
1.4 ! saito 60:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>