From: Daniel Stenberg Date: Tue, 22 Mar 2005 18:02:06 +0000 (+0000) Subject: When cross-compiling, we do some better checking for the NI_WITHSCOPEID option instea... X-Git-Tag: curl-7_13_2~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e555c7b3238ebe48d7fcee304eab977f48679d4;p=thirdparty%2Fcurl.git When cross-compiling, we do some better checking for the NI_WITHSCOPEID option instead of just assuming it is present. --- diff --git a/acinclude.m4 b/acinclude.m4 index d6d0cbb3cc..73e8348e26 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -322,8 +322,24 @@ dnl program worked: [ ac_cv_working_ni_withscopeid="yes" ], dnl program failed: [ ac_cv_working_ni_withscopeid="no" ], -dnl we cross-compile: -[ ac_cv_working_ni_withscopeid="yes" ] +dnl we cross-compile, check the headers using the preprocessor +[ + + AC_EGREP_CPP(WORKS, +[ +#include +#include +#include +#include + +#ifdef NI_WITHSCOPEID +WORKS +#endif +], + ac_cv_working_ni_withscopeid="yes", + ac_cv_working_ni_withscopeid="no" ) + + ] ) dnl end of AC_RUN_IFELSE ]) dnl end of AC_CACHE_CHECK