add System.Posix.Types to default nhc98 build
[haskell-directory.git] / configure.ac
index d1927e8..24048e3 100644 (file)
@@ -5,6 +5,17 @@ AC_CONFIG_SRCDIR([include/HsBase.h])
 
 AC_CONFIG_HEADERS([include/HsBaseConfig.h])
 
+AC_ARG_WITH([cc],
+            [C compiler],
+            [OLDPATH=$PATH
+             PATH=`dirname $withval`:$PATH
+             AC_PROG_CC(`basename $withval`)
+             PATH=$OLDPATH
+             CC=$withval],
+            [AC_PROG_CC()])
+echo CC is $CC >&5
+echo CC is $CC >&6
+
 # do we have long longs?
 AC_CHECK_TYPES([long long])