Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/configure.ac
ViewVC logotype

Diff of /branches/vis15/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4239, Wed Jul 20 18:19:49 2016 UTC revision 4665, Thu Sep 29 17:57:02 2016 UTC
# Line 6  Line 6 
6  dnl All rights reserved.  dnl All rights reserved.
7  dnl  dnl
8    
9  AC_INIT(diderot,1.0,)  AC_INIT(diderot,2.0,)
10    
11  AC_PREREQ(2.60)  AC_PREREQ(2.60)
12  AC_COPYRIGHT([[COPYRIGHT (c) 2016 The University of Chicago]])  AC_COPYRIGHT([[COPYRIGHT (c) 2016 The University of Chicago]])
# Line 17  Line 17 
17  dnl  dnl
18  dnl set the following to the name of the branch  dnl set the following to the name of the branch
19  dnl  dnl
20  BRANCH="master"  BRANCH="vis15"
21  AC_SUBST(BRANCH)  AC_SUBST(BRANCH)
22    
23  dnl  dnl
24  dnl include additional macros  dnl include additional macros
25  dnl  dnl
26    sinclude(config/ax_check_compile_flag.m4)
27    sinclude(config/ax_gcc_x86_cpuid.m4)
28    sinclude(config/ax_gcc_x86_avx_xgetbv.m4)
29    sinclude(config/ax_ext.m4)
30  sinclude(config/acx_pthread.m4)  sinclude(config/acx_pthread.m4)
31  sinclude(config/check_smlnj.m4)  sinclude(config/check_smlnj.m4)
32  sinclude(config/check_smlnj_heap_suffix.m4)  sinclude(config/check_smlnj_heap_suffix.m4)
# Line 73  Line 77 
77  dnl  dnl
78  CXXFLAGS_BASE="-Wreturn-type -Wuninitialized"  CXXFLAGS_BASE="-Wreturn-type -Wuninitialized"
79    
80    dnl check for SIMD support
81    dnl
82    AX_EXT
83    
84  AC_ARG_ENABLE([32-bit],  AC_ARG_ENABLE([32-bit],
85    AC_HELP_STRING([--enable-32-bit], [configure Diderot to produce 32-bit executables]),    AC_HELP_STRING([--enable-32-bit], [configure Diderot to produce 32-bit executables]),
86    [CXXFLAG_Mxx="-m32"],    [CXXFLAG_Mxx="-m32"],
87    [CXXFLAG_Mxx="-m64"])    [CXXFLAG_Mxx="-m64"])
 if test x"$CXX" != "xclang++" ; then  
   CXXFLAGS_BASE="$CXXFLAGS_BASE -fno-implicit-templates"  
 fi  
88    
89  CXXFLAGS="$CXXFLAG_Mxx $CXXFLAGS_BASE"  CXXFLAGS="$CXXFLAG_Mxx $CXXFLAGS_BASE"
90  AC_SUBST(CXXFLAG_Mxx)  AC_SUBST(CXXFLAG_Mxx)
# Line 257  Line 262 
262    
263  #################### CUDA configuration ####################  #################### CUDA configuration ####################
264    
265    AC_ARG_ENABLE([cuda],
266      AC_HELP_STRING([--enable-cuda], [include support for targeting CUDA]))
267    
268    if test "${enable_cuda+set}" = set ; then
269  dnl  dnl
270  dnl Look for NVIDIA's nvcc compiler  dnl Look for NVIDIA's nvcc compiler
271  dnl  dnl
# Line 270  Line 279 
279    AC_MSG_RESULT([$NVCC])    AC_MSG_RESULT([$NVCC])
280    CUDA_ENABLED=true    CUDA_ENABLED=true
281  fi  fi
282    else
283      NVCC=":"
284      CUDA_ENABLED=false
285    fi
286  AC_SUBST(NVCC)  AC_SUBST(NVCC)
287  AC_SUBST(CUDA_ENABLED)  AC_SUBST(CUDA_ENABLED)
288    
# Line 277  Line 290 
290    
291  #################### OpenCL configuration ####################  #################### OpenCL configuration ####################
292    
293    AC_ARG_ENABLE([opencl],
294      AC_HELP_STRING([--enable-opencl], [include support for targeting OpenCL]))
295    
296    if test "${enable_opencl+set}" = set ; then
297    
298  dnl  dnl
299  dnl check for OpenCL support  dnl check for OpenCL support
300  dnl  dnl
# Line 395  Line 413 
413    SIZEOF_CL_DOUBLE=$ac_cv_sizeof_cl_double    SIZEOF_CL_DOUBLE=$ac_cv_sizeof_cl_double
414    fi    fi
415  fi  fi
416    else
417      CL_ENABLED=false
418      CL_VERSION="0"
419      SIZEOF_CL_INT="0"
420      SIZEOF_CL_LONG="0"
421      SIZEOF_CL_FLOAT="0"
422      SIZEOF_CL_DOUBLE="0"
423    fi
424    
425  AC_SUBST(CL_ENABLED)  AC_SUBST(CL_ENABLED)
426  AC_SUBST(CL_VERSION)  AC_SUBST(CL_VERSION)
427  AC_DEFINE_UNQUOTED(DIDEROT_CL_VERSION,[$CL_VERSION],[version of OpenCL supported by system])  AC_DEFINE_UNQUOTED(DIDEROT_CL_VERSION,[$CL_VERSION],[version of OpenCL supported by system])
# Line 408  Line 435 
435    
436  #################### Teem configuration ####################  #################### Teem configuration ####################
437    
 dnl  
