X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.in;h=938ef04d4d5f8706a5af5e5096393a72c77dd8e0;hb=f1ab41433b5145ebf914681053ed2fe00a72f987;hp=28e2a3398635c5446187059ef1f1ed0dd85318b6;hpb=90825aa2271fac914ff9c0a7007e604debbbe93b;p=ghc-hetmet.git diff --git a/configure.in b/configure.in index 28e2a33..938ef04 100644 --- a/configure.in +++ b/configure.in @@ -416,7 +416,7 @@ AC_HEADER_STDC # dnl ** check for specific header (.h) files that we are interested in # -AC_CHECK_HEADERS(dirent.h fcntl.h grp.h malloc.h memory.h nlist.h pwd.h siginfo.h signal.h stdlib.h string.h sys/fault.h sys/file.h sys/mman.h sys/param.h sys/procfs.h sys/resource.h sys/signal.h sys/socket.h sys/stat.h sys/syscall.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/types.h sys/utsname.h sys/vadvise.h sys/wait.h termios.h time.h types.h unistd.h utime.h vfork.h readline/readline.h bfd.h) +AC_CHECK_HEADERS(dirent.h fcntl.h grp.h malloc.h memory.h nlist.h pwd.h siginfo.h signal.h stdlib.h string.h sys/fault.h sys/file.h sys/mman.h sys/param.h sys/procfs.h sys/resource.h sys/signal.h sys/socket.h netinet/tcp.h sys/stat.h sys/syscall.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/types.h sys/utsname.h sys/vadvise.h sys/wait.h termios.h time.h types.h unistd.h utime.h vfork.h readline/readline.h bfd.h) # dnl ** check if it is safe to include both and @@ -435,6 +435,10 @@ FPTOOLS_TYPE_TIMEZONE dnl ** do we have altzone? FPTOOLS_ALTZONE +dnl ** does struct stat contain st_blksize? +# +AC_STRUCT_ST_BLKSIZE + dnl ** what are the sizes of various types dnl (these must come before GHC_CHECK_ALIGNMENT) AC_CHECK_SIZEOF(unsigned int,4) @@ -452,6 +456,9 @@ FPTOOLS_CHECK_ALIGNMENT(double) dnl ** do we have long longs? FPTOOLS_C_LONG_LONG +dnl ** can we open files in binary mode? +FPTOOLS_O_BINARY + # dnl ** check for specific library functions that we are interested in # @@ -460,8 +467,11 @@ AC_CHECK_FUNCS(access ftime getclock getpagesize getrusage gettimeofday mktime m # dnl ** check whether this machine has GMP 2.0 installed # -AC_CHECK_LIB(gmp, mpz_fdiv_qr, HaveLibGmp=YES, HaveLibGmp=NO) +AC_CHECK_LIB(gmp, mpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp, + AC_CHECK_LIB(gmp2, mpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp2, + HaveLibGmp=No; LibGmp=not-installed)) AC_SUBST(HaveLibGmp) +AC_SUBST(LibGmp) # dnl ** check whether this machine has BFD and liberty installed (used for debugging)