;; 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 (canonicalize (cadr p)))]
        [else (error "unknown configuration parameter name" param)]))

;; Kludge: Replace '@' in pathnames based on the directory of the
;; executable.  We assume '@' only appears as this special prefix of
;; pathnames.  Must be in sync with print_output in gauche-config.c
;; generated above.
(define (canonicalize str)
  (cond-expand
    [gauche.os.windows
     ;; NB: we pass closure in the 3rd arg, since the replacement string
     ;; may contain backslashes and confuse regexp-replace-all.
     (regexp-replace-all #/@/ str (^m (%gauche-runtime-directory)))]
    [else str]))

(define *configurations*
  (quote
   (("-V"  "0.9.5")
    ("-I"  "-I/usr/lib64/gauche-0.9/0.9.5/include")
    ("-L"  "-L/usr/lib64/gauche-0.9/0.9.5/x86_64-slackware-linux-gnu ")
    ("--ac"  "/usr/share/gauche-0.9/0.9.5/")
    ("-l"  "-lgauche-0.9 -ldl -lcrypt -lutil -lrt -lm  -lpthread")
    ("--cc"  "gcc")
    ("--reconfigure"  "./configure  '--prefix=/usr' '--docdir=/usr/doc/gauche-0.9.5' '--libdir=/usr/lib64' '--mandir=/usr/man/' '--infodir=/usr/info' '--disable-static' '--build=x86_64-slackware-linux' 'build_alias=x86_64-slackware-linux' 'PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig' 'CFLAGS=-O2 -fPIC' '--enable-multibyte=utf-8'")

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

    ("--incdirs"      "/usr/lib64/gauche-0.9/0.9.5/include:/usr/lib64/gauche-0.9/site/include")
    ("--archdirs"      "/usr/lib64/gauche-0.9/0.9.5/x86_64-slackware-linux-gnu:/usr/lib64/gauche-0.9/site/x86_64-slackware-linux-gnu")
    ("--local-incdir"  "")
    ("--local-libdir"  "")

    ("--default-cflags"  "-O2 -fPIC")

    ("--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.9.so")
    ("--static-libs"     "-lgauche-static-0.9  -lgdbm -lz -ldl -lcrypt -lutil -lrt -lm -lpthread")
    )))

