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

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

1.3     ! ohara       1: dnl $OpenXM: OpenXM_contrib2/asir2018/configure.ac,v 1.2 2019/11/12 10:53:22 kondoh Exp $
1.1       noro        2:
1.3     ! ohara       3: AC_INIT(asir,1.16)
1.1       noro        4: AC_CONFIG_SRCDIR([LICENSE])
                      5: AC_PREREQ(2.69)
                      6: AC_CANONICAL_TARGET
                      7: AM_INIT_AUTOMAKE
                      8: AM_MAINTAINER_MODE
1.3     ! ohara       9: LT_INIT
1.1       noro       10:
                     11: AC_PROG_CC
                     12: AC_PROG_INSTALL
                     13: AC_PROG_LN_S
                     14: AC_PROG_RANLIB
                     15: AC_PROG_YACC
1.3     ! ohara      16: AC_PROG_MKDIR_P
1.1       noro       17:
                     18: AC_PATH_XTRA
                     19:
                     20: AC_ARG_ENABLE([shared],
                     21: [  --enable-shared         enable linking shared libraries.  [[no]]],
                     22: [enable_shared=yes],[enable_shared=no])
                     23:
                     24: if test "${enable_shared:=no}" != no ; then
                     25:    true
                     26: fi
                     27:
                     28: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
                     29:     if test "${ac_cv_prog_cc_g}" = yes; then
                     30:         CFLAGS="-g -O"
                     31:     else
                     32:         CFLAGS="-O"
                     33:     fi
                     34: elif test `basename ./"${CC}"` = "icc" ; then
                     35:     CFLAGS="-g -O"
                     36: fi
                     37:
                     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
1.3     ! ohara      42:    GCLIB='-L${prefix}/lib -lasir-gc'
1.1       noro       43: else
                     44:    GCLIB='-L${prefix}/lib -lgc'
                     45:    AC_DEFINE([NO_ASIR_GC])
                     46: fi
1.3     ! ohara      47: GCINC='-I${prefix}/include'
1.1       noro       48: AC_DEFINE([GC7])
                     49: AC_SUBST([GCLIB])
                     50: AC_SUBST([GCINC])
                     51:
                     52: AC_CHECK_TYPES([unsigned long long])
                     53: AC_CHECK_SIZEOF(long)
                     54: if test "${ac_cv_sizeof_long}" = 8; then
                     55:     AC_DEFINE([LONG_IS_64BIT])
                     56: else
                     57:     AC_DEFINE([LONG_IS_32BIT])
                     58: fi
                     59: if test "${no_x}" != yes ; then
                     60:     if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
                     61:            XPMLIB="-lXpm"
                     62:     fi
                     63:     AC_ARG_ENABLE([plot],
                     64:     [  --enable-plot           enable plot feature. [[no]]],
                     65:     [enable_plot=yes],[enable_plot=no])
                     66: fi
                     67: AC_SUBST([XPMLIB])
                     68:
1.3     ! ohara      69: dnl sufx is suffix for libasir
        !            70: sufx=""
1.1       noro       71: if test ${enable_plot:=no} != no ; then
1.3     ! ohara      72:     sufx=${sufx}_X
1.1       noro       73:     AC_DEFINE([DO_PLOT])
                     74: fi
                     75: AM_CONDITIONAL([USE_PLOT],[test "$enable_plot" = yes])
                     76:
1.2       kondoh     77: GMPLIB="-L${libdir} -lmpfi -lmpc -lmpfr -lgmp"
1.1       noro       78: AC_ARG_ENABLE([static_gmp],
                     79: [  --enable-static-gmp     force to link statically with gmp. [[no]]],
                     80: [enable_static_gmp=yes],[enable_static_gmp=no])
                     81: if test ${enable_static_gmp:=no} != no ; then
1.2       kondoh     82:     GMPLIB='${libdir}/libmpfi.a ${libdir}/libmpc.a ${libdir}/libmpfr.a ${libdir}/libgmp.a'
1.1       noro       83: fi
                     84: AC_SUBST([GMPLIB])
                     85:
                     86: AC_ARG_ENABLE([interval],
                     87: [  --enable-interval       enable interval feature. [[no]]],
                     88: [enable_interval=${enableval}],[enable_interval=no])
                     89:
                     90: if test ${enable_interval:=no} != no ; then
