Remove readline license info from OS X package
[ghc-hetmet.git] / distrib / configure-bin.ac.in
1 dnl
2 dnl Binary distribution configure script
3 dnl
4 #!/bin/sh
5 #
6
7 AC_INIT([The Glorious Glasgow Haskell Compilation System], [@ProjectVersion@], [glasgow-haskell-bugs@haskell.org], [ghc])
8
9 FP_FIND_ROOT
10
11 dnl--------------------------------------------------------------------
12 dnl * Deal with arguments telling us gmp is somewhere odd
13 dnl--------------------------------------------------------------------
14
15 FP_ARG_GMP
16
17 GMP_INCLUDE_DIRS=
18 GMP_LIB_DIRS=
19 if test "x$gmp_libraries" != "xNONE"; then
20   LDFLAGS="-L$gmp_libraries $LDFLAGS"
21   GMP_LIB_DIRS=$gmp_libraries
22 fi
23 if test "x$gmp_includes" != "xNONE"; then
24   CPPFLAGS="-I$gmp_includes $CPPFLAGS"
25   GMP_INCLUDE_DIRS=$gmp_includes
26 fi
27 AC_SUBST(GMP_INCLUDE_DIRS)
28 AC_SUBST(GMP_LIB_DIRS)
29
30 #
31 dnl ** Check Perl installation **
32 #
33 AC_PATH_PROG(PerlCmd,perl)
34 if test -z "$PerlCmd"; then
35    echo "You must install perl before you can continue"
36    echo "Perhaps it is already installed, but not in your PATH?"
37    exit 1
38 fi
39 FPTOOLS_SHEBANG_PERL
40
41 #
42 dnl ** figure out how to do a BSD-ish install **
43 #
44 AC_PROG_INSTALL
45
46 #
47 dnl ** how to do symlinks **
48 #
49 AC_PROG_LN_S()
50
51 #
52 dnl ** how to invoke `ar' and `ranlib'
53 #
54 FP_PROG_AR_NEEDS_RANLIB
55
56 #
57 dnl ** Find the path to sed **
58 #
59 AC_PATH_PROG(SedCmd,sed)
60
61 #
62 dnl ** How to invoke cpp directly **
63 #
64 FP_HAVE_GCC
65 AC_PROG_CPP
66
67 #
68 dnl ** Check gcc version and flags we need to pass it **
69 #
70 FP_GCC_EXTRA_FLAGS
71
72 #
73 AC_CONFIG_FILES(extra-gcc-opts mk/config.mk mk/install.mk)
74 AC_OUTPUT
75
76 echo "****************************************************"
77 echo "Configuration done, ready to 'make install'"
78 echo "(see README and INSTALL files for more info.)"
79 echo "****************************************************"