Almost there - have a new libssh2 (that I link to statically), however, I am running into a build issue regarding the macro/constant AF_LOCAL.
That is not in the AIX include files (socket.h), so I need to chat and find out of AF_LOCAL is an "alias" for AF_UNIX.
currently, stopping with:
+ /opt/bin/make > .buildaix/make.out
"../../src/curl-7.66.0/lib/asyn-thread.c", line 248.17: 1506-045 (S) Undeclared identifier AF_LOCAL.
make[2]: *** [Makefile:2190: libcurl_la-asyn-thread.lo] Error 1
make[1]: *** [Makefile:1046: all] Error 2
make: *** [Makefile:946: all-recursive] Error 1