Configure question... - Mailing list pgsql-hackers

From The Hermit Hacker
Subject Configure question...
Date
Msg-id Pine.NEB.3.95.980204082854.24451H-100000@hub.org
Whole thread Raw
List pgsql-hackers
Anyone out there know more about autoconf then I've been able to learn so
far?  I've found *where* the problem is with the tas.s stuff, just haven't
been able to find a clean way of fixing it :(

if test "X$need_tas" = "Xyes"
then
        echo then do this?
        AC_LINK_FILES(backend/port/tas/${os}.s, backend/port/tas.s)
        TAS=tas.o
        AC_SUBST(TAS)
fi


If you look at the above in configure (the above is from configure.in)
after running autoconf on it, it looks like:

if test "X$need_tas" = "Xyes"
then
        echo then do this?

        TAS=tas.o

fi

    They tack the AC_LINK_FILES 'macro' and move it to the end of the
file, so, effectively, you can't conditionally add it...or so I've been
able to determine.  So, of course, the configure fails for those platforms
that don't have a tas.s file *sigh*

    Now, what I *could* do is put in a 'generic.s' file in that
subdirectory so that it has something to link, and then, because TAS isn't
set, nothing would be attempted for the compile, but that feels sooooo
much like a kludge to me :(

    Comments?



pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] configure on linux
Next
From: "Meskes, Michael"
Date:
Subject: RE: [HACKERS] Hi