~siretart/lcd4linux/debian

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Reinhard Tartler
  • Date: 2011-04-27 17:24:15 UTC
  • mto: This revision was merged to the branch mainline in revision 750.
  • Revision ID: siretart@tauware.de-20110427172415-6n4aptmvmz0eztvm
Tags: upstream-0.11.0~svn1143
ImportĀ upstreamĀ versionĀ 0.11.0~svn1143

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#                                               -*- Autoconf -*-
 
2
# Process this file with autoconf to produce a configure script.
 
3
 
 
4
 
 
5
# $Id: configure.in 1069 2009-11-21 18:19:09Z edman007 $
 
6
# $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/configure.in $
 
7
 
 
8
 
 
9
# LCD4Linux autoconf script
 
10
#
 
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>
 
13
#
 
14
# This file is part of LCD4Linux.
 
15
#
 
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)
 
19
# any later version.
 
20
#
 
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.
 
25
#
 
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.
 
29
 
 
30
AC_PREREQ(2.59)
 
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)
 
35
 
 
36
# Checks for programs.
 
37
AC_PROG_CC
 
38
AC_PROG_CPP
 
39
AC_PROG_INSTALL
 
40
AC_PROG_LN_S
 
41
AC_PROG_MAKE_SET
 
42
PKG_PROG_PKG_CONFIG
 
43
 
 
44
# dmalloc
 
45
AM_WITH_DMALLOC
 
46
 
 
47
# Checks for libraries.
 
48
AC_CHECK_LIB(m, log)
 
49
 
 
50
# curses
 
51
sinclude(curses.m4)
 
52
AC_CHECK_CURSES
 
53
 
 
54
# Checks for X11
 
55
AC_PATH_X
 
56
AC_PATH_XTRA
 
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])
 
63
   fi
 
64
fi
 
65
 
 
66
# check for gd.h
 
67
AC_CHECK_HEADERS(gd/gd.h gd.h, [has_gd="true"; break], [has_gd="false"])
 
68
 
 
69
# check for sys/io.h (RouterBoard driver)
 
70
AC_CHECK_HEADERS(sys/io.h, [has_io_h="true"], [has_io_h="false"])
 
71
 
 
72
# check for usb.h
 
73
AC_CHECK_HEADERS(usb.h, [has_usb="true"], [has_usb="false"])
 
74
 
 
75
# check for luise.h
 
76
AC_CHECK_HEADERS(luise.h, [has_luise="true"], [has_luise="false"])
 
77
 
 
78
# check for serdisplib
 
79
AC_CHECK_HEADERS(serdisplib/serdisp.h, [has_serdisplib="true"], [has_serdisplib="false"])
 
80
 
 
81
# check for st2205 libs
 
82
AC_CHECK_HEADERS(st2205.h, [has_st2205="true"], [has_st2205="false"])
 
83
 
 
84
# check for vncserver libs
 
85
AC_CHECK_HEADERS(rfb/rfb.h, [has_vncserverlib="true"], [has_vncserverlib="false"])
 
86
 
 
87
# check for LCD-Linux
 
88
AC_CHECK_HEADERS(linux/lcd-linux.h linux/hd44780.h, [has_lcd_linux="true"], [has_lcd_linux="false"; break])
 
89
 
 
90
# check for ftdi.h (ULA200)
 
91
AC_CHECK_HEADERS(ftdi.h, [has_ftdi="true"], [has_ftdi="false"; break])
 
92
 
 
93
# check for python
 
94
AC_MSG_CHECKING(if python support is wanted)
 
95
AC_ARG_WITH(python,
 
96
[  --with-python           enable python support [[default=no]]],
 
97
[AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
 
98
 
 
99
if test "$with_python" = "yes"; then
 
100
    sinclude(ax_python_devel.m4)
 
101
    AC_PYTHON_DEVEL
 
102
fi
 
103
 
 
104
# check for parport
 
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"])
 
107
 
 
108
# drivers
 
109
sinclude(drivers.m4)
 
110
 
 
111
# plugins
 
112
sinclude(plugins.m4)
 
113
 
 
114
# Checks for header files.
 
115
AC_HEADER_DIRENT
 
116
AC_HEADER_STDC
 
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])
 
118
 
 
119
# Checks for typedefs, structures, and compiler characteristics.
 
120
AC_C_CONST
 
121
AC_C_INLINE
 
122
AC_TYPE_OFF_T
 
123
AC_TYPE_PID_T
 
124
AC_TYPE_SIZE_T
 
125
AC_TYPE_SSIZE_T
 
126
AC_HEADER_TIME
 
127
AC_TYPE_UID_T
 
128
 
 
129
 
 
130
# Checks for library functions.
 
131
AC_FUNC_CLOSEDIR_VOID
 
132
AC_FUNC_ERROR_AT_LINE
 
133
AC_FUNC_FORK
 
134
 
 
135
# uClibc has no getloadavg()
 
136
# AC_FUNC_GETLOADAVG sounds promising, but does not really work
 
137
#AC_FUNC_GETLOADAVG
 
138
 
 
139
AC_PROG_GCC_TRADITIONAL
 
140
 
 
141
# removed for uClibc compatibility
 
142
#AC_FUNC_MALLOC
 
143
#AC_FUNC_REALLOC
 
144
 
 
145
AC_FUNC_SELECT_ARGTYPES
 
146
AC_TYPE_SIGNAL
 
147
AC_FUNC_STAT
 
148
AC_FUNC_STRFTIME
 
149
AC_FUNC_STRTOD
 
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])
 
151
 
 
152
AC_CONFIG_FILES([Makefile])
 
153
AC_OUTPUT
 
154
 
 
155
AC_MSG_RESULT(
 
156
[-----------------------------------------]
 
157
[including drivers:]
 
158
[  $DRIVERS]
 
159
[-----------------------------------------]
 
160
[including plugins:]
 
161
[  $PLUGINS]
 
162
[-----------------------------------------]
 
163
)
 
164
 
 
165
AC_CONFIG_MACRO_DIR([m4])
 
166
LT_INIT