Mercurial > hg > octave-lyh
comparison configure.in @ 5842:ecb61a521d5b
[project @ 2006-06-06 15:03:33 by jwe]
author | jwe |
---|---|
date | Tue, 06 Jun 2006 15:03:33 +0000 |
parents | 22e23bee74c8 |
children | 034cdbd34c0a |
comparison
equal
deleted
inserted
replaced
5841:fb4dea2184bf | 5842:ecb61a521d5b |
---|---|
27 | 27 |
28 EXTERN_CFLAGS="$CFLAGS" | 28 EXTERN_CFLAGS="$CFLAGS" |
29 EXTERN_CXXFLAGS="$CXXFLAGS" | 29 EXTERN_CXXFLAGS="$CXXFLAGS" |
30 | 30 |
31 AC_INIT | 31 AC_INIT |
32 AC_REVISION($Revision: 1.511 $) | 32 AC_REVISION($Revision: 1.512 $) |
33 AC_PREREQ(2.57) | 33 AC_PREREQ(2.57) |
34 AC_CONFIG_SRCDIR([src/octave.cc]) | 34 AC_CONFIG_SRCDIR([src/octave.cc]) |
35 AC_CONFIG_HEADER(config.h) | 35 AC_CONFIG_HEADER(config.h) |
36 | 36 |
37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) | 37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) |
45 AC_ISC_POSIX | 45 AC_ISC_POSIX |
46 | 46 |
47 ### Path separator. | 47 ### Path separator. |
48 sepchar=: | 48 sepchar=: |
49 AC_ARG_WITH(sepchar, | 49 AC_ARG_WITH(sepchar, |
50 [AC_HELP_STRING([--with-sepchar=<char>], | 50 [AS_HELP_STRING([--with-sepchar=<char>], |
51 [use <char> as the path separation character])]) | 51 [use <char> as the path separation character])]) |
52 case $with_sepchar in | 52 case $with_sepchar in |
53 yes | "") | 53 yes | "") |
54 case "$canonical_host_type" in | 54 case "$canonical_host_type" in |
55 *-*-mingw*) | 55 *-*-mingw*) |
1366 [AC_MSG_RESULT(no) | 1366 [AC_MSG_RESULT(no) |
1367 HAVE_TIMEVAL=no]) | 1367 HAVE_TIMEVAL=no]) |
1368 | 1368 |
1369 if test "x$HAVE_TIMEVAL" = xyes; then | 1369 if test "x$HAVE_TIMEVAL" = xyes; then |
1370 AC_MSG_CHECKING(whether gettimeofday can't accept two arguments) | 1370 AC_MSG_CHECKING(whether gettimeofday can't accept two arguments) |
1371 AC_TRY_LINK([#ifdef TIME_WITH_SYS_TIME | 1371 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef TIME_WITH_SYS_TIME |
1372 #include <sys/time.h> | 1372 #include <sys/time.h> |
1373 #include <time.h> | 1373 #include <time.h> |
1374 #else | 1374 #else |
1375 #ifdef HAVE_SYS_TIME_H | 1375 #ifdef HAVE_SYS_TIME_H |
1376 #include <sys/time.h> | 1376 #include <sys/time.h> |
1377 #else | 1377 #else |
1378 #include <time.h> | 1378 #include <time.h> |
1379 #endif | 1379 #endif |
1380 #endif],[struct timeval time; struct timezone dummy; | 1380 #endif]], [[struct timeval time; |
1381 gettimeofday (&time, &dummy);], [AC_MSG_RESULT(no)], | 1381 struct timezone dummy; |
1382 gettimeofday (&time, &dummy);]])], | |
1383 [AC_MSG_RESULT(no)], | |
1382 [AC_MSG_RESULT(yes) | 1384 [AC_MSG_RESULT(yes) |
1383 AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, [Define if your system has a single-arg prototype for gettimeofday.])]) | 1385 AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, |
1386 [Define if your system has a single-arg prototype for gettimeofday.])]) | |
1384 fi | 1387 fi |
1385 | 1388 |
1386 dnl Would like to get rid of this cruft, and just have | 1389 dnl Would like to get rid of this cruft, and just have |
1387 dnl | 1390 dnl |
1388 dnl AC_CHECK_FUNCS(finite isnan isinf) | 1391 dnl AC_CHECK_FUNCS(finite isnan isinf) |
1452 fi | 1455 fi |
1453 | 1456 |
1454 OCTAVE_ENABLE_READLINE | 1457 OCTAVE_ENABLE_READLINE |
1455 | 1458 |
1456 AC_MSG_CHECKING([for struct exception in math.h]) | 1459 AC_MSG_CHECKING([for struct exception in math.h]) |
1457 AC_TRY_LINK([#include <math.h>], | 1460 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], |
1458 [struct exception *x; x->type; x->name;], | 1461 [[struct exception *x; x->type; x->name;]])], |
1459 AC_MSG_RESULT(yes) | 1462 [AC_MSG_RESULT(yes) |
1460 AC_DEFINE(EXCEPTION_IN_MATH, 1, [Define if your math.h declares struct exception for matherr().]), | 1463 AC_DEFINE(EXCEPTION_IN_MATH, 1, |
1461 AC_MSG_RESULT(no)) | 1464 [Define if your math.h declares struct exception for matherr().])], |
1465 [AC_MSG_RESULT(no)]) | |
1462 | 1466 |
1463 ### Signal stuff. | 1467 ### Signal stuff. |
1464 | 1468 |
1465 AC_TYPE_SIGNAL | 1469 AC_TYPE_SIGNAL |
1466 AC_CHECK_DECL([sys_siglist], | 1470 AC_CHECK_DECL([sys_siglist], |
1467 [AC_DEFINE(SYS_SIGLIST_DECLARED, 1, [Define if your system has a declaration of sys_siglist.])], | 1471 [AC_DEFINE(SYS_SIGLIST_DECLARED, 1, [Define if your system has a declaration of sys_siglist.])], |
1468 [AC_CHECK_DECLS([sys_siglist])], [#include <signal.h>]) | 1472 [AC_CHECK_DECLS([sys_siglist])], [#include <signal.h>]) |
1469 AC_MSG_CHECKING([for sys_siglist variable]) | 1473 AC_MSG_CHECKING([for sys_siglist variable]) |
1470 AC_TRY_LINK([#include <stdio.h>], | 1474 AC_LINK_IFELSE([[#include <stdio.h>]], |
1471 [extern char *sys_siglist[]; printf ("%s\n", sys_siglist[1]);], | 1475 [[extern char *sys_siglist[]; printf ("%s\n", sys_siglist[1]);]])], |
1472 AC_MSG_RESULT(yes) | 1476 [AC_MSG_RESULT(yes) |
1473 AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if your system has a sys_siglist variable.]), | 1477 AC_DEFINE(HAVE_SYS_SIGLIST, 1, |
1474 AC_MSG_RESULT(no)) | 1478 [Define if your system has a sys_siglist variable.])], |
1479 [AC_MSG_RESULT(no)]) | |
1475 OCTAVE_SIGNAL_CHECK | 1480 OCTAVE_SIGNAL_CHECK |
1476 OCTAVE_REINSTALL_SIGHANDLERS | 1481 OCTAVE_REINSTALL_SIGHANDLERS |
1477 | 1482 |
1478 ### A system dependent kluge or two. | 1483 ### A system dependent kluge or two. |
1479 | 1484 |