diff options
author | Thomas Habets <thomas@habets.pp.se> | 2009-10-06 19:39:36 +0200 |
---|---|---|
committer | Thomas Habets <thomas@habets.pp.se> | 2009-10-06 19:39:36 +0200 |
commit | 2a46a7d94b676e027de0f290f042a3884549a93e (patch) | |
tree | bc997ba911eaf7b489edf73c1b7852595823ed99 | |
parent | 3e507c2f65e07946820d4f69a2666999e6c842e9 (diff) | |
download | arping-2a46a7d94b676e027de0f290f042a3884549a93e.tar.gz |
libnet.h is not optional. error out if ENOEXIST
-rwxr-xr-x | configure | 7 | ||||
-rw-r--r-- | configure.ac | 5 |
2 files changed, 12 insertions, 0 deletions
@@ -4749,6 +4749,13 @@ fi done +# Libnet include file is not optional +if test ! x$ac_cv_header_libnet_h = xyes; then + { { echo "$as_me:$LINENO: error: Can't find libnet.h. See INSTALL file for where to get Libnet" >&5 +echo "$as_me: error: Can't find libnet.h. See INSTALL file for where to get Libnet" >&2;} + { (exit 1); exit 1; }; } +fi + # Checks for typedefs, structures, and compiler characteristics. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } diff --git a/configure.ac b/configure.ac index efce587..869ee3c 100644 --- a/configure.ac +++ b/configure.ac @@ -38,6 +38,11 @@ win32/libnet.h \ net/bpf.h \ unistd.h]) +# Libnet include file is not optional +if test ! x$ac_cv_header_libnet_h = xyes; then + AC_MSG_ERROR([Can't find libnet.h. See INSTALL file for where to get Libnet]) +fi + # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_HEADER_TIME |