]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
When cross-compiling, we do some better checking for the NI_WITHSCOPEID option instea...
authorDaniel Stenberg <daniel@haxx.se>
Tue, 22 Mar 2005 18:02:06 +0000 (18:02 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 22 Mar 2005 18:02:06 +0000 (18:02 +0000)
acinclude.m4

index d6d0cbb3cc29e86b803073c46d3163979e9cd113..73e8348e26c63b817d6c7342cb67b2fbe108c7fb 100644 (file)
@@ -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 <stdio.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+
+#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