Listing 3
##
## Autoconf input for project MyProject
##
AC_INIT([myproject],[3.5.1],[bugs-myproject@mydomain])
dnl - compiler check
AC_PROG_CXX( g++3 c++3 g++ c++ )
dnl - basic header files
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)
dnl - OS-related types
AC_TYPE_UID_T
AC_TYPE_MODE_T
dnl - C-based functions we will need
AC_CHECK_FUNCS([strdup])
dnl - where is the SSL toolkit?
MYPROJECT_CHECK_SSL
dnl - should we enable runtime profiling?
MYPROJECT_ENABLE_PROFILING
dnl - the roundup
AC_CONFIG_FILES([
Makefile
base/Makefile
net/Makefile
net/defaults.h
])
dnl - write out the files based on the templates + configure's queries
AC_OUTPUT