dnl Process this file with autoconf to produce a configure script. AC_INIT(src/bfbt/bfbtester.c) AC_CANONICAL_SYSTEM PACKAGE="BFBTester" VERSION=`cat VERSION` AM_INIT_AUTOMAKE($PACKAGE, $VERSION) AM_CONFIG_HEADER(src/config.h) dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL dnl Checks for libraries. AC_CHECK_LIB(c_r, pthread_create, [LIBS="$LIBS -pthread"]) AC_CHECK_LIB(pthread, pthread_create) dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h pthread.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_INLINE AC_TYPE_PID_T AC_TYPE_SIZE_T AC_STRUCT_TM dnl Checks for library functions. AC_FUNC_VPRINTF AC_CHECK_FUNCS(gettimeofday strsignal strcspn strdup strerror strstr readdir_r, , AC_MSG_ERROR(Can't find needed function: $ac_func)) case $build_os in solaris*) AC_DEFINE(SOLARIS) CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; linux*) AC_DEFINE(LINUX) ;; esac AC_OUTPUT([ Makefile src/Makefile src/bfbt/Makefile ])