comparison configure.ac @ 15756:ea1a1fb00744

Make the path to the shell interpreter configuable * configure.ac: Add --with-shell option and define SHELL_PATH. * libinterp/interp-core/oct-procbuf.cc (octave_procbuf::open), libinterp/interpfcn/toplev.cc (Fsystem): Use it.
author Mike Miller <mtmiller@ieee.org>
date Sat, 08 Dec 2012 16:08:09 -0500
parents 3171006463f5
children 9f3656ada658
comparison
equal deleted inserted replaced
15755:3216dafbbd48 15756:ea1a1fb00744
121 121
122 ### Make configure args available for other uses. 122 ### Make configure args available for other uses.
123 123
124 config_opts=$ac_configure_args 124 config_opts=$ac_configure_args
125 AC_SUBST(config_opts) 125 AC_SUBST(config_opts)
126
127 ### Define the path to the shell on the host system. Most systems will
128 ### ensure /bin/sh is the default shell so this can be safely ignored by
129 ### almost everyone. However, when building for Android, for example,
130 ### this will need to be set.
131 SHELL_PATH=/bin/sh
132 AC_ARG_WITH([shell],
133 [AS_HELP_STRING([--with-shell=SHELL],
134 [use SHELL as the shell interpreter (default: /bin/sh)])])
135 case $with_shell in
136 no)
137 AC_MSG_ERROR([A shell interpreter is required])
138 ;;
139 yes | "")
140 ;;
141 *)
142 SHELL_PATH=$with_shell
143 ;;
144 esac
145 AC_DEFINE_UNQUOTED([SHELL_PATH], ["$SHELL_PATH"],
146 [Define this to be the path to the shell command interpreter.])
126 147
127 ### Enable bounds checking on element references within Octave's array and 148 ### Enable bounds checking on element references within Octave's array and
128 ### matrix classes. This slows down some operations a bit, so it is turned off 149 ### matrix classes. This slows down some operations a bit, so it is turned off
129 ### by default. 150 ### by default.
130 151