dnl The standard setup for how we build Pandora projects
AC_DEFUN([PANDORA_CANONICAL_TARGET],[
AC_REQUIRE([PANDORA_FORCE_DEPEND_TRACKING])
- m4_define([PCT_ALL_ARGS],[$@])
+ ifdef([m4_define],,[define([m4_define], defn([define]))])
+ ifdef([m4_undefine],,[define([m4_undefine], defn([undefine]))])
+ m4_define([PCT_ALL_ARGS],[$*])
m4_define([PCT_USE_GNULIB],[no])
m4_define([PCT_REQUIRE_CXX],[no])
m4_define([PCT_IGNORE_SHARED_PTR],[no])
- m4_foreach_w([pct_arg],$@,[
+ m4_foreach([pct_arg],$*,[
m4_case(pct_arg,
[use-gnulib], [
m4_undefine([PCT_USE_GNULIB])
AC_DEFUN([PANDORA_WARNINGS],[
m4_define([PW_LESS_WARNINGS],[no])
m4_define([PW_WARN_ALWAYS_ON],[no])
- m4_foreach_w([pw_arg],$@,[
+ ifdef([m4_define],,[define([m4_define], defn([define]))])
+ ifdef([m4_undefine],,[define([m4_undefine], defn([undefine]))])
+ m4_foreach([pw_arg],$*,[
m4_case(pw_arg,
[less-warnings],[
m4_undefine([PW_LESS_WARNINGS])