Ask GDK to give us reasonable approximations if it can't get precisely the
[sgt/putty] / unix / configure.ac
CommitLineData
76d3a838 1# To compile this into a configure script, you need:
2# * Autoconf 2.50 or newer
3# * Gtk (for $prefix/share/aclocal/gtk.m4)
4# * Automake (for aclocal)
5# If you've got them, running "autoreconf" should work.
6
7AC_INIT
8AC_CONFIG_FILES([Makefile])
9AC_CONFIG_HEADERS([uxconfig.h:uxconfig.in])
10
11AC_PROG_INSTALL
12AC_PROG_CC
13if test "X$GCC" = Xyes; then
14 CFLAGS="$CFLAGS -Wall -Werror"
15fi
16
dbf58cfa 17AC_CHECK_HEADERS([sys/sockio.h],,,[ ])
18
76d3a838 19AM_PATH_GTK([1.2.0], [all_targets="all-cli all-gtk"], [all_targets="all-cli"])
20AC_SUBST([all_targets])
21
22AC_SEARCH_LIBS([socket], [xnet])
23
24AC_CHECK_FUNCS([getaddrinfo ptsname pututline setresuid strsignal])
25
26AC_OUTPUT
27
28AH_BOTTOM([
29/* Convert autoconf definitions to ones that PuTTY wants. */
30
31#ifndef HAVE_GETADDRINFO
32# define NO_IPV6
33#endif
34#ifndef HAVE_SETRESUID
35# define HAVE_NO_SETRESUID
36#endif
37#ifndef HAVE_STRSIGNAL
38# define HAVE_NO_STRSIGNAL
39#endif
40#ifndef HAVE_PUTUTLINE
41# define OMIT_UTMP
42#endif
43#ifndef HAVE_PTSNAME
44# define BSD_PTYS
45#endif
46])