[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling fileutils 4.1 with OS/2
From: |
Andreas Buening |
Subject: |
Re: Compiling fileutils 4.1 with OS/2 |
Date: |
Mon, 18 Jun 2001 23:28:49 +0200 |
Hello!
The most tools are currently working. However, I have to find out, how
to
recognize mounted file systems to be able to compile df.
Some won't work like ln, sync, mknod, mkfifo.
The current changes to aclocal.m4:
$diff /temp/fileutils-4.1/aclocal.m4 aclocal.m4
615a616,639
>
> AC_CHECK_FUNCS(stricmp strnicmp)
> AH_VERBATIM(REPLACE_STRCASECMP,
> [#if !HAVE_STRCASECMP && HAVE_STRICMP
> # define strcasecmp(x,y) stricmp(x,y)
> #endif])
> AH_VERBATIM(REPLACE_STRNCASECMP,
> [#if !HAVE_STRNCASECMP && HAVE_STRNICMP
> # define strncasecmp(x,y,z) strnicmp(x,y,z)
> #endif])
> AC_CHECK_FUNCS(_chdir2 _getcwd2 _response _wildcard)
> AC_REPLACE_FUNCS(lstat)
> AC_CHECK_FUNCS(link symlink)
> AH_VERBATIM(REPLACE_LSTAT,
> [#if !HAVE_LSTAT
> # define lstat rpl_lstat
> #endif])
> AC_CHECK_FUNCS(chown fchown mknod sync)
> AH_VERBATIM(REPLACE_SYNC,
> [#if !HAVE_SYNC
> # define sync() ;
> #endif])
> AC_CHECK_HEADERS(sys/nls.h)
>
1779c1803
< && AC_CHECK_HEADERS(unistd.h)
---
> && AC_CHECK_HEADERS(unistd.h)
3463c3487
< AC_MSG_ERROR([could not determine how to read list of mounted
filesystems])
---
> AC_MSG_WARN([could not determine how to read list of mounted filesystems])
3711a3736,3741
> if ls -a "c:*" >/dev/null 2>/dev/null; then
> ac_fs_accepts_drive_letter_prefix=1
> else
> ac_fs_accepts_drive_letter_prefix=0
> fi
>
3716c3746
< else
---
> # else
3720d3749
< ac_fs_accepts_drive_letter_prefix=0
3734c3763
< ac_fs_backslash_is_file_name_separator=0
---
>
> ac_fs_backslash_is_file_name_separator="$ac_fs_accepts_drive_letter_prefix"
I've used the following construct to handle non existing functions:
#if !HAVE_LINK && !defined link
static int
link (const char *oldpath, const char *newpath)
{
errno = EPERM; /* file system does not support creation of hard links
*/
return -1;
}
#endif
I also have a question: Is it convenient to change the lib/*.c files or
is it
better to restrict all changes to src/*.c?
bye,
Andreas