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

SCM Repository

[diderot] Diff of /tests/configure.ac
ViewVC logotype

Diff of /tests/configure.ac

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

revision 4919, Wed Feb 15 21:04:45 2017 UTC revision 5146, Fri Jul 21 05:54:36 2017 UTC
# Line 2  Line 2 
2  dnl  dnl
3  dnl This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)  dnl This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
4  dnl  dnl
5  dnl COPYRIGHT (c) 2016 The University of Chicago  dnl COPYRIGHT (c) 2017 The University of Chicago
6  dnl All rights reserved.  dnl All rights reserved.
7  dnl  dnl
8    
9  AC_INIT(diderot-tests,0.1,)  AC_INIT(diderot-tests,0.1,)
10    
11  AC_PREREQ(2.60)  AC_PREREQ(2.60)
12  AC_COPYRIGHT([[COPYRIGHT (c) 2016 The University of Chicago]])  AC_COPYRIGHT([[COPYRIGHT (c) 2017 The University of Chicago]])
13  AC_CONFIG_SRCDIR(rtest/tests/heron/heron.diderot)  AC_CONFIG_SRCDIR(rtest/tests/heron/heron.diderot)
14  AC_CONFIG_AUX_DIR(config)  AC_CONFIG_AUX_DIR(config)
15  AC_CONFIG_MACRO_DIR(config)  AC_CONFIG_MACRO_DIR(config)
16    
17    sinclude(config/ax_cxx_compile_stdcxx.m4)
18    sinclude(config/acx_pthread.m4)
19    
20  dnl check for standard programs  dnl check for standard programs
21  dnl  dnl
22  AC_PROG_INSTALL  AC_PROG_INSTALL
23    
24    AC_PROG_CC([clang gcc cc])
25    AC_PROG_CXX([clang++ g++ c++])
26    AX_CXX_COMPILE_STDCXX(11,[],[mandatory])
27    
28    dnl
29    dnl check for pthreads support
30    dnl
31    ACX_PTHREAD
32    
33    dnl
34    dnl OS-specific linking issues
35    dnl
36    LD_NEEDS_RPATH=no;
37    LIBM=""
38    case "$host_os" in
39      darwin*) # On Mac OS X we check for the presence of macports and/or fink
40        if test -x /opt/local/bin/port ; then
41          HAS_MACPORTS=yes
42        else
43          HAS_MACPORTS=no
44        fi
45        if test -x /sw/bin/fink ; then
46          HAS_FINK=yes
47        else
48          HAS_FINK=no
49        fi
50      ;;
51      linux*) # On Linux we include the -rpath option to pick up dynamically-loaded libraries
52        LD_NEEDS_RPATH=yes
53        LIBM="-lm"
54      ;;
55    esac
56    
57    if test x"$HAS_MACPORTS" = xyes ; then
58      LDPATHS="-L/opt/local/lib"
59    elif test x"$HAS_FINK" = xyes ; then
60      LDPATHS="-L/sw/lib"
61    else
62      LDPATHS=""
63    fi
64    AC_SUBST(LDPATHS)
65    AC_SUBST(LD_NEEDS_RPATH)
66    AC_SUBST(LIBM)
67    
68  dnl the path can be specified using "--with-teem=..." too  dnl the path can be specified using "--with-teem=..." too
69  dnl  dnl
70  AC_ARG_WITH(teem,  AC_ARG_WITH(teem,
# Line 71  Line 118 
118  dnl  dnl
119    
120  dnl  dnl
121  dnl get the path to the diderot executable  dnl get the path to the root of the Diderot source tree that is being
122  dnl  dnl tested (DIDEROT_ROOT).  We assume that diderotc will be found in
123  AC_ARG_WITH(diderotc,  dnl $DIDEROT_ROOT/bin.
124    AC_HELP_STRING([--with-diderotc=<path>], [specify path to Diderot compiler]),  dnl
125    [ac_cv_use_diderotc=$withval], [ac_cv_use_diderotc=no])  AC_ARG_WITH(diderot,
126  if test x"$ac_cv_use_diderotc" = xno ; then    AC_HELP_STRING([--with-diderot=<path>], [specify path to Diderot source]),
127    DIDEROTC=none    [ac_cv_use_diderot=$withval], [ac_cv_use_diderot=no])
128    if test x"$ac_cv_use_diderot" = xno ; then
129      DIDEROT_ROOT=none
130  else  else
131    AC_MSG_CHECKING([path to diderotc ($ac_cv_use_diderotc)])    AC_MSG_CHECKING([path to diderot ($ac_cv_use_diderot)])
132    case $ac_cv_use_diderotc in    case $ac_cv_use_diderot in
133      /*) DIDEROTC=$ac_cv_use_diderotc ;;      /*) DIDEROT_ROOT=$ac_cv_use_diderot ;;
134      *) DIDEROTC=$BMARKS_ROOT$ac_cv_use_diderotc ;;      *) DIDEROT_ROOT=$BMARKS_ROOT$ac_cv_use_diderot ;;
135    esac    esac
136    # check that diderotc exists and is executable    # check that diderotc exists and is executable
137      DIDEROTC=$DIDEROT_ROOT/bin/diderotc
138    if test -x $DIDEROTC ; then    if test -x $DIDEROTC ; then
139      AC_MSG_RESULT([ okay])      AC_MSG_RESULT([ okay])
140    else    else
141        DIDEROT_ROOT=none
142      DIDEROTC=none      DIDEROTC=none
143      AC_MSG_RESULT([ invalid])      AC_MSG_RESULT([ invalid])
144    fi    fi
145  fi  fi
146  if test x"$DIDEROTC" = xnone ; then  if test x"$DIDEROT_ROOT" = xnone ; then
147    AC_MSG_ERROR([unable to find diderotc; use --with-diderotc option to specify location])    AC_MSG_ERROR([please specify location of Diderot source using --with-diderot option])
148  fi  fi
149    AC_SUBST(DIDEROT_ROOT)
150  AC_SUBST(DIDEROTC)  AC_SUBST(DIDEROTC)
151    
152  dnl  dnl
# Line 102  Line 154 
154  dnl  dnl
155    
156  dnl  dnl
157    dnl make definitions for regression tests
158    dnl
159    AC_CONFIG_FILES(
160      rtest/scripts/makedefs.gmk:rtest/scripts/makedefs_gmk.in
161    )
162    
163    dnl
164  dnl generate script files with proper paths  dnl generate script files with proper paths
165  dnl  dnl
166  dnl usage: MK_SCRIPT(<prefix-path>)  dnl usage: MK_SCRIPT(<prefix-path>)
# Line 129  Line 188 
188  MK_SCRIPT(vis15-bugs/plot1d2d)  MK_SCRIPT(vis15-bugs/plot1d2d)
189  MK_SCRIPT(vis15-bugs/parlife)  MK_SCRIPT(vis15-bugs/parlife)
190  MK_SCRIPT(vis15-bugs/parcircle)  MK_SCRIPT(vis15-bugs/parcircle)
191    MK_SCRIPT(vis15-bugs/posh)
192    MK_SCRIPT(vis15-bugs/badptclB/run)
193    MK_SCRIPT(vis15-bugs/pbfs)
194    
195  AC_OUTPUT  AC_OUTPUT
196    

Legend:
Removed from v.4919  
changed lines
  Added in v.5146

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