[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] Autoconf and differences between GNU getopt and OpenBSD
Derek Robert Price
Re: [Bug-gnulib] Autoconf and differences between GNU getopt and OpenBSD getopt
Thu, 14 Oct 2004 21:15:34 -0400
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616
-----BEGIN PGP SIGNED MESSAGE-----
Alexander Taler wrote:
>>>>>>"Paul" == Paul Eggert <address@hidden> writes:
> Paul> Date: Sun, 10 Oct 2004 21:16:05 -0700
> Paul> Alexander Taler <address@hidden> writes:
> >> Since this behaviour has shipped in OpenBSD 3.5, I guess adding
a test to
> >> autoconf is the correct thing to do.
> Paul> I'm a little puzzled here, since you emailed your suggestion to
> Paul> bug-gnulib. My impression is that gnulib's gl_GETOPT macro
> Paul> incompatibilities in the OpenBSD 3.5 implementation, and will
> Paul> use it, so you shouldn't have this problem if you use the
> Paul> module. This was fixed in gnulib on August 12. If I'm wrong
> Paul> let bug-gnulib know more details about the problem.
>Great! I guess all that needs to be done is bring the latest
>changes over to CVS. I guess Derek will take care of that.
Correct me if I'm wrong, Alex, but I think you said you were using the
development version of CVS. I imported the latest getopt module from
GNULIB on October 6th, which, IIRC, is exactly when you began
encountering problems. Anyhow, whatever issue you are having should
be with GNULIB.
Glancing at the latest gl_GETOPT test, it appears to be only using the
existance of the getopt.h header file to decide whether to use the
substitute getopt() function or not:
AC_CHECK_HEADERS([getopt.h], , [GETOPT_H=getopt.h])
AC_CHECK_FUNCS([getopt_long_only], , [GETOPT_H=getopt.h])
if test -n "$GETOPT_H"; then
So, it does make sense that, if Alex's version of BSD comes packaged
with a getopt.h header but an incompatible getopt() function, then the
latest gl_GETOPT would incorrectly choose to use the system getopt()
function rather than the GNULIB substitute.
Something like Alex's test program should probably be added to
gl_GETOPT, unless someone can suggest a better way to detect or work
around the problem.
Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----