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