]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/autofs/autofs-4.1.4/cross.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / autofs / autofs-4.1.4 / cross.patch
1 --- autofs-4.1.4/aclocal.m4.original    2005-05-20 11:41:34 +0200
2 +++ autofs-4.1.4/aclocal.m4     2005-05-20 11:41:47 +0200
3 @@ -9,6 +9,8 @@
4  AC_DEFUN(AF_PATH_INCLUDE,
5  [AC_PATH_PROGS($1,$2,$3,$4)
6  if test -n "$$1"; then
7 +  AH_TEMPLATE([HAVE_$1], [Have $2])
8 +  AH_TEMPLATE([PATH_$1], [Have $2])
9    AC_DEFINE(HAVE_$1)
10    AC_DEFINE_UNQUOTED(PATH_$1, "$$1")
11    HAVE_$1=1
12 --- autofs-4.1.4/configure.in.original  2005-04-06 17:24:37 +0200
13 +++ autofs-4.1.4/configure.in   2005-05-20 11:40:46 +0200
14 @@ -134,12 +134,14 @@
15  cat > pietest.c <<EOF
16  int main(void) { return 0; }
17  EOF
18 +AF_tmp_ldflags="$LDFLAGS"
19 +AF_tmp_cflags="$CFLAGS"
20  CFLAGS=-fPIE
21  LDFLAGS=-pie
22  DAEMON_CFLAGS=
23  DAEMON_LDFLAGS=
24  AC_MSG_CHECKING([whether gcc -fPIE works])
25 -AC_RUN_IFELSE([AC_LANG_PROGRAM([[]], [[int main(void) {return 0;}]])],
26 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[int main(void) {return 0;}]])],
27               [gcc_supports_pie=yes], [gcc_supports_pie=no])
28  AC_MSG_RESULT([$gcc_supports_pie])
29  if test $gcc_supports_pie = yes ; then
30 @@ -149,6 +151,8 @@
31  rm -f pietest.c
32  AC_SUBST(DAEMON_CFLAGS)
33  AC_SUBST(DAEMON_LDFLAGS)
34 +CFLAGS="${AF_tmp_cflags}"
35 +LDFLAGS="${AF_tmp_ldflags}"
36  
37  #
38  # Location of init.d directory?