summaryrefslogtreecommitdiff
path: root/source4/lib/replace/config.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-08-04 16:49:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:31:13 -0500
commit56c112bbbc028bf7b74b47b22d41b74c7a3f9855 (patch)
tree821cb50bb21b77eb083370d11c3dd8eb93680ee5 /source4/lib/replace/config.m4
parent2ba1fa7b593706bdd1ad5bae982ed51b16dc3a83 (diff)
downloadsamba-56c112bbbc028bf7b74b47b22d41b74c7a3f9855.tar.gz
samba-56c112bbbc028bf7b74b47b22d41b74c7a3f9855.tar.bz2
samba-56c112bbbc028bf7b74b47b22d41b74c7a3f9855.zip
r9063: - don't pollute the global $LIBS variable with -ldl
- -lresolve seems to not being needed any more (it's actually not used, and the build farm seem to happy with it) - move socket and netif configure test to seperate files - don't pollute the global $LIBS variable with -lsocket ... - actually make use of the -lsocket when needed (should fix the solaris build) metze (This used to be commit adebd56be6f62323d56b6666ca0e02f85a33438e)
Diffstat (limited to 'source4/lib/replace/config.m4')
-rw-r--r--source4/lib/replace/config.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/lib/replace/config.m4 b/source4/lib/replace/config.m4
new file mode 100644
index 0000000000..8c85663d3b
--- /dev/null
+++ b/source4/lib/replace/config.m4
@@ -0,0 +1,16 @@
+AC_CACHE_CHECK([for broken inet_ntoa],samba_cv_REPLACE_INET_NTOA,[
+AC_TRY_RUN([
+#include <stdio.h>
+#include <sys/types.h>
+#include <netinet/in.h>
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+main() { struct in_addr ip; ip.s_addr = 0x12345678;
+if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
+ strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
+exit(1);}],
+ samba_cv_REPLACE_INET_NTOA=yes,samba_cv_REPLACE_INET_NTOA=no,samba_cv_REPLACE_INET_NTOA=cross)])
+if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
+ AC_DEFINE(REPLACE_INET_NTOA,1,[Whether inet_ntoa should be replaced])
+fi