dnl Process this file with autoconf to produce a configure script. AC_INIT(src/camera.c) AM_INIT_AUTOMAKE(opendis, 0.0.3) AM_CONFIG_HEADER(src/config.h) dnl Checks for programs. AC_PROG_CC AC_PROG_RANLIB if test "$GCC" = yes; then dnl Add some extra flags when compiling with gcc. gcc_extra_cflags="-D_GNU_SOURCE -Wall -ansi -pedantic -W" AC_SUBST(gcc_extra_cflags) fi AC_CHECK_FUNCS(getopt_long) dnl Checks for libraries. dnl Replace `main' with a function in -lods: AC_CHECK_LIB(ods, main) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM dnl Checks for library functions. AC_FUNC_UTIME_NULL AC_CHECK_FUNCS(mktime select strdup strerror strtol) AC_OUTPUT(Makefile src/Makefile)