Skip site navigation (1) Skip section navigation (2)

Re: [PORTS] QNX4 port

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Kardos, Dr(dot) Andreas" <kardos(at)repas-aeg(dot)de>
Cc: pgsql-ports(at)postgreSQL(dot)org
Subject: Re: [PORTS] QNX4 port
Date: 1999-12-20 18:11:24
Message-ID: 199912201811.NAA22708@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-ports
> Above you stated "lowercase $host" but not "lowercase uname -s". $host is
> "i386-pc-qnx4". Therefore it doesn't make sense to lowercase $host if you
> want to get the string "qnx". Remember, I have not got the new source yet to
> have a look at it. So I can comment only what you have written in the mail.
> 
> TEMPLATE=`uname -s | tr A-Z a-z`
> will not work too because A-Z and a-z must be enclosed in square brackets on
> QNX4. So you can use
> TEMPLATE=`uname -s | tr [A-Z] [a-z]`
> or
> TEMPLATE=`uname -s | tr [:upper:] [:lower:]`
> 
> Andreas Kardos

Yes, you are right.  It turns out my change was meaningless.  The real
issue is that if no template is found, configure.in does:

        if test "$GUESS"
        then TEMPLATE="$GUESS"
        else
            # Last chance ... maybe uname -s will match an entry.
            TEMPLATE=`uname -s | tr A-Z a-z` 
        fi

and tries to guess the platform this way.  My guess is that this would
catch qnx.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist(at)candle(dot)pha(dot)pa(dot)us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-ports by date

Next:From: Lamar OwenDate: 1999-12-20 19:37:33
Subject: SPI Headers -- RPM distribution
Previous:From: Lamar OwenDate: 1999-12-20 17:02:52
Subject: Re: [PORTS] RE:POSTGRES_INCLUDE and POSTGRES_LIB??

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group