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
|
#
# anyRemote - a bluetooth remote for your PC.
#
# Copyright (C) 2007,2008 Mikhail Fedotov <anyremote@mail.ru>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(anyremote,4.6)
AC_CONFIG_SRCDIR([src/main.c])
AM_INIT_AUTOMAKE(anyremote, AC_PACKAGE_VERSION)
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
CFLAGS="$CFLAGS -I/usr/local/include -Wall -D_REENTRANT -O2 -g"
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/time.h termios.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_TIME
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_SELECT_ARGTYPES
AC_CHECK_FUNCS([isascii select strchr strstr])
#AC_CONFIG_FILES([Makefile
# src/Makefile])
AC_ARG_ENABLE(bluez,
[ --disable-bluez disable bluez support])
if test x"$enable_bluez" != xno; then
AR_EXTRAFLAGS="$AR_EXTRAFLAGS -DUSE_BT=1"
AR_EXTRALIBS="$AR_EXTRALIBS -lbluetooth"
fi
AC_ARG_ENABLE(xtext,
[ --disable-xtest disable xtest support])
if test x"$enable_xtest" != xno; then
AR_EXTRAFLAGS="$AR_EXTRAFLAGS -DUSE_XTEST=1"
AR_EXTRALIBS="$AR_EXTRALIBS -lXtst"
fi
AC_SUBST(AR_EXTRAFLAGS)
AC_SUBST(AR_EXTRALIBS)
AC_OUTPUT([Makefile
src/Makefile])
|