5. 编辑configure.in文件 ----------------------------------------------------------------------- # -*- Autoconf -*- # Process this file with autoconf to produce a configure script.
# Checks for programs. AC_PROG_CC AC_PROG_RANLIB #多线程支持
AC_LIBTOOL_DLOPEN AC_PROG_LIBTOOL #添加libtool检查
# Checks for libraries. # FIXME: Replace `pthread_mutex_init' with a function in `-lpthread': #添加静态库 AC_CHECK_LIB([pthread], [pthread_mutex_init]) #指定表态库的一个函数查询库是否正常
# Checks for header files. AC_CHECK_HEADERS([stdlib.h string.h unistd.h]) #添加头文件
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions. AC_FUNC_MALLOC AC_CHECK_FUNCS([memset strchr strdup strtoul])