2 dnl Binary distribution configure script
7 AC_INIT([The Glorious Glasgow Haskell Compilation System], [@ProjectVersion@], [glasgow-haskell-bugs@haskell.org], [ghc])
12 AC_SUBST(BootingFromHc)
14 dnl--------------------------------------------------------------------
15 dnl * Deal with arguments telling us gmp is somewhere odd
16 dnl--------------------------------------------------------------------
22 if test "x$gmp_libraries" != "xNONE"; then
23 LDFLAGS="-L$gmp_libraries $LDFLAGS"
24 GMP_LIB_DIRS=$gmp_libraries
26 if test "x$gmp_includes" != "xNONE"; then
27 CPPFLAGS="-I$gmp_includes $CPPFLAGS"
28 GMP_INCLUDE_DIRS=$gmp_includes
30 AC_SUBST(GMP_INCLUDE_DIRS)
31 AC_SUBST(GMP_LIB_DIRS)
34 dnl ** Check Perl installation **
36 AC_PATH_PROG(PerlCmd,perl)
37 if test -z "$PerlCmd"; then
38 echo "You must install perl before you can continue"
39 echo "Perhaps it is already installed, but not in your PATH?"
45 dnl ** figure out how to do a BSD-ish install **
50 dnl ** how to do symlinks **
55 dnl ** how to invoke `ar' and `ranlib'
57 FP_PROG_AR_NEEDS_RANLIB
60 dnl ** Find the path to sed **
62 AC_PATH_PROG(SedCmd,sed)
65 dnl ** How to invoke cpp directly **
71 dnl ** Check gcc version and flags we need to pass it **
75 CONF_CC_OPTS="@CONF_CC_OPTS@"
76 CONF_LD_OPTS="@CONF_LD_OPTS@"
77 AC_SUBST(CONF_CC_OPTS)
78 AC_SUBST(CONF_LD_OPTS)
81 AC_CONFIG_FILES(extra-gcc-opts mk/config.mk mk/install.mk)
84 echo "****************************************************"
85 echo "Configuration done, ready to 'make install'"
86 echo "(see README and INSTALL files for more info.)"
87 echo "****************************************************"