Marc Haisenko wrote:
> Sorry, forgot to attach the patch.
>
>
Thanks. Tried it out.
I guess since you wrote it, someone added:
{ echo "$as_me:$LINENO: checking quality of toupper" >&5
echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6; }
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: failed to compile test program" >&5
echo "$as_me: error: failed to compile test program" >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
...
Bunch of other places, too:
{ echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6; }
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: failed to compile test program." >&5
echo "$as_me: error: failed to compile test program." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
...
Sigh. Too bad. I'm just compiling from one version of Linux to another...
Actually, both are 2.6.x (where x>=18)... only difference is the version
of libc and the processor family (i586 vs. x86_64).
Looking at this madness, I don't know why we don't just have something
like (pardon the poor sh scripting... I'm a tcsh/perl user myself):
xcomp_default=0 # can be zero or one
as_func_xcomp_default () {
if test "$cross_compiling" = yes; then
return $xcomp_default
else
return 2
fi
}
Then you could call as_func_xcomp_default, and if the return value is 0,
default the feature off, if it's one, enable it, and for 2 have to do
the auto-discovery logic natively...
-Philip
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---