Changeset ce7435 in git


Ignore:
Timestamp:
Jun 22, 2022, 2:03:14 AM (22 months ago)
Author:
François Bissey <frp.bissey@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
db3d4e1062e3b60792dbfa98a8e9bf7c355df9d2
Parents:
a2c07bb1b1f37fa39b516469f4e2b820528b29ea
Message:
Make htmldir properly configurable by having its value used in feResource.cc. To make relocation possible, the location value is made relative to "%D".
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • m4/options.m4

    ra2c07bb rce7435  
    173173  AC_SUBST(RESOURCES_LIBS)
    174174
     175# If htmldir is the default value, make sure it is passed to resources' configure so that a correct default value is used.
     176# if htmldir is set when calling configure, its value is passed by AC_CONFIG_SUBDIRS to resources' configure without manual intervention.
     177  if test "x$htmldir" = "x\${docdir}"; then
     178    DEFAULT_HTMLDIR="--htmldir=$datarootdir/doc/singular"
     179  fi
     180
    175181  ENABLE_ARG="--with-Singular RESOURCES_LIBS='$RESOURCES_LIBS' RESOURCES_INCLUDES='$RESOURCES_INCLUDES'"
    176182
    177   ac_configure_args="$ac_configure_args $ENABLE_ARG"
     183  ac_configure_args="$ac_configure_args $DEFAULT_HTMLDIR $ENABLE_ARG"
    178184
    179185  PKG_REQUIRE="$PKG_REQUIRE singular_resources"
  • resources/configure.ac

    ra2c07bb rce7435  
    7373AC_DEFINE_UNQUOTED([DATA_DIR],"$config_datadir",[datadir])
    7474
     75AX_RECURSIVE_EVAL([[$]htmldir], [config_htmldir])
     76AX_NORMALIZE_PATH([config_htmldir],['/'])
     77AX_COMPUTE_RELATIVE_PATHS([config_datadir:config_htmldir:data_to_html])
     78AC_DEFINE_UNQUOTED([DATA_TO_HTML_DIR],"%D/$data_to_html",[htmldir])
     79
    7580AC_CONFIG_FILES([singular_resources.pc Makefile])
    7681AC_OUTPUT
  • resources/feResource.cc

    ra2c07bb rce7435  
    7979  {"InfoFile",  'i',    feResFile,  "SINGULAR_INFO_FILE",   "%D/info/singular.info", (char *)""},
    8080  {"IdxFile",   'x',    feResFile,  "SINGULAR_IDX_FILE",    "%D/singular/singular.idx",  (char *)""},
    81   {"HtmlDir",   'h',    feResDir,   "SINGULAR_HTML_DIR",    "%D/singular/html",              (char *)""},
     81  {"HtmlDir",   'h',    feResDir,   "SINGULAR_HTML_DIR",    DATA_TO_HTML_DIR,       (char *)""},
    8282  {"ManualUrl", 'u',    feResUrl,   "SINGULAR_URL",         "https://www.singular.uni-kl.de/Manual/",    (char *)""},
    8383  {"ExDir",     'm',    feResDir,   "SINGULAR_EXAMPLES_DIR","%r/examples",          (char *)""},
Note: See TracChangeset for help on using the changeset viewer.