Changeset 4118 for trunk/configure


Ignore:
Timestamp:
Jan 14, 2014, 9:55:31 PM (6 years ago)
Author:
ldelgass
Message:

Add configure/Makefile support for vtkDICOM in rappture GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r4116 r4118  
    626626LIBOBJS
    627627subdirs
    628 VTKDIR
     628VTK_VERSION
     629VTK_TCL_DIR
    629630TK_VERSION
    630631TK_XLIBSW
     
    684685HAVE_INTTYPES_H
    685686HAVE_FFMPEG_LIBS
     687ENABLE_VTK_DICOM
    686688ENABLE_GUI
    687689ENABLE_LANG
     
    822824with_tclsh
    823825with_vtk
     826enable_vtkdicom
    824827with_matlab
    825828with_octave
     
    14701473  --enable-gui            build code related to the graphical user interface
    14711474                          [default=yes]
     1475  --enable-vtkdicom       Use vtkDICOM package [default=no]
    14721476  --enable-shared         build and link with shared libraries --enable-shared
    14731477  --enable-symbols        build with debugging symbols --disable-symbols
     
    14791483  --with-ffmpeg=DIR       location of ffmpeg [default=yes]
    14801484  --with-tclsh=DIR        location of tclsh [default=yes]
    1481   --with-vtk=DIR          location of vtk library [default=yes]
     1485  --with-vtk=version      VTK library version [default=6.0]
    14821486  --with-matlab=DIR       location of matlab and mex compiler [default=yes]
    14831487  --with-octave=DIR       path of default octave compiler `mkoctfile'
     
    74677471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtk" >&5
    74687472$as_echo_n "checking for vtk... " >&6; }
    7469 VTKDIR=""
     7473VTK_VERSION=6.0
     7474VTK_TCL_DIR=""
    74707475
    74717476if test "$with_vtk" != "no" ; then
    7472   if test "$with_vtk" = "yes" ; then
     7477  if test "$with_vtk" != "yes" ; then
     7478    VTK_VERSION=$with_vtk
     7479  fi
     7480  if test "x$with_vtk" != "x" ; then
    74737481    for path in \
     7482     $libdir/tcltk \
     7483     $exec_prefix/lib/tcltk \
     7484     $prefix/lib/tcltk \
    74747485     $libdir \
    7475      $prefix/lib/tcltk \
    74767486     $prefix/lib \
    74777487     $exec_prefix/lib \
    74787488     /usr/lib
    74797489    do
    7480       for vtk in $path/vtk-* ; do
    7481         if test -d "${vtk}" ; then
    7482           VTKDIR=${vtk}
    7483         fi
    7484       done
    7485       if test "x${VTKDIR}" != "x" ; then
     7490      if test -d "$path/vtk-$VTK_VERSION" ; then
     7491        VTK_TCL_DIR="$path/vtk-$VTK_VERSION"
     7492      fi
     7493      if test "x${VTK_TCL_DIR}" != "x" ; then
    74867494        break
    74877495      fi
    74887496    done
    74897497  fi
    7490 fi
    7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTKDIR" >&5
    7492 $as_echo "$VTKDIR" >&6; }
     7498else
     7499  if test "${ENABLE_GUI}" = "yes" ; then
     7500    as_fn_error $? "Rappture GUI requires VTK" "$LINENO" 5
     7501  fi
     7502fi
     7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTK_TCL_DIR" >&5
     7504$as_echo "$VTK_TCL_DIR" >&6; }
     7505
     7506# Check whether --enable-vtkdicom was given.
     7507if test "${enable_vtkdicom+set}" = set; then :
     7508  enableval=$enable_vtkdicom;
     7509else
     7510  enable_vtkdicom=no
     7511fi
     7512
     7513
     7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtkDICOM" >&5
     7515$as_echo_n "checking for vtkDICOM... " >&6; }
     7516ENABLE_VTK_DICOM=
     7517if test "$enable_vtkdicom" != "no" ; then
     7518    ENABLE_VTK_DICOM="yes"
     7519fi
     7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtkdicom" >&5
     7521$as_echo "$enable_vtkdicom" >&6; }
    74937522
    74947523
     
    1009910128
    1010010129
     10130
    1010110131MAKE=${make_command}
     10132
    1010210133
    1010310134
Note: See TracChangeset for help on using the changeset viewer.