Annotation of OpenXM_contrib2/asir2000/configure.in, Revision 1.6
1.6 ! ohara 1: dnl $OpenXM: OpenXM_contrib2/asir2000/configure.in,v 1.5 2003/03/07 05:40:16 noro Exp $
1.1 ohara 2:
3: AC_INIT([LICENSE])
4: AC_PREREQ(2.53)
1.5 noro 5: AM_INIT_AUTOMAKE(asir, 20030307)
1.1 ohara 6:
7: AC_CANONICAL_SYSTEM
8:
9: dnl AM_PROG_AS
10: AC_PROG_CC
11: AC_PROG_INSTALL
12: AC_PROG_LN_S
13: AC_PROG_RANLIB
14: AC_PROG_YACC
15:
16: AC_PATH_XTRA
17:
18: AC_DEFINE([HMEXT])
19:
20: AC_ARG_ENABLE([shared],
21: [ --enable-shared enable linking shared libraries. [[no]]],
22: [enable_shared=yes],[enable_shared=no])
23:
24: if test "${enable_shared:=no}" != no ; then
25: true
26: fi
1.4 noro 27:
1.6 ! ohara 28: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
! 29: if test "${ac_cv_prog_cc_g}" = yes; then
! 30: CFLAGS="-g -O"
! 31: else
! 32: CFLAGS="-O"
! 33: fi
! 34: fi
1.1 ohara 35:
36: libasir_postfix=""
37: AC_ARG_WITH([pari],
38: [ --with-pari use the PARI library. [[no]]],
39: [with_pari=${withval}],[with_pari=no])
40:
41: if test ${with_pari:=no} != no ; then
42: libasir_postfix=${libasir_postfix}_pari
1.5 noro 43: if test ${with_pari} = new ; then
44: libpari=pari-2.2
45: else
1.1 ohara 46: libpari=pari
47: fi
48: PARIINC='-I${prefix}/include/pari'
49: if test "${enable_shared}" != yes ; then
50: PARILIB='${prefix}'"/lib/lib${libpari}.a"
51: else
52: PARILIB='-L${prefix}/lib'" -l${libpari}"
53: fi
54: AC_DEFINE([PARI])
55: fi
56: AC_SUBST([PARIINC])
57: AC_SUBST([PARILIB])
58:
1.5 noro 59: AC_CHECK_SIZEOF(long)
60: if test SIZEOF_LONG = 8; then
61: AC_DEFINE([LONG_IS_64BIT])
62: else
63: AC_DEFINE([LONG_IS_32BIT])
64: fi
1.1 ohara 65: if test "${no_x}" != yes ; then
66: AC_ARG_ENABLE([plot],
67: [ --enable-plot enable plot feature. [[no]]],
68: [enable_plot=yes],[enable_plot=no])
69: fi
70:
71: if test ${enable_plot:=no} != no ; then
72: libasir_postfix=${libasir_postfix}_X
73: AC_DEFINE([DO_PLOT])
74: fi
75: AM_CONDITIONAL([USE_PLOT],[test "$enable_plot" = yes])
76:
77: AC_ARG_ENABLE([interval],
78: [ --enable-interval enable interval feature. [[no]]],
79: [enable_interval=${enableval}],[enable_interval=no])
80:
81: if test ${enable_interval:=no} != no ; then
82: libasir_postfix=${libasir_postfix}_itv
83: AC_DEFINE([INTERVAL])
84: if test "${enable_interval}" = debug ; then
85: AC_DEFINE([ITVDEBUG])
86: fi
87: fi
88:
89: dnl AC_ARG_ENABLE([fep],
90: dnl [ --enable-fep enable fep for human interfaces. [[no]]],
91: dnl [enable_fep=yes],[enable_fep=no])
92:
93: if test "${enable_fep:=no}" != no ; then
94: AC_DEFINE([FEP])
95: FEPLIB="-lreadline -ltermcap"
96: fi
97: AC_SUBST([FEPLIB])
98:
99: AC_ARG_ENABLE([fft-float],
100: [ --enable-fft-float enable FFT-FLOAT feature. [[no]]],
101: [enable_fft_float=yes],[enable_fft_float=no])
102:
103: if test "${enable_fft_float:=no}" != no ; then
104: AC_DEFINE([USE_FLOAT])
105: fi
106:
107: dnl AC_ARG_WITH([mpi],
108: dnl [ --with-mpi use the MPI library. [[no]]],
109: dnl [with_mpi=${withval}],[with_mpi=no])
110:
111: if test "${with_mpi:=no}" != no ; then
112: MPIINC="-I/opt/FJSVmpi2/include"
113: MPILIB="-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread"
114: AC_DEFINE([MPI])
115: fi
116: AC_SUBST([MPIINC])
117: AC_SUBST([MPILIB])
118:
119: dnl AC_ARG_WITH([lapack],
120: dnl [ --with-lapack use the LAPACK library. [[no]]],
121: dnl [with_lapack=${withval}],[with_lapack=no])
122:
123: if test "${with_lapack:=no}" != no ; then
124: LAPACKLIB="-llapack -lblas -lI77 -lF77"
125: AC_DEFINE([LAPACK])
126: fi
127: AC_SUBST([LAPACKLIB])
128:
129: AC_SUBST([libasir_postfix])
130:
131: dnl Object files in assembly languages for each micro processors.
132: dnl i386_elf_obj: for FreeBSD 3.x or later and Linux 2.x
133: dnl i386_aout_obj: for FreeBSD 2.x, Linux 1.x, and Cygwin
134: dnl sparc_v8_obj: for Sparc V8 processor on Solaris 2.x
135: dnl sparc_v9_obj: for Sparc V9 processor on Solaris 2.x
136: dnl generic_obj: for 32bits/64bits generic micro processors
137:
138: i386_elf_obj=asmi_l.o
139: i386_aout_obj=asmi.o
140: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
141: sparc_v9_obj="sparc-2.o asm5-2.o edr-2.o"
142: generic_obj=asmalpha.o
143:
144: case "${host}" in
145: [i[3-6]86-*-freebsd[3-9].*]|[i[3-6]86-*-linux*])
146: asm_obj="${i386_elf_obj}"
147: ;;
148: *-*-cygwin*)
149: asm_obj="${i386_aout_obj}"
150: ;;
151: sparc-sun-solaris2.*)
152: case "`uname -m`" in
153: [sun4[dm]]) asm_obj="${sparc_v8_obj}" ;;
1.3 ohara 154: sun4u*) asm_obj="${sparc_v9_obj}" ;;
1.1 ohara 155: *) asm_obj="${generic_obj}" ;;
156: esac
157: AC_DEFINE([SYSV])
1.2 ohara 158: ;;
159: powerpc-apple-darwin*)
160: asm_obj="${generic_obj}"
161: AC_DEFINE([__DARWIN__])
1.1 ohara 162: ;;
163: *)
164: asm_obj="${generic_obj}"
165: ;;
166: esac
167:
168: AC_SUBST([asm_obj])
169:
170: dnl for Solaris 2.x
171: AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)])
172: AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)])
173:
174: AC_OUTPUT([Makefile engine/Makefile asm/Makefile builtin/Makefile fft/Makefile include/Makefile io/Makefile lib/Makefile parse/Makefile plot/Makefile])
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>