X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.ac;h=22801c99a304690ceb6704d9f6d5a4f3e66450b2;hb=5e4597f7ab70895496a26c30aadf11353c3928d2;hp=0af10c19ecf2be1ae2b27c0d8ce2923928f8460e;hpb=3233af1b85a9aede3210e5c4279fa16342a4f364;p=ghc-hetmet.git diff --git a/configure.ac b/configure.ac index 0af10c1..22801c9 100644 --- a/configure.ac +++ b/configure.ac @@ -428,6 +428,21 @@ FP_ARG_WITH_PATH_GNU_PROG([LD], [ld]) LdCmd="$LD" AC_SUBST([LdCmd]) +dnl ** Check for dlltool on Windows +dnl -------------------------------------------------------------- +case $HostOS_CPP in +cygwin32|mingw32) + AC_PATH_PROG(DlltoolCmd,dlltool) + if test -z "$DlltoolCmd"; then + echo "Can't find dlltool in your path, can't make DLLs." + exit 1 + fi + ;; +*) + AC_SUBST(DlltoolCmd,"") + ;; +esac + dnl ** Which nm to use? dnl -------------------------------------------------------------- FP_ARG_WITH_PATH_GNU_PROG([NM], [nm])