438  dnl get the path to the TEEM installation.  We need this to build the Diderot  dnl get the path to the TEEM installation.  We need this to build the Diderot
439  dnl runtime code and we use the path when searching for teem in the Diderot  dnl runtime code and we use the path when searching for teem in the Diderot
440  dnl compiler.  dnl compiler.
441  dnl  dnl
442    
443    dnl the path can be specified using "--with-teem=..." too
444    dnl
445  AC_ARG_WITH(teem,  AC_ARG_WITH(teem,
446    AC_HELP_STRING([--with-teem=<path>], [specify path to teem installation]),    AC_HELP_STRING([--with-teem=<path>], [specify path to teem installation]),
447    [ac_cv_use_teem=$withval], [ac_cv_use_teem=no])    [ac_cv_use_teem=$withval], [ac_cv_use_teem=no])
448    
449  if test x"$ac_cv_use_teem" = xno ; then  if test x"$ac_cv_use_teem" = xno ; then
450    dnl search for Teem in some standard places
451    dnl
452      AC_MSG_CHECKING([for teem])
453    TEEM_DIR=none    TEEM_DIR=none
454      POSSIBLE_TEEM_DIRS="/usr/local/teem /usr/local"
455      for dir in $POSSIBLE_TEEM_DIRS ; do
456        if test -f $dir/include/teem/nrrd.h ; then
457          TEEM_DIR=$dir
458          AC_MSG_RESULT([$TEEM_DIR])
459          break
460        fi
461      done
462      if test $TEEM_DIR = none ; then
463    AC_MSG_ERROR([unable to find teem; use --with-teem option to specify location])    AC_MSG_ERROR([unable to find teem; use --with-teem option to specify location])
464      fi
465  else  else
466    AC_MSG_CHECKING([path to teem ($ac_cv_use_teem)])    AC_MSG_CHECKING([path to teem ($ac_cv_use_teem)])
467    case $ac_cv_use_teem in    case $ac_cv_use_teem in
# Line 443  Line 486 
486    AC_MSG_ERROR([unable to find teem])    AC_MSG_ERROR([unable to find teem])
487  fi  fi
488  dnl  dnl
489  dnl check that unu supports the dnorm command  dnl check that teem supports the nrrdMetaDataNormalize function
490  dnl  dnl
491  if test x"$TEEM_DIR" != xnone ; then  save_LDFLAGS=$LDFLAGS
492    AC_MSG_CHECKING([that \"unu dnorm\" works])  save_LIBS=$LIBS
493    if test -x $TEEM_DIR/bin/unu ; then  LDFLAGS="$LDFLAGS -L$TEEM_DIR/lib"
494      $TEEM_DIR/bin/unu dnorm > /dev/null 2> /dev/null  LIBS="$LIBS -lteem -lm"
495      if test $? -eq 0 ; then  AC_CHECK_FUNCS([nrrdMetaDataNormalize])
496        AC_MSG_RESULT([yes])  LDFLAGS=$save_LDFLAGS
497      else  LIBS=$save_LIBS
498        AC_MSG_ERROR([\"unu dnorm\" is not supported; please update your teem installation])  
499      fi  if test "x$ac_cv_func_nrrdMetaDataNormalize" != xyes; then
500    else    AC_MSG_ERROR(["please update your teem installation"])
     AC_MSG_ERROR([unable to find unu executable in $TEEM_DIR/bin"])  
   fi  
501  fi  fi
502    
503  AC_SUBST(TEEM_DIR)  AC_SUBST(TEEM_DIR)
504    
505  #################### end Teem configuration ####################  #################### end Teem configuration ####################
# Line 501  Line 543 
543    dnl    dnl
544    CHECK_SMLNJ([AC_MSG_ERROR([unable to find SML/NJ installation; check your PATH or set SMLNJ_CMD])])    CHECK_SMLNJ([AC_MSG_ERROR([unable to find SML/NJ installation; check your PATH or set SMLNJ_CMD])])
545    if test $SMLNJ_MAJOR_VERSION -lt 110 \    if test $SMLNJ_MAJOR_VERSION -lt 110 \
546      -o $SMLNJ_MINOR_VERSION -lt 79      -o $SMLNJ_MINOR_VERSION -lt 80
547    then    then
548      AC_MSG_ERROR([installation requires SML/NJ version 110.79+ (available from smlnj.org)])      AC_MSG_ERROR([installation requires SML/NJ version 110.80+ (available from smlnj.org)])
549    fi    fi
550    
551    dnl determine the heap-image suffix    dnl determine the heap-image suffix
# Line 513  Line 555 
555    
556    dnl look for ml-makedepend    dnl look for ml-makedepend
557    dnl    dnl
   AC_MSG_CHECKING([for ml-makedepend])  
558    tmpPATH="$SMLNJ_PATH:$PATH"    tmpPATH="$SMLNJ_PATH:$PATH"
559    AC_PATH_PROG(ML_MAKEDEPEND, ml-makedepend, ":", $tmpPATH)    AC_PATH_PROG(ML_MAKEDEPEND, ml-makedepend, ":", $tmpPATH)
   if test $ML_MAKEDEPEND = none ; then  
     AC_MSG_ERROR([ml-makedepend not found])  
   else  
     AC_MSG_RESULT([$ML_MAKEDEPEND])  
   fi  
560    AC_SUBST(ML_MAKEDEPEND)    AC_SUBST(ML_MAKEDEPEND)
561    
562    dnl    dnl
# Line 549  Line 585 
585  fi  fi
586  AC_SUBST(SML)  AC_SUBST(SML)
587    
588  #################### SML configuration ####################  #################### end SML configuration ####################
589    
590  #################### Documentation tools configuration ####################  #################### Documentation tools configuration ####################
591    
# Line 646  Line 682 
682    src/compiler/Makefile"$COMPILER_MAKEFILE_IN"    src/compiler/Makefile"$COMPILER_MAKEFILE_IN"
683    src/lib/build/Makefile    src/lib/build/Makefile
684    src/lib/build/mk/build.gmk:src/lib/build/mk/build_gmk.in    src/lib/build/mk/build.gmk:src/lib/build/mk/build_gmk.in
 dnl  test/MIP/Makefile  
 dnl  test/probe/Makefile  
 dnl  test/iso2d-polyline/Makefile  
 dnl  test/vr-lite-cam/Makefile  
 dnl  test/hlic/Makefile  
685  dnl  dnl
686  dnl ***** SML source files *****  dnl ***** SML source files *****
687    src/compiler/nrrd/run-dnorm.sml:src/compiler/nrrd/run-dnorm_sml.in    src/compiler/nrrd/run-dnorm.sml:src/compiler/nrrd/run-dnorm_sml.in
# Line 679  Line 710 
710  AC_CONFIG_FILES([  AC_CONFIG_FILES([
711    src/tests/rtest/scripts/run-one.sh:src/tests/rtest/scripts/run-one_sh.in    src/tests/rtest/scripts/run-one.sh:src/tests/rtest/scripts/run-one_sh.in
712  ], [chmod +x src/tests/rtest/scripts/run-one.sh])  ], [chmod +x src/tests/rtest/scripts/run-one.sh])
 #  
 # more regression tests; should merge with rtest at some point  
 #  
 # AC_CONFIG_FILES([  
 #   rtest2/scripts/run.sh:rtest2/scripts/run_sh.in  
 # ], [chmod +x rtest2/scripts/run.sh])  
 # AC_CONFIG_FILES([  
 #   rtest2/scripts/run-one.sh:rtest2/scripts/run-one_sh.in  
 # ], [chmod +x rtest2/scripts/run-one.sh])  
713    
714  dnl  dnl
715  dnl generate makefiles for runtime library builds  dnl generate makefiles for runtime library builds

Legend:
Removed from v.4239  
changed lines
  Added in v.4665

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0