comparison configure.in @ 638:2f2e66230c22

[project @ 1994-08-23 21:27:01 by jwe]
author jwe
date Tue, 23 Aug 1994 21:27:01 +0000
parents 8b6294ae881e
children fb4f6556b443
comparison
equal deleted inserted replaced
637:ae87e84f1be3 638:2f2e66230c22
19 dnl 19 dnl
20 dnl You should have received a copy of the GNU General Public License 20 dnl You should have received a copy of the GNU General Public License
21 dnl along with Octave; see the file COPYING. If not, write to the Free 21 dnl along with Octave; see the file COPYING. If not, write to the Free
22 dnl Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 22 dnl Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23 dnl 23 dnl
24 AC_REVISION($Revision: 1.38 $)dnl 24 AC_REVISION($Revision: 1.39 $)dnl
25 AC_PREREQ(1.8)dnl 25 AC_PREREQ(1.8)dnl
26 AC_INIT(src/octave.cc) 26 AC_INIT(src/octave.cc)
27 AC_CONFIG_HEADER(config.h) 27 AC_CONFIG_HEADER(config.h)
28 dnl 28 dnl
29 AC_DEFINE(OCTAVE_SOURCE, 1)dnl 29 AC_DEFINE(OCTAVE_SOURCE, 1)dnl
203 gcc_version=`$CC -v 2>&1 | grep "^gcc version" | sed 's/^gcc version *//'` 203 gcc_version=`$CC -v 2>&1 | grep "^gcc version" | sed 's/^gcc version *//'`
204 case "$gcc_version" in 204 case "$gcc_version" in
205 2.*) 205 2.*)
206 CFLAGS="-g -O" 206 CFLAGS="-g -O"
207 AC_VERBOSE([setting CFLAGS to $CFLAGS]) 207 AC_VERBOSE([setting CFLAGS to $CFLAGS])
208 LDFLAGS="-g -O" 208 LDFLAGS="-g"
209 AC_VERBOSE([setting LDFLAGS to $LDFLAGS]) 209 AC_VERBOSE([setting LDFLAGS to $LDFLAGS])
210 ADD_CC_WALL=true 210 ADD_CC_WALL=true
211 ;; 211 ;;
212 1.*) 212 1.*)
213 AC_WARN([gcc version $gcc_version is likely to cause problems]) 213 AC_WARN([gcc version $gcc_version is likely to cause problems])
410 dnl 410 dnl
411 dnl Checks for functions. 411 dnl Checks for functions.
412 dnl 412 dnl
413 AC_HAVE_FUNCS(setvbuf getcwd gethostname bzero rindex vfprintf vsprintf)dnl 413 AC_HAVE_FUNCS(setvbuf getcwd gethostname bzero rindex vfprintf vsprintf)dnl
414 AC_HAVE_FUNCS(stricmp strnicmp strcasecmp strncasecmp strerror)dnl 414 AC_HAVE_FUNCS(stricmp strnicmp strcasecmp strncasecmp strerror)dnl
415 AC_HAVE_FUNCS(atexit on_exit)dnl 415 AC_HAVE_FUNCS(atexit on_exit mktemp)dnl
416 dnl 416 dnl
417 dnl Check to see if we have IEEE math functions, and if so, which ones. 417 dnl Check to see if we have IEEE math functions, and if so, which ones.
418 dnl 418 dnl
419 dnl For Linux: add -mieee-fp flag to CFLAGS when checking for IEEE FP 419 dnl For Linux: add -mieee-fp flag to CFLAGS when checking for IEEE FP
420 dnl functions, otherwise we may not find them. 420 dnl functions, otherwise we may not find them.
450 ], 450 ],
451 AC_DEFINE(HAVE_[$trfunc], 1), []))dnl 451 AC_DEFINE(HAVE_[$trfunc], 1), []))dnl
452 done 452 done
453 dnl 453 dnl
454 AC_HAVE_FUNCS(infinity quiet_nan)dnl 454 AC_HAVE_FUNCS(infinity quiet_nan)dnl
455 AC_HAVE_FUNCS(erf erfc lgamma)dnl
455 dnl 456 dnl
456 CFLAGS="$XCFLAGS" 457 CFLAGS="$XCFLAGS"
457 dnl 458 dnl
458 dnl Check for nonstandard but common trig functions that we need. 459 dnl Check for nonstandard but common trig functions that we need.
459 dnl If they are missing, we replace them using functions from the BSD 460 dnl If they are missing, we replace them using functions from the BSD