Cleanups, including platform.h in cf-upgrade, and linking it to libcompat.

It works with /bin/sh, tested it before making the change since I was
thinking the same.


On Fri, Jul 18, 2014 at 10:15 AM, Kristian Amlie <notifications@github.com>
wrote:

> In m4/cf3_with_library.m4:
>
> > @@ -17,11 +17,11 @@ AC_DEFUN([CF3_WITH_LIBRARY],
> >    # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments
> >    #
> >    if test "x$with_[$1]" != xyes && test "x$with_[$1]" != xcheck && test "x$with_[$1]" != x; then
> > -    ULN[]_PATH="$with_[$1]"
> > +    test -z $ULN[]_PATH && ULN[]_PATH="$with_[$1]"
>
> I think this needs quotes around the $ULN[]_PATH. If it's empty the whole
> expression will fail because the evaluator will see test -z && ....
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/cfengine/core/pull/1850/files#r15100430>.
>