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

SCM Repository

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

Diff of /branches/vis12/configure.ac

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

revision 3, Wed Jan 6 04:47:22 2010 UTC revision 321, Wed Aug 18 04:26:52 2010 UTC
# Line 10  Line 10 
10    
11  AC_PREREQ(2.60)  AC_PREREQ(2.60)
12  AC_COPYRIGHT([[COPYRIGHT (c) 2010 The Diderot Project]])  AC_COPYRIGHT([[COPYRIGHT (c) 2010 The Diderot Project]])
13  AC_CONFIG_SRCDIR(??)  AC_CONFIG_SRCDIR(src/dnorm/dnorm.c)
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 include additional macros  dnl include additional macros
19  dnl  dnl
 dnl sinclude(config/ax_check_gl.m4)  
 dnl sinclude(config/ax_check_glu.m4)  
 dnl sinclude(config/ax_check_glut.m4)  
20  sinclude(config/acx_pthread.m4)  sinclude(config/acx_pthread.m4)
21  sinclude(config/ax_lang_compiler_ms.m4)  sinclude(config/check_smlnj.m4)
22  sinclude(config/ax_check_framework.m4)  sinclude(config/check_smlnj_heap_suffix.m4)
23  sinclude(config/ax_check_macports.m4)  
 sinclude(config/ax_check_lib_stdcall.m4)  
24    
25  dnl  dnl
26  dnl get host and target information  dnl get host information
27  dnl  dnl
28  AC_CANONICAL_HOST  AC_CANONICAL_HOST
29    
# Line 38  Line 34 
34  AC_PROG_INSTALL  AC_PROG_INSTALL
35  AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
36    
37    dnl
38    dnl If we are on Mac OS X, check for the presence of macports and/or fink
39    dnl
40    case "$host_os" in
41      darwin*) # On Mac OS X we check for installed frameworks
42        if test -x /opt/local/bin/port ; then
43          HAS_MACPORTS=yes
44        else
45          HAS_MACPORTS=no
46        fi
47        if test -x /sw/bin/fink ; then
48          HAS_FINK=yes
49        else
50          HAS_FINK=no
51        fi
52      ;;
53    esac
54    
55    if test x"$HAS_MACPORTS" = xyes ; then
56      LDPATHS="-L/opt/local/lib"
57    elif test x"$HAS_FINK" = xyes ; then
58      LDPATHS="-L/sw/lib"
59    else
60      LDPATHS=""
61    fi
62    AC_SUBST(LDPATHS)
63    
64    dnl
65    dnl get the path to the TEEM installation
66    dnl
67    AC_ARG_WITH(teem,
68      AC_HELP_STRING([--with-teem=<path>], [specify path to teem installation]),
69      [ac_cv_use_teem=$withval], [ac_cv_use_teem=no])
70    if test x"$ac_cv_use_teem" = xno ; then
71      TEEM_DIR=none
72    else
73      AC_MSG_CHECKING([path to teem ($ac_cv_use_teem)])
74      case $ac_cv_use_teem in
75        /*) ;;
76        *) AC_MSG_ERROR([path to teem must be absolute]) ;;
77      esac
78      if test -x $ac_cv_use_teem ; then
79        TEEM_DIR=$ac_cv_use_teem
80        AC_MSG_RESULT([ okay])
81      else
82        TEEM_DIR=none
83        AC_MSG_RESULT([ invalid])
84      fi
85    fi
86    if test x"$TEEM_DIR" = xnone ; then
87      AC_MSG_ERROR([unable to find teem])
88    fi
89    AC_SUBST(TEEM_DIR)
90    
91    dnl ******************** SML/NJ configuration ********************
92    dnl
93    
94    dnl check that we have a compatible version of SML/NJ
95    dnl
96    CHECK_SMLNJ([AC_MSG_ERROR([unable to find SML/NJ installation; check your PATH or set SMLNJ_CMD])])
97    if test $SMLNJ_MAJOR_VERSION -lt 110 \
98      -o $SMLNJ_MINOR_VERSION -lt 72
99    then
100      AC_MSG_ERROR([installation requires SML/NJ version 110.72+])
101    fi
102    AC_SUBST(SMLNJ_VERSION)
103    
104    dnl determine the heap-image suffix
105    dnl
106    CHECK_SMLNJ_HEAP_SUFFIX([
107      AC_MSG_ERROR([unsupported configuration ${host_cpu}-${host_os}])])
108    
109    dnl look for ml-makedepend
110    dnl
111    AC_MSG_CHECKING([for ml-makedepend])
112    tmpPATH="$SMLNJ_PATH:$PATH"
113    AC_PATH_PROG(ML_MAKEDEPEND, ml-makedepend, ":", $tmpPATH)
114    if test $ML_MAKEDEPEND = none ; then
115      AC_MSG_ERROR([ml-makedepend not found])
116    else
117      AC_MSG_RESULT([$ML_MAKEDEPEND])
118    fi
119    AC_SUBST(ML_MAKEDEPEND)
120    
121    dnl
122    dnl look for ml-build
123    dnl
124    tmpPATH="$SMLNJ_PATH:$PATH"
125    AC_PATH_PROG(ML_BUILD, ml-build, none, $tmpPATH)
126    if test $ML_BUILD = none ; then
127      AC_MSG_ERROR([ml-build not found])
128    fi
129    AC_SUBST(ML_BUILD)
130    
131    dnl ******************** Paths ********************
132    
133    DIDEROT_ROOT=`pwd`
134    DIDEROT_DOCDIR=$DIDEROT_ROOT/doc
135    DIDEROT_SRCDIR=$DIDEROT_ROOT/src
136    DIDEROT_LIBDIR=$DIDEROT_ROOT/lib
137    DIDEROT_BINDIR=$DIDEROT_ROOT/bin
138    DIDEROT_MKDIR=$DIDEROT_ROOT/mk
139    
140    HEAP_IMAGE_DIR=$DIDEROT_BINDIR/.heap
141    INSTALL_SMLNJ_WRAPPER=$DIDEROT_BINDIR/install-sml-wrapper.sh
142    
143    AC_SUBST(DIDEROT_ROOT)
144    AC_SUBST(DIDEROT_DOCDIR)
145    AC_SUBST(DIDEROT_SRCDIR)
146    AC_SUBST(DIDEROT_LIBDIR)
147    AC_SUBST(DIDEROT_BINDIR)
148    AC_SUBST(DIDEROT_MKDIR)
149    AC_SUBST(HEAP_IMAGE_DIR)
150    AC_SUBST(INSTALL_SMLNJ_WRAPPER)
151    
152    dnl
153    dnl ******************** write output ********************
154    dnl
155    
156    AC_CONFIG_FILES(
157    dnl
158    dnl ***** Makefiles *****
159      Makefile
160      src/dnorm/Makefile
161      src/compiler/Makefile
162      test/MIP/Makefile
163      test/probe/Makefile
164    dnl
165    dnl ***** SML source files *****
166      src/compiler/fields/run-dnorm.sml:src/compiler/fields/run-dnorm_sml.in
167    )
168    
169    dnl
170    dnl shell scripts
171    dnl
172    AC_CONFIG_FILES([
173      bin/install-sml-wrapper.sh:config/install-sml-wrapper_sh.in
174    ], [chmod +x bin/install-sml-wrapper.sh])
175    
176  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.3  
changed lines
  Added in v.321

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