summaryrefslogtreecommitdiff
path: root/packages/at/at-3.1.8/configure.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/at/at-3.1.8/configure.patch
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/at/at-3.1.8/configure.patch')
-rw-r--r--packages/at/at-3.1.8/configure.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/packages/at/at-3.1.8/configure.patch b/packages/at/at-3.1.8/configure.patch
index e69de29bb2..af94e25dc2 100644
--- a/packages/at/at-3.1.8/configure.patch
+++ b/packages/at/at-3.1.8/configure.patch
@@ -0,0 +1,54 @@
+
+#
+# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
+#
+
+--- at-3.1.8/./configure.in~configure
++++ at-3.1.8/./configure.in
+@@ -1,9 +1,10 @@
+ dnl Process this file with autoconf to produce a configure script.
+
+-AC_INIT(at.c)
++AC_INIT
++AC_CONFIG_SRCDIR([at.c])
+ AC_PREFIX_DEFAULT(/usr)
+ AC_CONFIG_HEADER(config.h)
+-AC_PREREQ(2.7)
++AC_PREREQ(2.57)
+
+
+ VERSION="3.1.8"
+@@ -38,19 +39,16 @@
+ AC_MSG_RESULT(no)
+ ;;
+ esac
++if [ X"${cross_compiling}" = Xno ]; then
+ AC_MSG_CHECKING(Trying to compile a trivial ANSI C program)
+-AC_TRY_RUN([ main(int ac, char **av) { return 0; } ],
+- AC_MSG_RESULT(yes),
+- AC_MSG_RESULT(no)
+- 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.))
++AC_RUN_IFELSE([AC_LANG_SOURCE([[ main(int ac, char **av) { return 0; } ]])],[AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
++ 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.)])
++fi
+
+ AC_MSG_CHECKING(__attribute__((noreturn)))
+-AC_TRY_COMPILE([], [void __attribute__((noreturn)) panic(void);],
+- AC_MSG_RESULT(yes)
+- AC_DEFINE(HAVE_ATTRIBUTE_NORETURN),
+- AC_MSG_RESULT(no)
+-)
++AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[void __attribute__((noreturn)) panic(void);]])],[AC_MSG_RESULT(yes)
++ AC_DEFINE(HAVE_ATTRIBUTE_NORETURN)],[AC_MSG_RESULT(no)
++])
+ dnl Checks for libraries.
+
+ AC_CHECK_LIB(fl,yywrap,
+@@ -315,4 +313,5 @@
+ )
+ AC_SUBST(DAEMON_GROUPNAME)
+
+-AC_OUTPUT(Makefile atrun atd.8 atrun.8 at.1 batch)
++AC_CONFIG_FILES([Makefile atrun atd.8 atrun.8 at.1 batch])
++AC_OUTPUT