comparison aclocal.m4 @ 7058:ad2aaf824128

[project @ 2007-10-24 06:15:39 by jwe]
author jwe
date Wed, 24 Oct 2007 06:15:40 +0000
parents a1dbe9d80eee
children 005c785b8d81
comparison
equal deleted inserted replaced
7057:c344920f9e9d 7058:ad2aaf824128
113 octave_cv_dynamic_auto_arrays=yes, octave_cv_dynamic_auto_arrays=no)]) 113 octave_cv_dynamic_auto_arrays=yes, octave_cv_dynamic_auto_arrays=no)])
114 if test $octave_cv_dynamic_auto_arrays = yes; then 114 if test $octave_cv_dynamic_auto_arrays = yes; then
115 AC_DEFINE(HAVE_DYNAMIC_AUTO_ARRAYS,1,[Define if C++ supports dynamic auto arrays]) 115 AC_DEFINE(HAVE_DYNAMIC_AUTO_ARRAYS,1,[Define if C++ supports dynamic auto arrays])
116 fi 116 fi
117 AC_LANG_POP(C++) 117 AC_LANG_POP(C++)
118 ])
119 dnl
120 dnl Check for broken strptime
121 dnl
122 AC_DEFUN(OCTAVE_STRPTIME_BROKEN,
123 [AC_CACHE_CHECK([whether strptime is broken],
124 octave_cv_strptime_broken,
125 [AC_LANG_PUSH(C)
126 AC_RUN_IFELSE([AC_LANG_PROGRAM([[
127 #define _XOPEN_SOURCE
128 #if defined (HAVE_SYS_TYPES_H)
129 #include <sys/types.h>
130 #if defined (HAVE_UNISTD_H)
131 #include <unistd.h>
132 #endif
133 #endif
134 #include <stdio.h>
135 #include <time.h>
136 ]], [[
137 struct tm t;
138 char *q = strptime ("09/13", "%m/%d/%y", &t);
139 return q ? 1 : 0;
140 ]])], [octave_cv_strptime_broken=no], [octave_cv_strptime_broken=yes])])
141 if test $octave_cv_strptime_broken = yes; then
142 AC_DEFINE(OCTAVE_HAVE_BROKEN_STRPTIME, 1, [Define if strptime is broken on your system])
143 fi
144 AC_LANG_POP(C)
118 ]) 145 ])
119 dnl 146 dnl
120 dnl The following test is from Karl Berry's Kpathseach library. I'm 147 dnl The following test is from Karl Berry's Kpathseach library. I'm
121 dnl including it here in case we someday want to make the use of 148 dnl including it here in case we someday want to make the use of
122 dnl kpathsea optional. 149 dnl kpathsea optional.