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