1.3     ! ohara      91:     sufx=${sufx}_itv
1.1       noro       92:     AC_DEFINE([INTERVAL])
                     93:     if test "${enable_interval}" = debug ; then
                     94:        AC_DEFINE([ITVDEBUG])
                     95:     fi
                     96: fi
                     97:
                     98: dnl AC_ARG_ENABLE([fep],
                     99: dnl [  --enable-fep            enable fep for human interfaces. [[no]]],
                    100: dnl [enable_fep=yes],[enable_fep=no])
                    101:
                    102: if test "${enable_fep:=no}" != no ; then
                    103:     AC_DEFINE([FEP])
                    104:     FEPLIB="-lreadline -ltermcap"
                    105: fi
                    106: AC_SUBST([FEPLIB])
                    107:
                    108: AC_ARG_ENABLE([fft-float],
                    109: [  --enable-fft-float      enable FFT-FLOAT feature. [[no]]],
                    110: [enable_fft_float=yes],[enable_fft_float=no])
                    111:
                    112: if test "${enable_fft_float:=no}" != no ; then
                    113:     AC_DEFINE([USE_FLOAT])
                    114: fi
                    115:
                    116: AC_ARG_WITH([mpi],
                    117: [  --with-mpi              use the MPI library. [[no]]],
                    118: [with_mpi=${withval}],[with_mpi=no])
                    119:
                    120: if test "${with_mpi:=no}" != no ; then
                    121:     AC_DEFINE([MPI])
                    122: fi
                    123:
                    124: dnl AC_ARG_WITH([lapack],
                    125: dnl [  --with-lapack           use the LAPACK library. [[no]]],
                    126: dnl [with_lapack=${withval}],[with_lapack=no])
                    127:
                    128: if test "${with_lapack:=no}" != no ; then
                    129:     LAPACKLIB="-llapack -lblas -lg2c"
                    130:     AC_DEFINE([LAPACK])
                    131: fi
                    132: AC_SUBST([LAPACKLIB])
                    133:
1.3     ! ohara     134: AC_SUBST([sufx])
1.1       noro      135:
                    136: case "${host}" in
                    137: [i[3-6]86-*-linux*]|x86-*-linux*)
                    138:     AC_DEFINE([_BSD_SOURCE])
                    139:     ;;
1.3     ! ohara     140: arm*-*-linux*)
        !           141:     if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
        !           142:         CFLAGS="${CFLAGS} -fsigned-char"
        !           143:     fi
1.1       noro      144:     ;;
1.3     ! ohara     145: [*-*-interix*])
1.1       noro      146:     AC_DEFINE([_ALL_SOURCE])
                    147:     ;;
                    148: sparc-sun-solaris2.*)
                    149:     case "`uname -m`" in
1.3     ! ohara     150:     sun4u*)     if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
1.1       noro      151:                     CFLAGS="${CFLAGS} -m64"
                    152:                 fi
                    153:                 AC_SUBST([USE_GC_SPARC64])
                    154:                 ;;
                    155:     esac
                    156:     AC_DEFINE([SYSV])
                    157:     ;;
                    158: *-apple-darwin*)
                    159:     AC_DEFINE([__DARWIN__])
                    160:     if test -d /usr/X11/include -a x"${X_CFLAGS}" = x ; then
                    161:         X_CFLAGS=-I/usr/X11/include
                    162:     fi
                    163:     ;;
                    164: *-*-mingw*)
                    165:        WSLIB="-lws2_32"
                    166:     ;;
                    167: esac
                    168: AC_SUBST([WSLIB])
                    169:
                    170: AC_CHECK_FUNCS(sigaction)
                    171: dnl for Solaris 2.x
                    172: AC_CHECK_FUNC(socket, , [AC_CHECK_LIB(socket,socket)])
                    173: AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl,gethostbyname)])
                    174:
1.3     ! ohara     175: AC_CONFIG_FILES([Makefile])
1.1       noro      176: AC_OUTPUT

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