3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- at-3.1.8/./configure.in~configure
7 +++ at-3.1.8/./configure.in
9 dnl Process this file with autoconf to produce a configure script.
13 +AC_CONFIG_SRCDIR([at.c])
14 AC_PREFIX_DEFAULT(/usr)
15 AC_CONFIG_HEADER(config.h)
25 +if [ X"${cross_compiling}" = Xno ]; then
26 AC_MSG_CHECKING(Trying to compile a trivial ANSI C program)
27 -AC_TRY_RUN([ main(int ac, char **av) { return 0; } ],
30 - AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC.),
31 - AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC.))
32 +AC_RUN_IFELSE([AC_LANG_SOURCE([[ main(int ac, char **av) { return 0; } ]])],[AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
33 + AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC.)],[AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC.)])
36 AC_MSG_CHECKING(__attribute__((noreturn)))
37 -AC_TRY_COMPILE([], [void __attribute__((noreturn)) panic(void);],
39 - AC_DEFINE(HAVE_ATTRIBUTE_NORETURN),
42 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[void __attribute__((noreturn)) panic(void);]])],[AC_MSG_RESULT(yes)
43 + AC_DEFINE(HAVE_ATTRIBUTE_NORETURN)],[AC_MSG_RESULT(no)
45 dnl Checks for libraries.
47 AC_CHECK_LIB(fl,yywrap,
50 AC_SUBST(DAEMON_GROUPNAME)
52 -AC_OUTPUT(Makefile atrun atd.8 atrun.8 at.1 batch)
53 +AC_CONFIG_FILES([Makefile atrun atd.8 atrun.8 at.1 batch])