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

SCM Repository

[diderot] Diff of /branches/pure-cfg/configure.ac
ViewVC logotype

Diff of /branches/pure-cfg/configure.ac

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

revision 1164, Mon May 9 21:42:27 2011 UTC revision 1171, Tue May 10 14:08:35 2011 UTC
# Line 20  Line 20 
20  sinclude(config/acx_pthread.m4)  sinclude(config/acx_pthread.m4)
21  sinclude(config/check_smlnj.m4)  sinclude(config/check_smlnj.m4)
22  sinclude(config/check_smlnj_heap_suffix.m4)  sinclude(config/check_smlnj_heap_suffix.m4)
23    sinclude(config/ax_check_framework.m4)
24    
25  dnl  dnl
26  dnl get host information  dnl get host information
# Line 50  Line 51 
51  dnl  dnl
52  dnl Look for NVIDIA's nvcc compiler  dnl Look for NVIDIA's nvcc compiler
53  dnl  dnl
54  AC_MSG_CHECKING([for CUDA and nvcc])  AC_MSG_NOTICE([checking for CUDA and nvcc])
55  AC_PATH_PROG(NVCC, nvcc, ":", $PATH)  AC_PATH_PROG(NVCC, nvcc, no, $PATH)
56  if test $NVCC = none ; then  if test x"$NVCC" = xno ; then
57    AC_MSG_WARN([nvcc not found])    AC_MSG_WARN([nvcc not found])
58      CUDA_ENABLED=false
59      NVCC=":"
60  else  else
61    AC_MSG_RESULT([$NVCC])    AC_MSG_RESULT([$NVCC])
62      CUDA_ENABLED=true
63  fi  fi
64  AC_SUBST(NVCC)  AC_SUBST(NVCC)
65    AC_SUBST(CUDA_ENABLED)
66    
67    dnl
68    dnl check for OpenCL support
69    dnl
70    OPENCL_LIBS="none"
71    case "$host_os" in
72      darwin*) # On Mac OS X we check for installed frameworks
73        AX_CHECK_FRAMEWORK([OpenCL], [OPENCL_LIBS="-framework OpenCL"], [])
74      ;;
75      *)
76        AC_CHECK_LIB([OpenCL],[clGetPlatformIDs],[OPENCL_LIBS="-lOpenCL"])
77      ;;
78    esac
79    if test x"$OPENCL_LIBS" = xnone ; then
80      AC_MSG_WARN([no OpenCL library found])
81      OPENCL_ENABLED=false
82    else
83      OPENCL_ENABLED=true
84      AC_SUBST(OPENCL_LIBS)
85    fi
86    AC_SUBST(OPENCL_ENABLED)
87    
88  dnl  dnl
89  dnl check for pthreads support  dnl check for pthreads support
# Line 203  Line 229 
229    test/MIP/Makefile    test/MIP/Makefile
230    test/probe/Makefile    test/probe/Makefile
231  dnl  dnl
232    dnl ***** CM files *****
233      src/compiler/codegen/sources.cm:src/compiler/codegen/sources_cm.in
234    dnl
235  dnl ***** SML source files *****  dnl ***** SML source files *****
236    src/compiler/fields/run-dnorm.sml:src/compiler/fields/run-dnorm_sml.in    src/compiler/fields/run-dnorm.sml:src/compiler/fields/run-dnorm_sml.in
237    src/compiler/common/paths.sml:src/compiler/common/paths_sml.in    src/compiler/common/paths.sml:src/compiler/common/paths_sml.in

Legend:
Removed from v.1164  
changed lines
  Added in v.1171

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