[Patches] [ python-Patches-588564 ] _locale library patch

noreply@sourceforge.net noreply@sourceforge.net
Fri, 09 Aug 2002 11:04:09 -0700


Patches item #588564, was opened at 2002-07-30 05:58
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=588564&group_id=5470

Category: Distutils and setup.py
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason Tishler (jlt63)
Assigned to: Jason Tishler (jlt63)
Summary: _locale library patch

Initial Comment:
This patch enables setup.py to find gettext routines
when they are located in libintl instead of libc.
Although I developed this patch for Cygwin, I hope
that it can be easily updated to support other
platforms (if necessary). I tested this patch
under Cygwin and Red Hat Linux 7.1.

----------------------------------------------------------------------

>Comment By: Jason Tishler (jlt63)
Date: 2002-08-09 10:04

Message:
Logged In: YES 
user_id=86216

I presume that you mean to use an
autoconf-style approach *in* setup.py.
Is this assumption correct?

If so, then I know how to search for
libintl.h via find_file(). Unfortunately,
I do not know how to check that a
function (e.g., getext()) is in a library
(i.e., libc.a). Any suggestions?

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-08-04 00:37

Message:
Logged In: YES 
user_id=21627

I would really prefer if such problems where solved in an
autoconf-style approach: 
- is libintl.h present (you may ask pyconfig.h for that)
  - if so, is gettext provided by the C library
  - if not, is it provided by -lintl
     - if yes, add -lintl
     - if no, print an error message and continue

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=588564&group_id=5470