HP3000-L Archives

May 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Fri, 19 May 2000 06:47:26 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (58 lines)
>LIBS="-lsocket" ./configure --host=hppa1.0-hp-bsd

>checking for library with inet_addr... no
>configure: warning: Unable to find library for inet_addr function

Did you also modify the configure script to change $ac_link as
suggested?

> Note that you also want to modify configure to do the "callci run" trick
that I
> describe in the first bullet at:
>
>         http://www.bixby.org/mark/porting.html#hscripts
>
> - Mark B.
>

On most Unixen, simply linking will indicate the presence or absence
of a library routine. Because MPE is late binding, this doesn't work
there, so the configure scripts need to be modify to both link and
execute the resulting program.

For those that use my AUTOCONF stuff from Jazz, this is what I
normally do for a "configure" step. (This is my "pre-configure"
script for configuring GCC):

#
# MPE is by definition a "shared" environment and the configure scripts
# will fail to correctly determine whether or not something exists by
# simply doing a compile. Rerun autoconf to update the configure scripts.
# Use the autoconf from
#   http://jazz.external.hp.com/src/gnu/gnu_tools/gnutools.html
#
# Find configure.in scripts containing AC_INIT and run autoconf in those
# directories.
for f in `find . -name configure.in`
do
        fgrep AC_INIT ${f} > /dev/null
        if [ $? = 0 ]
        then
                echo Processing ${f}
                (cd `dirname ${f}`; autoconf)
        fi
done

export CFLAGS="-I/usr/contrib/include -DSYSV -D_POSIX_SOURCE \
    -D_SOCKET_SOURCE -D_MPEIX_SOURCE -D_MPEXL_SOURCE"
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="$CFLAGS"
export LDFLAGS="-lsocket -lcurses -lsvipc -ldce"
export CC=gcc
export CPP="gcc -E"

mkdir obj-MPE
cd obj-MPE
./configure --with-gnu-as --disable-pic --disable-shared \
    --enable-threads=posix

ATOM RSS1 RSS2