Ignore:
Timestamp:
Apr 12, 2011 2:29:06 PM (11 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/packages/vizservers/configure

    r2120 r2201  
    604604ac_subst_vars='LTLIBOBJS
    605605LIBOBJS
    606 LD_RPATH
    607 CG_DIR
    608 FF_INC_SPEC
    609 DX_LIB_SPEC
    610 DX_INC_SPEC
    611606VTK_LIB_DIR
    612607VTK_INC_SPEC
    613 RP_DIR
    614 RP2_INCL_DIR
     608VERSION
     609TCL_VERSION
    615610TCL_LIB_SPEC
    616611TCL_INC_SPEC
    617 TCL_VERSION
    618612SUBDIRS
    619 SIZEOF_FLOAT
    620613SIZEOF_VOID_P
    621614SIZEOF_LONG_LONG
    622615SIZEOF_LONG
    623616SIZEOF_INT
     617SIZEOF_FLOAT
     618SHLIB_LDFLAGS
     619RP_LIB_DIR
     620RP_INC_SPEC
     621RP_DIR
     622LD_RPATH
     623FF_INC_SPEC
     624DX_LIB_SPEC
     625DX_INC_SPEC
     626CG_LIB_DIR
     627CG_INC_DIR
     628CG_DIR
    624629CXXCPP
    625630ac_ct_CXX
     
    632637INSTALL_PROGRAM
    633638XMKMF
    634 SHLIB_LDFLAGS
    635639INSTALL_STUB_LIB
    636640INSTALL_LIB
     
    667671CFLAGS
    668672CC
    669 VERSION
    670673target_alias
    671674host_alias
     
    713716with_vtk_includes
    714717with_vtk_libs
     718with_vtk
    715719enable_64bit
    716720enable_64bit_vis
     
    13581362  --with-tcllib=DIR       location of Tcl binary library libtclstubs.a
    13591363                          [default=/usr/lib]
    1360   --with-rappture=DIR     location of rappture files lib/librappture2.a and
    1361                           include/rappture2/rappture2.h [default=/usr]
     1364  --with-rappture=DIR     location of rappture files lib/librappture.a and
     1365                          include/rappture.h [default=/usr]
    13621366  --with-vtk-includes=DIR VTK include files are in DIR
    13631367  --with-vtk-libs=DIR     VTK libraries are in DIR
     1368  --with-vtk=VERSION      Version of VTK required
    13641369  --with-x                use the X Window System
    13651370
     
    26272632
    26282633
     2634with_vtk="yes"
     2635with_vtk_libs=""
     2636with_vtk_includes=""
     2637with_rappture=""
     2638with_tcllib=""
     2639with_rappture="yes"
     2640
    26292641
    26302642# Check whether --with-tcllib was given.
     
    26412653  withval=$with_rappture; with_rappture=$withval
    26422654else
    2643   with_rappture=/usr
     2655  with_rappture=yes
    26442656fi
    26452657
     
    26632675
    26642676
     2677
     2678# Check whether --with-vtk was given.
     2679if test "${with_vtk+set}" = set; then :
     2680  withval=$with_vtk; with_vtk=$withval
     2681else
     2682  with_vtk=yes
     2683fi
     2684
     2685
    26652686VERSION=0.0.1
    2666 
    26672687
    26682688#------------------------------------------------------------------------
     
    26762696    exec_prefix=$prefix
    26772697fi
     2698
     2699if test "x${incdir}" == "x"; then
     2700  incdir=${exec_prefix}/include
     2701fi
     2702libdir=${exec_prefix}/lib
    26782703
    26792704if test "${libdir}" != "${prefix}/lib"; then
     
    57785803
    57795804
    5780 
    5781 
    5782 
    5783 
    5784 
    5785 
    5786 
    57875805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
    57885806$as_echo_n "checking for X... " >&6; }
     
    79727990# into bltHash.h for situtations where there's no bltInt.h.
    79737991
    7974 SIZEOF_INT=${ac_cv_sizeof_int}
    7975 
    7976 SIZEOF_LONG=${ac_cv_sizeof_long}
    7977 
    7978 SIZEOF_LONG_LONG=${ac_cv_sizeof_long_long}
    7979 
    7980 SIZEOF_VOID_P=${ac_cv_sizeof_void_p}
    7981 
    7982 SIZEOF_FLOAT=${ac_cv_sizeof_float}
    7983 
    79847992
    79857993LD_RPATH="";
    7986 
    7987 SUBDIRS="nanoscale nanovis pymolproxy vtkvis"
    7988 
    79897994
    79907995#
     
    80288033fi
    80298034
    8030 
    8031 
    8032 
    8033 
    80348035RP2_INCL_DIR=""
    80358036RP_DIR=""
    80368037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rappture" >&5
    80378038$as_echo_n "checking for rappture... " >&6; }
    8038 if test "x$with_rappture" != "x" ; then
    8039     if test "x$with_rappture" != "xprefix" ; then
    8040         if test -f "$with_rappture"
    8041         then
    8042             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8043 $as_echo "no" >&6; }
    8044             as_fn_error $? "please provide --with-rappture with directory" "$LINENO" 5
    8045         else
    8046             if test -d "$with_rappture"
    8047             then
    8048                 if test -r "$with_rappture/include/rappture2/rappture2.h" -a -r "$with_rappture/lib/librappture2.a"
    8049                 then
    8050                     RP2_INCL_DIR="$with_rappture/include/rappture2"
    8051                     RP_DIR="$with_rappture"
    8052                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    8053 $as_echo "yes" >&6; }
    8054                 else
    8055                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8056 $as_echo "no" >&6; }
    8057                     as_fn_error $? "cannot find rappture2.h and librappture2.a, try using --with-rappture" "$LINENO" 5
    8058                 fi
    8059             else
    8060                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8061 $as_echo "no" >&6; }
    8062                 as_fn_error $? "cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" "$LINENO" 5
    8063             fi
    8064         fi
    8065     else
    8066         RP2_INCL_DIR="$prefix/include/rappture2"
    8067         RP_DIR="$prefix"
    8068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: set to prefix" >&5
    8069 $as_echo "set to prefix" >&6; }
     8039if test "$with_rappture" == "yes" ; then
     8040  for dir in "$exec_prefix" "/usr" ; do
     8041    if test -r "$dir/include/rappture2/rappture2.h" -a \
     8042     -r "$dir/lib/librappture.a"; then
     8043      RP_INCL_SPEC="-I$dir/include"
     8044      RP_DIR="$dir"
     8045      RP_LIB_DIR="$dir/lib"
     8046      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dir" >&5
     8047$as_echo "$dir" >&6; }
     8048      break
    80708049    fi
    8071 else
    8072 
    8073 for ac_header in rappture.h
    8074 do :
    8075   ac_fn_cxx_check_header_mongrel "$LINENO" "rappture.h" "ac_cv_header_rappture_h" "$ac_includes_default"
    8076 if test "x$ac_cv_header_rappture_h" = xyes; then :
    8077   cat >>confdefs.h <<_ACEOF
    8078 #define HAVE_RAPPTURE_H 1
    8079 _ACEOF
    8080 
    8081 else
    8082   as_fn_error $? "cannot find rappture.h, try using --with-rappture" "$LINENO" 5
    8083 fi
    8084 
    8085 done
    8086 
    8087 
    8088 
    8089 fi
    8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RP_DIR}/include" >&5
    8091 $as_echo "${RP_DIR}/include" >&6; }
    8092 
    8093 
     8050  done
     8051else
     8052  if test -d "$with_rappture" ; then
     8053    as_fn_error $? "--with-rappture: no such directory $with_rappture" "$LINENO" 5
     8054  fi
     8055  RP_LIB=$with_rappture
     8056  RP_INCL_SPEC="-I$with_rappture/include"
     8057  RP_LIB_DIR="$with_rappture/lib"
     8058fi
     8059if test "x${RP_DIR}" = "x" ; then
     8060  as_fn_error $? "cannot find rappture.h and librappture2.a, try using --with-rappture" "$LINENO" 5
     8061else
     8062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_rappture" >&5
     8063$as_echo "$with_rappture" >&6; }
     8064fi
     8065
     8066if test "$with_vtk" != "no" ; then
     8067  if test "$with_vtk" = "yes" ; then
     8068    for dir in vtk-5.{9,8,7,6,5,4,3,2,1} ; do
     8069      if test -d "${libdir}/$dir" -a -d "${incdir}/$dir"; then
     8070        VTK_LIB_SPEC="-L${libdir}/$dir"
     8071        VTK_LIB_DIR="${libdir}/$dir"
     8072        VTK_INC_SPEC="-I${incdir}/$dir"
     8073        break
     8074      fi
     8075      if test -d "/usr/lib/$dir" -a -d "/usr/include/$dir"; then
     8076        VTK_LIB_SPEC=-L/usr/lib/$dir
     8077        VTK_LIB_DIR=/usr/lib/$dir
     8078        VTK_INC_SPEC=-I/usr/include/$dir
     8079        break
     8080      fi
     8081    done
     8082  fi
     8083fi
    80948084
    80958085if test "x$with_vtk_includes" != "x"; then
     
    80978087fi
    80988088
     8089if test "x$with_vtk_libs" != "x"; then
     8090   VTK_LIB_DIR=$with_vtk_libs
     8091fi
     8092
    80998093save_CPPFLAGS=$CPPFLAGS
    81008094CPPFLAGS=$VTK_INC_SPEC
     8095
    81018096for ac_header in vtkSmartPointer.h
    81028097do :
     
    81158110CPPFLAGS=$save_CPPFLAGS
    81168111
    8117 if test "x$with_vtk_libs" != "x"; then
    8118    VTK_LIB_DIR=$with_vtk_libs
    8119 fi
    8120 
    8121 
    8122 
    8123 
    81248112ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glui.h" "ac_cv_header_GL_glui_h" "$ac_includes_default"
    81258113if test "x$ac_cv_header_GL_glui_h" = xyes; then :
     
    81428130ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default"
    81438131if test "x$ac_cv_header_GL_glew_h" = xyes; then :
    8144 
    8145 fi
    8146 
    8147 
    8148 ac_fn_cxx_check_header_mongrel "$LINENO" "Cg/cgGL.h" "ac_cv_header_Cg_cgGL_h" "$ac_includes_default"
    8149 if test "x$ac_cv_header_Cg_cgGL_h" = xyes; then :
    81508132
    81518133fi
     
    81948176done
    81958177if test "x${DX_INC_DIR}" = "x" ; then
    8196   as_fn_error $? "can't find OpenDX include files" "$LINENO" 5
     8178  as_fn_error $? "cannot find OpenDX include files" "$LINENO" 5
    81978179fi
    81988180
     
    82028184  DX_INC_SPEC="-I{DX_INC_DIR}"
    82038185fi
    8204 
    82058186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DX_INC_DIR}" >&5
    82068187$as_echo "${DX_INC_DIR}" >&6; }
     
    82688249done
    82698250if test "x{$DX_LIB_DIR}" = "x" ; then
    8270   as_fn_error $? "cant find OpenDX libraries" "$LINENO" 5
     8251  as_fn_error $? "cannot find OpenDX libraries" "$LINENO" 5
    82718252fi
    82728253
     
    82808261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LIB_SPEC" >&5
    82818262$as_echo "$DX_LIB_SPEC" >&6; }
    8282 
    82838263
    82848264for ac_header in opencv/cv.h opencv/highgui.h
     
    83488328fi
    83498329
    8350 
    83518330for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h
    83528331do :
     
    85718550
    85728551
     8552
    85738553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nVidia Cg installation" >&5
    85748554$as_echo_n "checking for nVidia Cg installation... " >&6; }
     
    85798559 /usr
    85808560do
    8581   if test -r "${dir}/include/Cg/cgGL.h" ; then
    8582     CG_DIR="$dir"
     8561  if test -r "$dir/include" ; then
     8562    CG_DIR=$dir
    85838563    break
    85848564  fi
    85858565done
    8586 if test "x${CG_DIR}" = "x" ; then
    8587   as_fn_error $? "can't find nVidia Cg installation" "$LINENO" 5
    8588 fi
    8589 
    8590 if test "${CG_DIR}" = "/usr" ; then
    8591   CG_DIR=""
    8592 else
    8593   LD_RPATH="$loader_run_path:${CG_DIR}/lib"
    8594 fi
    8595 
    8596 
    85978566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CG_DIR}" >&5
    85988567$as_echo "${CG_DIR}" >&6; }
     8568
     8569CG_INC_DIR="$dir/include"
     8570CG_LIB_DIR="$dir/lib"
     8571
     8572echo CGDIR=$CG_DIR
     8573save_CPPFLAGS=$CPPFLAGS
     8574CPPFLAGS="-I${CG_INC_DIR} $CPPFLAGS"
     8575for ac_header in Cg/cgGL.h
     8576do :
     8577  ac_fn_cxx_check_header_mongrel "$LINENO" "Cg/cgGL.h" "ac_cv_header_Cg_cgGL_h" "$ac_includes_default"
     8578if test "x$ac_cv_header_Cg_cgGL_h" = xyes; then :
     8579  cat >>confdefs.h <<_ACEOF
     8580#define HAVE_CG_CGGL_H 1
     8581_ACEOF
     8582
     8583else
     8584  as_fn_error $? "cannot find nVidia Cg headers" "$LINENO" 5
     8585fi
     8586
     8587done
     8588
     8589CPPFLAGS=$save_CPPFLAGS
     8590
     8591 if test "${CG_DIR}" = "/usr" ; then
     8592  CG_DIR=""
     8593else
     8594  LD_RPATH="$loader_run_path:${CG_LIB_DIR}"
     8595fi
     8596
     8597SUBDIRS="nanoscale nanovis pymolproxy vtkvis"
     8598
     8599
     8600
     8601
     8602
     8603
     8604
     8605
     8606
     8607
     8608
     8609
     8610
     8611
     8612
     8613
     8614
     8615
     8616
     8617
     8618
     8619
     8620
     8621
     8622
     8623
     8624
    85998625
    86008626
     
    99159941fi
    99169942
     9943
Note: See TracChangeset for help on using the changeset viewer.