Skip to content

Commit

Permalink
Commit v4.3pre1
Browse files Browse the repository at this point in the history
  • Loading branch information
gap committed Aug 27, 2001
1 parent 0c00b0d commit e112e16
Show file tree
Hide file tree
Showing 832 changed files with 111,152 additions and 2,487,197 deletions.
4 changes: 2 additions & 2 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ BASECC=@BASECC@

default: compile

config: bin/@target@-@BASECC@/configure bin/@target@-@BASECC@/Makefile
config: bin/@target@-@BASECC@/configure bin/@target@-@BASECC@/Makefile

bin/@target@-@BASECC@/configure: cnf/configure.out
if test ! -d bin; then mkdir bin; fi
if test ! -d bin/@target@-@BASECC@; then mkdir bin/@target@-@BASECC@; fi
@rm -f bin/@target@-@BASECC@/configure
cp cnf/configure.out bin/@target@-@BASECC@/configure

bin/@target@-@BASECC@/Makefile: bin/@target@-@BASECC@/configure cnf/config.hin
bin/@target@-@BASECC@/Makefile: bin/@target@-@BASECC@/configure cnf/config.hin cnf/gac.in
( cd bin/@target@-@BASECC@ ; CC=$(CC) ./configure --target=@target@ @gp_configure_options@ )

compile: config
Expand Down
6 changes: 3 additions & 3 deletions cnf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ AlwaysMakegap.in:
@echo >> Makegap.in
@echo '# compile and link GAP' >> Makegap.in
@echo 'gap: $$(OBJECTS)' >> Makegap.in
@echo ' $$(CC) $$(CFLAGS) $$(LDFLAGS) -o gap $$(OBJECTS) $$(MPILIBS) @LIBS@' >> Makegap.in
@echo ' $$(CC) $$(CFLAGS) $$(LDFLAGS) -o gap $$(OBJECTS) -lm $$(MPILIBS) @LIBS@' >> Makegap.in
@echo >> Makegap.in
@echo '# dependencies are automatically generated' >> Makegap.in
@(for i in `eval 'echo $(SOURCE)'`; do \
$(CC) -MM -I ../src -DUSE_PRECOMPILED ../src/$$i.c; \
echo ' $$(CC) -I. -DCONFIG_H $$(CFLAGS)' -o $$i.o -c ../src/$$i.c; \
$(CC) -MM -I .. -DUSE_PRECOMPILED ../src/$$i.c; \
echo ' $$(CC) -I. -I../.. -DCONFIG_H $$(CFLAGS)' -o $$i.o -c ../src/$$i.c; \
echo ; \
done \
) | sed -e 's:../src:@srcdir@:g' >> Makegap.in
Expand Down
701 changes: 350 additions & 351 deletions cnf/Makegap.in

Large diffs are not rendered by default.

24 changes: 17 additions & 7 deletions cnf/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dnl ##
AC_DEFUN(GP_C_UNDERSCORE_SYMBOLS,
[AC_CHECK_PROGS( NM, nm )
AC_CACHE_CHECK(whether symbols begin with an underscore, gp_cv_c_underscore_symbols,
[echo 'int foo() {}' > conftest.c
[echo 'int foo() { return 0;}' > conftest.c
${CC-cc} -c conftest.c 2>&1
if test -z "$NM" ; then
AC_MSG_ERROR( cannot find "nm" )
Expand Down Expand Up @@ -104,6 +104,11 @@ dnl #########################################################################
dnl ##
dnl ## choose CFLAGS more carefully
dnl ##
dnl ## For alpha/cc (or some flavours of this at least) -O3 is faster
dnl ## but seems to reveal a compiler bug applying to stats.c and causing
dnl ## SyCompileInput to be clobbered while PrintStatFuncs is being
dnl ## initialized
dnl ##
AC_DEFUN(GP_CFLAGS,
[AC_CACHE_CHECK(C compiler default flags, gp_cv_cflags,
[ case "$host-$CC" in
Expand All @@ -118,19 +123,19 @@ AC_DEFUN(GP_CFLAGS,
i386-*-egcs )
gp_cv_cflags="-g -O2 -mcpu=i386";;
alphaev6-*-osf4*-cc )
gp_cv_cflags="-g3 -arch ev6 -O3 ";;
gp_cv_cflags="-g3 -arch ev6 -O1 ";;
alphaev56-*-osf4*-cc )
gp_cv_cflags="-g3 -arch ev56 -O3";;
gp_cv_cflags="-g3 -arch ev56 -O1";;
alphaev5-*-osf4*-cc )
gp_cv_cflags="-g3 -arch ev5 -O3";;
gp_cv_cflags="-g3 -arch ev5 -O1";;
alpha*-*-osf4*-cc )
gp_cv_cflags="-g3 -O3";;
gp_cv_cflags="-g3 -O1";;
*aix*cc )
gp_cv_cflags="-g -O3";;
*-solaris*-cc )
gp_cv_cflags="-fast -erroff=E_STATEMENT_NOT_REACHED";;
*-irix*-cc )
gp_cv_cflags="-O3 -woff 1110,1167";;
gp_cv_cflags="-O3 -woff 1110,1167,1174,1552";;
* )
gp_cv_cflags="-O";;
esac
Expand Down Expand Up @@ -178,6 +183,8 @@ AC_DEFUN(GP_PROG_CC_DYNFLAGS,
gp_cv_prog_cc_cdynoptions=" -Wall -O2 -arch $hostcpu";;
*-osf*-cc )
gp_cv_prog_cc_cdynoptions=" -shared -x -O2";;
*-irix* )
gp_cv_prog_cc_cdynoptions=" -O3 -woff 1110,1167,1174,1552";;
* )
gp_cv_prog_cc_cdynoptions="UNSUPPORTED";;
Expand All @@ -191,6 +198,8 @@ AC_DEFUN(GP_PROG_CC_DYNFLAGS,
gp_cv_prog_cc_cdynlinker="cc";;
*-osf*-cc )
gp_cv_prog_cc_cdynlinker="cc";;
*-irix* )
gp_cv_prog_cc_cdynlinker="ld";;
* )
gp_cv_prog_cc_cdynlinker="echo";;
esac
Expand All @@ -207,7 +216,8 @@ AC_DEFUN(GP_PROG_CC_DYNFLAGS,
gp_cv_prog_cc_cdynlinking="-shared";;
*osf*cc )
gp_cv_prog_cc_cdynlinking="-shared -r";;
*-irix* )
gp_cv_prog_cc_cdynlinking="-shared";;
*-nextstep*cc )
gp_cv_prog_cc_cdynlinking="-arch $hostcpu -Xlinker -r -Xlinker -x -nostdlib";;
*solaris* )
Expand Down
Loading

0 comments on commit e112e16

Please sign in to comment.