-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure
44 lines (36 loc) · 1.51 KB
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env gosh
;; Configuring Gauche-zip-archive
;; Run ./configure (or gosh ./configure) to generate Makefiles.
(use gauche.configure)
;; Define extra --with-PACKAGE and --enable-FEATURE options.
;; These should come before cf-init so that cf-init can construct
;; proper usage string.
(cf-arg-with 'local
(cf-help-string
"--with-local=PATH:PATH..."
"For each PATH, add PATH/include to the include search
paths and PATH/lib to the library search paths. Useful if you have some
libraries installed in non-standard places. ")
(^[with-local]
(unless (member with-local '("yes" "no" ""))
(cf-subst 'LOCAL_PATHS with-local)))
(^[] (cf-subst 'LOCAL_PATHS "")))
;; Initialize configure. This creates the global context, parses
;; command-line args and sets up default values.
(cf-init)
;; Set up gauche related commands. The commands are set by scanning
;; PATH. You can override them by "GOSH=/my/gosh ./configure" etc.
;; These variables may contain spaces in the pathnames (especially on
;; Windows); Makefile.ins and other files that refer to those variables
;; have to quote them properly.
(cf-path-prog 'GOSH "gosh")
(cf-path-prog 'GAUCHE_INSTALL "gauche-install")
(cf-subst 'default_prefix (gauche-config "--prefix"))
(cf-subst 'GAUCHE_PKGLIBDIR (gauche-config "--pkglibdir"))
;; Output
(cf-make-gpd)
(cf-echo (cf$ 'PACKAGE_VERSION) > "VERSION")
(cf-output "Makefile")
;; Local variables:
;; mode: scheme
;; end: