File lam-7.1.4_gcc43_building.patch of Package lam

Index: config/cxx_have_bool.m4
===================================================================
--- config/cxx_have_bool.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/cxx_have_bool.m4	2007-10-19 16:58:39.435036558 +0200
@@ -42,7 +42,7 @@ cat > conftest.cc <<EOF
 #include <stdio.h>
 #include <sys/types.h>
 
-int main(int argc, char* argv[]) {
+int main(int argc, char **argv) {
   bool foo = (bool) 0;
   printf("so foo is used and the compiler wont complain: %d", (int) foo);
   return 0;
Index: config/cxx_have_nothrow_new.m4
===================================================================
--- config/cxx_have_nothrow_new.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/cxx_have_nothrow_new.m4	2007-10-19 16:58:39.455037771 +0200
@@ -37,7 +37,7 @@ rm -f conftest.cc conftest.o
 cat > conftest.cc <<EOF
 #include <new>
 
-int main(int argc, char* argv[]) {
+int main(int argc, char **argv) {
   int *baz;
   unsigned int foo = 3;
   baz = new(std::nothrow) int;
Index: config/cxx_have_true_false.m4
===================================================================
--- config/cxx_have_true_false.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/cxx_have_true_false.m4	2007-10-19 16:58:39.471038742 +0200
@@ -41,7 +41,7 @@ cat > conftest.cc <<EOF
 #include <stdio.h>
 #include <sys/types.h>
 
-int main(int argc, char* argv[]) {
+int main(int argc, char **argv) {
   int foo;
   foo = (int) true;
   foo = (int) false;
Index: config/lam_check_fd_setsize.m4
===================================================================
--- config/lam_check_fd_setsize.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_check_fd_setsize.m4	2007-10-19 16:58:39.523041897 +0200
@@ -86,7 +86,7 @@ if test ! "$LAM_FD_SETSIZE" = "0" ; then
 #include <sys/resource.h>
 #include <unistd.h>
 int
-main(int argc, char* argv[])
+main(int argc, char **argv)
 {
   int fd = 0;
   struct rlimit rlp;
@@ -135,7 +135,7 @@ if test ! "$LAM_FD_SETSIZE" = "0"; then
 #include <sys/select.h>
 #endif
 int
-main(int argc, char* argv[])
+main(int argc, char **argv)
 {
   int ret;
   fd_set fds;
Index: config/lam_check_prefix_memcpy.m4
===================================================================
--- config/lam_check_prefix_memcpy.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_check_prefix_memcpy.m4	2007-10-19 16:58:39.555043839 +0200
@@ -28,7 +28,7 @@ AC_MSG_CHECKING([for glibc])
 AC_TRY_RUN([
 #include <stdio.h>
 
-int main(int argc, char* argv[]) 
+int main(int argc, char **argv)
 {
   FILE *fp = fopen("configtest.out", "w");
 #ifdef __GLIBC__
Index: config/lam_check_pthread_pids.m4
===================================================================
--- config/lam_check_pthread_pids.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_check_pthread_pids.m4	2007-10-19 16:58:39.575045053 +0200
@@ -44,7 +44,7 @@ AC_TRY_RUN([#include <pthread.h>
 #include <unistd.h>
 #include <stdlib.h>
 void *checkpid(void *arg);
-int main(int argc, char* argv[]) {
+int main(int argc, char **argv) {
   pthread_t thr;
   int pid, retval;
   pid = getpid();
Index: config/lam_check_stdc.m4
===================================================================
--- config/lam_check_stdc.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_check_stdc.m4	2007-10-19 16:58:39.591046023 +0200
@@ -23,7 +23,7 @@ cat > conftest.c <<EOF
 extern "C" {
 void exit(int);
 #endif
-int main(int argc, char* argv[])
+int main(int argc, char **argv)
 {
     FILE *f=fopen("conftestval", "w");
 #ifndef __STDC__
Index: config/lam_get_alignment.m4
===================================================================
--- config/lam_get_alignment.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_get_alignment.m4	2007-10-19 16:58:39.723054033 +0200
@@ -24,7 +24,7 @@ AC_TRY_RUN([
 #include <stdlib.h>
 
 struct foo { char c; $1 x; };
-int main(int argc, char* argv[])
+int main(int argc, char **argv)
 {
     struct foo *p = (struct foo *) malloc(sizeof(struct foo));
     int diff;
Index: config/lam_get_shmmax.m4
===================================================================
--- config/lam_get_shmmax.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_get_shmmax.m4	2007-10-19 16:58:39.767056703 +0200
@@ -44,7 +44,7 @@ test_alloc(int size)
     return(1);
 }
 int
-main(int argc, char* argv[])
+main(int argc, char **argv)
 {
     int	poolsize, maxalloc;
     FILE *f=fopen("conftestval", "w");
Index: config/lam_mutex_pshared.m4
===================================================================
--- config/lam_mutex_pshared.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_mutex_pshared.m4	2007-10-19 16:58:39.827060343 +0200
@@ -17,7 +17,7 @@ dnl
 define(LAM_MUTEX_PSHARED,[
 AC_MSG_CHECKING(for process shared pthread mutex)
 AC_TRY_RUN([#include <pthread.h>
-int main(int argc, char* argv[]) {
+int main(int argc, char **argv) {
   pthread_mutex_t m; pthread_mutexattr_t mattr;
   if (pthread_mutexattr_init(&mattr)) return(1);
   if (pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED)) return(1);
Index: config/lam_wrapper_extra_ldflags.m4
===================================================================
--- config/lam_wrapper_extra_ldflags.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_wrapper_extra_ldflags.m4	2007-10-19 16:58:39.871063013 +0200
@@ -75,7 +75,7 @@ int foo(void) { return 1; }
 EOF
     cat > conftest.c <<EOF
 extern int foo(void);
-int main(int argc, char* argv[]) { return foo(); }
+int main(int argc, char **argv) { return foo(); }
 EOF
 
     ../libtool --mode=compile $CC foo.c -o foo.lo -c > /dev/null 2>&1
Index: config/lam_ansi_protos.m4
===================================================================
--- config/lam_ansi_protos.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_ansi_protos.m4	2007-10-19 16:58:39.479039228 +0200
@@ -19,7 +19,7 @@ define(LAM_ANSI_PROTOS,[
 AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS) accepts ANSI prototypes])
 cat > conftest.c <<EOF
 static double foo(double bar) { return(2.0*bar); }
-int main(int argc, char **argv)
+int main(int argc, char *argv)
 { double x; x = foo(2.0); return(0); }
 EOF
 $CC $CFLAGS -o conftest conftest.c 1>&5 2>&1
Index: config/lam_check_bsd44_fd_passing.m4
===================================================================
--- config/lam_check_bsd44_fd_passing.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_check_bsd44_fd_passing.m4	2007-10-19 16:58:39.515041412 +0200
@@ -87,7 +87,7 @@ int sfh_send_fd(int stream, int fd);
 int sfh_recv_fd(int stream);
 
 int
-main(int argc, char **argv)
+main(int argc, char *argv)
 {
   int fd[2];
   int status = 0;
@@ -145,7 +145,7 @@ LAM_TRY_RUN_FD_PASSING([#include <sys/ty
 pid_t child_pid = 0;
 
 int
-main(int argc, char **argv)
+main(int argc, char *argv)
 {
   int fd[2];
   int status = 0;
Index: config/lam_check_prototype.m4
===================================================================
--- config/lam_check_prototype.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_check_prototype.m4	2007-10-19 16:58:39.563044325 +0200
@@ -28,7 +28,7 @@ cat > conftest.c <<EOF
 #include <netdb.h>
 #include <unistd.h>
 
-int main(int argc, char **argv)
+int main(int argc, char *argv)
 { return 0; }
 EOF
 
Index: config/lam_check_svr4_fd_passing.m4
===================================================================
--- config/lam_check_svr4_fd_passing.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_check_svr4_fd_passing.m4	2007-10-19 16:58:39.599046509 +0200
@@ -77,7 +77,7 @@ LAM_TRY_RUN_FD_PASSING([#include <sys/ty
 pid_t child_pid = 0;
 
 int
-main(int argc, char **argv)
+main(int argc, char *argv)
 {
   int fd[2];
   int status = 0;
Index: config/lam_check_sysv_semaphores.m4
===================================================================
--- config/lam_check_sysv_semaphores.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_check_sysv_semaphores.m4	2007-10-19 16:58:39.611047237 +0200
@@ -34,7 +34,7 @@ static union {
 } semctl_arg;
 #endif
 
-int main(int argc, char **argv){
+int main(int argc, char *argv){
   int semid, ret;
   /* Create a private semaphore set */
   semid = semget (IPC_PRIVATE, 1, 0777);
@@ -71,7 +71,7 @@ static union {
 } semctl_arg;
 #endif
 
-int main(int argc, char **argv){
+int main(int argc, char *argv){
   int semid, ret;
   /* Create a private semaphore set */
   semid = semget (IPC_PRIVATE, 1, 0777);
@@ -121,7 +121,7 @@ static union {
 } semctl_arg;
 #endif
 
-int main(int argc, char **argv){
+int main(int argc, char *argv){
   int semid, ret;
   /* Create a private semaphore set */
   semid = semget (IPC_PRIVATE, 1, 0777);
Index: config/lam_check_sysv_shmem.m4
===================================================================
--- config/lam_check_sysv_shmem.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_check_sysv_shmem.m4	2007-10-19 16:58:39.619047722 +0200
@@ -28,7 +28,7 @@ AC_TRY_RUN([#include <sys/types.h>
 #define PAGE_SIZE 512
 #endif
 
-int main(int argc, char **argv){
+int main(int argc, char *argv){
   int shmid;
   struct shmid_ds *buf;
 
Index: config/cxx_find_template_repository.m4
===================================================================
--- config/cxx_find_template_repository.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/cxx_find_template_repository.m4	2007-10-19 16:58:39.427036073 +0200
@@ -82,7 +82,7 @@ foo<T>::member(int i)
 }
 
 int
-main(int argc, char *argv[])
+main(int argc, char **argv)
 {
   foo<bar> var1(6);
   foo< foo<bar> > var2(var1);
Index: config/lam_check_bsd43_fd_passing.m4
===================================================================
--- config/lam_check_bsd43_fd_passing.m4.orig	2006-06-24 22:42:44.000000000 +0200
+++ config/lam_check_bsd43_fd_passing.m4	2007-10-19 16:58:39.503040684 +0200
@@ -76,7 +76,7 @@ LAM_TRY_RUN_FD_PASSING([#include <sys/ty
 pid_t child_pid = 0;
 
 int
-main(int argc, char *argv[])
+main(int argc, char **argv)
 {
   int fd[2];
   int status = 0;