./configure : checking for new

Pàgina inicial

Reply to this message
Autor: olivier.eribon
Data:  
A: guilde
Assumptes nous: Re: ./configure : checking for new -> solutionne
Assumpte: ./configure : checking for new
Bonjour,

Je rencontre un probleme de compilation de mozilla-1.3 due a un probleme lors du
./configure

En effet, une detection incorrect pour une bonne compilation est effectuee :


checking for new... no ( alors qu'il me faudrait checking for new... yes afin
d'obtenir un #include <new> plutot qu'un #include "new.h")

que faut-il modifier dans ma configuration qui ne doit pas etre correcte pour
que je retombe dans le bon cas.
Pouvez-vous m'en dire plus sur ce script ./configure ? (cf extrait en fin de
message)


Cordialement

Olivier Eribon




ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS
conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross

NEW_H=new.h
ac_safe=`echo "new" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for new""... $ac_c" 1>&6
echo "configure:7083: checking for new" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 7088 "configure"
#include "confdefs.h"
#include <new>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
NEW_H=new
else
echo "$ac_t""no" 1>&6
fi

cat >> confdefs.h <<EOF
#define NEW_H <$NEW_H>
EOF