Mercurial > hg > xemacs-beta
comparison configure.ac @ 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 | fe64f1351cbd |
children | 79d1a0524b5f |
comparison
equal
deleted
inserted
replaced
4585:871eb054b34a | 4588:6a6689b96f00 |
---|---|
187 if test -n "$LD_RUN_PATH"; then | 187 if test -n "$LD_RUN_PATH"; then |
188 runpath="$LD_RUN_PATH" | 188 runpath="$LD_RUN_PATH" |
189 elif test "$GCC" = "yes"; then | 189 elif test "$GCC" = "yes"; then |
190 dnl Compute runpath from gcc's -v output | 190 dnl Compute runpath from gcc's -v output |
191 ld_switch_run_save="$ld_switch_run"; ld_switch_run="" | 191 ld_switch_run_save="$ld_switch_run"; ld_switch_run="" |
192 echo "int main(int argc, char *argv[[]]) {return 0;}" > conftest.c | 192 echo "int main(int argc, char **argv) {return 0;}" > conftest.c |
193 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' | 193 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null' |
194 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do | 194 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do |
195 case "$arg" in P,* | -L* | -R* ) | 195 case "$arg" in P,* | -L* | -R* ) |
196 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do | 196 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do |
197 XE_ADD_RUNPATH_DIR("$dir") | 197 XE_ADD_RUNPATH_DIR("$dir") |
4981 f1 (3.1415, memset (alloca (3001), 0xBF, 3001), -5490); | 4981 f1 (3.1415, memset (alloca (3001), 0xBF, 3001), -5490); |
4982 return 42; | 4982 return 42; |
4983 } | 4983 } |
4984 | 4984 |
4985 int | 4985 int |
4986 main (int argc, char *argv[]) | 4986 main (int argc, char **argv) |
4987 { | 4987 { |
4988 if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42) | 4988 if (f2 (665, memset (alloca (1001), 0xFB, 1001), 776776776) != 42) |
4989 return 1; | 4989 return 1; |
4990 return 0; | 4990 return 0; |
4991 } | 4991 } |
5036 | 5036 |
5037 #ifndef MAP_FAILED | 5037 #ifndef MAP_FAILED |
5038 #define MAP_FAILED -1 | 5038 #define MAP_FAILED -1 |
5039 #endif | 5039 #endif |
5040 | 5040 |
5041 int main (int argc, char *argv[]) | 5041 int main (int argc, char **argv) |
5042 { | 5042 { |
5043 int fd = -1; | 5043 int fd = -1; |
5044 caddr_t p; | 5044 caddr_t p; |
5045 #ifndef MAP_ANONYMOUS | 5045 #ifndef MAP_ANONYMOUS |
5046 fd = open ("/dev/zero", O_RDWR); | 5046 fd = open ("/dev/zero", O_RDWR); |