2
# Process this file with autoconf to produce a configure script.
5
# $Id: configure.in 1069 2009-11-21 18:19:09Z edman007 $
6
# $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/configure.in $
9
# LCD4Linux autoconf script
11
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Michael Reinelt <michael@reinelt.co.at>
12
# Copyright (C) 2004, 2005, 2006, 2007 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
14
# This file is part of LCD4Linux.
16
# LCD4Linux is free software; you can redistribute it and/or modify
17
# it under the terms of the GNU General Public License as published by
18
# the Free Software Foundation; either version 2, or (at your option)
21
# LCD4Linux is distributed in the hope that it will be useful,
22
# but WITHOUT ANY WARRANTY; without even the implied warranty of
23
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
# GNU General Public License for more details.
26
# You should have received a copy of the GNU General Public License
27
# along with this program; if not, write to the Free Software
28
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31
AC_INIT([LCD4Linux],[0.11.0-SVN],[lcd4linux-users@lists.sourceforge.net])
32
AC_CONFIG_SRCDIR([lcd4linux.c])
33
AM_INIT_AUTOMAKE([lcd4linux],0.11.0-SVN)
34
AM_CONFIG_HEADER(config.h)
36
# Checks for programs.
47
# Checks for libraries.
57
# double-check for X11
58
if test "$no_x" != "yes"; then
59
AC_CHECK_HEADERS(X11/Xlib.h X11/Xutil.h, [no_x="$no_x"], [no_x="yes"])
60
if test "$no_x" = "yes"; then
61
AC_MSG_WARN([configure thinks X11 is available while it is *not*])
62
AC_MSG_WARN([maybe someone wants to fix autoconf's AC PATH XTRA])
67
AC_CHECK_HEADERS(gd/gd.h gd.h, [has_gd="true"; break], [has_gd="false"])
69
# check for sys/io.h (RouterBoard driver)
70
AC_CHECK_HEADERS(sys/io.h, [has_io_h="true"], [has_io_h="false"])
73
AC_CHECK_HEADERS(usb.h, [has_usb="true"], [has_usb="false"])
76
AC_CHECK_HEADERS(luise.h, [has_luise="true"], [has_luise="false"])
78
# check for serdisplib
79
AC_CHECK_HEADERS(serdisplib/serdisp.h, [has_serdisplib="true"], [has_serdisplib="false"])
81
# check for st2205 libs
82
AC_CHECK_HEADERS(st2205.h, [has_st2205="true"], [has_st2205="false"])
84
# check for vncserver libs
85
AC_CHECK_HEADERS(rfb/rfb.h, [has_vncserverlib="true"], [has_vncserverlib="false"])
88
AC_CHECK_HEADERS(linux/lcd-linux.h linux/hd44780.h, [has_lcd_linux="true"], [has_lcd_linux="false"; break])
90
# check for ftdi.h (ULA200)
91
AC_CHECK_HEADERS(ftdi.h, [has_ftdi="true"], [has_ftdi="false"; break])
94
AC_MSG_CHECKING(if python support is wanted)
96
[ --with-python enable python support [[default=no]]],
97
[AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
99
if test "$with_python" = "yes"; then
100
sinclude(ax_python_devel.m4)
105
#AC_CHECK_HEADERS(asm/io.h)
106
AC_CHECK_HEADERS([asm/io.h] [linux/parport.h linux/ppdev.h], [has_parport="true"], [has_parport="false"])
114
# Checks for header files.
117
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h sys/vfs.h syslog.h termios.h unistd.h])
119
# Checks for typedefs, structures, and compiler characteristics.
130
# Checks for library functions.
131
AC_FUNC_CLOSEDIR_VOID
132
AC_FUNC_ERROR_AT_LINE
135
# uClibc has no getloadavg()
136
# AC_FUNC_GETLOADAVG sounds promising, but does not really work
139
AC_PROG_GCC_TRADITIONAL
141
# removed for uClibc compatibility
145
AC_FUNC_SELECT_ARGTYPES
150
AC_CHECK_FUNCS([dup2 floor gethostbyname gettimeofday memmove memset pow putenv regcomp select socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strndup strpbrk strrchr strstr strtol strtoul uname])
152
AC_CONFIG_FILES([Makefile])
156
[-----------------------------------------]
159
[-----------------------------------------]
162
[-----------------------------------------]
165
AC_CONFIG_MACRO_DIR([m4])