configure doesn't handle --with-compiler correctly

From: "Pedro J(dot) Lobo" <pjlobo(at)euitt(dot)upm(dot)es>
To: PostgreSQL hackers mailing list <pgsql-hackers(at)postgresql(dot)org>
Subject: configure doesn't handle --with-compiler correctly
Date: 1998-02-16 12:02:06
Message-ID: Pine.OSF.3.96.980216125310.1205C-100000@haddock.euitt.upm.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, all.

I have compiled the Feb. 15 snapshot on a DEC alpha and, besides other
problems that I've reported in the psql-ports list, there is a bug in
configure that has been there for quite a while.

I use this command to do the 'configure' thing:

./configure --prefix=/usr/local/pgsql.beta --enable-locale
--with-pgport=5440 --enable-cassert --with-compiler=cc

I use --with-compiler=cc because I have both DEC C ang GNU gcc installed,
and I've found DEC C to generate better code (faster) than gcc.

The problem is that when the configure script tries to figure out if we
are using gcc, to check if it needs the -traditional flag, it dies (the
script).

This is the patch I use as a workaround:

----------------------------------------------------
*** configure.orig do 15 feb 09:00:37 1998
--- configure lu 16 feb 11:37:21 1998
***************
*** 3224,3230 ****
fi
rm -f conftest*

! if test $ac_cv_prog_gcc = yes; then
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
echo "configure:3230: checking whether ${CC-cc} needs -traditional" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set";
then
--- 3224,3230 ----
fi
rm -f conftest*

! if test x$ac_cv_prog_gcc = xyes; then
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
echo "configure:3230: checking whether ${CC-cc} needs -traditional" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set";
then
-----------------------------------------------------------

The problem is that $ac_cv_prog_gcc is empty, instead of 'no' or
whatsoever. The patch is not a solution, because configure is generated
from configure.in, and I don't know how to patch it to get a working
'configure'.

Is there any autoconf guru that has a solution? Marc?

Pedro.

-------------------------------------------------------------------
Pedro José Lobo Perea Tel: +34 1 336 78 19
Centro de Cálculo Fax: +34 1 331 92 29
EUIT Telecomunicación - UPM e-mail: pjlobo(at)euitt(dot)upm(dot)es

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 1998-02-16 12:07:16 Re: Adding field length to protocol.
Previous Message Vadim B. Mikheev 1998-02-16 11:56:37 Re: [HACKERS] Re: Subselects open issue Nr. 5