#!/bin/sh

printf '%s' '
(define-module ('"$1"' config)
  #:export (config))

(define pre-inst-module
  `('"$1"' pre-inst-config))

(define config
  (or (false-if-exception (module-ref (resolve-module pre-inst-module)
                                      `config))
      `((datarootpath . ("'"$datarootdir/$1"'")))))
'