[PPL-devel] [GIT] ppl/ppl(ppl-0_11-branch): Replaced $(cmd) with `cmd` in m4 autoconf files. Obsolete comment removed.

Roberto Bagnara bagnara at cs.unipr.it
Sun Dec 19 11:02:16 CET 2010


Module: ppl/ppl
Branch: ppl-0_11-branch
Commit: e55d9eeaf1b677c7d05e14206b99f4f433b46c43
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=e55d9eeaf1b677c7d05e14206b99f4f433b46c43

Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date:   Sun Dec 19 11:01:08 2010 +0100

Replaced $(cmd) with `cmd` in m4 autoconf files.  Obsolete comment removed.

---

 m4/ac_check_sicstus_prolog.m4 |    6 ++----
 m4/ac_check_xsb_prolog.m4     |    8 ++++----
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/m4/ac_check_sicstus_prolog.m4 b/m4/ac_check_sicstus_prolog.m4
index 6d9c841..31cebdc 100644
--- a/m4/ac_check_sicstus_prolog.m4
+++ b/m4/ac_check_sicstus_prolog.m4
@@ -25,10 +25,8 @@ AC_DEFUN([AC_CHECK_SICSTUS_PROLOG],
 AC_PATH_PROG(sicstus_prolog, sicstus)
 if test x$sicstus_prolog != x
 then
-  dnl The following would fail to find the real base if `sicstus'
-  dnl is a symbolic link.
-  dnl sicstus_prolog_base=$(dirname $(dirname $sicstus_prolog))
-  sicstus_prolog_base=$(dirname $($sicstus_prolog -f --goal "use_module(library(system)), environ('SP_APP_DIR', X), write(X), nl, halt."))
+  sicstus_prolog_app_dir=`$sicstus_prolog -f --goal "use_module(library(system)), environ('SP_APP_DIR', X), write(X), nl, halt."`
+  sicstus_prolog_base=`dirname $sicstus_prolog_app_dir`
   SICSTUS_PROLOG_INCLUDE_OPTIONS="-I${sicstus_prolog_base}/include"
   ac_save_CPPFLAGS="$CPPFLAGS"
   CPPFLAGS="$CPPFLAGS $SICSTUS_PROLOG_INCLUDE_OPTIONS"
diff --git a/m4/ac_check_xsb_prolog.m4 b/m4/ac_check_xsb_prolog.m4
index 7252b45..df03715 100644
--- a/m4/ac_check_xsb_prolog.m4
+++ b/m4/ac_check_xsb_prolog.m4
@@ -28,14 +28,14 @@ then
   dnl The foreign language interface include file is `cinterf.h',
   dnl but this resides in the emulator directory and is not installed
   dnl in any standard place.
-  xsb_emu_dir=$(xsb --nobanner --quietload --noprompt \
+  xsb_emu_dir=`xsb --nobanner --quietload --noprompt \
                 -e "write('emudir='), \
                   xsb_configuration(emudir, X), write(X), nl, halt." \
-                    2>/dev/null | sed "s/^emudir=//g")
-  xsb_config_dir=$(xsb --nobanner --quietload --noprompt \
+                    2>/dev/null | sed "s/^emudir=//g"`
+  xsb_config_dir=`xsb --nobanner --quietload --noprompt \
                    -e "write('config_dir='), \
                      xsb_configuration(config_dir,X), write(X), nl, halt." \
-                       2>/dev/null | sed "s/^config_dir=//g")
+                       2>/dev/null | sed "s/^config_dir=//g"`
   XSB_PROLOG_INCLUDE_OPTIONS="-I${xsb_emu_dir} -I${xsb_config_dir}"
   AC_SUBST(XSB_PROLOG_INCLUDE_OPTIONS)
 fi




More information about the PPL-devel mailing list