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

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

1.7     ! ohara       1: dnl $OpenXM: OpenXM_contrib2/asir2000/configure.in,v 1.6 2003/03/07 08:49:12 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.1       ohara       6:
                      7: AC_CANONICAL_SYSTEM
                      8:
                      9: dnl AM_PROG_AS
                     10: AC_PROG_CC
                     11: AC_PROG_INSTALL
                     12: AC_PROG_LN_S
                     13: AC_PROG_RANLIB
                     14: AC_PROG_YACC
                     15:
                     16: AC_PATH_XTRA
                     17:
                     18: AC_DEFINE([HMEXT])
                     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
1.4       noro       27:
1.6       ohara      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: fi
1.1       ohara      35:
                     36: libasir_postfix=""
                     37: AC_ARG_WITH([pari],
                     38: [  --with-pari             use the PARI library. [[no]]],
                     39: [with_pari=${withval}],[with_pari=no])
                     40:
                     41: if test ${with_pari:=no} != no ; then
                     42:     libasir_postfix=${libasir_postfix}_pari
1.5       noro       43:     if test ${with_pari} = new ; then
                     44:         libpari=pari-2.2
                     45:     else
1.1       ohara      46:         libpari=pari
                     47:     fi
                     48:     PARIINC='-I${prefix}/include/pari'
                     49:     if test "${enable_shared}" != yes ; then
                     50:         PARILIB='${prefix}'"/lib/lib${libpari}.a"
                     51:     else
                     52:         PARILIB='-L${prefix}/lib'" -l${libpari}"
                     53:     fi
                     54:     AC_DEFINE([PARI])
                     55: fi
                     56: AC_SUBST([PARIINC])
                     57: AC_SUBST([PARILIB])
                     58:
1.7     ! ohara      59: AC_CHECK_TYPES([unsigned long long])
1.5       noro       60: AC_CHECK_SIZEOF(long)
                     61: if test SIZEOF_LONG = 8; then
                     62:     AC_DEFINE([LONG_IS_64BIT])
                     63: else
                     64:     AC_DEFINE([LONG_IS_32BIT])
                     65: fi
1.1       ohara      66: if test "${no_x}" != yes ; then
                     67:     AC_ARG_ENABLE([plot],
                     68:     [  --enable-plot           enable plot feature. [[no]]],
                     69:     [enable_plot=yes],[enable_plot=no])
                     70: fi
                     71:
                     72: if test ${enable_plot:=no} != no ; then
                     73:     libasir_postfix=${libasir_postfix}_X
                     74:     AC_DEFINE([DO_PLOT])
                     75: fi
                     76: AM_CONDITIONAL([USE_PLOT],[test "$enable_plot" = yes])
                     77:
                     78: AC_ARG_ENABLE([interval],
                     79: [  --enable-interval       enable interval feature. [[no]]],
                     80: [enable_interval=${enableval}],[enable_interval=no])
                     81:
                     82: if test ${enable_interval:=no} != no ; then
                     83:     libasir_postfix=${libasir_postfix}_itv
                     84:     AC_DEFINE([INTERVAL])
                     85:     if test "${enable_interval}" = debug ; then
                     86:        AC_DEFINE([ITVDEBUG])
                     87:     fi
                     88: fi
                     89:
                     90: dnl AC_ARG_ENABLE([fep],
                     91: dnl [  --enable-fep            enable fep for human interfaces. [[no]]],
                     92: dnl [enable_fep=yes],[enable_fep=no])
                     93:
                     94: if test "${enable_fep:=no}" != no ; then
                     95:     AC_DEFINE([FEP])
                     96:     FEPLIB="-lreadline -ltermcap"
                     97: fi
                     98: AC_SUBST([FEPLIB])
                     99:
                    100: AC_ARG_ENABLE([fft-float],
                    101: [  --enable-fft-float      enable FFT-FLOAT feature. [[no]]],
                    102: [enable_fft_float=yes],[enable_fft_float=no])
                    103:
                    104: if test "${enable_fft_float:=no}" != no ; then
                    105:     AC_DEFINE([USE_FLOAT])
                    106: fi
                    107:
                    108: dnl AC_ARG_WITH([mpi],
                    109: dnl [  --with-mpi              use the MPI library. [[no]]],
                    110: dnl [with_mpi=${withval}],[with_mpi=no])
                    111:
                    112: if test "${with_mpi:=no}" != no ; then
                    113:     MPIINC="-I/opt/FJSVmpi2/include"
                    114:     MPILIB="-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread"
                    115:     AC_DEFINE([MPI])
                    116: fi
                    117: AC_SUBST([MPIINC])
                    118: AC_SUBST([MPILIB])
                    119:
                    120: dnl AC_ARG_WITH([lapack],
                    121: dnl [  --with-lapack           use the LAPACK library. [[no]]],
                    122: dnl [with_lapack=${withval}],[with_lapack=no])
                    123:
                    124: if test "${with_lapack:=no}" != no ; then
                    125:     LAPACKLIB="-llapack -lblas -lI77 -lF77"
                    126:     AC_DEFINE([LAPACK])
                    127: fi
                    128: AC_SUBST([LAPACKLIB])
                    129:
                    130: AC_SUBST([libasir_postfix])
                    131:
                    132: dnl Object files in assembly languages for each micro processors.
                    133: dnl i386_elf_obj:  for FreeBSD 3.x or later and Linux 2.x
                    134: dnl i386_aout_obj: for FreeBSD 2.x, Linux 1.x, and Cygwin
                    135: dnl sparc_v8_obj:  for Sparc V8 processor on Solaris 2.x
                    136: dnl sparc_v9_obj:  for Sparc V9 processor on Solaris 2.x
                    137: dnl generic_obj:   for 32bits/64bits generic micro processors
                    138:
                    139: i386_elf_obj=asmi_l.o
                    140: i386_aout_obj=asmi.o
                    141: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
                    142: sparc_v9_obj="sparc-2.o asm5-2.o edr-2.o"
                    143: generic_obj=asmalpha.o
                    144:
                    145: case "${host}" in
                    146: [i[3-6]86-*-freebsd[3-9].*]|[i[3-6]86-*-linux*])
                    147:     asm_obj="${i386_elf_obj}"
                    148:     ;;
                    149: *-*-cygwin*)
                    150:     asm_obj="${i386_aout_obj}"
                    151:     ;;
                    152: sparc-sun-solaris2.*)
                    153:     case "`uname -m`" in
                    154:     [sun4[dm]]) asm_obj="${sparc_v8_obj}" ;;
1.3       ohara     155:     sun4u*)     asm_obj="${sparc_v9_obj}" ;;
1.1       ohara     156:     *)          asm_obj="${generic_obj}"  ;;
                    157:     esac
                    158:     AC_DEFINE([SYSV])
1.2       ohara     159:     ;;
                    160: powerpc-apple-darwin*)
                    161:     asm_obj="${generic_obj}"
                    162:     AC_DEFINE([__DARWIN__])
1.1       ohara     163:     ;;
                    164: *)
                    165:     asm_obj="${generic_obj}"
                    166:     ;;
                    167: esac
                    168:
                    169: AC_SUBST([asm_obj])
                    170:
                    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:
                    175: 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>