On Tue, Oct 26, 2004 at 04:35:26PM +0200, Peter Simons wrote:
> Alexandre Duret-Lutz writes:
>
> > It occured to me that maybe you were trying to use
> > $(LIBOBJS) outside of libgetopt/Makefile.am. Don't.
> > $(LIBOBJS) is expected to be used only in the directory
> > holding the substitute so
Alexandre Duret-Lutz writes:
> It occured to me that maybe you were trying to use
> $(LIBOBJS) outside of libgetopt/Makefile.am. Don't.
> $(LIBOBJS) is expected to be used only in the directory
> holding the substitute sources.
So I need to add a Makefile.am _and_ and a configure.ac file
to t
On Tue, Oct 26, 2004 at 02:43:26PM +0200, Alexandre Duret-Lutz wrote:
> On Tue, Oct 26, 2004 at 02:01:18PM +0200, Peter Simons wrote:
> > Alexandre Duret-Lutz writes:
> >
> > >> AC_LIBOBJ(libgetopt/getopt)
> > >> AC_LIBOBJ(libgetopt/getopt1)
> >
> > > AC_LIBOBJ([getopt])
> > > AC_LIBOBJ([getopt
On Tue, Oct 26, 2004 at 02:01:18PM +0200, Peter Simons wrote:
> Alexandre Duret-Lutz writes:
>
> >> AC_LIBOBJ(libgetopt/getopt)
> >> AC_LIBOBJ(libgetopt/getopt1)
>
> > AC_LIBOBJ([getopt])
> > AC_LIBOBJ([getopt1])
>
> Then automake / autoconf won't find the files:
>
> configure.ac:173: require
Alexandre Duret-Lutz writes:
>> AC_LIBOBJ(libgetopt/getopt)
>> AC_LIBOBJ(libgetopt/getopt1)
> AC_LIBOBJ([getopt])
> AC_LIBOBJ([getopt1])
Then automake / autoconf won't find the files:
configure.ac:173: required file `./getopt1.c' not found
configure.ac:173: required file `./getopt.c' no
>>> "Peter" == Peter Simons <[EMAIL PROTECTED]> writes:
[...]
Peter> AC_LIBOBJ(libgetopt/getopt)
Peter> AC_LIBOBJ(libgetopt/getopt1)
[...]
Peter> but these paths aren't right, because the compiled
Peter> objects will be placed in
Peter> ./getopt.o
Peter> ./getopt1.o
Peter> ..., not in the
Hi,
in a project of mine, I ship versions of getopt and
getopt_long for backwards compatibility with older systems.
I test for the existence of these functions in the OS with
Autoconf, and if I don't find them I define:
if test "x$have_getopt_h" != "xyes" -o "x$have_getopt" != "xyes"; then