1 From: Andrew Ruder <andrew.ruder@elecsyscorp.com>
2 Subject: [PATCH] enable cross compilation for expect
4 This patch was created by running ./configure on a modern Linux machine
5 and inserting the results into the cross compilation section of
6 each AC_MSG_CHECKING that bombed out with an error.
8 Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
11 Index: expect-5.45/configure.in
12 ===================================================================
13 --- expect-5.45.orig/configure.in 2013-11-14 07:59:58.732100595 -0600
14 +++ expect-5.45/configure.in 2013-11-14 07:59:58.732100595 -0600
19 - AC_MSG_ERROR([Expect can't be cross compiled])
23 AC_MSG_CHECKING([if any value exists for WNOHANG])
26 AC_DEFINE(WNOHANG_BACKUP_VALUE, 1)
28 - AC_MSG_ERROR([Expect can't be cross compiled])
30 + AC_DEFINE(WNOHANG_BACKUP_VALUE, 1)
38 -, AC_MSG_WARN([Expect can't be cross compiled])
42 # HPUX7 has trouble with the big cat so split it
47 - AC_MSG_ERROR([Expect can't be cross compiled])
51 # mach systems have include files for unimplemented features
56 - AC_MSG_ERROR([Expect can't be cross compiled])
57 + AC_DEFINE(HAVE_TERMIO)
62 # now check for the new style ttys (not yet posix)
67 - AC_MSG_ERROR([Expect can't be cross compiled])
68 + AC_DEFINE(HAVE_TERMIOS)
78 - AC_MSG_ERROR([Expect can't be cross compiled])
82 AC_MSG_CHECKING([if TIOCGWINSZ in termios.h])
87 - AC_MSG_ERROR([Expect can't be cross compiled])
91 # finally check for Cray style ttys
96 - AC_MSG_ERROR([Expect can't be cross compiled])
102 AC_HAVE_FUNCS(getpty)
104 # following test sets SETPGRP_VOID if setpgrp takes 0 args, else takes 2
106 +cat >>expect_cf.h <<\_ACEOF
107 +#define SETPGRP_VOID 1
111 # check for timezones
116 - AC_MSG_ERROR([Expect can't be cross compiled])