# HG changeset patch # User Stephen J. Turnbull # Date 1233408316 -32400 # Node ID 6a6689b96f00c887a1ede549a873f6f6f334b29b # Parent 871eb054b34a021924f195dc208af255505350cd Adopt Martin's suggestion of "char **argv" throughout configure.ac. diff -r 871eb054b34a -r 6a6689b96f00 ChangeLog --- a/ChangeLog Tue Nov 25 10:44:16 2008 +0900 +++ b/ChangeLog Sat Jan 31 22:25:16 2009 +0900 @@ -1,3 +1,8 @@ +2009-01-31 Stephen J. Turnbull + + * configure.ac: Adopt Martin's suggestion of declaring argv as + char ** (from <18643.15864.667930.542671@gargle.gargle.HOWL>). + 2008-12-29 Stephen J. Turnbull * configure.ac (xemacs_cc_cc_mismatch): Fix my syntax errors. diff -r 871eb054b34a -r 6a6689b96f00 configure --- a/configure Tue Nov 25 10:44:16 2008 +0900 +++ b/configure Sat Jan 31 22:25:16 2009 +0900 @@ -11039,7 +11039,7 @@ runpath="$LD_RUN_PATH" elif test "$GCC" = "yes"; then ld_switch_run_save="$ld_switch_run"; ld_switch_run="" - echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c + echo "int main(int argc, char **argv) {return 0;}" > conftest.c xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' for arg in `eval "$xe_runpath_link" | grep ' -L'`; do case "$arg" in P,* | -L* | -R* ) @@ -19124,7 +19124,7 @@ runpath="$LD_RUN_PATH" elif test "$GCC" = "yes"; then ld_switch_run_save="$ld_switch_run"; ld_switch_run="" - echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c + echo "int main(int argc, char **argv) {return 0;}" > conftest.c xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' for arg in `eval "$xe_runpath_link" | grep ' -L'`; do case "$arg" in P,* | -L* | -R* ) @@ -30490,7 +30490,7 @@ runpath="$LD_RUN_PATH" elif test "$GCC" = "yes"; then ld_switch_run_save="$ld_switch_run"; ld_switch_run="" - echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c + echo "int main(int argc, char **argv) {return 0;}" > conftest.c xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' for arg in `eval "$xe_runpath_link" | grep ' -L'`; do case "$arg" in P,* | -L* | -R* ) @@ -34056,7 +34056,7 @@ } int -main (int argc, char *argv) +main (int argc, char **argv) { if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42) return 1; @@ -34448,7 +34448,7 @@ #define MAP_FAILED -1 #endif -int main (int argc, char *argv) +int main (int argc, char **argv) { int fd = -1; caddr_t p; diff -r 871eb054b34a -r 6a6689b96f00 configure.ac --- a/configure.ac Tue Nov 25 10:44:16 2008 +0900 +++ b/configure.ac Sat Jan 31 22:25:16 2009 +0900 @@ -189,7 +189,7 @@ elif test "$GCC" = "yes"; then dnl Compute runpath from gcc's -v output ld_switch_run_save="$ld_switch_run"; ld_switch_run="" - echo "int main(int argc, char *argv[[]]) {return 0;}" > conftest.c + echo "int main(int argc, char **argv) {return 0;}" > conftest.c xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' for arg in `eval "$xe_runpath_link" | grep ' -L'`; do case "$arg" in P,* | -L* | -R* ) @@ -4983,7 +4983,7 @@ } int -main (int argc, char *argv[]) +main (int argc, char **argv) { if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42) return 1; @@ -5038,7 +5038,7 @@ #define MAP_FAILED -1 #endif -int main (int argc, char *argv[]) +int main (int argc, char **argv) { int fd = -1; caddr_t p;