1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_INIT(cwdaemon, 0.9.3, pg4i@amsat.org)
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
AC_CONFIG_SRCDIR([cwdaemon.c])
AC_PROG_GCC_TRADITIONAL
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_CC_STDC
AC_CHECK_PROGS(RPMBUILD, rpmbuild, rpm)
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([errno.h arpa/inet.h fcntl.h netdb.h netinet/in.h \
stdlib.h string.h strings.h sys/ioctl.h sys/socket.h syslog.h unistd.h \
sys/time.h linux/ppdev.h stdio.h signal.h stdarg.h termios.h sys/resource.h \
dev/ppbus/ppi.h sys/stat.h \
])
AC_HEADER_TIME
AC_CHECK_HEADERS(sys/kd.h sys/vtkd.h sys/kbio.h)
AC_CHECK_HEADERS(sys/soundcard.h soundcard.h)
if test "$ac_cv_header_sys_soundcard_h" = 'no' \
&& test "$ac_cv_header_soundcard_h" == 'no'; then
AC_MSG_ERROR(Cannot find sys/soundcard.h or soundcard.h)
fi
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
# Checks for library functions.
AC_FUNC_FORK
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([bzero socket strerror])
AC_CHECK_FUNCS([setpriority])
# check for single precision versions of sin() and floor()
AC_CHECK_LIB([m],[sinf],[AC_DEFINE([HAVE_SINF],[1],[libm includes sinf])])
AC_CHECK_LIB([m],[floorf],[AC_DEFINE([HAVE_FLOORF],[1],[libm includes floorf])])
AC_CHECK_LIB([m],[sin])
AC_CHECK_LIB([ossaudio],[_oss_ioctl])
if test "${ac_cv_c_compiler_gnu}" = "yes"; then
CFLAGS="${CFLAGS} -Wall"
fi
AC_SUBST(PACKAGE_CFLAGS)
AC_OUTPUT([Makefile
cwdaemon.8
cwdaemon.spec
])
|