annotate main/sparsersb/src/configure.base @ 8923:ba575291987f octave-forge

sparsersb: added the --with-verbosity-level configure switch, to activate sparsersb (debug) verbosity at build time.
author michelemartone
date Tue, 15 Nov 2011 19:09:20 +0000
parents c47ac161e75d
children ffd8edaaa76f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8849
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
1 dnl The configure script is generated by autogen.sh from configure.base
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
2 dnl and the various configure.add files in the source tree. Edit
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
3 dnl configure.base and reprocess rather than modifying ./configure.
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
4
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
5 dnl autoconf 2.13 certainly doesn't work! What is the minimum requirement?
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
6 AC_PREREQ(2.2)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
7
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
8 AC_INIT(configure.base)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
9
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
10 PACKAGE=octave-forge
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
11 MAJOR_VERSION=0
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
12 MINOR_VERSION=1
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
13 PATCH_LEVEL=0
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
14
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
15 dnl Kill caching --- this ought to be the default
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
16 define([AC_CACHE_LOAD], )dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
17 define([AC_CACHE_SAVE], )dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
18
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
19 dnl uncomment to put support files in another directory
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
20 dnl AC_CONFIG_AUX_DIR(admin)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
21
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
22 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
23 AC_SUBST(PACKAGE)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
24 AC_SUBST(VERSION)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
25
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
26 dnl need to find admin files, so keep track of the top dir.
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
27 TOPDIR=`pwd`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
28 AC_SUBST(TOPDIR)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
29
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
30 dnl if mkoctfile doesn't work, then we need the following:
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
31 dnl AC_PROG_CXX
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
32 dnl AC_PROG_F77
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
33
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
34 dnl Need C compiler regardless so define it in a way that
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
35 dnl makes autoconf happy and we can override whatever we
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
36 dnl need with mkoctfile -p.
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
37 dnl XXX FIXME XXX should use mkoctfile to get CC and CFLAGS
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
38 AC_PROG_CC
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
39
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
40 dnl XXX FIXME XXX need tests for -p -c -s in mkoctfile.
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
41
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
42 dnl *******************************************************************
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
43 dnl Sort out mkoctfile version number and install paths
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
44
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
45 dnl XXX FIXME XXX latest octave has octave-config so we don't
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
46 dnl need to discover things here. Doesn't have --exe-site-dir
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
47 dnl but defines --oct-site-dir and --m-site-dir
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
48
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
49 dnl Check for mkoctfile
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
50 AC_CHECK_PROG(MKOCTFILE,mkoctfile,mkoctfile)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
51 test -z "$MKOCTFILE" && AC_MSG_WARN([no mkoctfile found on path])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
52
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
53 AC_SUBST(ver)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
54 AC_SUBST(subver)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
55 AC_SUBST(mpath)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
56 AC_SUBST(opath)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
57 AC_SUBST(xpath)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
58 AC_SUBST(altpath)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
59 AC_SUBST(altmpath)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
60 AC_SUBST(altopath)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
61 AC_SUBST(LIBRSB_LIBS)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
62 AC_SUBST(LIBRSB_CXXFLAGS)
8923
ba575291987f sparsersb: added the --with-verbosity-level configure switch, to activate sparsersb (debug) verbosity at build time.
michelemartone
parents: 8882
diff changeset
63 AC_SUBST(RSBOI_CXXFLAGS)
8849
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
64
8923
ba575291987f sparsersb: added the --with-verbosity-level configure switch, to activate sparsersb (debug) verbosity at build time.
michelemartone
parents: 8882
diff changeset
65 AC_ARG_WITH(verbosity-level,
ba575291987f sparsersb: added the --with-verbosity-level configure switch, to activate sparsersb (debug) verbosity at build time.
michelemartone
parents: 8882
diff changeset
66 [ --with-verbosity-level verbosity level (0,1,..)],
ba575291987f sparsersb: added the --with-verbosity-level configure switch, to activate sparsersb (debug) verbosity at build time.
michelemartone
parents: 8882
diff changeset
67 [ RSBOI_VERBOSE_CONFIG=$withval ])
8849
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
68 AC_ARG_WITH(path,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
69 [ --with-path install path prefix],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
70 [ path=$withval ])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
71 AC_ARG_WITH(mpath,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
72 [ --with-mpath override path for m-files],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
73 [mpath=$withval])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
74 AC_ARG_WITH(opath,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
75 [ --with-opath override path for oct-files],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
76 [opath=$withval])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
77 AC_ARG_WITH(xpath,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
78 [ --with-xpath override path for executables],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
79 [xpath=$withval])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
80 AC_ARG_WITH(altpath,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
81 [ --with-altpath alternative functions install path prefix],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
82 [ altpath=$withval ])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
83 AC_ARG_WITH(altmpath,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
84 [ --with-altmpath override path for alternative m-files],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
85 [altmpath=$withval])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
86 AC_ARG_WITH(altopath,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
87 [ --with-altopath override path for alternative oct-files],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
88 [altopath=$withval])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
89 AC_ARG_WITH([swig],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
90 [AS_HELP_STRING([--with-swig],[use swig wrapper generator [no]])],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
91 [with_swig=$withval],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
92 [with_swig=no])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
93
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
94 if test -n "$path" ; then
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
95 test -z "$mpath" && mpath=$path
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
96 test -z "$opath" && opath=$path/oct
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
97 test -z "$xpath" && xpath=$path/bin
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
98 test -z "$altpath" && altpath=$path-alternatives
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
99 fi
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
100
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
101 if test -n "$altpath" ; then
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
102 test -z "$altmpath" && altmpath=$altpath
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
103 test -z "$altopath" && altopath=$altpath/oct
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
104 fi
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
105
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
106 dnl Don't query if path/ver are given in the configure environment
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
107 #if test -z "$mpath" || test -z "$opath" || test -z "$xpath" || test -z "$altmpath" || test -z "$altopath" || test -z "$ver" ; then
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
108 if test -z "$mpath" || test -z "$opath" || test -z "$xpath" || test -z "$ver" ; then
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
109 dnl Construct program to get mkoctfile version and local install paths
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
110 cat > conftest.cc <<EOF
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
111 #include <octave/config.h>
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
112 #include <octave/version.h>
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
113 #include <octave/defaults.h>
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
114
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
115 #define INFOV "\nINFOV=" OCTAVE_VERSION "\n"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
116
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
117 #define INFOH "\nINFOH=" OCTAVE_CANONICAL_HOST_TYPE "\n"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
118
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
119 #ifdef OCTAVE_LOCALVERFCNFILEDIR
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
120 # define INFOM "\nINFOM=" OCTAVE_LOCALVERFCNFILEDIR "\n"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
121 #else
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
122 # define INFOM "\nINFOM=" OCTAVE_LOCALFCNFILEPATH "\n"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
123 #endif
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
124
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
125 #ifdef OCTAVE_LOCALVEROCTFILEDIR
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
126 # define INFOO "\nINFOO=" OCTAVE_LOCALVEROCTFILEDIR "\n"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
127 #else
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
128 # define INFOO "\nINFOO=" OCTAVE_LOCALOCTFILEPATH "\n"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
129 #endif
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
130
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
131 #ifdef OCTAVE_LOCALVERARCHLIBDIR
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
132 # define INFOX "\nINFOX=" OCTAVE_LOCALVERARCHLIBDIR "\n"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
133 #else
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
134 # define INFOX "\nINFOX=" OCTAVE_LOCALARCHLIBDIR "\n"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
135 #endif
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
136
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
137 const char *infom = INFOM;
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
138 const char *infoo = INFOO;
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
139 const char *infox = INFOX;
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
140 const char *infoh = INFOH;
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
141 const char *infov = INFOV;
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
142 EOF
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
143
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
144 dnl Compile program perhaps with a special version of mkoctfile
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
145 $MKOCTFILE conftest.cc || AC_MSG_ERROR(Could not run $MKOCTFILE)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
146
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
147 dnl Strip the config info from the compiled file
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
148 eval `strings conftest.o | grep "^INFO.=" | sed -e "s,//.*$,,"`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
149 rm -rf conftest*
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
150
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
151 dnl set the appropriate variables if they are not already set
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
152 ver=`echo $INFOV | sed -e "s/\.//" -e "s/\..*$//"`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
153 subver=`echo $INFOV | sed -e "[s/^[^.]*[.][^.]*[.]//]"`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
154 alt_mbase=`echo $INFOM | sed -e "[s,\/[^\/]*$,,]"`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
155 alt_obase=`echo $INFOO | sed -e "[s,/site.*$,/site,]"`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
156 test -z "$mpath" && mpath=$INFOM/octave-forge
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
157 test -z "$opath" && opath=$INFOO/octave-forge
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
158 test -z "$xpath" && xpath=$INFOX
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
159 test -z "$altmpath" && altmpath=$alt_mbase/octave-forge-alternatives/m
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
160 test -z "$altopath" && altopath=$alt_obase/octave-forge-alternatives/oct/$INFOH
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
161 fi
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
162
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
163 dnl *******************************************************************
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
164
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
165 dnl XXX FIXME XXX Should we allow the user to override these?
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
166 dnl Do we even need them? The individual makefiles can call mkoctfile -p
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
167 dnl themselves, so the only reason to keep them is for configure, and
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
168 dnl for those things which are not built using mkoctfile (e.g., aurecord)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
169 dnl but it is not clear we should be using octave compile flags for those.
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
170
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
171 dnl C compiler and flags
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
172 AC_MSG_RESULT([retrieving compile and link flags from $MKOCTFILE])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
173 CC=`$MKOCTFILE -p CC`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
174 CFLAGS=`$MKOCTFILE -p CFLAGS`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
175 CPPFLAGS=`$MKOCTFILE -p CPPFLAGS`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
176 CPICFLAG=`$MKOCTFILE -p CPICFLAG`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
177 LDFLAGS=`$MKOCTFILE -p LDFLAGS`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
178 LIBS=`$MKOCTFILE -p LIBS`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
179 # add -fPIC or equivalent flags
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
180 FPICFLAG=`$MKOCTFILE -p FPICFLAG`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
181 CPICFLAG=`$MKOCTFILE -p CPICFLAG`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
182 FFLAGS="$FFLAGS $FPICFLAG"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
183 CFLAGS="$CFLAGS $CPICFLAG"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
184 AC_SUBST(CC)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
185 AC_SUBST(CFLAGS)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
186 AC_SUBST(CPPFLAGS)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
187 AC_SUBST(CPICFLAG)
8923
ba575291987f sparsersb: added the --with-verbosity-level configure switch, to activate sparsersb (debug) verbosity at build time.
michelemartone
parents: 8882
diff changeset
188 RSBOI_CXXFLAGS=""
ba575291987f sparsersb: added the --with-verbosity-level configure switch, to activate sparsersb (debug) verbosity at build time.
michelemartone
parents: 8882
diff changeset
189 if test x$RSBOI_VERBOSE_CONFIG != x ; then
ba575291987f sparsersb: added the --with-verbosity-level configure switch, to activate sparsersb (debug) verbosity at build time.
michelemartone
parents: 8882
diff changeset
190 RSBOI_CXXFLAGS="$RSBOI_CXXFLAGS -D''RSBOI_VERBOSE_CONFIG=$RSBOI_VERBOSE_CONFIG";
ba575291987f sparsersb: added the --with-verbosity-level configure switch, to activate sparsersb (debug) verbosity at build time.
michelemartone
parents: 8882
diff changeset
191 fi
8849
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
192
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
193 dnl Fortran compiler and flags
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
194 F77=`$MKOCTFILE -p F77`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
195 FFLAGS=`$MKOCTFILE -p FFLAGS`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
196 FPICFLAG=`$MKOCTFILE -p FPICFLAG`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
197 AC_SUBST(F77)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
198 AC_SUBST(FFLAGS)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
199 AC_SUBST(FPICFLAG)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
200
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
201 dnl C++ compiler and flags
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
202 CXX=`$MKOCTFILE -p CXX`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
203 CXXFLAGS=`$MKOCTFILE -p CXXFLAGS`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
204 CXXPICFLAG=`$MKOCTFILE -p CXXPICFLAG`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
205 CXXFLAGS="$CXXFLAGS $CXXPICFLAG"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
206 AC_SUBST(CXX)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
207 AC_SUBST(CXXFLAGS)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
208 AC_SUBST(CXXPICFLAG)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
209
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
210 dnl *******************************************************************
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
211
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
212 dnl Check for features of your version of mkoctfile.
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
213 dnl All checks should be designed so that the default
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
214 dnl action if the tests are not performed is to do whatever
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
215 dnl is appropriate for the most recent version of Octave.
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
216
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
217 dnl Define the following macro:
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
218 dnl OF_CHECK_LIB(lib,fn,true,false,helpers)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
219 dnl This is just like AC_CHECK_LIB, but it doesn't update LIBS
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
220 AC_DEFUN(OF_CHECK_LIB,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
221 [save_LIBS="$LIBS"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
222 AC_CHECK_LIB($1,$2,$3,$4,$5)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
223 LIBS="$save_LIBS"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
224 ])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
225
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
226 dnl Define the following macro:
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
227 dnl TRY_MKOCTFILE(msg,program,action_if_true,action_if_false)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
228 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
229 AC_DEFUN(TRY_MKOCTFILE,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
230 [AC_MSG_CHECKING($1)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
231 cat > conftest.cc << EOF
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
232 #include <octave/config.h>
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
233 $2
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
234 EOF
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
235 ac_try="$MKOCTFILE -c conftest.cc"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
236 if AC_TRY_EVAL(ac_try) ; then
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
237 AC_MSG_RESULT(yes)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
238 $3
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
239 else
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
240 AC_MSG_RESULT(no)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
241 $4
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
242 fi
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
243 ])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
244
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
245 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
246 dnl Check if F77_FUNC works with MKOCTFILE
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
247 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
248 TRY_MKOCTFILE([for F77_FUNC],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
249 [int F77_FUNC (hello, HELLO) (const int &n);],,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
250 [MKOCTFILE="$MKOCTFILE -DF77_FUNC=F77_FCN"])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
251
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
252 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
253 dnl Check if octave still uses SLList.h
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
254 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
255 TRY_MKOCTFILE([for SLList.h],[#include <octave/SLList.h>],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
256 [MKOCTFILE="$MKOCTFILE -DHAVE_SLLIST_H"],)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
257
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
258 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
259 dnl Check if octave has lo_ieee_nan_value
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
260 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
261 TRY_MKOCTFILE([for lo_ieee_nan_value],
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
262 [ #include <octave/lo-ieee.h>
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
263 int test(void) { lo_ieee_nan_value(); }],,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
264 [MKOCTFILE="$MKOCTFILE -DUSE_OCTAVE_NAN"])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
265
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
266 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
267 dnl Check if octave is needs octave_idx_type
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
268 dnl
8882
c47ac161e75d sparsersb: commented out a (probably) redundant (octave_idx_type) symbol redefinition in configure.base.
michelemartone
parents: 8849
diff changeset
269 dnl TRY_MKOCTFILE([for octave_idx_type],
c47ac161e75d sparsersb: commented out a (probably) redundant (octave_idx_type) symbol redefinition in configure.base.
michelemartone
parents: 8849
diff changeset
270 dnl [#include <octave/oct-types.h>
c47ac161e75d sparsersb: commented out a (probably) redundant (octave_idx_type) symbol redefinition in configure.base.
michelemartone
parents: 8849
diff changeset
271 dnl octave_idx_type test(void) { octave_idx_type idx = 1; return idx; }],,
c47ac161e75d sparsersb: commented out a (probably) redundant (octave_idx_type) symbol redefinition in configure.base.
michelemartone
parents: 8849
diff changeset
272 dnl [MKOCTFILE="$MKOCTFILE -Doctave_idx_type=int"])
8849
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
273
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
274 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
275 dnl Check if octave uses quit.h
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
276 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
277 TRY_MKOCTFILE([for quit.h],[#include <octave/quit.h>],,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
278 [MKOCTFILE="$MKOCTFILE -DNEED_OCTAVE_QUIT"])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
279
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
280 dnl **********************************************************
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
281
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
282 dnl Evaluate an expression in octave
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
283 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
284 dnl OCTAVE_EVAL(expr,var) -> var=expr
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
285 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
286 AC_DEFUN(OCTAVE_EVAL,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
287 [AC_MSG_CHECKING([for $1 in Octave])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
288 $2=`echo "disp($1)" | $OCTAVE -qf`
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
289 AC_MSG_RESULT($$2)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
290 AC_SUBST($2)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
291 ])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
292
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
293 dnl Check status of an octave variable
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
294 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
295 dnl OCTAVE_CHECK_EXIST(variable,action_if_true,action_if_false)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
296 dnl
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
297 AC_DEFUN(OCTAVE_CHECK_EXIST,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
298 [AC_MSG_CHECKING([for $1 in Octave])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
299 if test `echo 'disp(exist("$1"))' | $OCTAVE -qf`X != 0X ; then
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
300 AC_MSG_RESULT(yes)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
301 $2
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
302 else
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
303 AC_MSG_RESULT(no)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
304 $3
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
305 fi
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
306 ])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
307
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
308 dnl should check that $(OCTAVE) --version matches $(MKOCTFILE) --version
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
309 AC_CHECK_PROG(OCTAVE,octave,octave)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
310 OCTAVE_EVAL(OCTAVE_VERSION,OCTAVE_VERSION)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
311
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
312 dnl grab canonical host type so we can write system specific install stuff
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
313 OCTAVE_EVAL(octave_config_info('canonical_host_type'),canonical_host_type)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
314
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
315 dnl grab SHLEXT from octave config
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
316 OCTAVE_EVAL(octave_config_info('SHLEXT'),SHLEXT)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
317
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
318 AC_PROG_LN_S
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
319
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
320 AC_PROG_RANLIB
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
321
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
322 dnl Use $(COPY_FLAGS) to set options for cp when installing .oct files.
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
323 COPY_FLAGS="-Rfp"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
324 case "$canonical_host_type" in
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
325 *-*-linux*)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
326 COPY_FLAGS="-fdp"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
327 ;;
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
328 esac
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
329 AC_SUBST(COPY_FLAGS)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
330
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
331 OTHERLIBS=
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
332 OF_CHECK_LIB(m,sin,[OTHERLIBS=-lm])
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
333 AC_SUBST(OTHERLIBS)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
334
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
335 OCTAVE_EVAL(octave_config_info('AR'),AR)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
336 OCTAVE_EVAL(octave_config_info('ARFLAGS'),ARFLAGS)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
337
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
338 CPPFLAGS="$CPPFLAGS -DSTATIC_LINKED"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
339
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
340 dnl Use $(STRIP) in the makefile to strip executables. If not found,
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
341 dnl STRIP expands to ':', which in the makefile does nothing.
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
342 dnl Don't need this for .oct files since mkoctfile handles them directly
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
343 STRIP=${STRIP-strip}
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
344 AC_CHECK_PROG(STRIP,$STRIP,$STRIP,:)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
345
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
346 dnl Strip on windows, don't strip on Mac OS/X or IRIX
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
347 dnl For the rest, you can force strip using MKOCTFILE="mkoctfile -s"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
348 dnl or avoid strip using STRIP=: before ./configure
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
349 case "$canonical_host_type" in
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
350 powerpc-apple-darwin*|*-sgi-*)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
351 STRIP=:
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
352 ;;
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
353 *-cygwin-*|*-mingw-*)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
354 MKOCTFILE="$MKOCTFILE -s"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
355 ;;
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
356 esac
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
357
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
358 dnl check for swig and test that it supports octave
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
359 SWIG=""
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
360 if test x"$with_swig" = "xyes"; then
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
361 AC_PATH_PROG(SWIG,swig)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
362 test -z "$SWIG" && AC_MSG_ERROR(swig not found on path)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
363 cat > conftest.i <<EOF
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
364 %module conftest
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
365 EOF
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
366 $SWIG -c++ -octave conftest.i || AC_MSG_ERROR(swig doesn't support octave modules)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
367 rm -f conftest.*
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
368 fi
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
369
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
370 CONFIGURE_OUTPUTS="Makeconf"
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
371 STATUS_MSG="
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
372 octave commands will install into the following directories:
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
373 m-files: $mpath
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
374 oct-files: $opath
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
375 binaries: $xpath
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
376 alternatives:
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
377 m-files: $altmpath
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
378 oct-files: $altopath
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
379
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
380 shell commands will install into the following directories:
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
381 binaries: $bindir
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
382 man pages: $mandir
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
383 libraries: $libdir
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
384 headers: $includedir
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
385
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
386 octave-forge is configured with
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
387 octave: $OCTAVE (version $OCTAVE_VERSION)
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
388 mkoctfile: $MKOCTFILE for Octave $subver
b995a264e374 imported the project files in main/sparsersb.
michelemartone
parents:
diff changeset
389 swig: $SWIG"