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
|
dnl hamfax -- an application for sending and receiving amateur radio facsimiles
dnl Copyright (C) 2001, 2002, 2003, 2004
dnl Christof Schmitt, DH1CS <cschmitt@users.sourceforge.net>
dnl
dnl This program is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU General Public License
dnl as published by the Free Software Foundation; either version 2
dnl of the License, or (at your option) any later version.
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
dnl
dnl Process this file with autoconf to produce a configure script.
AC_INIT(hamfax, 0.8.1, cschmitt@users.sourceforge.net)
AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION)
AM_CONFIG_HEADER(src/config.h)
AC_LANG_CPLUSPLUS
AC_PROG_CXX
AC_PROG_INSTALL
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([Qt4], [QtCore QtGui])
AH_TEMPLATE(USE_FILE, [Build with support for audio files.])
AC_CHECK_LIB(audiofile, afOpenFile,
[AC_DEFINE(USE_FILE) USE_FILE="1" LIBS="$LIBS -laudiofile"])
AM_CONDITIONAL(USE_FILE, test x$USE_FILE = x1)
if test "x$USE_FILE" != "x1"; then
AC_MSG_ERROR([libaudiofile not found])
fi
AH_TEMPLATE(USE_OSS, [Build with support for the open sound system (OSS).])
AC_CHECK_HEADER(sys/soundcard.h, [AC_DEFINE(USE_OSS) USE_OSS="1"])
AM_CONDITIONAL(USE_OSS, test x$USE_OSS = x1)
if test "x$USE_OSS" != "x1"; then
AC_MSG_ERROR([OSS file sys/soundcard.h not found])
fi
AH_TEMPLATE(USE_ALSA, [Build with support for Advanced Linux Sound System (ALSA).])
AC_CHECK_HEADER(alsa/asoundlib.h, [AC_DEFINE(USE_ALSA) USE_ALSA="1" LIBS="$LIBS -lasound"])
AM_CONDITIONAL(USE_ALSA, test x$USE_ALSA = x1)
AC_CHECK_LIB(hamlib,rigerror)
AH_TEMPLATE(USE_PTC, [Build with support for the PTC-II])
AC_SYS_POSIX_TERMIOS
AM_CONDITIONAL(USE_PTC, test x$am_cv_sys_posix_termios = xyes)
if test x$am_cv_sys_posix_termios = xyes; then
AC_DEFINE(USE_PTC)
fi
AC_PATH_PROG(XMLTO, xmlto)
AC_PATH_PROG(LRELEASE, lrelease)
AM_CONDITIONAL(USE_LRELEASE, test -n $LRELEASE)
AC_OUTPUT(Makefile)
|