;; 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.")))))

(define *configurations*
  (quote
   (("-V"  "0.9.11")
    ("-I"  "-I/usr/lib/gauche-0.98/0.9.11/include")
    ("-L"  "-L/usr/lib/gauche-0.98/0.9.11/i586-slackware-linux-gnu ")
    ("--ac"  "/usr/share/gauche-0.98/0.9.11/")
    ("-l"  "-lgauche-0.98 -ldl -lcrypt -lutil -lrt -lm  -lpthread")
    ("--cc"  "gcc")
    ("--reconfigure"  "./configure  '--prefix=/usr' '--docdir=/usr/doc/gauche-0.9.11' '--libdir=/usr/lib' '--mandir=/usr/man/' '--infodir=/usr/info' '--disable-static' '--build=i586-slackware-linux' 'build_alias=i586-slackware-linux' 'CFLAGS=-O2 -march=i586 -mtune=i686' '--enable-multibyte=utf-8'")

    ("--prefix"       "/usr")
    ("--sysincdir"    "/usr/lib/gauche-0.98/0.9.11/include")
    ("--siteincdir"   "/usr/lib/gauche-0.98/site/include")
    ("--pkgincdir"    "${libdir}/gauche-0.98/site/include")
    ("--syslibdir"    "/usr/share/gauche-0.98/0.9.11/lib")
    ("--sitelibdir"   "/usr/share/gauche-0.98/site/lib")
    ("--pkglibdir"    "${datadir}/gauche-0.98/site/lib")
    ("--sysarchdir"   "/usr/lib/gauche-0.98/0.9.11/i586-slackware-linux-gnu")
    ("--sitearchdir"  "/usr/lib/gauche-0.98/site/i586-slackware-linux-gnu")
    ("--pkgarchdir"   "${libdir}/gauche-0.98/site/i586-slackware-linux-gnu")
    ("--mandir"       "/usr/man")
    ("--infodir"      "/usr/info")
    ("--arch"         "i586-slackware-linux-gnu")

    ("--incdirs"      "/usr/lib/gauche-0.98/0.9.11/include:/usr/lib/gauche-0.98/site/include")
    ("--archdirs"      "/usr/lib/gauche-0.98/0.9.11/i586-slackware-linux-gnu:/usr/lib/gauche-0.98/site/i586-slackware-linux-gnu")
    ("--local-incdir"  "")
    ("--local-libdir"  "")

    ("--default-cflags"  "-O2 -march=i586 -mtune=i686 -Wall -Wextra -Wno-unused-label")

    ("--object-suffix"   "o")
    ("--executable-suffix"  "")
    ("--rpath-flag"      "-Wl,--rpath=")
    ("--so-suffix"       "so")
    ("--so-cflags"       "-fPIC")
    ("--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    -ldl -lcrypt -lutil -lrt -lm  -lpthread")
    )))

