Ignore:
Timestamp:
Dec 31, 2014 10:05:58 AM (7 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/r9/configure.in

    r4872 r4909  
    1 AC_INIT([Rappture],[1.4],[rappture@nanohub.org])
    2 AC_CONFIG_AUX_DIR(cf)
    3 
    41RAPPTURE_MAJOR_VERSION=1
    52RAPPTURE_MINOR_VERSION=4
    63RAPPTURE_RELEASE_SERIAL=0
     4RAPPTURE_VERSION=${RAPPTURE_MAJOR_VERSION}.${RAPPTURE_MINOR_VERSION}
     5
     6AC_INIT([Rappture],[1.4],[rappture@nanohub.org])
     7AC_CONFIG_AUX_DIR(cf)
     8AC_CONFIG_HEADER(lib/rappture/config.h)
     9
     10WITH_R=yes
     11WITH_JAVA=yes
     12WITH_MATLAB=yes
     13WITH_MKOCTFILE2=yes
     14WITH_MKOCTFILE3=yes
     15WITH_OCTAVE=yes
     16WITH_PERL=yes
     17WITH_PYTHON=yes
     18WITH_RUBY=yes
     19WITH_RUBY_SITELIBDIR=yes
     20WITH_TCL=yes
     21
     22AC_ARG_WITH(
     23    [R],
     24    [AS_HELP_STRING([--with-R[=DIR]],
     25        [location of R interpreter @<:@default=yes@:>@])],
     26    [WITH_R=${with_val}],
     27    [WITH_R=yes])
     28
     29AC_ARG_WITH(
     30    [java],
     31    [AS_HELP_STRING([--with-java[=DIR]],
     32        [location of java @<:@default=yes@:>@])],
     33    [WITH_JAVA=${with_val}],
     34    [WITH_JAVA=yes])
     35
     36AC_ARG_WITH(
     37    [matlab],
     38    [AS_HELP_STRING([--with-matlab[=DIR]],
     39        [location of matlab and mex compiler @<:@default=yes@:>@])],
     40    [WITH_MATLAB=${with_val}],
     41    [WITH_MATLAB=yes])
     42
     43AC_ARG_WITH(
     44    [mkoctfile2],
     45    [AS_HELP_STRING([--with-mkoctfile2[=DIR]],
     46        [path of octave compiler `mkoctfile' @<:@default=no@:>@])],
     47    [WITH_MKOCTFILE2=${with_val}],
     48    [WITH_MKOCTFILE2=no])
     49
     50AC_ARG_WITH(
     51    [mkoctfile3],
     52    [AS_HELP_STRING([--with-mkoctfile3[=DIR]],
     53        [path of octave compiler `mkoctfile' @<:@default=no@:>@])],
     54    [WITH_MKOCTFILE3=${with_val}],
     55    [WITH_MKOCTFILE3=no])
     56
     57AC_ARG_WITH(
     58    [octave],
     59    [AS_HELP_STRING([--with-octave[=DIR]],
     60        [path of default octave compiler `mkoctfile' @<:@default=yes@:>@])],
     61    [WITH_OCTAVE=${with_val}],
     62    [with_octave=yes])
     63
     64AC_ARG_WITH(
     65    [perl],
     66    [AS_HELP_STRING([--with-perl[=DIR]],
     67        [location of perl library @<:@default=yes@:>@])],
     68    [WITH_PERL=${with_val}],
     69    [WITH_PERL=yes])
     70
     71AC_ARG_WITH(
     72    [python],
     73    [AS_HELP_STRING([--with-python[=DIR]],
     74        [location of python library @<:@default=yes@:>@])],
     75    [WITH_PYTHON=${with_val}],
     76    [WITH_PYTHON=yes])
     77
     78AC_ARG_WITH(
     79    [ruby],
     80    AC_HELP_STRING(
     81     --with-ruby=PATH,
     82     [ path to the ruby interpreter [[ruby]] ]),
     83    [WITH_RUBY=${with_val}],
     84    [WITH_RUBY=yes])
     85
     86AC_ARG_WITH(
     87    [ruby_sitelibdir],
     88    AC_HELP_STRING(
     89     --with-ruby-sitelibdir=PATH,
     90     [ path to install ruby scripts [[auto-detect]] ]),
     91    [WITH_RUBY_SITELIBDIR=${with_val}],
     92    [WITH_RUBY_SITELIBDIR=NONE ])
     93
     94AC_ARG_WITH(
     95    [tcl],
     96    [AS_HELP_STRING([--with-tcl[=DIR]],
     97        [location of tcl library @<:@default=yes@:>@])],
     98    [WITH_TCL=${with_val}],
     99    [WITH_TCL=yes])
     100
     101AC_ARG_WITH(
     102    [install],
     103    [AS_HELP_STRING([--with-install[=DIR]],
     104        [location of installation @<:@default=yes@:>@])],
     105    [WITH_INSTALL=${withval}],
     106    [WITH_INSTALL=yes])
     107
     108AC_ARG_WITH(
     109    [vtk],
     110    [AS_HELP_STRING([--with-vtk],
     111        [Build VTK for rappture])],
     112    [WITH_VTK=${withval}],
     113    [WITH_VTK=no])
     114
     115AC_ARG_ENABLE(
     116    [vtkdicom],
     117    [AS_HELP_STRING([--enable-vtkdicom],
     118        [Use vtkDICOM package @<:@default=no@:>@])],
     119    [],
     120    [enable_vtkdicom=no])
    7121
    8122#------------------------------------------------------------------------
     
    17131fi
    18132
    19 AC_PROG_INSTALL
    20133AC_PROG_INSTALL
    21134AC_PROG_RANLIB
     
    38151AC_PATH_X
    39152
    40 AC_ARG_WITH(
    41     [install],
    42     [AS_HELP_STRING([--with-install[=DIR]],
    43         [location of installation @<:@default=yes@:>@])],
    44     [],
    45     [with_install=yes])
    46 
    47 if test "$with_install" != "yes"; then
    48     INSTALL_PREFIX=$with_install
    49 else
    50     INSTALL_PREFIX=$prefix
    51 fi
    52 
    53 if test "${libdir}" != "${prefix}/lib"; then
    54     LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
    55 else
    56     LIB_SEARCH_DIRS="-L${libdir}"
    57 fi
    58 
    59 HAVE_VTK=""
    60 AC_ARG_WITH(
    61     [vtk],
    62     [AS_HELP_STRING([--with-vtk],
    63         [Build VTK for rappture])],
    64     [HAVE_VTK=$withval],
    65     [HAVE_VTK=""])
     153# -----------------------------------------------------------------------
     154#
     155# Compiler characteristics:
     156#   Check for existence of types of size_t and pid_t
     157#
     158# -----------------------------------------------------------------------
     159
     160AC_C_BIGENDIAN
     161AC_CHECK_SIZEOF(int)
     162AC_CHECK_SIZEOF(long)
     163AC_CHECK_SIZEOF(long long)
     164AC_CHECK_SIZEOF(void *)
     165
     166SIZEOF_LONG="${ac_cv_sizeof_long}"
     167SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}"
     168SIZEOF_VOID_P="${ac_cv_sizeof_void_p}"
     169SIZEOF_INT="${ac_cv_sizeof_int}"
     170
    66171
    67172AC_CHECK_FUNCS(sysinfo)
     
    114219
    115220
     221if test "$with_install" != "yes"; then
     222    INSTALL_PREFIX=$with_install
     223else
     224    INSTALL_PREFIX=$prefix
     225fi
     226
     227if test "${libdir}" != "${prefix}/lib"; then
     228    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
     229else
     230    LIB_SEARCH_DIRS="-L${libdir}"
     231fi
     232
    116233SVN_VERSION=`svnversion $srcdir`
    117234
     
    128245fi
    129246
    130 AC_ARG_ENABLE(
    131     [lang],
    132     [AS_HELP_STRING([--enable-lang], [build language bindings @<:@default=yes@:>@])],
    133     [],
    134     [enable_lang=yes])
    135 
    136 ENABLE_LANG=
    137 if test "$enable_lang" != "no" ; then
    138     ENABLE_LANG="yes"
    139 fi
    140 
    141 AC_ARG_ENABLE(
    142     [gui],
    143     [AS_HELP_STRING([--enable-gui], [build code related to the graphical user interface @<:@default=yes@:>@])],
    144     [],
    145     [enable_gui=yes])
    146 
    147 ENABLE_GUI=
    148 if test "$enable_gui" != "no" ; then
    149     ENABLE_GUI="yes"
    150 fi
    151 
    152 TCL_VERSION="8.5"
    153 TK_VERSION="8.5"
    154 
    155 for dir in \
    156  ${exec_prefix} \
    157  ${exec_prefix}/lib ; do
    158   tclconfig="${dir}/tclConfig.sh"
    159   if test -f "$tclconfig" ; then
    160     . $tclconfig
    161     break
    162   fi
    163 done
    164 
    165 AC_ARG_WITH(
    166     [ffmpeg],
    167     [AS_HELP_STRING([--with-ffmpeg[=DIR]],
    168       [location of ffmpeg @<:@default=yes@:>@])],
    169     [],
    170     [with_ffmpeg=yes])
    171 
    172 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    173 
    174 AC_ARG_WITH(
    175     [vtk],
    176     [AS_HELP_STRING([--with-vtk[=version]],
    177         [VTK library version @<:@default=6.1@:>@])],
    178     [],
    179     [with_vtk=yes])
    180 
    181 AC_MSG_CHECKING([for vtk])
    182 VTK_VERSION=6.1
    183 VTK_TCL_DIR=""
    184 
    185 ENABLE_VTK=
    186 if test "$with_vtk" != "no" ; then
    187   if test "$with_vtk" != "yes" ; then
    188     VTK_VERSION=$with_vtk
    189   fi
    190   if test "x$with_vtk" != "x" ; then
    191     ENABLE_VTK=yes
    192     for path in \
    193      $libdir/tcltk \
    194      $exec_prefix/lib/tcltk \
    195      $prefix/lib/tcltk \
    196      $libdir \
    197      $prefix/lib \
    198      $exec_prefix/lib \
    199      /usr/lib
    200     do
    201       if test -d "$path/vtk-$VTK_VERSION" ; then
    202         VTK_TCL_DIR="$path/vtk-$VTK_VERSION"
    203       fi
    204       if test "x${VTK_TCL_DIR}" != "x" ; then
    205         break
    206       fi
    207     done
    208   fi
    209 else
    210   if test "${ENABLE_GUI}" = "yes" ; then
    211     AC_MSG_WARN([VTK missing: Rappture GUI requires VTK for some features])
    212   fi
    213 fi
    214 AC_MSG_RESULT([$VTK_TCL_DIR])
    215 
    216 AC_ARG_ENABLE(
    217     [vtkdicom],
    218     [AS_HELP_STRING([--enable-vtkdicom],
    219         [Use vtkDICOM package @<:@default=no@:>@])],
    220     [],
    221     [enable_vtkdicom=no])
    222 
    223247AC_MSG_CHECKING([for vtkDICOM])
    224248ENABLE_VTK_DICOM=
     
    231255
    232256#--------------------------------------------------------------------
    233 # This macro figures out what flags to use with the compiler/linker
    234 # when building shared/static debug/optimized objects.  This information
    235 # is all taken from the tclConfig.sh file.
    236 #--------------------------------------------------------------------
    237 
    238 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
    239   . ${exec_prefix}/lib/tclConfig.sh
    240 fi
    241 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then
    242   . ${exec_prefix}/lib/tkConfig.sh
    243 fi
    244 
    245 # -----------------------------------------------------------------------
    246 #
    247 # Compiler characteristics:
    248 #   Check for existence of types of size_t and pid_t
    249 #
    250 # -----------------------------------------------------------------------
    251 
    252 AC_C_BIGENDIAN
    253 AC_CHECK_SIZEOF(int)
    254 AC_CHECK_SIZEOF(long)
    255 AC_CHECK_SIZEOF(long long)
    256 AC_CHECK_SIZEOF(void *)
    257 
    258 SIZEOF_LONG="${ac_cv_sizeof_long}"
    259 SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}"
    260 SIZEOF_VOID_P="${ac_cv_sizeof_void_p}"
    261 SIZEOF_INT="${ac_cv_sizeof_int}"
    262 
    263 
    264 #--------------------------------------------------------------------
    265257# Set the default compiler switches based on the --enable-symbols
    266258# option.
    267259#--------------------------------------------------------------------
    268260
     261TCL_VERSION="8.5"
     262TK_VERSION="8.5"
     263
     264SC_CONFIG_CFLAGS
    269265SC_ENABLE_SYMBOLS
    270266
     
    319315AC_SUBST(RAPPTURE_MINOR_VERSION)
    320316AC_SUBST(RAPPTURE_RELEASE_SERIAL)
    321 AC_SUBST(HAVE_VTK)
     317
     318AC_SUBST(WITH_VTK)
     319AC_SUBST(WITH_R)
     320AC_SUBST(WITH_JAVA)
     321AC_SUBST(WITH_MATLAB)
     322AC_SUBST(WITH_MKOCTFILE2)
     323AC_SUBST(WITH_MKOCTFILE3)
     324AC_SUBST(WITH_OCTAVE)
     325AC_SUBST(WITH_PERL)
     326AC_SUBST(WITH_PYTHON)
     327AC_SUBST(WITH_RUBY)
     328AC_SUBST(WITH_RUBY_SITELIBDIR)
     329AC_SUBST(WITH_TCL)
    322330
    323331dnl read Makefile.in and write Makefile
     
    336344    apps/simsim
    337345    apps/xmldiff
     346    lib/Makefile
     347    lib/objects/Makefile
     348    lib/objects/RpHash.h
     349    lib/rappture/Makefile
     350    lib/rappture2/Makefile
     351    lib/rapptureConfig.sh
     352    pkgs/DicomToVtk/Makefile
     353    pkgs/DicomToVtk/pkgIndex.tcl
     354    pkgs/DxToVtk/Makefile
     355    pkgs/DxToVtk/pkgIndex.tcl
     356    pkgs/Makefile
     357    pkgs/PdbToVtk/Makefile
     358    pkgs/PdbToVtk/pkgIndex.tcl
     359    pkgs/builder/Makefile
     360    pkgs/builder/pkgIndex.tcl
     361    pkgs/builder/scripts/Makefile
     362    pkgs/diffview/Makefile
     363    pkgs/diffview/pkgIndex.tcl
     364    pkgs/hotspot/Makefile
     365    pkgs/hotspot/pkgIndex.tcl
     366    pkgs/listbox/Makefile
     367    pkgs/listbox/pkgIndex.tcl
     368    pkgs/objects/Makefile
     369    pkgs/p2p/Makefile
     370    pkgs/placard/Makefile
     371    pkgs/placard/pkgIndex.tcl
     372    pkgs/readpoints/Makefile
     373    pkgs/readpoints/pkgIndex.tcl
     374    pkgs/runner/Makefile
     375    pkgs/runner/pkgIndex.tcl
     376    pkgs/runner/scripts/Makefile
     377    pkgs/squeezer/Makefile
     378    pkgs/squeezer/pkgIndex.tcl
     379    pkgs/system/Makefile
     380    pkgs/system/pkgIndex.tcl
     381    pkgs/tester/Makefile
     382    pkgs/tester/pkgIndex.tcl
     383    pkgs/tester/scripts/Makefile
    338384])
    339385AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.