[BACK]Return to configure.in CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000

Annotation of OpenXM_contrib2/asir2000/configure.in, Revision 1.24

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