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