bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] fix fnmatch.m4 for AIX xlc


From: Bruno Haible
Subject: [Bug-gnulib] fix fnmatch.m4 for AIX xlc
Date: Tue, 26 Aug 2003 20:06:36 +0200
User-agent: KMail/1.5

Hi,

The current fnmatch.m4 test causes havoc when used with AIX 3.2.5 xlc:
It causes the following definitions to be put into confdefs.h

#define fnmatch rpl_fnmatch
#define fnmatch posix_fnmatch

and this causes every autoconf test that comes after gl_FUNC_FNMATCH_POSIX
to fail. E.g. I get a wrong definition of 'off_t' because of this.

Here is a fix. Any objections?


2003-08-26  Bruno Haible  <address@hidden>

        * fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
        This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
        followed by '#define fnmatch fnmatch_posix' gives an error.

diff -c -3 -r1.13 fnmatch.m4
*** m4/fnmatch.m4       7 Jun 2003 16:41:48 -0000       1.13
--- m4/fnmatch.m4       26 Aug 2003 18:06:05 -0000
***************
*** 74,81 ****
  AC_CHECK_HEADERS([wchar.h wctype.h])
  AC_LIBOBJ([fnmatch])
  FNMATCH_H=fnmatch.h
- AC_DEFINE(fnmatch, rpl_fnmatch,
-           [Define to rpl_fnmatch if the replacement function should be used.])
  ])# _AC_LIBOBJ_FNMATCH
  
  
--- 74,79 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]