X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.in;h=85d40a0e53f7ef6c7caff6c8945a4475fa9ba370;hb=7828f22403625d456e316dfc42f5a54d33c2390d;hp=04a79c82d581473135d9e4008c780bb0e3fc99a1;hpb=31442604c1d4ee4102a459a64e4afc39c49fc8a2;p=ghc-hetmet.git diff --git a/configure.in b/configure.in index 04a79c8..85d40a0 100644 --- a/configure.in +++ b/configure.in @@ -242,6 +242,15 @@ m68k-*-openbsd*) HostVendor_CPP='unknown' HostOS_CPP='openbsd' ;; +m68k-apple-netbsd*) + HostPlatform=m68k-apple-netbsd + TargetPlatform=m68k-apple-netbsd + BuildPlatform=m68k-apple-netbsd + HostPlatform_CPP='m68k_apple_netbsd' + HostArch_CPP='m68k' + HostVendor_CPP='apple' + HostOS_CPP='netbsd' + ;; m68k-sun-sunos4*) HostPlatform=m68k-sun-sunos4 TargetPlatform=m68k-sun-sunos4 #hack @@ -712,10 +721,10 @@ AC_HEADER_STDC dnl ** check for specific header (.h) files that we are interested in AC_CHECK_HEADERS(Files.h arpa/inet.h assert.h console.h ctype.h dirent.h errno.h fcntl.h float.h ftw.h grp.h ieee754.h inttypes.h limits.h malloc.h memory.h nlist.h pascal.h pwd.h sgtty.h siginfo.h signal.h stat.h stdint.h stdlib.h stddef.h stdarg.h string.h sys/fault.h sys/file.h sys/ioctl.h sys/limits.h sys/mman.h sys/param.h sys/procfs.h sys/resource.h sys/signal.h sys/socket.h netdb.h netinet/in.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/un.h sys/utsname.h sys/vadvise.h sys/wait.h termio.h termios.h time.h types.h unistd.h utime.h values.h vfork.h bfd.h winsock.h pthread.h sys/uio.h) -AC_CHECK_HEADER(unistd.h,AC_CHECK_FUNC(lchown)) +AC_CHECK_HEADER(unistd.h,[AC_CHECK_FUNCS(lchown)]) -AC_CHECK_HEADER(readline/readline.h, HaveReadlineReadlineH=YES, HaveReadlineReadlineH=NO) -AC_CHECK_HEADER(readline/history.h, HaveReadlineHistoryH=YES, HaveReadlineHistoryH=NO) +AC_CHECK_HEADER(readline/readline.h, [HaveReadlineReadlineH=YES], [HaveReadlineReadlineH=NO]) +AC_CHECK_HEADER(readline/history.h, [HaveReadlineHistoryH=YES], [HaveReadlineHistoryH=NO]) if test $HaveReadlineReadlineH = YES && test $HaveReadlineHistoryH = YES ; then HaveReadlineHeaders=YES @@ -742,14 +751,14 @@ dnl dynamic loading include files AC_CHECK_HEADERS(dlfcn.h dl.h) dnl ** check for farcalloc (in bcc) -AC_CHECK_HEADER(alloc.h,AC_CHECK_FUNCS(farcalloc)) +AC_CHECK_HEADER(alloc.h,[AC_CHECK_FUNCS(farcalloc)]) dnl ** check for valloc (in sunos, solaris, mips, amiga, next, minix, ultrix) -AC_CHECK_HEADER(malloc.h,AC_CHECK_FUNCS(valloc)) +AC_CHECK_HEADER(malloc.h,[AC_CHECK_FUNCS(valloc)]) dnl ** check for POSIX regex HavePosixRegex=NO -AC_CHECK_HEADER(regex.h,AC_CHECK_FUNC(regcomp, HavePosixRegex=YES)) +AC_CHECK_HEADER(regex.h,[AC_CHECK_FUNC(regcomp, [HavePosixRegex=YES])]) AC_SUBST(HavePosixRegex) dnl ** how do we get a timezone name, and UTC offset ? @@ -944,7 +953,7 @@ AC_CHECK_FUNCS(pclose _pclose ) dnl ** check for specific library functions that we are interested in -AC_CHECK_FUNCS(access ftime getclock getpagesize getrusage gettimeofday mktime mprotect readlink setitimer stat lstat symlink sysconf timelocal times vadvise vfork localtime_r gmtime_r readdir_r) +AC_CHECK_FUNCS(access ftime getclock getpagesize getrusage gettimeofday mktime mprotect readlink setitimer stat lstat symlink sysconf timelocal times vadvise vfork localtime_r gmtime_r readdir_r getgrgid_r getgrnam_r getpwuid_r getpwnam_r) dnl ** check whether this machine has gmp3 installed AC_CHECK_LIB(gmp, __gmpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp, @@ -1043,7 +1052,7 @@ dnl ################################################################ dnl ** check for libdl & RTLD_NEXT dnl (Mac OS X only) ... but don't check if we already have the -dl HaskellSupport.framework +dnl HaskellSupport.framework if test $HaveFrameworkHaskellSupport = YES; then HaveLibDL = NO @@ -1162,6 +1171,14 @@ case "$cv_func_usleep_return_type" in esac dnl -------------------------------------------------- +dnl * test for in_addr_t +dnl -------------------------------------------------- +AC_MSG_CHECKING(for in_addr_t in netinet/in.h) +AC_EGREP_HEADER(in_addr_t, netinet/in.h, + [ AC_DEFINE(HAVE_IN_ADDR_T) AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no)) + +dnl -------------------------------------------------- dnl * test for GTK+ dnl -------------------------------------------------- @@ -1209,15 +1226,6 @@ errprint(if you are using 2.13 or earlier, you may get a (harmless) warning mess dnl ** check for leading underscores in symbol names FPTOOLS_UNDERSCORE -dnl ** how is the end of text section signalled? -FPTOOLS_END_TEXT_SECTION - -dnl ** how is the end of data section signalled? -FPTOOLS_END_DATA_SECTION - -dnl ** code before data? -FPTOOLS_CODE_BEFORE_DATA - dnl ** check for ld, and whether ld has -x option AC_PATH_PROG(LdCmdRaw, ld) case $HostOS_CPP in