configure-bin.ac.in 1.67 KB
Newer Older
1
2
3
4
5
6
dnl
dnl Binary distribution configure script
dnl
#!/bin/sh
#

7
AC_INIT([The Glorious Glasgow Haskell Compilation System], [@ProjectVersion@], [glasgow-haskell-bugs@haskell.org], [ghc])
8

Ian Lynagh's avatar
Ian Lynagh committed
9
10
FP_FIND_ROOT

11
12
13
BootingFromHc=NO
AC_SUBST(BootingFromHc)

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
dnl--------------------------------------------------------------------
dnl * Deal with arguments telling us gmp is somewhere odd
dnl--------------------------------------------------------------------

FP_ARG_GMP

GMP_INCLUDE_DIRS=
GMP_LIB_DIRS=
if test "x$gmp_libraries" != "xNONE"; then
  LDFLAGS="-L$gmp_libraries $LDFLAGS"
  GMP_LIB_DIRS=$gmp_libraries
fi
if test "x$gmp_includes" != "xNONE"; then
  CPPFLAGS="-I$gmp_includes $CPPFLAGS"
  GMP_INCLUDE_DIRS=$gmp_includes
fi
AC_SUBST(GMP_INCLUDE_DIRS)
AC_SUBST(GMP_LIB_DIRS)

33
#
34
35
36
37
38
39
40
dnl ** Check Perl installation **
#
AC_PATH_PROG(PerlCmd,perl)
if test -z "$PerlCmd"; then
   echo "You must install perl before you can continue"
   echo "Perhaps it is already installed, but not in your PATH?"
   exit 1
41
fi
42
FPTOOLS_SHEBANG_PERL
43

sof's avatar
sof committed
44
45
#
dnl ** figure out how to do a BSD-ish install **
46
47
#
AC_PROG_INSTALL
sof's avatar
sof committed
48
49
50
51

#
dnl ** how to do symlinks **
#
sof's avatar
sof committed
52
AC_PROG_LN_S()
sof's avatar
sof committed
53

54
55
56
57
58
#
dnl ** how to invoke `ar' and `ranlib'
#
FP_PROG_AR_NEEDS_RANLIB

sof's avatar
sof committed
59
60
#
dnl ** Find the path to sed **
61
#
sof's avatar
sof committed
62
AC_PATH_PROG(SedCmd,sed)
63

sof's avatar
sof committed
64
65
66
#
dnl ** How to invoke cpp directly **
#
67
FP_HAVE_GCC
68
AC_PROG_CPP
69

sof's avatar
sof committed
70
#
71
72
73
74
75
dnl ** Check gcc version and flags we need to pass it **
#
FP_GCC_EXTRA_FLAGS

#
76
AC_CONFIG_FILES(extra-gcc-opts mk/config.mk mk/install.mk)
77
AC_OUTPUT
78

79
echo "****************************************************"
80
echo "Configuration done, ready to 'make install'"
sof's avatar
sof committed
81
echo "(see README and INSTALL files for more info.)"
82
echo "****************************************************"