判断某个库是否存在
1. configure.ac
-
AC_CHECK_LIB(udt, udt_listen, UDT_LIBS='-ludt', AC_MSG_ERROR([udt not found]))
-
AC_SUBST(UDT_LIBS)
2. Makefile.am
-
libspice_client_glib_2_0_la_LIBADD = \
-
$(UDT_LIBS)
3. automake -> Makefile.in
autoconf -> configure
或者autoreconf -> Makefile.in configure
阅读(1580) | 评论(0) | 转发(0) |