fastjar Configuration w.r.t. mkdir( )
Ranjit Mathew
rmathew@hotmail.com
Fri Aug 30 07:02:00 GMT 2002
Hi,
I'm sorry, but I did not know how exactly to massage
this as a proper patch and into which file(s) it should
have gone. Can someone more knowledgeable do the needful?
The problem is that fastjar/jartool.c calls mkdir( ), which
on some platforms (MinGW, for example) takes only one
parameter. The gcc/aclocal.m4 script does the needful
by defining this function:
------------------------ 8< --------------------------
dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead
dnl of the usual 2.
AC_DEFUN(gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG,
[AC_CACHE_CHECK([if mkdir takes one argument], gcc_cv_mkdir_takes_one_arg,
[AC_TRY_COMPILE([
#include <sys/types.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_DIRECT_H
# include <direct.h>
#endif], [mkdir ("foo", 0);],
gcc_cv_mkdir_takes_one_arg=no, gcc_cv_mkdir_takes_one_arg=yes)])
if test $gcc_cv_mkdir_takes_one_arg = yes ; then
AC_DEFINE(MKDIR_TAKES_ONE_ARG, 1, [Define if host mkdir takes a
single argument.])
fi
])
------------------------ 8< --------------------------
which is called by the gcc/configure.in script. So how does
one incorporate this into fastjar?
Sincerely Yours,
Ranjit Mathew.
rmathew_AT_hotmail_DOT_com
More information about the Java
mailing list