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

trunk/configure.ac revision 1200, Thu May 12 12:53:00 2011 UTC branches/vis15/configure.ac revision 3718, Sat Apr 2 17:53:43 2016 UTC
# Line 1  Line 1 
1  dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
2  dnl  dnl
3  dnl COPYRIGHT (c) 2010 The Diderot Project  dnl This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
4    dnl
5    dnl COPYRIGHT (c) 2015 The University of Chicago
6  dnl All rights reserved.  dnl All rights reserved.
7  dnl  dnl
8    
9  dnl NOTE: MANTICORE_DIST_VERSION is an M4 variable defined in config/aclocal.m4  AC_INIT(diderot,1.0,)
 dnl  
 AC_INIT(diderot,0.1,)  
10    
11  AC_PREREQ(2.60)  AC_PREREQ(2.60)
12  AC_COPYRIGHT([[COPYRIGHT (c) 2010 The Diderot Project (http://diderot-language.cs.uchicago.edu)]])  AC_COPYRIGHT([[COPYRIGHT (c) 2015 The University of Chicago]])
13  AC_CONFIG_SRCDIR(src/dnorm/dnorm.c)  AC_CONFIG_SRCDIR(src/compiler/options/ctl.sml)
14  AC_CONFIG_AUX_DIR(config)  AC_CONFIG_AUX_DIR(config)
15  AC_CONFIG_MACRO_DIR(config)  AC_CONFIG_MACRO_DIR(config)
16    
17  dnl  dnl
18    dnl set the following to the name of the branch
19    dnl
20    BRANCH="master"
21    AC_SUBST(BRANCH)
22    
23    dnl
24  dnl include additional macros  dnl include additional macros
25  dnl  dnl
26  sinclude(config/acx_pthread.m4)  sinclude(config/acx_pthread.m4)
27  sinclude(config/check_smlnj.m4)  sinclude(config/check_smlnj.m4)
28  sinclude(config/check_smlnj_heap_suffix.m4)  sinclude(config/check_smlnj_heap_suffix.m4)
29    sinclude(config/ax_check_framework.m4)
30    
31  dnl  dnl
32  dnl get host information  dnl get host information
# Line 28  Line 35 
35    
36  dnl check for standard programs  dnl check for standard programs
37  dnl  dnl
38    AC_PROG_CC([clang gcc cc])
39  AC_PROG_CPP  AC_PROG_CPP
40  AC_PROG_INSTALL  AC_PROG_INSTALL
41  AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
42    
43    dnl FIXME: this works for now, but we should probably switch to libtool
44    dnl
45    AC_PATH_PROG(LD, [ld], [none])
46    if test x$LD = xnone ; then
47      AC_MSG_ERROR([cannot find ld command])
48    fi
49    AC_SUBST(LD)
50    
51  dnl check for c99 support  dnl check for c99 support
52  dnl  dnl
53  AC_PROG_CC_C99  AC_PROG_CC_C99
# Line 39  Line 55 
55    AC_MSG_ERROR([Diderot requires c99 support])    AC_MSG_ERROR([Diderot requires c99 support])
56  fi  fi
57    
58    AC_ARG_ENABLE([32-bit],
59      AC_HELP_STRING([--enable-32-bit], [configure Diderot to produce 32-bit executables]),
60      [CFLAG_MXX="-m32"],
61      [CFLAG_MXX="-m64"])
62    
63  dnl extra C compiler options  dnl extra C compiler options
64  dnl  dnl
65  CFLAG_M64="-m64"  CFLAGS=""
66  CFLAGS="$CFLAGS -Wformat -Wreturn-type -Wuninitialized"  CFLAGS_BASE="-Wformat -Wreturn-type -Wuninitialized"
67  AC_SUBST(CFLAG_M64)  AC_SUBST(CFLAG_MXX)
68    AC_SUBST(CFLAGS_BASE)
69    
70    dnl
71    dnl standard headers
72    dnl
73    AC_HEADER_STDBOOL
74    
75    dnl
76    dnl check for pthreads support
77    dnl
78    ACX_PTHREAD
79    
80  dnl  dnl
81  dnl Look for NVIDIA's nvcc compiler  dnl Look for NVIDIA's nvcc compiler
82  dnl  dnl
83  AC_MSG_CHECKING([for CUDA and nvcc])  AC_MSG_NOTICE([checking for CUDA and nvcc])
84  AC_PATH_PROG(NVCC, nvcc, ":", $PATH)  AC_PATH_PROG(NVCC, nvcc, no, $PATH)
85  if test $NVCC = none ; then  if test x"$NVCC" = xno ; then
86    AC_MSG_WARN([nvcc not found])    AC_MSG_WARN([nvcc not found])
87      CUDA_ENABLED=false
88      NVCC=":"
89  else  else
90    AC_MSG_RESULT([$NVCC])    AC_MSG_RESULT([$NVCC])
91      CUDA_ENABLED=true
92  fi  fi
93  AC_SUBST(NVCC)  AC_SUBST(NVCC)
94    AC_SUBST(CUDA_ENABLED)
95    
96  dnl  dnl
97  dnl check for pthreads support  dnl check for OpenCL support
98  dnl  dnl
99  ACX_PTHREAD()  LIBS_CL="none"
100    case "$host_os" in
101      darwin*) # On Mac OS X we check for installed frameworks
102        AX_CHECK_FRAMEWORK([OpenCL], [LIBS_CL="-framework OpenCL"], [])
103      ;;
104      *)
105        AC_CHECK_LIB([OpenCL],[clGetPlatformIDs],[LIBS_CL="-lOpenCL"])
106      ;;
107    esac
108    if test x"$LIBS_CL" = xnone ; then
109      AC_MSG_WARN([no OpenCL library found])
110      CL_ENABLED=false
111      CL_VERSION=0
112    else
113      CL_ENABLED=true
114      CPPFLAGS_CL=""
115      CL_HEADER=""
116      AC_CHECK_HEADERS([CL/cl.h OpenCL/cl.h], [HAVE_CL_H="yes"; CL_HEADER="$ac_header"; break], [HAVE_CL_H="no"])
117      if test x"$HAVE_CL_H" = xno ; then
118        # check for AMD's SDK
119        AC_MSG_CHECKING([for cl.h in AMD's SDK])
120        if test -d /opt/AMDAPP/include/CL ; then
121          HAVE_CL_H="yes"
122          CL_HEADER="/opt/AMDAPP/include/CL/cl.h"
123          AC_DEFINE([HAVE_CL_CL_H])
124          CPPFLAGS_CL="-I/opt/AMDAPP/include"
125        fi
126        AC_MSG_RESULT([$HAVE_CL_H])
127      fi
128      if test x"$HAVE_CL_H" = xno ; then
129        # check for NVIDIA's SDK
130        AC_MSG_CHECKING([for NVIDIA's SDK cl.h])
131        CUDA_HOME=none
132        for CUDA in cuda cuda-7.0 cuda-6.5 cuda-6.0 ; do
133          if test -d /usr/local/$CUDA/include/CL ; then
134            CUDA_HOME=/usr/local/$CUDA
135            break
136          fi
137        done
138        if test x"$CUDA_HOME" != xnone ; then
139          HAVE_CL_H="yes"
140          CL_HEADER="$CUDA_HOME/include/CL/cl.h"
141          AC_DEFINE([HAVE_CL_CL_H])
142          CPPFLAGS_CL="-I$CUDA_HOME/include"
143        fi
144        AC_MSG_RESULT([$HAVE_CL_H])
145      fi
146      if test x"$HAVE_CL_H" = xno ; then
147        AC_MSG_WARN([no cl.h found])
148        CL_ENABLED=false
149        CL_VERSION=0
150        SIZEOF_CL_INT=0
151        SIZEOF_CL_LONG=0
152        SIZEOF_CL_FLOAT=0
153        SIZEOF_CL_DOUBLE=0
154      else
155        # check the cl.h header for which version of OpenCL is supported
156        AC_LANG([C])
157        save_CPPFLAGS=$CPPFLAGS
158        CPPFLAGS="$CPPFLAGS_CL $CPPFLAGS"
159        AC_LINK_IFELSE([AC_LANG_PROGRAM([[
160    #include <stdio.h>
161    # ifdef HAVE_CL_CL_H
162    #   include <CL/cl.h>
163    # elif defined(HAVE_OPENCL_CL_H)
164    #   include <OpenCL/cl.h>
165    # else
166    #   error no cl.h
167    # endif]],
168    [[#if defined(CL_VERSION_1_2)
169      printf("120\n");
170    #elif defined(CL_VERSION_1_1)
171      printf("110\n");
172    #elif defined(CL_VERSION_1_0)
173      printf("100\n");
174    #else
175      printf("0\n");
176    #endif
177          ]])],
178          [CL_VERSION=`./conftest$EXEEXT`], [CL_VERSION=0])
179    dnl
180    dnl check to see how we access the host-side vector types.  For OpenCL 1.1,
181    dnl the specification specifies the behavior, but it was unspecified in 1.0.
182    dnl
183        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
184    #include "$CL_HEADER"
185    ]],
186          [[cl_float4 x; x[0] = 0.0;]])],
187          [AC_DEFINE([CL_HOST_VECTORS_ARE_ARRAYS],[1],[host vector types are arrays])],
188    dnl
189    dnl not arrays, so try the OpenCL 1.1 structure representation
190    dnl
191          [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
192    #include "$CL_HEADER"
193    ]],
194          [[cl_float4 x; x.s[0] = 0.0;]])],
195          [AC_DEFINE([CL_HOST_VECTORS_ARE_STRUCTS],[1],[host vector types are structs])],
196          [AC_MSG_ERROR([unable to figure out host types for OpenCL vectors])])])
197      # restore saved CPPFLAGS
198        CPPFLAGS=$save_CPPFLAGS
199      # substitutions
200        AC_SUBST(LIBS_CL)
201        AC_SUBST(CPPFLAGS_CL)
202      #
203      # determine the sizes of the host-side OpenCL types
204      AC_CHECK_SIZEOF([cl_int], [], [#include "$CL_HEADER"])
205      SIZEOF_CL_INT=$ac_cv_sizeof_cl_int
206      AC_CHECK_SIZEOF([cl_long], [], [#include "$CL_HEADER"])
207      SIZEOF_CL_LONG=$ac_cv_sizeof_cl_long
208      AC_CHECK_SIZEOF([cl_float], [], [#include "$CL_HEADER"])
209      SIZEOF_CL_FLOAT=$ac_cv_sizeof_cl_float
210      AC_CHECK_SIZEOF([cl_double], [], [#include "$CL_HEADER"])
211      SIZEOF_CL_DOUBLE=$ac_cv_sizeof_cl_double
212      fi
213    fi
214    AC_SUBST(CL_ENABLED)
215    AC_SUBST(CL_VERSION)
216    AC_DEFINE_UNQUOTED(DIDEROT_CL_VERSION,[$CL_VERSION],[version of OpenCL supported by system])
217    
218    AC_SUBST(SIZEOF_CL_INT)
219    AC_SUBST(SIZEOF_CL_LONG)
220    AC_SUBST(SIZEOF_CL_FLOAT)
221    AC_SUBST(SIZEOF_CL_DOUBLE)
222    
223    dnl
224    dnl check for various library routines etc.
225    dnl
226    AC_CHECK_FUNCS(posix_memalign)
227    if test x"$ac_cv_func_posix_memalign" != xyes ; then
228      AC_CHECK_FUNCS(memalign)
229      if test x"$ac_cv_func_posix_memalign" != xyes ; then
230        AC_CHECK_FUNCS(valloc)
231      fi
232    fi
233    
234    AC_CHECK_FUNCS(mach_absolute_time)
235    AC_CHECK_TYPES([struct timespec])
236    AC_CHECK_FUNCS(pthread_barrier_init)
237    
238    dnl
239    dnl check for clock_gettime.  On Linux, this requires librt.
240    dnl
241    save_LIBS=$LIBS
242    LIBS="-lrt $LIBS"
243    AC_MSG_CHECKING([for clock_gettime])
244    AC_LINK_IFELSE(
245      [AC_LANG_PROGRAM(
246        [[#include <time.h>]],
247        [[struct timespec t; clock_gettime(CLOCK_REALTIME, &t); ]])],
248      [ ac_cv_func_clock_gettime=yes;
249        AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [is clock_gettime available?])],
250      [ac_cv_func_clock_gettime=no])
251    AC_MSG_RESULT($ac_cv_func_clock_gettime)
252    if test "$ac_cv_func_clock_gettime" = "no" ; then
253      LIBS=$save_LIBS
254    fi
255    
256    AC_CHECK_FUNCS(pthread_getcpuclockid)
257    AC_CHECK_FUNCS(sigtimedwait nanosleep)
258    
259    dnl
260    dnl check for sched_setaffinity
261    dnl
262    AC_CHECK_FUNCS(sched_setaffinity)
263    
264    dnl
265    dnl check for pthread_setaffinity_np
266    dnl
267    save_LIBS=$LIBS
268    save_CFLAGS=$CFLAGS
269    LIBS="$PTHREAD_LIBS $LIBS"
270    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
271    AC_MSG_CHECKING([for pthread_setaffinity_np])
272    AC_LINK_IFELSE(
273      [AC_LANG_PROGRAM(
274        [[#include <pthread.h>]],
275        [[cpu_set_t s; pthread_setaffinity_np(pthread_self(), sizeof(s), &s); ]])],
276      [ ac_cv_func_pthread_setaffinity_np=yes;
277        AC_DEFINE(HAVE_PTHREAD_SETAFFINITY_NP, [1], [is pthread_setaffinity_np available?])],
278      [ac_cv_func_pthread_setaffinity_np=no])
279    AC_MSG_RESULT($ac_cv_func_pthread_setaffinity_np)
280    LIBS=$save_LIBS
281    CFLAGS=$save_CFLAGS
282    
283    dnl
284    dnl check for Linux NUMA support (libnuma)
285    dnl
286    AC_CHECK_LIB(numa,numa_available)
287    if test "$ac_cv_lib_numa_numa_available" = "yes" ; then
288      PTHREAD_LIBS="$PTHREAD_LIBS -lnuma"
289    fi
290    
291    dnl check for /proc/cpuinfo
292    dnl
293    AC_CHECK_FILES(/proc/cpuinfo)
294    
295  dnl  dnl
296  dnl OS-specific linking issues  dnl OS-specific linking issues
# Line 98  Line 328 
328  AC_SUBST(LIBM)  AC_SUBST(LIBM)
329    
330  dnl  dnl
331  dnl get the path to the TEEM installation  dnl get the path to the TEEM installation.  We need this to build the Diderot
332    dnl runtime code and we use the path when searching for teem in the Diderot
333    dnl compiler.
334  dnl  dnl
335  AC_ARG_WITH(teem,  AC_ARG_WITH(teem,
336    AC_HELP_STRING([--with-teem=<path>], [specify path to teem installation]),    AC_HELP_STRING([--with-teem=<path>], [specify path to teem installation]),
# Line 113  Line 345 
345    esac    esac
346    if test -x $ac_cv_use_teem ; then    if test -x $ac_cv_use_teem ; then
347      TEEM_DIR=$ac_cv_use_teem      TEEM_DIR=$ac_cv_use_teem
348      AC_MSG_RESULT([ okay])      # check that TEEM_DIR actually points to something that looks like teem
349        if test -f $TEEM_DIR/include/teem/nrrd.h ; then
350          AC_MSG_RESULT([yes])
351        else
352          TEEM_DIR=none
353          AC_MSG_RESULT([no])
354        fi
355    else    else
356      TEEM_DIR=none      TEEM_DIR=none
357      AC_MSG_RESULT([ invalid])      AC_MSG_RESULT([no])
358    fi    fi
359  fi  fi
360  if test x"$TEEM_DIR" = xnone ; then  if test x"$TEEM_DIR" = xnone ; then
361    AC_MSG_ERROR([unable to find teem])    AC_MSG_ERROR([unable to find teem; use --with-teem option to specify location])
362    fi
363    dnl
364    dnl check that unu supports the dnorm command
365    dnl
366    if test x"$TEEM_DIR" != xnone ; then
367      AC_MSG_CHECKING([that \"unu dnorm\" works])
368      if test -x $TEEM_DIR/bin/unu ; then
369        $TEEM_DIR/bin/unu dnorm > /dev/null 2> /dev/null
370        if test $? -eq 0 ; then
371          AC_MSG_RESULT([yes])
372        else
373          AC_MSG_ERROR([\"unu dnorm\" is not supported; please update your teem installation])
374        fi
375      else
376        AC_MSG_ERROR([unable to find unu executable in $TEEM_DIR/bin"])
377      fi
378  fi  fi
379  AC_SUBST(TEEM_DIR)  AC_SUBST(TEEM_DIR)
380    
381  dnl ******************** SML/NJ configuration ********************  dnl ******************** SML/NJ configuration ********************
382  dnl  dnl
383    dnl We support building with both SML/NJ (the default) or MLton.
384    dnl
385    
386    dnl first check for --with-mlton=path flag
387    dnl
388    AC_ARG_WITH([mlton],
389      [AS_HELP_STRING([--with-mlton=<path-to-mlton>],
390        [use the MLton Standard ML compiler to build Diderot])],
391      [with_mlton=yes],[with_mlton=no])
392    if test x"$with_mlton" = xyes ; then
393      if test x"$ac_cv_path_with_mlton" = x ; then
394        # look for mlton in the PATH
395        AC_PATH_PROGS(with_mlton, mlton, no)
396        if test x"$MLTON" = xno ; then
397          AC_MSG_ERROR([unable to find mlton executable; please specify the path])
398        fi
399      else
400        with_mlton=$ac_cv_path_with_mlton
401        case $with_mlton in
402          /*) ;;
403          *) AC_MSG_ERROR([please specify absolute path for mlton executable]) ;;
404        esac
405        if test ! -x $with_mlton ; then
406          AC_MSG_ERROR([invalid path for mlton; $with_mlton is not executable])
407        fi
408      fi
409    fi
410    
411    if test x"$with_mlton" = xno ; then
412      # we are using SML/NJ
413      #
414    
415  dnl check that we have a compatible version of SML/NJ  dnl check that we have a compatible version of SML/NJ
416  dnl  dnl
417  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])])
418  if test $SMLNJ_MAJOR_VERSION -lt 110 \  if test $SMLNJ_MAJOR_VERSION -lt 110 \
419    -o $SMLNJ_MINOR_VERSION -lt 72      -o $SMLNJ_MINOR_VERSION -lt 79
420  then  then
421    AC_MSG_ERROR([installation requires SML/NJ version 110.72+])      AC_MSG_ERROR([installation requires SML/NJ version 110.79+ (available from smlnj.org)])
422  fi  fi
 AC_SUBST(SMLNJ_VERSION)  
423    
424  dnl determine the heap-image suffix  dnl determine the heap-image suffix
425  dnl  dnl
# Line 163  Line 447 
447    AC_MSG_ERROR([ml-build not found])    AC_MSG_ERROR([ml-build not found])
448  fi  fi
449  AC_SUBST(ML_BUILD)  AC_SUBST(ML_BUILD)
450      SML=smlnj
451    
452    else
453      # we are using MLton
454      MLTON=$with_mlton
455      AC_SUBST(MLTON)
456      SML=mlton
457    fi
458    AC_SUBST(SML)
459    
460    dnl ******************** Documentation tools ********************
461    
462    dnl check for doxygen
463    dnl
464    AC_ARG_WITH([doxygen],
465      [AS_HELP_STRING([--with-doxygen=<path>], [specify location of doxygen executable])],
466      [DOXYGEN=$with_doxygen],
467      [DOXYGEN=none])
468    if test x$DOXYGEN = xnone ; then
469      # see if we can find doxygen in the user's path
470      AC_PATH_PROG(DOXYGEN, [doxygen], [none])
471    fi
472    if test x$with_doxygen = xyes -o x$with_doxygen = xno ; then
473      AC_MSG_ERROR([--with-doxygen option must specify directory argument])
474    elif test x$DOXYGEN != xnone -a ! -x $DOXYGEN ; then
475      AC_MSG_ERROR([doxygen not found at $DOXYGEN])
476    elif test x$DOXYGEN != xnone ; then
477    dnl
478    dnl verify that $DOXYGEN is an absolute path
479    dnl
480      case $DOXYGEN in
481        /*) ;;
482        *) AC_MSG_ERROR([--with-doxygen path must be absolute]) ;;
483      esac
484    fi
485    if test $DOXYGEN = xnone ; then
486      DOXYGEN=:
487    fi
488    AC_SUBST(DOXYGEN)
489    
490    dnl check for asciidoc and related tools
491    dnl
492    AC_PATH_PROGS([ASCIIDOC], [asciidoc], [none])
493    AC_PATH_PROGS([A2X], [a2x], [none])
494    AC_PATH_PROGS([HIGHLIGHTER], [pygmentize], [none])
495    AC_PATH_PROGS([DBLATEX], [dblatex], [none])
496    
497    dnl
498    dnl get the path to the asciidoc cofiguration files
499    dnl
500    if test x"$ASCIIDOC" != xnone ; then
501      AC_MSG_CHECKING([path to asciidoc configuration files])
502      ASCIIDOC_CONF_DIR=`$ASCIIDOC -v /dev/null 2>&1 | head -n 1 | sed 's|.*reading: \(.*\)/asciidoc.conf|\1|'`
503      AC_MSG_RESULT([$ASCIIDOC_CONF_DIR])
504    fi
505    AC_SUBST(ASCIIDOC)
506    AC_SUBST(A2X)
507    AC_SUBST(ASCIIDOC_CONF_DIR)
508    AC_SUBST(HIGHLIGHTER)
509    AC_SUBST(DBLATEX)
510    
511    
512  dnl ******************** Paths ********************  dnl ******************** Paths ********************
513    
# Line 186  Line 531 
531  AC_SUBST(INSTALL_SMLNJ_WRAPPER)  AC_SUBST(INSTALL_SMLNJ_WRAPPER)
532    
533  dnl  dnl
534    dnl ******************** C compiler properties ********************
535    dnl
536    
537    dnl
538    dnl run the compiler tests in 64-bit mode
539    dnl
540    save_CFLAGS=$CFLAGS
541    CFLAGS="$CFLAGS $CFLAG_MXX"
542    
543    dnl
544    dnl check for gcc builtin atomic operations
545    dnl
546    AC_MSG_CHECKING([for builtin atomic operations])
547    AC_LINK_IFELSE(
548       [AC_LANG_PROGRAM([], [int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);])],
549       AC_MSG_RESULT(yes)
550       AC_DEFINE(
551        [HAVE_BUILTIN_ATOMIC_OPS], 1,
552        [Define to 1 if gcc compiler provides atomic operations.]),
553       AC_MSG_RESULT(no))
554    
555    AC_C_BIGENDIAN
556    
557    #
558    # determine the sizes of the standard C types
559    AC_CHECK_SIZEOF([int])
560    SIZEOF_C_INT=$ac_cv_sizeof_int
561    AC_CHECK_SIZEOF([long])
562    SIZEOF_C_LONG=$ac_cv_sizeof_long
563    AC_CHECK_SIZEOF([float])
564    SIZEOF_C_FLOAT=$ac_cv_sizeof_float
565    AC_CHECK_SIZEOF([double])
566    SIZEOF_C_DOUBLE=$ac_cv_sizeof_double
567    
568    AC_SUBST(SIZEOF_C_INT)
569    AC_SUBST(SIZEOF_C_LONG)
570    AC_SUBST(SIZEOF_C_FLOAT)
571    AC_SUBST(SIZEOF_C_DOUBLE)
572    
573    dnl
574    dnl restore CFLAGS
575    dnl
576    CFLAGS=$save_CFLAGS
577    
578    dnl
579    dnl ******************** config.h stuff ********************
580    dnl
581    
582    AC_DEFINE_UNQUOTED(DIDEROT_INCLUDE_PATH,["$DIDEROT_SRCDIR/include"], [path for Diderot header files])
583    
584    AH_TOP([
585    /*
586     * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
587     *
588     * COPYRIGHT (c) 2015 The University of Chicago * All rights reserved.
589     */
590    
591    #ifndef _DIDEROT_CONFIG_H_
592    #define _DIDEROT_CONFIG_H_
593    
594    ])
595    AH_BOTTOM([
596    
597    #ifdef NDEBUG
598    #define STATIC_INLINE   static inline
599    #else
600    #define STATIC_INLINE   static
601    #endif
602    
603    #endif /* !_DIDEROT_CONFIG_H_ */
604    ])
605    
606    dnl
607  dnl ******************** write output ********************  dnl ******************** write output ********************
608  dnl  dnl
609    
610    dnl The compiler Makefile depends on which SML system we are
611    dnl using.
612    if test x"$SML" = xmlton ; then
613      COMPILER_MAKEFILE_IN=":src/compiler/Makefile_mlton.in"
614    else
615      COMPILER_MAKEFILE_IN=""
616    fi
617    
618  AC_CONFIG_FILES(  AC_CONFIG_FILES(
619  dnl  dnl
620  dnl ***** Makefiles *****  dnl ***** Makefiles *****
621    Makefile    Makefile
622    src/dnorm/Makefile  dnl  doc/Makefile
623    src/compiler/Makefile  dnl  doc/man/Makefile
624    src/lib/Makefile  dnl  src/clinfo/Makefile
625    src/lib/build/Makefile    src/compiler/Makefile"$COMPILER_MAKEFILE_IN"
626    src/lib/build/mk/build.gmk:src/lib/build/mk/build_gmk.in  dnl  src/lib/build/Makefile
627    test/Makefile  dnl  src/lib/build/mk/build.gmk:src/lib/build/mk/build_gmk.in
628    test/MIP/Makefile  dnl  test/MIP/Makefile
629    test/probe/Makefile  dnl  test/probe/Makefile
630    dnl  test/iso2d-polyline/Makefile
631    dnl  test/vr-lite-cam/Makefile
632    dnl  test/hlic/Makefile
633  dnl  dnl
634  dnl ***** SML source files *****  dnl ***** SML source files *****
635    src/compiler/fields/run-dnorm.sml:src/compiler/fields/run-dnorm_sml.in    src/compiler/nrrd/run-dnorm.sml:src/compiler/nrrd/run-dnorm_sml.in
636    src/compiler/common/paths.sml:src/compiler/common/paths_sml.in    src/compiler/common/paths.sml:src/compiler/common/paths_sml.in
637      src/compiler/common/size-of.sml:src/compiler/common/size-of_sml.in
638      src/compiler/options/version.sml:src/compiler/options/version_sml.in
639  )  )
640    
641    AC_CONFIG_HEADERS(src/include/Diderot/config.h:config/config_h.in)
642    
643  dnl  dnl
644  dnl shell scripts  dnl shell scripts
645  dnl  dnl
646  AC_CONFIG_FILES([  AC_CONFIG_FILES([
647    bin/install-sml-wrapper.sh:config/install-sml-wrapper_sh.in    bin/install-sml-wrapper.sh:config/install-sml-wrapper_sh.in
648  ], [chmod +x bin/install-sml-wrapper.sh])  ], [chmod +x bin/install-sml-wrapper.sh])
649  AC_CONFIG_FILES([  # AC_CONFIG_FILES([
650    rtest/scripts/run-one.sh:rtest/scripts/run-one_sh.in  #   src/compiler/gen/file2str/file2str.sh:src/compiler/gen/file2str/file2str_sh.in
651  ], [chmod +x rtest/scripts/run-one.sh])  # ], [chmod +x src/compiler/gen/file2str/file2str.sh])
652  AC_CONFIG_FILES([  # AC_CONFIG_FILES([
653    rtest/scripts/run.sh:rtest/scripts/run_sh.in  #   rtest/scripts/run.sh:rtest/scripts/run_sh.in
654  ], [chmod +x rtest/scripts/run.sh])  # ], [chmod +x rtest/scripts/run.sh])
655    # AC_CONFIG_FILES([
656    #   rtest/scripts/run-one.sh:rtest/scripts/run-one_sh.in
657    # ], [chmod +x rtest/scripts/run-one.sh])
658    #
659    # more regression tests; should merge with rtest at some point
660    #
661    # AC_CONFIG_FILES([
662    #   rtest2/scripts/run.sh:rtest2/scripts/run_sh.in
663    # ], [chmod +x rtest2/scripts/run.sh])
664    # AC_CONFIG_FILES([
665    #   rtest2/scripts/run-one.sh:rtest2/scripts/run-one_sh.in
666    # ], [chmod +x rtest2/scripts/run-one.sh])
667    
668  dnl  dnl
669  dnl generate makefiles for runtime library builds  dnl generate makefiles for runtime library builds
# Line 237  Line 682 
682      AC_CONFIG_FILES(src/lib/build/$1/Makefile)      AC_CONFIG_FILES(src/lib/build/$1/Makefile)
683    ])    ])
684    
685  MK_BUILD_DIR(rt-c-f, c-target, [float])  #MK_BUILD_DIR(rt-c-f, c, [float])
686  MK_BUILD_DIR(rt-c-f-debug, c-target, [float debug])  #MK_BUILD_DIR(rt-c-d, c, [double])
687    #MK_BUILD_DIR(rt-c-f-debug, c, [float debug])
688    #MK_BUILD_DIR(rt-c-d-debug, c, [double debug])
689    #MK_BUILD_DIR(rt-c-f-par, parallel, [parallel float])
690    #MK_BUILD_DIR(rt-c-d-par, parallel, [parallel double])
691    #MK_BUILD_DIR(rt-c-f-par-debug, parallel, [parallel float debug])
692    #MK_BUILD_DIR(rt-c-d-par-debug, parallel, [parallel double debug])
693    
694    #if test x"$CL_ENABLED" = xtrue ; then
695    #  MK_BUILD_DIR(rt-cl-f, cl, [float])
696    #  MK_BUILD_DIR(rt-cl-d, cl, [double])
697    #  MK_BUILD_DIR(rt-cl-f-debug, cl, [float debug])
698    #  MK_BUILD_DIR(rt-cl-d-debug, cl, [double debug])
699    #fi
700    
701  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.1200  
changed lines
  Added in v.3718

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