Annotation of OpenXM_contrib2/asir2000/configure.in, Revision 1.29
1.29 ! ohara 1: dnl $OpenXM: OpenXM_contrib2/asir2000/configure.in,v 1.28 2008/08/08 05:47:21 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:
1.1 ohara 70: libasir_postfix=""
71: AC_ARG_WITH([pari],
72: [ --with-pari use the PARI library. [[no]]],
73: [with_pari=${withval}],[with_pari=no])
74:
75: if test ${with_pari:=no} != no ; then
1.29 ! ohara 76: if test "${with_pari}" = new -o "${with_pari}" = 2.3 ; then
! 77: AC_DEFINE([PARI23])
! 78: fi
1.1 ohara 79: libasir_postfix=${libasir_postfix}_pari
80: PARIINC='-I${prefix}/include/pari'
81: if test "${enable_shared}" != yes ; then
1.28 ohara 82: PARILIB='${prefix}'"/lib/libpari.a"
1.1 ohara 83: else
1.28 ohara 84: PARILIB='-L${prefix}/lib'" -lpari"
1.1 ohara 85: fi
86: AC_DEFINE([PARI])
87: fi
88: AC_SUBST([PARIINC])
89: AC_SUBST([PARILIB])
90:
1.7 ohara 91: AC_CHECK_TYPES([unsigned long long])
1.5 noro 92: AC_CHECK_SIZEOF(long)
1.15 noro 93: if test "${ac_cv_sizeof_long}" = 8; then
1.5 noro 94: AC_DEFINE([LONG_IS_64BIT])
95: else
96: AC_DEFINE([LONG_IS_32BIT])
97: fi
1.1 ohara 98: if test "${no_x}" != yes ; then
1.14 ohara 99: if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
1.10 ohara 100: XPMLIB="-lXpm"
101: fi
1.1 ohara 102: AC_ARG_ENABLE([plot],
103: [ --enable-plot enable plot feature. [[no]]],
104: [enable_plot=yes],[enable_plot=no])
105: fi
1.10 ohara 106: AC_SUBST([XPMLIB])
1.1 ohara 107:
108: if test ${enable_plot:=no} != no ; then
109: libasir_postfix=${libasir_postfix}_X
110: AC_DEFINE([DO_PLOT])
111: fi
112: AM_CONDITIONAL([USE_PLOT],[test "$enable_plot" = yes])
113:
114: AC_ARG_ENABLE([interval],
115: [ --enable-interval enable interval feature. [[no]]],
116: [enable_interval=${enableval}],[enable_interval=no])
117:
118: if test ${enable_interval:=no} != no ; then
119: libasir_postfix=${libasir_postfix}_itv
120: AC_DEFINE([INTERVAL])
121: if test "${enable_interval}" = debug ; then
122: AC_DEFINE([ITVDEBUG])
123: fi
124: fi
125:
126: dnl AC_ARG_ENABLE([fep],
127: dnl [ --enable-fep enable fep for human interfaces. [[no]]],
128: dnl [enable_fep=yes],[enable_fep=no])
129:
130: if test "${enable_fep:=no}" != no ; then
131: AC_DEFINE([FEP])
132: FEPLIB="-lreadline -ltermcap"
133: fi
134: AC_SUBST([FEPLIB])
135:
136: AC_ARG_ENABLE([fft-float],
137: [ --enable-fft-float enable FFT-FLOAT feature. [[no]]],
138: [enable_fft_float=yes],[enable_fft_float=no])
139:
140: if test "${enable_fft_float:=no}" != no ; then
141: AC_DEFINE([USE_FLOAT])
142: fi
143:
144: dnl AC_ARG_WITH([mpi],
145: dnl [ --with-mpi use the MPI library. [[no]]],
146: dnl [with_mpi=${withval}],[with_mpi=no])
147:
148: if test "${with_mpi:=no}" != no ; then
149: MPIINC="-I/opt/FJSVmpi2/include"
150: MPILIB="-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread"
151: AC_DEFINE([MPI])
152: fi
153: AC_SUBST([MPIINC])
154: AC_SUBST([MPILIB])
155:
156: dnl AC_ARG_WITH([lapack],
157: dnl [ --with-lapack use the LAPACK library. [[no]]],
158: dnl [with_lapack=${withval}],[with_lapack=no])
159:
160: if test "${with_lapack:=no}" != no ; then
1.22 saito 161: LAPACKLIB="-llapack -lblas -lg2c"
1.1 ohara 162: AC_DEFINE([LAPACK])
163: fi
164: AC_SUBST([LAPACKLIB])
165:
166: AC_SUBST([libasir_postfix])
167:
168: dnl Object files in assembly languages for each micro processors.
169: dnl i386_elf_obj: for FreeBSD 3.x or later and Linux 2.x
170: dnl i386_aout_obj: for FreeBSD 2.x, Linux 1.x, and Cygwin
171: dnl sparc_v8_obj: for Sparc V8 processor on Solaris 2.x
172: dnl sparc_v9_obj: for Sparc V9 processor on Solaris 2.x
173: dnl generic_obj: for 32bits/64bits generic micro processors
174:
175: i386_elf_obj=asmi_l.o
176: i386_aout_obj=asmi.o
177: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
1.19 noro 178: sparc_v9_obj=asmalpha.o
1.1 ohara 179: generic_obj=asmalpha.o
180:
181: case "${host}" in
1.9 ohara 182: [i[3-6]86-*-freebsd[3-9].*])
1.1 ohara 183: asm_obj="${i386_elf_obj}"
1.9 ohara 184: ;;
185: [i[3-6]86-*-linux*]|x86-*-linux*)
186: asm_obj="${i386_elf_obj}"
1.13 ohara 187: AC_DEFINE([_BSD_SOURCE])
1.1 ohara 188: ;;
189: *-*-cygwin*)
190: asm_obj="${i386_aout_obj}"
1.16 ohara 191: ;;
192: [i[3-6]86-*-interix*])
1.17 ohara 193: asm_obj="${i386_aout_obj}"
1.16 ohara 194: AC_DEFINE([_ALL_SOURCE])
1.1 ohara 195: ;;
196: sparc-sun-solaris2.*)
197: case "`uname -m`" in
198: [sun4[dm]]) asm_obj="${sparc_v8_obj}" ;;
1.20 ohara 199: sun4u*) asm_obj="${sparc_v9_obj}"
200: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
201: CFLAGS="${CFLAGS} -m64"
202: fi
203: AC_SUBST([USE_GC_SPARC64])
204: ;;
1.1 ohara 205: *) asm_obj="${generic_obj}" ;;
206: esac
207: AC_DEFINE([SYSV])
1.2 ohara 208: ;;
1.24 ohara 209: *-apple-darwin*)
1.2 ohara 210: asm_obj="${generic_obj}"
211: AC_DEFINE([__DARWIN__])
1.8 ohara 212: ;;
213: arm*-*-linux*)
214: asm_obj="${generic_obj}"
215: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
216: CFLAGS="${CFLAGS} -fsigned-char"
217: fi
1.1 ohara 218: ;;
219: *)
220: asm_obj="${generic_obj}"
221: ;;
222: esac
223:
224: AC_SUBST([asm_obj])
225:
226: dnl for Solaris 2.x
227: AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)])
228: AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)])
229:
1.25 ohara 230: AC_CONFIG_FILES([Makefile engine/Makefile asm/Makefile builtin/Makefile fft/Makefile include/Makefile io/Makefile lib/Makefile parse/Makefile plot/Makefile])
231: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>