> >> > -   --with-expat=$(PTXDIST_SYSROOT_TARGET)/usr
> >> > +   --with-apr=$(PTXDIST_SYSROOT_CROSS)/bin/apr-1-config \
> >>
> >> This seems strange (the original, not just your change): I don't think
> >> there is a $(PTXDIST_SYSROOT_CROSS)/bin/apr-config, it should be in
> >> PTXDIST_SYSROOT_TARGET. Can you check what configure does here?
> >>
> >> > +   --with-expat=$(PTXDIST_SYSROOT_TARGET)/usr/include/apr-1
>                 ^^^^^                                       ^^^
> >>
> >> No, I'm pretty sure, that's not where expat is found.
>                                          ^^^^^
> >>
> >
> > but what is then the right here?
> >
> > if I change it to PTXDIST_SYSROOT_TARGET then I get:
> >
> > checking for APR... configure: error: the --with-apr parameter is
>                                                    ^^^
> > incorrect.
> > It must specify an install prefix, a build directory, or an apr-config file.
>
> Michael pointed out that "exapt" is probably not found in an "apr-1" dir.

oh sorry, is it sufficant to set it only to /usr or /usr/include?

  --with-expat=$(PTXDIST_SYSROOT_TARGET)/usr/

Best Regards,

Oliver