diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-13 23:38:38 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-13 23:38:38 +0000 |
commit | 3d4e32bc9a50b17e153d7bdd40e854f872eb32f8 (patch) | |
tree | aa19ff8b55c03f96756d8950aa5a503127c8b564 | |
parent | 53b67960a22175da456e4b6c1c9f846dfe59fba0 (diff) | |
download | riscv-openocd-3d4e32bc9a50b17e153d7bdd40e854f872eb32f8.zip riscv-openocd-3d4e32bc9a50b17e153d7bdd40e854f872eb32f8.tar.gz riscv-openocd-3d4e32bc9a50b17e153d7bdd40e854f872eb32f8.tar.bz2 |
Update configure script test for net/if.h to work on MacOS.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1781 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | configure.in | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 9ddd9e7..e46f06f 100644 --- a/configure.in +++ b/configure.in @@ -18,7 +18,6 @@ AC_CHECK_HEADERS(malloc.h) AC_CHECK_HEADERS(netdb.h) AC_CHECK_HEADERS(netinet/in.h) AC_CHECK_HEADERS(netinet/tcp.h) -AC_CHECK_HEADERS(net/if.h) AC_CHECK_HEADERS(pthread.h) AC_CHECK_HEADERS(strings.h) AC_CHECK_HEADERS(sys/ioctl.h) @@ -31,6 +30,21 @@ AC_CHECK_HEADERS(sys/time.h) AC_CHECK_HEADERS(sys/types.h) AC_CHECK_HEADERS(unistd.h) +AC_CHECK_HEADERS([net/if.h], [], [], [dnl +#include <stdio.h> +#ifdef STDC_HEADERS +# include <stdlib.h> +# include <stddef.h> +#else +# ifdef HAVE_STDLIB_H +# include <stdlib.h> +# endif +#endif +#ifdef HAVE_SYS_SOCKET_H +# include <sys/socket.h> +#endif +]) + AC_HEADER_ASSERT AC_HEADER_STDBOOL AC_HEADER_TIME |