;; Generated by genconfig.  DO NOT EDIT
(define-module gauche.config
  (export gauche-config))
(select-module gauche.config)

(define (gauche-config param)
  (cond [(assoc param *configurations*) => (^p (replace-install-dir (cadr p)))]
        [else (error "unknown configuration parameter name" param)]))

(define (replace-install-dir str)
  (let1 ss (string-split str #\@)
    (if (length<=? ss 1)
      str
      (if-let1 d ((with-module gauche.internal %gauche-runtime-directory))
        (string-join ss d)
        (error "Couldn't obtain installation directory to complete " str)))))

(define *configurations*
  (quote
   (("-V"  "0.9.15")
    ("-I"  "-I/usr/pkg/lib/gauche-0.98/0.9.15/include")
    ("-L"  "-L/usr/pkg/lib/gauche-0.98/0.9.15/aarch64_be--netbsd ")
    ("--ac"  "/usr/pkg/share/gauche-0.98/0.9.15/")
    ("-l"  "-lgauche-0.98 -lmbedtls -lcrypt -lutil -lrt -lm  -lpthread")
    ("--cc"  "gcc")
    ("--cpp" "gcc -E")
    ("--reconfigure"  "./configure  '--enable-multibyte=utf8' '--with-slib=/usr/pkg/share/slib' '--enable-threads=pthreads' '--with-iconv=/usr' '--with-zlib=/usr' '--prefix=/usr/pkg' '--build=aarch64_be--netbsd' '--host=aarch64_be--netbsd' '--infodir=/usr/pkg/info' '--mandir=/usr/pkg/man' 'build_alias=aarch64_be--netbsd' 'host_alias=aarch64_be--netbsd' 'CC=gcc' 'CFLAGS=-O2 -I/usr/pkg/include -I/usr/include' 'LDFLAGS=-Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib' 'LIBS=' 'CPPFLAGS=-I/usr/pkg/include -I/usr/include'")

    ("--prefix"       "/usr/pkg")
    ("--sysincdir"    "/usr/pkg/lib/gauche-0.98/0.9.15/include")
    ("--siteincdir"   "/usr/pkg/lib/gauche-0.98/site/include")
    ("--pkgincdir"    "${libdir}/gauche-0.98/site/include")
    ("--syslibdir"    "/usr/pkg/share/gauche-0.98/0.9.15/lib")
    ("--sitelibdir"   "/usr/pkg/share/gauche-0.98/site/lib")
    ("--pkglibdir"    "${datadir}/gauche-0.98/site/lib")
    ("--sysarchdir"   "/usr/pkg/lib/gauche-0.98/0.9.15/aarch64_be--netbsd")
    ("--sitearchdir"  "/usr/pkg/lib/gauche-0.98/site/aarch64_be--netbsd")
    ("--pkgarchdir"   "${libdir}/gauche-0.98/site/aarch64_be--netbsd")
    ("--mandir"       "/usr/pkg/man")
    ("--infodir"      "/usr/pkg/info")
    ("--arch"         "aarch64_be--netbsd")

    ("--incdirs"      "/usr/pkg/lib/gauche-0.98/0.9.15/include:/usr/pkg/lib/gauche-0.98/site/include")
    ("--archdirs"      "/usr/pkg/lib/gauche-0.98/0.9.15/aarch64_be--netbsd:/usr/pkg/lib/gauche-0.98/site/aarch64_be--netbsd")
    ("--local-incdir"  "")
    ("--local-libdir"  "")

    ("--default-cflags"  "-O2 -I/usr/pkg/include -I/usr/include -Wall -Wextra -Wno-unused-label")
    ("--cppflags"        "-I/usr/pkg/include -I/usr/include ")

    ("--object-suffix"   "o")
    ("--executable-suffix"  "")
    ("--rpath-flag"      "-Wl,--rpath=")
    ("--so-suffix"       "so")
    ("--so-cflags"       "-fPIC -DPIC")
    ("--so-ldflags"      " -shared -o")
    ("--so-libs"         "")
    ("--dylib-suffix"    "so")
    ("--dylib-ldflags"   " -shared -o")
    ("--libgauche-so"    "libgauche-0.98.so")
    ("--static-libs"     "-lgauche-static-0.98   -lgdbm   -lz  -lmbedtls -lmbedx509 -lmbedcrypto   -lmbedtls -lcrypt -lutil -lrt -lm  -lpthread")
    )))

