/[gcl]/gcl/configure.in
ViewVC logotype

Diff of /gcl/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.191 by camm, Sat Jul 23 08:46:25 2005 UTC revision 1.192 by mjthomas, Fri Jul 29 03:39:22 2005 UTC
# Line 889  if test "$enable_locbfd" = "yes" ; then Line 889  if test "$enable_locbfd" = "yes" ; then
889          echo "# Subconfigure of BFD done"          echo "# Subconfigure of BFD done"
890          echo "# ------------------------"          echo "# ------------------------"
891          echo "#"          echo "#"
892  #       TLIBS="$TLIBS `pwd`/binutils/bfd/libbfd.a `pwd`/binutils/libiberty/libiberty.a"  #       TLIBS="$TLIBS ./binutils/bfd/libbfd.a ./binutils/libiberty/libiberty.a"
893          AC_DEFINE(HAVE_LIBBFD)          AC_DEFINE(HAVE_LIBBFD)
894          BUILD_BFD="h/bfd.h h/bfdlink.h h/ansidecl.h h/symcat.h"          BUILD_BFD="h/bfd.h h/bfdlink.h h/ansidecl.h h/symcat.h"
895          AC_SUBST(BUILD_BFD)          AC_SUBST(BUILD_BFD)
# Line 1047  AC_MSG_CHECKING(for required object alig Line 1047  AC_MSG_CHECKING(for required object alig
1047  AC_TRY_RUN([#include <stdio.h>  AC_TRY_RUN([#include <stdio.h>
1048          #define EXTER          #define EXTER
1049          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
1050          #include "`pwd`/h/enum.h"          #include "./h/enum.h"
1051          #define OBJ_ALIGN          #define OBJ_ALIGN
1052          #include "`pwd`/h/object.h"          #include "./h/object.h"
1053          int main() {          int main() {
1054          unsigned long i;          unsigned long i;
1055          FILE *fp=fopen("conftest1","w");          FILE *fp=fopen("conftest1","w");
# Line 1074  AC_MSG_CHECKING(TYPE_BITS macro) Line 1074  AC_MSG_CHECKING(TYPE_BITS macro)
1074  AC_TRY_RUN([#include <stdio.h>  AC_TRY_RUN([#include <stdio.h>
1075          #define EXTER          #define EXTER
1076          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
1077          #include "`pwd`/h/enum.h"          #include "./h/enum.h"
1078          #include "`pwd`/h/object.h"          #include "./h/object.h"
1079          int main(int argc,char **argv,char **envp) {          int main(int argc,char **argv,char **envp) {
1080          FILE *f=fopen("conftest1","w");          FILE *f=fopen("conftest1","w");
1081          fixnum g=0;          fixnum g=0;
# Line 1112  else Line 1112  else
1112  AC_TRY_RUN([#include <stdio.h>  AC_TRY_RUN([#include <stdio.h>
1113          #define EXTER          #define EXTER
1114          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
1115          #include "`pwd`/h/enum.h"          #include "./h/enum.h"
1116          #include "`pwd`/h/object.h"          #include "./h/object.h"
1117          int main(int argc,char **argv,char **envp) {          int main(int argc,char **argv,char **envp) {
1118          FILE *f=fopen("conftest1","w");          FILE *f=fopen("conftest1","w");
1119          fprintf(f,"%u",sizeof(struct contblock));          fprintf(f,"%u",sizeof(struct contblock));
# Line 1331  fi Line 1331  fi
1331  AC_DEFINE_UNQUOTED(DBEGIN,$dbegin)  AC_DEFINE_UNQUOTED(DBEGIN,$dbegin)
1332    
1333  AC_MSG_CHECKING(for shared library/C stack ceiling to heap)  AC_MSG_CHECKING(for shared library/C stack ceiling to heap)
1334    if test "$use" = "mingw" ; then
1335      heap_ceiling=2000000000
1336    else
1337  echo "int main() {return 0;}" >foo.c  echo "int main() {return 0;}" >foo.c
1338  $CC foo.c -o foo  $CC foo.c -o foo
1339  heap_ceiling=`ldd foo | tail -n 1 | awk '{print $NF}' | tr -d '()'`  heap_ceiling=`ldd foo | tail -n 1 | awk '{print $NF}' | tr -d '()'`
# Line 1342  int main() { Line 1345  int main() {
1345      h=c>d && c<h ? c : h;      h=c>d && c<h ? c : h;
1346      fprintf(fp,"0x%lx",h);      fprintf(fp,"0x%lx",h);
1347      return 0;}],heap_ceiling=`cat conftest1`,echo failed;exit 1,echo failed;exit 1)      return 0;}],heap_ceiling=`cat conftest1`,echo failed;exit 1,echo failed;exit 1)
1348    fi
1349  AC_MSG_RESULT($heap_ceiling)  AC_MSG_RESULT($heap_ceiling)
1350  AC_DEFINE_UNQUOTED(SHARED_LIB_HEAP_CEILING,$heap_ceiling)  AC_DEFINE_UNQUOTED(SHARED_LIB_HEAP_CEILING,$heap_ceiling)
1351    
# Line 2101  AC_SUBST(NOTIFY) Line 2105  AC_SUBST(NOTIFY)
2105    
2106  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
2107    
2108  AC_MSG_CHECKING([alloca])  if test "$use" != "mingw" ; then
2109  AC_TRY_RUN([#include <stdio.h>    AC_MSG_CHECKING([alloca])
2110  int main() { exit(alloca(500) != NULL ? 0 : 1);}],    AC_TRY_RUN([#include <stdio.h>
2111    ,gcl_ok=yes, gcl_ok=no,gcl_ok=no)    int main() { exit(alloca(500) != NULL ? 0 : 1);}],
2112  if test $gcl_ok = yes ; then      ,gcl_ok=yes, gcl_ok=no,gcl_ok=no)
2113      if test $gcl_ok = yes ; then
2114      AC_MSG_RESULT(yes)      AC_MSG_RESULT(yes)
2115      AC_DEFINE(HAVE_ALLOCA)      AC_DEFINE(HAVE_ALLOCA)
2116  else    else
2117    AC_TRY_RUN([#include <alloca.h>      AC_TRY_RUN([#include <alloca.h>
2118    int main() { exit(alloca(500) != NULL ? 0 : 1)}],      int main() { exit(alloca(500) != NULL ? 0 : 1)}],
2119    ,gcl_ok=yes, gcl_ok=no,gcl_ok=no)      ,gcl_ok=yes, gcl_ok=no,gcl_ok=no)
2120   if test $gcl_ok = yes ; then      if test $gcl_ok = yes ; then
2121      AC_MSG_RESULT(yes)        AC_MSG_RESULT(yes)
2122      AC_DEFINE(HAVE_ALLOCA)        AC_DEFINE(HAVE_ALLOCA)
2123      AC_DEFINE(NEED_ALLOCA_H)        AC_DEFINE(NEED_ALLOCA_H)
2124   fi      fi
2125  fi    fi
 if test $gcl_ok = no ; then     AC_MSG_RESULT(no) ; fi  
   
   
   
   
   
   
   
2126    
2127      if test $gcl_ok = no ; then     AC_MSG_RESULT(no) ; fi
2128    fi
2129    
2130    
2131  # alloca  # alloca
# Line 2154  if test $gcl_ok = no ; then     AC_MSG_R Line 2153  if test $gcl_ok = no ; then     AC_MSG_R
2153    
2154  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
2155  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
2156  AC_MSG_CHECKING([Checking for buggy gcc version from redhat])  AC_MSG_CHECKING([for buggy gcc version from redhat])
2157  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
2158     then     then
2159          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1

Legend:
Removed from v.1.191  
changed lines
  Added in v.1.192

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26