[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#2602: configure assumption broken for Compaq C++ compiler
From:       Ken Block USG <block () zk3 ! dec ! com>
Date:       2000-01-31 22:22:19
[Download RAW message or body]


Package: kdelibs, kdebase
Version: snapshot 20000116

The configuration tool determines if a switch is valid if it can envoke
the compiler with that switch and not get a diagnostic. The Compaq C++
compiler takes all switches that it does not recognize and simply passes
them to the next tool in the tool chain. If the process is not taken all
the way through to link, no diagnostic will be generated. Could I
suggest the following patch:

cxalrh60.zko.dec.com> diff -c admin/acinclude.m4.in{.orig,}
*** admin/acinclude.m4.in.orig  Sat Jan 15 18:07:01 2000
--- admin/acinclude.m4.in       Mon Jan 31 15:51:58 2000
***************
*** 1481,1488 ****
  kde_cache=`echo $1 | sed 'y%.=/+-%___p_%'`
  AC_CACHE_VAL(kde_cv_prog_cxx_$kde_cache,
  [
! echo 'void f(){}' >conftest.cc
! if test -z "`$CXX -$1 -c conftest.cc 2>&1`"; then
    eval "kde_cv_prog_cxx_$kde_cache=yes"
  else
    eval "kde_cv_prog_cxx_$kde_cache=no"
--- 1481,1488 ----
  kde_cache=`echo $1 | sed 'y%.=/+-%___p_%'`
  AC_CACHE_VAL(kde_cv_prog_cxx_$kde_cache,
  [
! echo 'int main(){return 0;}' >conftest.cc
! if test -z "`$CXX -$1 -o conftest conftest.cc 2>&1`"; then
    eval "kde_cv_prog_cxx_$kde_cache=yes"
  else
    eval "kde_cv_prog_cxx_$kde_cache=no"


["block.vcf" (text/x-vcard)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic