Mercurial > octave
comparison configure.in @ 5857:6a558a8763df
[project @ 2006-06-13 16:43:44 by jwe]
author | jwe |
---|---|
date | Tue, 13 Jun 2006 16:43:44 +0000 |
parents | 68f8017ef077 |
children | 80d3933fb8b6 |
comparison
equal
deleted
inserted
replaced
5856:a4dc99e71752 | 5857:6a558a8763df |
---|---|
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.514 $) | 32 AC_REVISION($Revision: 1.515 $) |
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 OCTAVE_HOST_TYPE | 37 OCTAVE_HOST_TYPE |
141 | 141 |
142 USE_64_BIT_IDX_T=false | 142 USE_64_BIT_IDX_T=false |
143 OCTAVE_IDX_TYPE=int | 143 OCTAVE_IDX_TYPE=int |
144 AC_ARG_ENABLE(64, | 144 AC_ARG_ENABLE(64, |
145 [AS_HELP_STRING([--enable-64], | 145 [AS_HELP_STRING([--enable-64], |
146 [use 64-bit integer for array dimensions and indexing])], | 146 [(EXPERIMENTAL) use 64-bit integers for array dimensions and indexing])], |
147 [if test "$enableval" = yes; then USE_64_BIT_IDX_T=true; fi], []) | 147 [if test "$enableval" = yes; then USE_64_BIT_IDX_T=true; fi], []) |
148 if $USE_64_BIT_IDX_T; then | 148 if $USE_64_BIT_IDX_T; then |
149 AC_CHECK_SIZEOF(void *) | 149 AC_CHECK_SIZEOF(void *) |
150 AC_CHECK_SIZEOF(int) | 150 AC_CHECK_SIZEOF(int) |
151 AC_CHECK_SIZEOF(long) | 151 AC_CHECK_SIZEOF(long) |
154 OCTAVE_IDX_TYPE=int | 154 OCTAVE_IDX_TYPE=int |
155 elif test $ac_cv_sizeof_long -eq 8; then | 155 elif test $ac_cv_sizeof_long -eq 8; then |
156 OCTAVE_IDX_TYPE=long | 156 OCTAVE_IDX_TYPE=long |
157 AC_DEFINE(IDX_TYPE_LONG, 1, [Define to 1 if octave index type is long]) | 157 AC_DEFINE(IDX_TYPE_LONG, 1, [Define to 1 if octave index type is long]) |
158 else | 158 else |
159 AC_MSG_WARN([no suitable type found for octave_idx_type so disabling 64-bit features]) | 159 warn_64_bit="no suitable type found for octave_idx_type so disabling 64-bit features" |
160 AC_MSG_WARN($warn_64_bit) | |
160 USE_64_BIT_IDX_T=false | 161 USE_64_BIT_IDX_T=false |
161 fi | 162 fi |
162 else | 163 else |
163 warn_64_bit="pointers are not 64-bits wide so disabling 64-bit features" | 164 warn_64_bit="pointers are not 64-bits wide so disabling 64-bit features" |
164 AC_MSG_WARN($warn_64_bit) | 165 AC_MSG_WARN($warn_64_bit) |
1916 AC_MSG_WARN([]) | 1917 AC_MSG_WARN([]) |
1917 AC_MSG_WARN([at the Octave prompt.]) | 1918 AC_MSG_WARN([at the Octave prompt.]) |
1918 warn_msg_printed=true | 1919 warn_msg_printed=true |
1919 fi | 1920 fi |
1920 | 1921 |
1921 if $warn_msg_printed; then | 1922 if $USE_64_BIT_IDX_T; then |
1922 AC_MSG_NOTICE([]) | 1923 AC_MSG_WARN([You used the EXPERIMENTAL --enable-64 option.]) |
1924 AC_MSG_WARN([Are you sure that is what you want to do?]) | |
1925 AC_MSG_WARN([]) | |
1926 AC_MSG_WARN([You must ensure that the Fortran compiler generates]) | |
1927 AC_MSG_WARN([code with 8 byte signed INTEGER values, and that your]) | |
1928 AC_MSG_WARN([BLAS and LAPACK libraries are compiled to use 8 byte]) | |
1929 AC_MSG_WARN([signed integers for array indexing.]) | |
1930 warn_msg_printed=true | |
1923 fi | 1931 fi |
1924 | 1932 |
1925 ### End of configure. | 1933 ### End of configure. |