Annotation of OpenXM_contrib2/asir2000/configure.in, Revision 1.26
1.26 ! ohara 1: dnl $OpenXM: OpenXM_contrib2/asir2000/configure.in,v 1.25 2007/11/11 08:44:12 ohara Exp $
1.1 ohara 2:
1.25 ohara 3: AC_INIT
4: AC_CONFIG_SRCDIR([LICENSE])
5: AC_PREREQ(2.61)
6: AC_CANONICAL_TARGET
1.5 noro 7: AM_INIT_AUTOMAKE(asir, 20030307)
1.11 ohara 8: AM_MAINTAINER_MODE
1.1 ohara 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
1.18 ohara 35: elif test `basename ./"${CC}"` = "icc" ; then
36: CFLAGS="-g -O"
1.6 ohara 37: fi
1.23 ohara 38:
1.25 ohara 39: GC=gc6.8
40: dnl GC_CONFIGURE_ARGS=--disable-threads --enable-shared=no
41: GC_CONFIGURE_ARGS=--disable-threads
42: if [ -n "${host_alias}" ]; then
43: GC_CONFIGURE_ARGS="--host=${host_alias} ${GC_CONFIGURE_ARGS}"
44: fi
1.26 ! ohara 45: AC_ARG_WITH([gc7],
! 46: [ --with-gc7 use Boehm's GC 7.x. [[no]]],
! 47: [with_gc7=${withval}],[with_gc7=no])
! 48: if test ${with_gc7:=no} != no; then
! 49: case "${with_gc7}" in
! 50: [7*]) GC_VERSION=${with_gc7} ;;
! 51: *) GC_VERSION=7.0 ;;
! 52: esac
! 53: GC=gc-${GC_VERSION}
! 54: AC_DEFINE([GC7])
! 55: USE_GC7="yes"
! 56: fi
1.25 ohara 57: AC_SUBST([GC])
58: AC_SUBST([GC_CONFIGURE_ARGS])
1.26 ! ohara 59: AM_CONDITIONAL([USE_GC7],[test "$with_gc7" != no])
1.25 ohara 60:
1.23 ohara 61: AC_ARG_WITH([distdir],
62: [ --with-distdir specify the spool for fetching. [[no]]],
63: [with_distdir=${withval}],[with_distdir=no])
64: GC_DISTDIR='${prefix}/../OpenXM_dist'
65: if test ${with_distdir:=no} != no -a ${with_distdir} != yes ; then
66: GC_DISTDIR=${with_distdir}
67: fi
68: AC_SUBST([GC_DISTDIR])
1.12 ohara 69:
70: AC_ARG_ENABLE([gc-zeropage],
71: [ --enable-gc-zeropage enable to avoid the kernel zeropage bug. [[no]]],
72: [enable_gc_zeropage=yes],[enable_gc_zeropage=no])
73:
74: if test "${enable_gc_zeropage:=no}" != no ; then
75: USE_GC_ZEROPAGE="yes"
76: fi
77: AC_SUBST([USE_GC_ZEROPAGE])
1.1 ohara 78:
79: libasir_postfix=""
80: AC_ARG_WITH([pari],
81: [ --with-pari use the PARI library. [[no]]],
82: [with_pari=${withval}],[with_pari=no])
83:
84: if test ${with_pari:=no} != no ; then
85: libasir_postfix=${libasir_postfix}_pari
1.5 noro 86: if test ${with_pari} = new ; then
87: libpari=pari-2.2
88: else
1.1 ohara 89: libpari=pari
90: fi
91: PARIINC='-I${prefix}/include/pari'
92: if test "${enable_shared}" != yes ; then
93: PARILIB='${prefix}'"/lib/lib${libpari}.a"
94: else
95: PARILIB='-L${prefix}/lib'" -l${libpari}"
96: fi
97: AC_DEFINE([PARI])
98: fi
99: AC_SUBST([PARIINC])
100: AC_SUBST([PARILIB])
101:
1.7 ohara 102: AC_CHECK_TYPES([unsigned long long])
1.5 noro 103: AC_CHECK_SIZEOF(long)
1.15 noro 104: if test "${ac_cv_sizeof_long}" = 8; then
1.5 noro 105: AC_DEFINE([LONG_IS_64BIT])
106: else
107: AC_DEFINE([LONG_IS_32BIT])
108: fi
1.1 ohara 109: if test "${no_x}" != yes ; then
1.14 ohara 110: if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
1.10 ohara 111: XPMLIB="-lXpm"
112: fi
1.1 ohara 113: AC_ARG_ENABLE([plot],
114: [ --enable-plot enable plot feature. [[no]]],
115: [enable_plot=yes],[enable_plot=no])
116: fi
1.10 ohara 117: AC_SUBST([XPMLIB])
1.1 ohara 118:
119: if test ${enable_plot:=no} != no ; then
120: libasir_postfix=${libasir_postfix}_X
121: AC_DEFINE([DO_PLOT])
122: fi
123: AM_CONDITIONAL([USE_PLOT],[test "$enable_plot" = yes])
124:
125: AC_ARG_ENABLE([interval],
126: [ --enable-interval enable interval feature. [[no]]],
127: [enable_interval=${enableval}],[enable_interval=no])
128:
129: if test ${enable_interval:=no} != no ; then
130: libasir_postfix=${libasir_postfix}_itv
131: AC_DEFINE([INTERVAL])
132: if test "${enable_interval}" = debug ; then
133: AC_DEFINE([ITVDEBUG])
134: fi
135: fi
136:
137: dnl AC_ARG_ENABLE([fep],
138: dnl [ --enable-fep enable fep for human interfaces. [[no]]],
139: dnl [enable_fep=yes],[enable_fep=no])
140:
141: if test "${enable_fep:=no}" != no ; then
142: AC_DEFINE([FEP])
143: FEPLIB="-lreadline -ltermcap"
144: fi
145: AC_SUBST([FEPLIB])
146:
147: AC_ARG_ENABLE([fft-float],
148: [ --enable-fft-float enable FFT-FLOAT feature. [[no]]],
149: [enable_fft_float=yes],[enable_fft_float=no])
150:
151: if test "${enable_fft_float:=no}" != no ; then
152: AC_DEFINE([USE_FLOAT])
153: fi
154:
155: dnl AC_ARG_WITH([mpi],
156: dnl [ --with-mpi use the MPI library. [[no]]],
157: dnl [with_mpi=${withval}],[with_mpi=no])
158:
159: if test "${with_mpi:=no}" != no ; then
160: MPIINC="-I/opt/FJSVmpi2/include"
161: MPILIB="-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread"
162: AC_DEFINE([MPI])
163: fi
164: AC_SUBST([MPIINC])
165: AC_SUBST([MPILIB])
166:
167: dnl AC_ARG_WITH([lapack],
168: dnl [ --with-lapack use the LAPACK library. [[no]]],
169: dnl [with_lapack=${withval}],[with_lapack=no])
170:
171: if test "${with_lapack:=no}" != no ; then
1.22 saito 172: LAPACKLIB="-llapack -lblas -lg2c"
1.1 ohara 173: AC_DEFINE([LAPACK])
174: fi
175: AC_SUBST([LAPACKLIB])
176:
177: AC_SUBST([libasir_postfix])
178:
179: dnl Object files in assembly languages for each micro processors.
180: dnl i386_elf_obj: for FreeBSD 3.x or later and Linux 2.x
181: dnl i386_aout_obj: for FreeBSD 2.x, Linux 1.x, and Cygwin
182: dnl sparc_v8_obj: for Sparc V8 processor on Solaris 2.x
183: dnl sparc_v9_obj: for Sparc V9 processor on Solaris 2.x
184: dnl generic_obj: for 32bits/64bits generic micro processors
185:
186: i386_elf_obj=asmi_l.o
187: i386_aout_obj=asmi.o
188: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
1.19 noro 189: sparc_v9_obj=asmalpha.o
1.1 ohara 190: generic_obj=asmalpha.o
191:
192: case "${host}" in
1.9 ohara 193: [i[3-6]86-*-freebsd[3-9].*])
1.1 ohara 194: asm_obj="${i386_elf_obj}"
1.9 ohara 195: ;;
196: [i[3-6]86-*-linux*]|x86-*-linux*)
197: asm_obj="${i386_elf_obj}"
1.13 ohara 198: AC_DEFINE([_BSD_SOURCE])
1.1 ohara 199: ;;
200: *-*-cygwin*)
201: asm_obj="${i386_aout_obj}"
1.16 ohara 202: ;;
203: [i[3-6]86-*-interix*])
1.17 ohara 204: asm_obj="${i386_aout_obj}"
205: USE_GC_INTERIX="yes"
206: AC_SUBST([USE_GC_INTERIX])
1.16 ohara 207: AC_DEFINE([_ALL_SOURCE])
1.1 ohara 208: ;;
209: sparc-sun-solaris2.*)
210: case "`uname -m`" in
211: [sun4[dm]]) asm_obj="${sparc_v8_obj}" ;;
1.20 ohara 212: sun4u*) asm_obj="${sparc_v9_obj}"
213: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
214: CFLAGS="${CFLAGS} -m64"
215: fi
216: AC_SUBST([USE_GC_SPARC64])
217: ;;
1.1 ohara 218: *) asm_obj="${generic_obj}" ;;
219: esac
220: AC_DEFINE([SYSV])
1.2 ohara 221: ;;
1.24 ohara 222: *-apple-darwin*)
1.2 ohara 223: asm_obj="${generic_obj}"
224: AC_DEFINE([__DARWIN__])
1.8 ohara 225: ;;
226: arm*-*-linux*)
227: asm_obj="${generic_obj}"
228: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
229: CFLAGS="${CFLAGS} -fsigned-char"
230: fi
1.1 ohara 231: ;;
232: *)
233: asm_obj="${generic_obj}"
234: ;;
235: esac
236:
237: AC_SUBST([asm_obj])
238:
239: dnl for Solaris 2.x
240: AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)])
241: AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)])
242:
1.25 ohara 243: AC_CONFIG_FILES([Makefile engine/Makefile asm/Makefile builtin/Makefile fft/Makefile include/Makefile io/Makefile lib/Makefile parse/Makefile plot/Makefile])
244: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>