changeset 6104:a334206512b9

[project @ 2006-10-26 21:41:39 by jwe]
author jwe
date Thu, 26 Oct 2006 21:41:39 +0000
parents a2fdc87184cf
children bf8366f93881
files ChangeLog aclocal.m4
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Oct 26 21:32:17 2006 +0000
+++ b/ChangeLog	Thu Oct 26 21:41:39 2006 +0000
@@ -4,7 +4,10 @@
 	Check for _WIN32_WINNT >= 0x0403.  Define _USE_MATH_DEFINES if it
 	is needed.
 	(XTRA_CRUFT_LINK_DEPS): New variable.  Substitute it.
-	
+
+	* aclocal.m4 (OCTAVE_MKDIR_TAKES_ONE_ARG): Perform check with C++
+	compiler.
+
 2006-10-26  John W. Eaton  <jwe@octave.org>
 
 	* aclocal.m4 (OCTAVE_PROG_PAGER): Also check for more.com for
--- a/aclocal.m4	Thu Oct 26 21:32:17 2006 +0000
+++ b/aclocal.m4	Thu Oct 26 21:41:39 2006 +0000
@@ -784,8 +784,9 @@
 dnl
 dnl Determine if mkdir accepts only one argument instead dnl of the usual 2.
 dnl
-AC_DEFUN(OCTAVE_MKDIR_TAKES_ONE_ARG,
-[AC_CACHE_CHECK([if mkdir takes one argument], octave_cv_mkdir_takes_one_arg,
+AC_DEFUN(OCTAVE_MKDIR_TAKES_ONE_ARG, [
+AC_LANG_PUSH(C++)
+AC_CACHE_CHECK([if mkdir takes one argument], octave_cv_mkdir_takes_one_arg,
 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
 #ifdef HAVE_SYS_STAT_H
 # include <sys/stat.h>
@@ -797,6 +798,7 @@
 # include <direct.h>
 #endif]], [[mkdir ("foo", 0);]])],
         octave_cv_mkdir_takes_one_arg=no, octave_cv_mkdir_takes_one_arg=yes)])
+AC_LANG_POP(C++)
 if test $octave_cv_mkdir_takes_one_arg = yes ; then
   AC_DEFINE(MKDIR_TAKES_ONE_ARG, 1, [Define if host mkdir takes a single argument.])
 fi