Mercurial > hg > xemacs-beta
changeset 4588:6a6689b96f00
Adopt Martin's suggestion of "char **argv" throughout configure.ac.
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Sat, 31 Jan 2009 22:25:16 +0900 |
parents | 871eb054b34a |
children | 03ec57ae1d1e |
files | ChangeLog configure configure.ac |
diffstat | 3 files changed, 13 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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 <stephen@xemacs.org> + + * 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 <stephen@xemacs.org> * configure.ac (xemacs_cc_cc_mismatch): Fix my syntax errors.
--- 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;
--- 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;