;; 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.10")
    ("-I"  "-I/usr/lib/gauche-0.97/0.9.10/include")
    ("-L"  "-L/usr/lib/gauche-0.97/0.9.10/armv6l-unknown-linux-gnueabihf ")
    ("--ac"  "/usr/share/gauche-0.97/0.9.10/")
    ("-l"  "-lgauche-0.97 -ldl -lcrypt -lutil -lrt -lm  -lpthread")
    ("--cc"  "gcc")
    ("--reconfigure"  "./configure  '--prefix=/usr' '--with-slib=/usr/share/slib' 'CFLAGS=-march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector-strong -fno-plt' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'BUILD_GOSH=/usr/bin/gosh' '--enable-multibyte=utf-8'")

    ("--prefix"       "/usr")
    ("--sysincdir"    "/usr/lib/gauche-0.97/0.9.10/include")
    ("--siteincdir"   "/usr/lib/gauche-0.97/site/include")
    ("--pkgincdir"    "${libdir}/gauche-0.97/site/include")
    ("--syslibdir"    "/usr/share/gauche-0.97/0.9.10/lib")
    ("--sitelibdir"   "/usr/share/gauche-0.97/site/lib")
    ("--pkglibdir"    "${datadir}/gauche-0.97/site/lib")
    ("--sysarchdir"   "/usr/lib/gauche-0.97/0.9.10/armv6l-unknown-linux-gnueabihf")
    ("--sitearchdir"  "/usr/lib/gauche-0.97/site/armv6l-unknown-linux-gnueabihf")
    ("--pkgarchdir"   "${libdir}/gauche-0.97/site/armv6l-unknown-linux-gnueabihf")
    ("--mandir"       "/usr/share/man")
    ("--infodir"      "/usr/share/info")
    ("--arch"         "armv6l-unknown-linux-gnueabihf")

    ("--incdirs"      "/usr/lib/gauche-0.97/0.9.10/include:/usr/lib/gauche-0.97/site/include")
    ("--archdirs"      "/usr/lib/gauche-0.97/0.9.10/armv6l-unknown-linux-gnueabihf:/usr/lib/gauche-0.97/site/armv6l-unknown-linux-gnueabihf")
    ("--local-incdir"  "")
    ("--local-libdir"  "")

    ("--default-cflags"  "-march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector-strong -fno-plt -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.97.so")
    ("--static-libs"     "-lgauche-static-0.97   -lgdbm -lgdbm -lgdbm_compat -lgdbm -lgdbm_compat -lz    -ldl -lcrypt -lutil -lrt -lm  -lpthread")
    )))

