;; 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-pc-linux-gnu ")
    ("--ac"  "/usr/share/gauche-0.9/0.9.5/")
    ("-l"  "-lgauche-0.9 -ldl -lcrypt -lutil -lrt -lm  -lpthread")
    ("--cc"  "x86_64-pc-linux-gnu-gcc")
    ("--reconfigure"  "./configure  '--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--docdir=/usr/share/doc/gauche-0.9.5' '--htmldir=/usr/share/doc/gauche-0.9.5/html' '--libdir=/usr/lib64' '--enable-ipv6' '--with-libatomic-ops=no' '--with-slib=/usr/share/slib' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'PKG_CONFIG_PATH=/usr/lib64/pkgconfig' 'CFLAGS=-O2 -march=x86-64 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' '--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-pc-linux-gnu")
    ("--sitearchdir"  "/usr/lib64/gauche-0.9/site/x86_64-pc-linux-gnu")
    ("--pkgarchdir"   "${libdir}/gauche-0.9/site/x86_64-pc-linux-gnu")
    ("--mandir"       "/usr/share/man")
    ("--infodir"      "/usr/share/info")
    ("--arch"         "x86_64-pc-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-pc-linux-gnu:/usr/lib64/gauche-0.9/site/x86_64-pc-linux-gnu")
    ("--local-incdir"  "")
    ("--local-libdir"  "")

    ("--default-cflags"  "-O2 -march=x86-64 -pipe")

    ("--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 -lgdbm_compat -lz -ldl -lcrypt -lutil -lrt -lm -lpthread")
    )))

