configure doesn't handle --with-compiler correctly
От | Pedro J. Lobo |
---|---|
Тема | configure doesn't handle --with-compiler correctly |
Дата | |
Msg-id | Pine.OSF.3.96.980216125310.1205C-100000@haddock.euitt.upm.es обсуждение исходный текст |
Ответы |
Re: [HACKERS] configure doesn't handle --with-compiler correctly
|
Список | 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@euitt.upm.es
В списке pgsql-hackers по дате отправления: