Skip to content

Commit

Permalink
Suppress configure warning on option --with-compiler passed by Cabal (#…
Browse files Browse the repository at this point in the history
…21)

Fixes #20.  Works around cabal issue haskell/cabal#2947.
  • Loading branch information
lyokha authored Mar 29, 2023
1 parent 9064226 commit adda269
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ AC_CONFIG_HEADERS([cbits/hs_resolv_config.h])
AC_PROG_CC
AC_C_CONST

dnl ignore options --with-compiler and --with-hc passed by cabal configure
AC_ARG_WITH([compiler], [], [], [])
AC_ARG_WITH([hc], [], [], [])

AC_CHECK_HEADERS([netinet/in.h arpa/nameser.h])
AC_CHECK_HEADER([resolv.h],,AC_MSG_ERROR([required <resolv.h> header not found]),[[
#include <sys/types.h>
Expand Down

0 comments on commit adda269

Please sign in to comment.