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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
# Copyright (C) 2006 Ted Williams (wa0eir) <wa0eir@wa0eir.bcts.info>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
AC_INIT([psk31lx], [2.1], [wa0eir@wa0eir.bcts.info])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE
# Checks for programs.
AC_PROG_CXX
##AC_PROG_CC
##AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h], [],
[AC_MSG_ERROR("This header file is missing")])
AC_CHECK_HEADERS([termios.h unistd.h], [],
[AC_MSG_ERROR("This header file is missing")])
AC_CHECK_HEADERS([pthread.h ncurses.h curses.h pulse/simple.h], [],
[AC_MSG_ERROR("This header file is missing")])
# Checks for libraries.
AC_CHECK_LIB([m], [sqrt], [],
[AC_MSG_ERROR("ERROR: math library was not found")])
AC_CHECK_LIB([ncurses], [initscr], [],
[AC_MSG_ERROR("ERROR: ncurses library was not found")])
AC_CHECK_LIB([pthread], [pthread_create], [],
[AC_MSG_ERROR("ERROR: pthread library was not found")])
AC_CHECK_LIB([pulse-simple], [pa_simple_new], [],
[AC_MSG_ERROR("pulsesaudio library was not found")])
AC_CHECK_HEADERS([pulse/pulseaudio.h], [],
[AC_MSG_ERROR("This header file is missing")])
AC_CHECK_LIB([pulse], [pa_strerror], [],
[AC_MSG_ERROR("pulse library was not found")])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_HEADER_TIME
AC_STRUCT_TM
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
# Checks for library functions.
#AC_PROG_GCC_TRADITIONAL
AC_FUNC_MALLOC
AC_FUNC_SELECT_ARGTYPES
AC_CHECK_FUNCS([atexit bzero memset pow select sqrt strdup])
echo "######################################################################"
echo CFLAGS = $CFLAGS
echo LIBS = $LIBS
echo LDFLAGS = $LDFLAGS
echo "######################################################################"
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile man/en/Makefile])
AC_OUTPUT
|