;; 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/lib/gauche-0.9/0.9.5/include")
    ("-L"  "-L/usr/lib/gauche-0.9/0.9.5/armv5tel-unknown-linux-gnueabi ")
    ("--ac"  "/usr/share/gauche-0.9/0.9.5/")
    ("-l"  "-lgauche-0.9 -ldl -lcrypt -lutil -lrt -lm  -lpthread")
    ("--cc"  "gcc")
    ("--reconfigure"  "./configure  '--enable-multibyte=utf-8' '--prefix=/usr' 'CFLAGS=-march=armv5te -O2 -pipe -fstack-protector-strong -fno-plt' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'")

    ("--prefix"       "/usr")
    ("--sysincdir"    "/usr/lib/gauche-0.9/0.9.5/include")
    ("--siteincdir"   "/usr/lib/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/lib/gauche-0.9/0.9.5/armv5tel-unknown-linux-gnueabi")
    ("--sitearchdir"  "/usr/lib/gauche-0.9/site/armv5tel-unknown-linux-gnueabi")
    ("--pkgarchdir"   "${libdir}/gauche-0.9/site/armv5tel-unknown-linux-gnueabi")
    ("--mandir"       "/usr/share/man")
    ("--infodir"      "/usr/share/info")
    ("--arch"         "armv5tel-unknown-linux-gnueabi")

    ("--incdirs"      "/usr/lib/gauche-0.9/0.9.5/include:/usr/lib/gauche-0.9/site/include")
    ("--archdirs"      "/usr/lib/gauche-0.9/0.9.5/armv5tel-unknown-linux-gnueabi:/usr/lib/gauche-0.9/site/armv5tel-unknown-linux-gnueabi")
    ("--local-incdir"  "")
    ("--local-libdir"  "")

    ("--default-cflags"  "-march=armv5te -O2 -pipe -fstack-protector-strong -fno-plt")

    ("--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")
    )))

