diff options
Diffstat (limited to 'openbsc/configure.ac')
-rw-r--r-- | openbsc/configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/configure.ac b/openbsc/configure.ac index 7e244bc65..c6ae15974 100644 --- a/openbsc/configure.ac +++ b/openbsc/configure.ac @@ -120,7 +120,10 @@ AC_SUBST(found_libgtp_and_libcares) dnl checks for header files AC_HEADER_STDC AC_CHECK_HEADERS(dbi/dbd.h,,AC_MSG_ERROR(DBI library is not installed)) -AC_CHECK_HEADERS(pcap/pcap.h,,AC_MSG_ERROR(PCAP library is not installed)) + +found_pcap=yes +AC_CHECK_HEADERS(pcap/pcap.h,,found_pcap=no) +AM_CONDITIONAL(HAVE_PCAP, test "$found_pcap" = yes) found_cdk=yes AC_CHECK_HEADERS(cdk/cdk.h,,found_cdk=no) |