Chris@0: dnl Process this file with autoconf to produce a configure script. Chris@0: Chris@0: AC_INIT(install-sh) Chris@0: Chris@0: AC_SUBST(PL) Chris@0: AC_SUBST(PLBASE) Chris@0: AC_SUBST(PLARCH) Chris@0: Chris@0: # Do not cache this, it changes too often in many configurations Chris@0: unset ac_cv_prog_PL Chris@0: Chris@0: if test -z "$PLINCL"; then Chris@0: plcandidates="swi-prolog swipl pl" Chris@0: AC_CHECK_PROGS(PL, $plcandidates, "none") Chris@0: if test $PL = "none"; then Chris@0: AC_ERROR("Cannot find SWI-Prolog. SWI-Prolog must be installed first") Chris@0: else Chris@0: AC_CHECKING("Running $PL -dump-runtime-variables") Chris@0: eval `$PL -dump-runtime-variables` Chris@0: fi Chris@0: AC_MSG_RESULT(" PLBASE=$PLBASE") Chris@0: AC_MSG_RESULT(" PLARCH=$PLARCH") Chris@0: fi Chris@0: Chris@0: AC_CHECK_PROGS(MAKE, gmake make, "make") Chris@0: AC_PROG_INSTALL Chris@0: Chris@0: AC_OUTPUT(Makefile)