2 AM_INIT_AUTOMAKE(libicq2000, 0.1)
4 AM_CONFIG_HEADER(config.h)
16 AC_CHECK_HEADERS([vector iostream fstream string algorithm list memory iterator exception utility],,
17 AC_MSG_ERROR([You need to have the libstdc++ headers installed]))
19 AC_CHECK_HEADERS([hash_map strstream ext/hash_map sstream],,)
21 AC_CHECK_HEADERS([ext/hash_map],,
22 [AC_CHECK_HEADERS(hash_map,,
23 AC_MSG_ERROR([Your libstdc++ installation does not have the extra hash classes]))])
25 AC_CHECK_HEADERS(sstream,,
26 [AC_CHECK_HEADERS(strstream,,
27 AC_MSG_ERROR([Your libstdc++ doesn't have the sstream or strstream classes]))])
30 #include <sys/types.h>
31 #include <sys/socket.h>
32 ],[ socklen_t foo; ], ac_cv_c_socklen_t=yes, ac_cv_c_socklen_t=no)
34 if test $ac_cv_c_socklen_t = no; then
35 AC_DEFINE(socklen_t, int, [Define type of socklen_t for systems missing it])
40 AC_OUTPUT(Makefile libicq2000/Makefile src/Makefile)