X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.ac;h=232ebf1f7697f0130449ab9f2332dd0b7cf1e8fa;hb=f69b164b13119bf29e03757b46ab78322ec82b93;hp=8dc5507db0fc9be53aaac47b6c96cc7cad428c3e;hpb=efbedc85c4090ee7c10e598a70f8098142ec3d15;p=ghc-base.git diff --git a/configure.ac b/configure.ac index 8dc5507..232ebf1 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,15 @@ AC_CHECK_HEADERS([ctype.h fcntl.h signal.h sys/resource.h termios.h time.h]) # rlim_t, because it will affect the result of that test. AC_SYS_LARGEFILE +dnl ** check for wide-char classifications +dnl FreeBSD has an emtpy wctype.h, so test one of the affected +dnl functions if it's really there. +AC_CHECK_HEADERS([wctype.h], [AC_CHECK_FUNCS(iswspace)]) + +AC_CHECK_FUNCS([ftime gmtime_r localtime_r lstat readdir_r]) + +AC_CHECK_FUNCS([_chsize ftruncate]) + # map standard C types and ISO types to Haskell types FPTOOLS_CHECK_HTYPE(char) FPTOOLS_CHECK_HTYPE(signed char)