[nanomsg] Re: Problem building on HP-UX

  • From: André Jonsson <nanomsg@xxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Fri, 20 Sep 2013 11:16:40 +0200

On 2013-09-19 09:46, André Jonsson wrote:
No idea what's going on there. I've checked both the configure script
and autotools documentation and everything looks OK.

I suggest asking the question at StackOverflow. Would you like to ask
it or should I?

Yeah, that's probably a good idea. I'll give it a go, thanks.

I had a few other changes and mysteries as well in the configuration
script, but when I understand it, and it works, I'll send a long another
patch for it.

I got a reply to my StackOverflow question, stating the (kind of) obvious: operands and operators to "test" needs to be separated by spaces... :-/

    AS_IF([test x"$ac_cv_func_eventfd" = xyes], [ ...

Attaching the patch to make the configuration set all symbols correctly on HP-UX (and hopefully still on other platforms). So it now builds out of the box on HP-UX with aCC. Wheee! :)

However, setting some variables are required (as is usual):

    CC=aCC
    CFLAGS=+DD64 -mt
    LDFLAGS=+DD64 -mt

Not sure if -mt should be added automatically by the configure script. It usually isn't.
The +DD64 is, however, only needed if a 64-bit build is desired.


/André

Attachment: nanomsg_hpux_config.patch.gz
Description: application/gzip

Other related posts: