56 |
FILE *fp = fopen("conftest1","w"); |
FILE *fp = fopen("conftest1","w"); |
57 |
fprintf(fp,"0x%x",((unsigned int) b) & ~0xffffff); |
fprintf(fp,"0x%x",((unsigned int) b) & ~0xffffff); |
58 |
fclose(fp); |
fclose(fp); |
59 |
|
return 0; |
60 |
}],dbegin=`cat conftest1`,dbegin=0,dbegin=0) |
}],dbegin=`cat conftest1`,dbegin=0,dbegin=0) |
61 |
AC_DEFINE_UNQUOTED(DBEGIN,$dbegin \ |
AC_DEFINE_UNQUOTED(DBEGIN,$dbegin \ |
62 |
/* where data begins */ |
/* where data begins */ |
72 |
FILE *fp = fopen("conftest1","w"); |
FILE *fp = fopen("conftest1","w"); |
73 |
fprintf(fp,"%d",((int) &b)); |
fprintf(fp,"%d",((int) &b)); |
74 |
fclose(fp); |
fclose(fp); |
75 |
|
return 0; |
76 |
}],cstack_address=`cat conftest1`,cstack_address=0,cstack_address=0) |
}],cstack_address=`cat conftest1`,cstack_address=0,cstack_address=0) |
77 |
AC_DEFINE_UNQUOTED(CSTACK_ADDRESS,$cstack_address \ |
AC_DEFINE_UNQUOTED(CSTACK_ADDRESS,$cstack_address \ |
78 |
) |
) |
192 |
fi |
fi |
193 |
AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])) |
AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])) |
194 |
|
|
195 |
|
AC_CHECK_LIB(readline,main, |
196 |
|
AC_CHECK_LIB(ncurses,main, |
197 |
|
AC_DEFINE(HAVE_READLINE) |
198 |
|
LIBS="$LIBS -lreadline -lncurses" |
199 |
|
RL_OBJS=readline.o |
200 |
|
RL_LIB=lsp/readline.o)) |
201 |
|
|
202 |
|
AC_CHECK_HEADER(bfd.h, |
203 |
|
AC_CHECK_LIB(bfd,bfd_init, |
204 |
|
AC_DEFINE(HAVE_LIBBFD) |
205 |
|
LIBS="$LIBS -lbfd -liberty" |
206 |
|
,,-liberty)) |
207 |
|
|
208 |
AC_SUBST(LIBS) |
AC_SUBST(LIBS) |
209 |
|
AC_SUBST(RL_OBJS) |
210 |
|
AC_SUBST(RL_LIB) |
211 |
|
|
212 |
AC_MSG_CHECKING(For network code for nsocket.c) |
AC_MSG_CHECKING(For network code for nsocket.c) |
213 |
AC_TRY_LINK([ |
AC_TRY_LINK([ |
311 |
*86-*-linux*) |
*86-*-linux*) |
312 |
use=386-linux;; |
use=386-linux;; |
313 |
|
|
314 |
|
m68k-*-linux*) |
315 |
|
use=m68k-linux;; |
316 |
|
|
317 |
|
alpha-*-linux*) |
318 |
|
use=alpha-linux;; |
319 |
|
|
320 |
|
mips-*-linux*) |
321 |
|
use=mips-linux;; |
322 |
|
|
323 |
|
sparc-*-linux*) |
324 |
|
use=sparc-linux;; |
325 |
|
|
326 |
|
arm*-*-linux*) |
327 |
|
use=arm-linux;; |
328 |
|
|
329 |
|
s390-*-linux*) |
330 |
|
use=s390-linux;; |
331 |
|
|
332 |
|
ia64-*-linux*) |
333 |
|
use=ia64-linux;; |
334 |
|
|
335 |
|
hppa-*-linux*) |
336 |
|
use=hppa-linux;; |
337 |
|
|
338 |
|
powerpc-*-linux*) |
339 |
|
use=powerpc-linux;; |
340 |
|
|
341 |
alpha-dec-osf) |
alpha-dec-osf) |
342 |
use=alpha-osf1;; |
use=alpha-osf1;; |
343 |
|
|
482 |
|
|
483 |
|
|
484 |
|
|
485 |
if test $use = "386-linux" ; then |
#if test $use = "386-linux" ; then |
486 |
AC_CHECK_HEADERS(asm/sigcontext.h) |
AC_CHECK_HEADERS(asm/sigcontext.h) |
487 |
AC_CHECK_HEADERS(asm/signal.h) |
AC_CHECK_HEADERS(asm/signal.h) |
488 |
AC_TRY_COMPILE([#include <signal.h> |
AC_TRY_COMPILE([#include <signal.h> |
489 |
long code; |
long code; |
490 |
], |
], |
491 |
[ |
[ |
492 |
void *p = ((void *)(((struct sigcontext_struct *)(&code))->cr2)); |
void *p = ((void *)(((struct sigcontext_struct *)(&code)))); |
493 |
], |
], |
494 |
[ |
[ |
495 |
sigcontext_struct_works=1; |
sigcontext_struct_works=1; |
511 |
long code; |
long code; |
512 |
], |
], |
513 |
[ |
[ |
514 |
void *p = ((void *)(((struct sigcontext *)(&code))->cr2)); |
void *p = ((void *)(((struct sigcontext *)(&code)))); |
515 |
], |
], |
516 |
[ |
[ |
517 |
sigcontext_works=1 ; |
sigcontext_works=1 ; |
524 |
|
|
525 |
|
|
526 |
fi |
fi |
527 |
echo 'foo() {}' > conftest1.c |
# echo 'foo() {}' > conftest1.c |
528 |
$CC -S conftest1.c |
# $CC -S conftest1.c |
529 |
use_underscore=0 |
# use_underscore=0 |
530 |
if fgrep _foo conftest1.s ; then use_underscore=1 ; fi |
# if fgrep _foo conftest1.s ; then use_underscore=1 ; fi |
531 |
if test $use_underscore = 0 ; then |
# if test $use_underscore = 0 ; then |
532 |
MPI_FILE=mpi-386_no_under.o |
# MPI_FILE=mpi-386_no_under.o |
533 |
else |
# else |
534 |
MPI_FILE=mpi-386d.o |
# MPI_FILE=mpi-386d.o |
535 |
fi |
# fi |
536 |
AC_SUBST(MPI_FILE) |
# AC_SUBST(MPI_FILE) |
537 |
# GCC=$CC |
# GCC=$CC |
538 |
# if test -x /usr/bin/i386-glibc20-linux-gcc ; then |
# if test -x /usr/bin/i386-glibc20-linux-gcc ; then |
539 |
# GCC=/usr/bin/i386-glibc20-linux-gcc |
# GCC=/usr/bin/i386-glibc20-linux-gcc |
540 |
# fi |
# fi |
541 |
# AC_SUBST(GCC) |
# AC_SUBST(GCC) |
542 |
|
|
543 |
fi |
#fi |
544 |
|
|
545 |
AC_PATH_PROG(EMACS,emacs) |
AC_PATH_PROG(EMACS,emacs) |
546 |
|
|