[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] Re: final argp patch
From: |
Simon Josefsson |
Subject: |
[Bug-gnulib] Re: final argp patch |
Date: |
Sun, 05 Oct 2003 00:18:55 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Paul Eggert <address@hidden> writes:
> Simon Josefsson <address@hidden> writes:
>
>> if an application is written for argp 1 and glibc is changed in an
>> incompatible way, I cannot see any way the (old) argp code in gnulib
>> that is shipped with an application could detect this.
>
> If you want it to depend on a version number in an include file, you
> can have argp.m4 try to compile something like this program:
>
> #include <gnu-versions.h>
> #if _GNU_ARGP_INTERFACE_VERSION < 1
> #error "system argp interface is too old"
> #endif
>
> If it doesn't compile, then either the system lacks argp, or its
> interface is too old.
Ah, right. Except there is no _GNU_ARGP_INTERFACE_VERSION in glibc
now. Do you think adding it to glibc, without a ELIDE_CODE patch as
well, is the right thing? The libc manual doesn't seem to mention
gnu-version.h nor *_INTERFACE_VERSION, so the format and use of these
matters is probably not very fixed.
Re: [Bug-gnulib] Re: final argp patch, Karl Berry, 2003/10/03