comparison configure @ 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 dc578683fddd
children 88ba7d18dc23
comparison
equal deleted inserted replaced
4585:871eb054b34a 4588:6a6689b96f00
11037 runpath="" runpath_dirs="" 11037 runpath="" runpath_dirs=""
11038 if test -n "$LD_RUN_PATH"; then 11038 if test -n "$LD_RUN_PATH"; then
11039 runpath="$LD_RUN_PATH" 11039 runpath="$LD_RUN_PATH"
11040 elif test "$GCC" = "yes"; then 11040 elif test "$GCC" = "yes"; then
11041 ld_switch_run_save="$ld_switch_run"; ld_switch_run="" 11041 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
11042 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c 11042 echo "int main(int argc, char **argv) {return 0;}" > conftest.c
11043 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' 11043 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
11044 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do 11044 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
11045 case "$arg" in P,* | -L* | -R* ) 11045 case "$arg" in P,* | -L* | -R* )
11046 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do 11046 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
11047 { 11047 {
19122 runpath="" runpath_dirs="" 19122 runpath="" runpath_dirs=""
19123 if test -n "$LD_RUN_PATH"; then 19123 if test -n "$LD_RUN_PATH"; then
19124 runpath="$LD_RUN_PATH" 19124 runpath="$LD_RUN_PATH"
19125 elif test "$GCC" = "yes"; then 19125 elif test "$GCC" = "yes"; then
19126 ld_switch_run_save="$ld_switch_run"; ld_switch_run="" 19126 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
19127 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c 19127 echo "int main(int argc, char **argv) {return 0;}" > conftest.c
19128 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' 19128 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
19129 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do 19129 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
19130 case "$arg" in P,* | -L* | -R* ) 19130 case "$arg" in P,* | -L* | -R* )
19131 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do 19131 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
19132 { 19132 {
30488 runpath="" runpath_dirs="" 30488 runpath="" runpath_dirs=""
30489 if test -n "$LD_RUN_PATH"; then 30489 if test -n "$LD_RUN_PATH"; then
30490 runpath="$LD_RUN_PATH" 30490 runpath="$LD_RUN_PATH"
30491 elif test "$GCC" = "yes"; then 30491 elif test "$GCC" = "yes"; then
30492 ld_switch_run_save="$ld_switch_run"; ld_switch_run="" 30492 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
30493 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c 30493 echo "int main(int argc, char **argv) {return 0;}" > conftest.c
30494 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' 30494 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
30495 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do 30495 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
30496 case "$arg" in P,* | -L* | -R* ) 30496 case "$arg" in P,* | -L* | -R* )
30497 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do 30497 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
30498 { 30498 {
34054 f1 (3.1415, memset (alloca (3001), 0xBF, 3001), -5490); 34054 f1 (3.1415, memset (alloca (3001), 0xBF, 3001), -5490);
34055 return 42; 34055 return 42;
34056 } 34056 }
34057 34057
34058 int 34058 int
34059 main (int argc, char *argv) 34059 main (int argc, char **argv)
34060 { 34060 {
34061 if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42) 34061 if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42)
34062 return 1; 34062 return 1;
34063 return 0; 34063 return 0;
34064 } 34064 }
34446 34446
34447 #ifndef MAP_FAILED 34447 #ifndef MAP_FAILED
34448 #define MAP_FAILED -1 34448 #define MAP_FAILED -1
34449 #endif 34449 #endif
34450 34450
34451 int main (int argc, char *argv) 34451 int main (int argc, char **argv)
34452 { 34452 {
34453 int fd = -1; 34453 int fd = -1;
34454 caddr_t p; 34454 caddr_t p;
34455 #ifndef MAP_ANONYMOUS 34455 #ifndef MAP_ANONYMOUS
34456 fd = open ("/dev/zero", O_RDWR); 34456 fd = open ("/dev/zero", O_RDWR);