X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=distrib%2Fconfigure-bin.ac;h=ba0803336e6e1f000b4482c5cb26980ba7a1eca4;hb=8173d83139bfe52da4cef5a23f514869c3830e8d;hp=a6ec15b9aa5d8795f635819719b58a1c4571c3f1;hpb=7b011197c783777044814f91354f3fa615416fad;p=ghc-hetmet.git diff --git a/distrib/configure-bin.ac b/distrib/configure-bin.ac index a6ec15b..ba08033 100644 --- a/distrib/configure-bin.ac +++ b/distrib/configure-bin.ac @@ -5,7 +5,7 @@ dnl # # Is it there? -AC_INIT(Makefile.in) +AC_INIT(Makefile-vars.in) exeext='' @@ -60,6 +60,8 @@ i[[3456]]86-*-mingw32*) CFLAGS="-mno-cygwin -mwin32 $CFLAGS" TargetPlatform=i386-unknown-mingw32 ;; +i[[3456]]86-apple-darwin*) + TargetPlatform=i386-apple-darwin;; m68k-next-nextstep2) TargetPlatform=m68k-next-nextstep2;; m68k-next-nextstep3) @@ -94,6 +96,8 @@ x86_64-*-openbsd*) TargetPlatform=x86_64-unknown-openbsd;; x86_64-*-netbsd*) TargetPlatform=x86_64-unknown-netbsd;; +x86_64-apple-darwin*) + TargetPlatform=x86_64-apple-darwin;; *) echo "Unrecognised platform: $TargetPlatform" exit 1 @@ -104,6 +108,8 @@ echo "Which we'll further canonicalise into: $TargetPlatform" AC_SUBST(TargetPlatform) AC_SUBST(exeext) +FP_FIND_ROOT + # dnl ** Check Perl installation ** # @@ -126,6 +132,11 @@ dnl ** how to do symlinks ** AC_PROG_LN_S() # +dnl ** how to invoke `ar' and `ranlib' +# +FP_PROG_AR_NEEDS_RANLIB + +# dnl ** Find the path to sed ** # AC_PATH_PROG(SedCmd,sed) @@ -137,10 +148,15 @@ FP_HAVE_GCC AC_PROG_CPP # -AC_OUTPUT(Makefile) +dnl ** Check gcc version and flags we need to pass it ** +# +FP_GCC_EXTRA_FLAGS + +# +AC_CONFIG_FILES(Makefile-vars extra-gcc-opts) +AC_OUTPUT echo "****************************************************" -echo "Configuration done, ready to either 'make install'" -echo "or 'make in-place'." +echo "Configuration done, ready to 'make install'" echo "(see README and INSTALL files for more info.)" echo "****************************************************"