]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/fetchmail/fetchmail/configure.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / fetchmail / fetchmail / configure.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- fetchmail-6.2.3/configure.in~configure
7 +++ fetchmail-6.2.3/configure.in
8 @@ -4,7 +4,7 @@
9  dnl Process this file with autoconf to produce a configure script.
10  dnl
11  
12 -AC_INIT([fetchmail], [6.1.2])
13 +AC_INIT([fetchmail],[6.1.2])
14  AC_CONFIG_SRCDIR([fetchmail.h])
15  AC_CONFIG_HEADERS([config.h])
16  
17 @@ -155,27 +155,20 @@
18  
19  dnl Check for usable void pointer type
20  AC_MSG_CHECKING(use of void pointer type)
21 -AC_TRY_COMPILE([],
22 -   [char *p;
23 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[char *p;
24      void *xmalloc();
25      p = (char *) xmalloc(1);
26 -   ],
27 - [AC_DEFINE(HAVE_VOIDPOINTER) AC_MSG_RESULT(yes)],
28 - AC_MSG_RESULT(no))
29 +   ]])],[AC_DEFINE(HAVE_VOIDPOINTER) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
30  
31  dnl Check for ANSI volatile
32  AC_MSG_CHECKING(for ANSI volatile)
33 -AC_TRY_COMPILE([],
34 -   [volatile int n;],
35 - [AC_DEFINE(HAVE_VOLATILE) AC_MSG_RESULT(yes)],
36 - AC_MSG_RESULT(no))
37 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[volatile int n;]])],[AC_DEFINE(HAVE_VOLATILE) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
38  
39  dnl Check out the wait reality.  We have to assume sys/wait.h is present.
40  AC_CHECK_FUNCS(waitpid wait3)
41  AC_MSG_CHECKING(for union wait);
42 -AC_TRY_LINK([#include <sys/types.h>
43 -#include <sys/wait.h>],
44 -                [union wait status; int pid; pid = wait (&status);
45 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
46 +#include <sys/wait.h>]], [[union wait status; int pid; pid = wait (&status);
47  #ifdef WEXITSTATUS
48  /* Some POSIXoid systems have both the new-style macros and the old
49     union wait type, and they do not work together.  If union wait
50 @@ -186,18 +179,14 @@
51  /* Make sure union wait works with waitpid.  */
52  pid = waitpid (-1, &status, 0);
53  #endif
54 -],
55 -  [AC_DEFINE(HAVE_UNION_WAIT) AC_MSG_RESULT(yes)],
56 -  AC_MSG_RESULT(no))
57 +]])],[AC_DEFINE(HAVE_UNION_WAIT) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
58  
59  AC_MSG_CHECKING(sys_siglist declaration in signal.h or unistd.h)
60 -AC_TRY_LINK([#include <signal.h>
61 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <signal.h>
62  /* NetBSD declares sys_siglist in <unistd.h>.  */
63  #ifdef HAVE_UNISTD_H
64  #include <unistd.h>
65 -#endif], [char *msg = *(sys_siglist + 1);],
66 -  [AC_DEFINE(SYS_SIGLIST_DECLARED) AC_MSG_RESULT(yes)],
67 -  AC_MSG_RESULT(no))
68 +#endif]], [[char *msg = *(sys_siglist + 1);]])],[AC_DEFINE(SYS_SIGLIST_DECLARED) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
69  
70  # Find the right directory to put the root-mode PID file in
71  for dir in "/var/run" "/etc"
72 @@ -264,21 +253,21 @@
73  
74  case "$enable_fallback" in
75         sendmail)       if test -z "$sendmail" ; then 
76 -                               AC_ERROR([Sendmail selected as fallback, but not found])
77 +                               AC_MSG_ERROR([Sendmail selected as fallback, but not found])
78                                 #not reached
79                         fi
80                         AC_DEFINE_UNQUOTED(FALLBACK_MDA, "$sendmail -i %T")
81                         echo "Will use $sendmail as fallback MDA."
82                         ;;
83         procmail)       if test -z "$procmail" ; then
84 -                               AC_ERROR([procmail selected as fallback, but not found])
85 +                               AC_MSG_ERROR([procmail selected as fallback, but not found])
86                                 #not reached
87                         fi
88                         AC_DEFINE_UNQUOTED(FALLBACK_MDA, "$procmail -d %T")
89                         echo "Will use $procmail as fallback MDA."
90                         ;;
91         maildrop)       if test -z "$maildrop" ; then
92 -                               AC_ERROR([maildrop selected as fallback, but not found])
93 +                               AC_MSG_ERROR([maildrop selected as fallback, but not found])
94                                 #not reached
95                         fi
96                         AC_DEFINE_UNQUOTED(FALLBACK_MDA, "$maildrop -d %T")
97 @@ -294,7 +283,7 @@
98                                 echo "for automatic fallback MDA configuration for reliability reasons."
99                         fi
100                         ;;
101 -       *)              AC_ERROR([unkown value for --enable-fallback given: $enable_fallback])
102 +       *)              AC_MSG_ERROR([unkown value for --enable-fallback given: $enable_fallback])
103                         #notreached
104                         ;;
105  esac
106 @@ -429,7 +418,7 @@
107  # Check for a OpenBSD special case
108  if test "$with_kerberos5" = "yes" && ( test `uname` = "OpenBSD" )
109  then
110 -  AC_CHECKING([kerberosV for OpenBSD])
111 +  AS_MESSAGE(checking kerberosV for OpenBSD...)
112    AC_DEFINE(HEIMDAL)
113    AC_DEFINE(KERBEROS_V5)
114    CEFLAGS="$CEFLAGS -I/usr/include/kerberosV"
115 @@ -458,7 +447,7 @@
116                  ${LDEFLAGS})
117             AC_CHECK_LIB(des, des_string_to_key, libk5crypto=-ldes,
118                AC_CHECK_LIB(ssl, MD5_Init, [],
119 -                AC_ERROR([DES libraries not found. Try adding --with-ssl to enable OpenSSL support]),
120 +                AC_MSG_ERROR([DES libraries not found. Try adding --with-ssl to enable OpenSSL support]),
121                  ${LDEFLAGS} ${ac_krblibs}),
122             ${LDEFLAGS} ${ac_krblibs})
123             AC_DEFINE(HEIMDAL)
124 @@ -471,7 +460,7 @@
125                  AC_CHECK_LIB(k5crypto,
126                     krb5_des_string_to_key,
127                     libk5crypto=-lk5crypto,
128 -                      AC_ERROR([Kerberos 5 DES libraries not found]),
129 +                      AC_MSG_ERROR([Kerberos 5 DES libraries not found]),
130                     ${LDEFLAGS} ${ac_krblibs}),
131                   ${LDEFLAGS} ${ac_krblibs})
132          fi
133 @@ -489,7 +478,7 @@
134       fi
135    done
136    if test -z "$with_kerberos5" ; then
137 -     AC_ERROR([Kerberos 5 libraries not found])
138 +     AC_MSG_ERROR([Kerberos 5 libraries not found])
139    fi
140  fi
141  fi
142 @@ -505,7 +494,7 @@
143  # Check for a NetBSD/OpenBSD special case
144  if test "$with_kerberos" = "yes" && ( test `uname` = "NetBSD" || test `uname` = "OpenBSD" )
145  then
146 -  AC_CHECKING([kerberosIV for `uname`])
147 +  AS_MESSAGE(checking kerberosIV for `uname`...)
148    AC_DEFINE(KERBEROS_V4)
149    CEFLAGS="$CEFLAGS -I/usr/include/kerberosIV"
150    LIBS="$LIBS -lkrb -ldes"
151 @@ -550,7 +539,7 @@
152       break
153    done
154    if test -z "$with_kerberos" ; then
155 -     AC_ERROR([Kerberos 4 libraries not found])
156 +     AC_MSG_ERROR([Kerberos 4 libraries not found])
157    fi
158    LDFLAGS="$ac_saveLDFLAGS"
159  fi