1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00
Files
libtins/tests/configure.ac
2013-05-31 22:16:56 -03:00

22 lines
558 B
Plaintext

AC_INIT(myconfig, 0.1)
AC_PROG_CXX()
AC_LANG(C++)
CFLAGS="-DTINS_DEBUG -g"
AC_ARG_ENABLE(
c++11,
[ --enable-c++11 enable C++11 features],
[CFLAGS="$CFLAGS -std=c++0x"]
)
SOURCE_FILES=$(ls ../src/*cpp ../src/dot11/*cpp src/*cpp src/dot11/*cpp | tr '\n' ' ')
AC_CHECK_HEADERS([pcap.h gtest/gtest.h])
AC_CHECK_LIB(pcap, pcap_loop, [], [AC_MSG_ERROR([pcap library is needed!])])
AC_CHECK_LIB(crypto, PKCS5_PBKDF2_HMAC_SHA1, [], [AC_MSG_ERROR([crypto library is needed!])])
AC_SUBST(CFLAGS)
AC_SUBST(SOURCE_FILES)
AC_OUTPUT(Makefile)