Mercurial > hg > octave-avbm
comparison aclocal.m4 @ 2574:cfa9f35fd407
[project @ 1996-12-09 17:30:39 by jwe]
author | jwe |
---|---|
date | Mon, 09 Dec 1996 17:30:40 +0000 |
parents | b50cc31aa0cd |
children | c454cd888ada |
comparison
equal
deleted
inserted
replaced
2573:2799980db720 | 2574:cfa9f35fd407 |
---|---|
365 #include <grp.h>], [struct group s; s.gr_passwd;], | 365 #include <grp.h>], [struct group s; s.gr_passwd;], |
366 octave_cv_struct_gr_passwd=yes, octave_cv_struct_gr_passwd=no)]) | 366 octave_cv_struct_gr_passwd=yes, octave_cv_struct_gr_passwd=no)]) |
367 if test $octave_cv_struct_gr_passwd = yes; then | 367 if test $octave_cv_struct_gr_passwd = yes; then |
368 AC_DEFINE(HAVE_GR_PASSWD) | 368 AC_DEFINE(HAVE_GR_PASSWD) |
369 fi | 369 fi |
370 ]) | |
371 dnl | |
372 dnl See if the standard string class has npos as a member. | |
373 dnl | |
374 AC_DEFUN(OCTAVE_STRING_NPOS, | |
375 [AC_CACHE_CHECK([whether including <string> defines NPOS], | |
376 octave_cv_string_npos, | |
377 [AC_LANG_SAVE | |
378 AC_LANG_CPLUSPLUS | |
379 AC_TRY_COMPILE([#include <string>], | |
380 [size_t foo = NPOS], | |
381 octave_cv_string_npos=yes, octave_cv_string_npos=no)]) | |
382 if test $octave_cv_string_npos = no; then | |
383 AC_DEFINE(NPOS, string::npos) | |
384 fi | |
385 AC_LANG_RESTORE | |
370 ]) | 386 ]) |
371 dnl | 387 dnl |
372 dnl The following test is from Karl Berry's Kpathseach library. I'm | 388 dnl The following test is from Karl Berry's Kpathseach library. I'm |
373 dnl including it here in case we someday want to make the use of | 389 dnl including it here in case we someday want to make the use of |
374 dnl kpathsea optional. | 390 dnl kpathsea optional. |