[BACK]Return to configure.ac CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2018

Annotation of OpenXM_contrib2/asir2018/configure.ac, Revision 1.2

1.2     ! kondoh      1: dnl $OpenXM: OpenXM_contrib2/asir2018/configure.ac,v 1.1 2018/09/21 07:06:51 noro Exp $
1.1       noro        2:
                      3: AC_INIT(asir,1.15)
                      4: AC_CONFIG_SRCDIR([LICENSE])
                      5: AC_PREREQ(2.69)
                      6: AC_CANONICAL_TARGET
                      7: AM_INIT_AUTOMAKE
                      8: AM_MAINTAINER_MODE
                      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_ARG_ENABLE([shared],
                     20: [  --enable-shared         enable linking shared libraries.  [[no]]],
                     21: [enable_shared=yes],[enable_shared=no])
                     22:
                     23: if test "${enable_shared:=no}" != no ; then
                     24:    true
                     25: fi
                     26:
                     27: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
                     28:     if test "${ac_cv_prog_cc_g}" = yes; then
                     29:         CFLAGS="-g -O"
                     30:     else
                     31:         CFLAGS="-O"
                     32:     fi
                     33: elif test `basename ./"${CC}"` = "icc" ; then
                     34:     CFLAGS="-g -O"
                     35: fi
                     36:
                     37: GC=gc-7.4.2
                     38: AC_ARG_WITH([asir-gc],
                     39: [  --with-asir-gc          modify Boehm's GC [[yes]]],
                     40: [with_asir_gc=${withval}],[with_asir_gc=yes])
                     41: if test ${with_asir_gc:=yes} != no; then
                     42:    ASIR_GCLIB=libasir-gc.a
                     43:    GCINC='-I${top_srcdir}/${GC}/include'
                     44: else
                     45:    GCLIB='-L${prefix}/lib -lgc'
                     46:    GCINC='-I${prefix}/include'
                     47:    AC_DEFINE([NO_ASIR_GC])
                     48: fi
                     49: dnl GC_CONFIGURE_ARGS=--disable-threads --enable-shared=no
                     50: GC_CONFIGURE_ARGS="--disable-threads --enable-large-config"
                     51: if test -n "${host_alias}" ; then
                     52:     GC_CONFIGURE_ARGS="--host=${host_alias} ${GC_CONFIGURE_ARGS}"
                     53: fi
                     54:
                     55: AC_DEFINE([GC7])
                     56: AC_SUBST([ASIR_GCLIB])
                     57: AC_SUBST([GCLIB])
                     58: AC_SUBST([GCINC])
                     59: AC_SUBST([GC])
                     60: AC_SUBST([GC_CONFIGURE_ARGS])
                     61:
                     62: AC_ARG_WITH([distdir],
                     63: [  --with-distdir          specify the spool for fetching. [[no]]],
                     64: [with_distdir=${withval}],[with_distdir=no])
                     65: GC_DISTDIR='${prefix}/../OpenXM_dist'
                     66: if test ${with_distdir:=no} != no -a ${with_distdir} != yes ; then
                     67:     GC_DISTDIR=${with_distdir}
                     68: fi
                     69: AC_SUBST([GC_DISTDIR])
                     70:
                     71: libasir_postfix=""
                     72: AC_ARG_WITH([pari],
                     73: [  --with-pari             use the PARI library. [[no]]],
                     74: [with_pari=${withval}],[with_pari=no])
                     75:
                     76: if test ${with_pari:=no} != no ; then
                     77:     libasir_postfix=${libasir_postfix}_pari
                     78:     PARIINC='-I${prefix}/include/pari'
                     79:     if test "${enable_shared}" != yes ; then
                     80:         PARILIB='${libdir}/libpari.a'
                     81:     else
                     82:         PARILIB='-L${libdir} -lpari'
                     83:     fi
                     84:     AC_DEFINE([PARI])
                     85: fi
                     86: AC_SUBST([PARIINC])
                     87: AC_SUBST([PARILIB])
                     88:
                     89: AC_CHECK_TYPES([unsigned long long])
                     90: AC_CHECK_SIZEOF(long)
                     91: if test "${ac_cv_sizeof_long}" = 8; then
                     92:     AC_DEFINE([LONG_IS_64BIT])
                     93: else
                     94:     AC_DEFINE([LONG_IS_32BIT])
                     95: fi
                     96: if test "${no_x}" != yes ; then
                     97:     if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
                     98:            XPMLIB="-lXpm"
                     99:     fi
                    100:     AC_ARG_ENABLE([plot],
                    101:     [  --enable-plot           enable plot feature. [[no]]],
                    102:     [enable_plot=yes],[enable_plot=no])
                    103: fi
                    104: AC_SUBST([XPMLIB])
                    105:
                    106: if test ${enable_plot:=no} != no ; then
                    107:     libasir_postfix=${libasir_postfix}_X
                    108:     AC_DEFINE([DO_PLOT])
                    109: fi
                    110: AM_CONDITIONAL([USE_PLOT],[test "$enable_plot" = yes])
                    111:
1.2     ! kondoh    112: GMPLIB="-L${libdir} -lmpfi -lmpc -lmpfr -lgmp"
1.1       noro      113: AC_ARG_ENABLE([static_gmp],
                    114: [  --enable-static-gmp     force to link statically with gmp. [[no]]],
                    115: [enable_static_gmp=yes],[enable_static_gmp=no])
                    116: if test ${enable_static_gmp:=no} != no ; then
1.2     ! kondoh    117:     GMPLIB='${libdir}/libmpfi.a ${libdir}/libmpc.a ${libdir}/libmpfr.a ${libdir}/libgmp.a'
1.1       noro      118: fi
                    119: AC_SUBST([GMPLIB])
                    120:
                    121: AC_ARG_ENABLE([interval],
                    122: [  --enable-interval       enable interval feature. [[no]]],
                    123: [enable_interval=${enableval}],[enable_interval=no])
                    124:
                    125: if test ${enable_interval:=no} != no ; then
                    126:     libasir_postfix=${libasir_postfix}_itv
                    127:     AC_DEFINE([INTERVAL])
                    128:     if test "${enable_interval}" = debug ; then
                    129:        AC_DEFINE([ITVDEBUG])
                    130:     fi
                    131: fi
                    132:
                    133: dnl AC_ARG_ENABLE([fep],
                    134: dnl [  --enable-fep            enable fep for human interfaces. [[no]]],
                    135: dnl [enable_fep=yes],[enable_fep=no])
                    136:
                    137: if test "${enable_fep:=no}" != no ; then
                    138:     AC_DEFINE([FEP])
                    139:     FEPLIB="-lreadline -ltermcap"
                    140: fi
                    141: AC_SUBST([FEPLIB])
                    142:
                    143: AC_ARG_ENABLE([fft-float],
                    144: [  --enable-fft-float      enable FFT-FLOAT feature. [[no]]],
                    145: [enable_fft_float=yes],[enable_fft_float=no])
                    146:
                    147: if test "${enable_fft_float:=no}" != no ; then
                    148:     AC_DEFINE([USE_FLOAT])
                    149: fi
                    150:
                    151: AC_ARG_WITH([mpi],
                    152: [  --with-mpi              use the MPI library. [[no]]],
                    153: [with_mpi=${withval}],[with_mpi=no])
                    154:
                    155: if test "${with_mpi:=no}" != no ; then
                    156:     AC_DEFINE([MPI])
                    157: fi
                    158:
                    159: dnl AC_ARG_WITH([lapack],
                    160: dnl [  --with-lapack           use the LAPACK library. [[no]]],
                    161: dnl [with_lapack=${withval}],[with_lapack=no])
                    162:
                    163: if test "${with_lapack:=no}" != no ; then
                    164:     LAPACKLIB="-llapack -lblas -lg2c"
                    165:     AC_DEFINE([LAPACK])
                    166: fi
                    167: AC_SUBST([LAPACKLIB])
                    168:
                    169: AC_SUBST([libasir_postfix])
                    170:
                    171: dnl Object files in assembly languages for each micro processors.
                    172: dnl i386_elf_obj:  for FreeBSD 3.x or later and Linux 2.x
                    173: dnl i386_aout_obj: for FreeBSD 2.x, Linux 1.x, and Cygwin
                    174: dnl sparc_v8_obj:  for Sparc V8 processor on Solaris 2.x
                    175: dnl sparc_v9_obj:  for Sparc V9 processor on Solaris 2.x
                    176: dnl generic_obj:   for 32bits/64bits generic micro processors
                    177:
                    178: i386_elf_obj=asmi_l.o
                    179: i386_aout_obj=asmi.o
                    180: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
                    181: sparc_v9_obj=asmalpha.o
                    182: generic_obj=asmalpha.o
                    183:
                    184: case "${host}" in
                    185: [i[3-6]86-*-freebsd[3-9].*])
                    186:     asm_obj="${i386_elf_obj}"
                    187:     ;;
                    188: [i[3-6]86-*-linux*]|x86-*-linux*)
                    189:     asm_obj="${i386_elf_obj}"
                    190:     AC_DEFINE([_BSD_SOURCE])
                    191:     ;;
                    192: [i[3-6]86-*-cygwin*]|x86-*-cygwin*)
                    193:     asm_obj="${i386_aout_obj}"
                    194:     ;;
                    195: [i[3-6]86-*-interix*])
                    196:     asm_obj="${i386_aout_obj}"
                    197:     AC_DEFINE([_ALL_SOURCE])
                    198:     ;;
                    199: sparc-sun-solaris2.*)
                    200:     case "`uname -m`" in
                    201:     [sun4[dm]]) asm_obj="${sparc_v8_obj}" ;;
                    202:     sun4u*)     asm_obj="${sparc_v9_obj}"
                    203:                 if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
                    204:                     CFLAGS="${CFLAGS} -m64"
                    205:                 fi
                    206:                 AC_SUBST([USE_GC_SPARC64])
                    207:                 ;;
                    208:     *)          asm_obj="${generic_obj}"  ;;
                    209:     esac
                    210:     AC_DEFINE([SYSV])
                    211:     ;;
                    212: *-apple-darwin*)
                    213:     asm_obj="${generic_obj}"
                    214:     AC_DEFINE([__DARWIN__])
                    215:     if test -d /usr/X11/include -a x"${X_CFLAGS}" = x ; then
                    216:         X_CFLAGS=-I/usr/X11/include
                    217:     fi
                    218:     ;;
                    219: arm*-*-linux*)
                    220:     asm_obj="${generic_obj}"
                    221:     if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
                    222:         CFLAGS="${CFLAGS} -fsigned-char"
                    223:     fi
                    224:     ;;
                    225: *-*-mingw*)
                    226:        WSLIB="-lws2_32"
                    227:     asm_obj="${generic_obj}"
                    228:     ;;
                    229: *)
                    230:     asm_obj="${generic_obj}"
                    231:     ;;
                    232: esac
                    233:
                    234: AC_SUBST([asm_obj])
                    235: AC_SUBST([WSLIB])
                    236:
                    237: AC_CHECK_FUNCS(sigaction)
                    238: dnl for Solaris 2.x
                    239: AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)])
                    240: AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)])
                    241:
                    242: AC_CONFIG_FILES([Makefile engine/Makefile asm/Makefile builtin/Makefile fft/Makefile include/Makefile io/Makefile lib/Makefile parse/Makefile plot/Makefile])
                    243: AC_OUTPUT

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>