1 # Initialise and check sanity.
2 AC_INIT([The Glorious Glasgow Haskell Compilation System], [6.3], [glasgow-haskell-bugs@haskell.org], [ghc])
3 AC_CONFIG_SRCDIR([ghc.spec.in])
5 # duplicate from ../configure.ac
7 [AC_HELP_STRING([--with-ghc=ARG],
8 [Use ARG as the path to GHC [default=autodetect]])],
10 [if test "$GHC" = ""; then
11 AC_PATH_PROG([GHC], [ghc])
18 # Hmmm, we fix the RPM release number to 1 here... Is this convenient?
19 AC_SUBST([release], [1])
21 FP_GCC_NEEDS_NO_OMIT_LFPTR
23 # Check whether this GHC has readline installed
27 AC_PATH_PROGS([GTK_CONFIG], [gtk-config gtk12-config])
28 if test -n "$GTK_CONFIG"; then
29 AC_CACHE_CHECK([for version of GTK+], [fp_cv_gtk_version],
30 [fp_cv_gtk_version=`$GTK_CONFIG --version`])
31 FP_COMPARE_VERSIONS([$fp_cv_gtk_version], [-lt], [1.2],
32 [AC_MSG_WARN([GTK+ not usable, need at least version 1.2])
35 AC_SUBST([GTK_CONFIG])
37 # Write the results...
38 AC_CONFIG_FILES([ghc.spec VERSION docs/users_guide/ug-book.xml mk/config.mk mk/version.mk])