-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·64 lines (54 loc) · 2.35 KB
/
configure
File metadata and controls
executable file
·64 lines (54 loc) · 2.35 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env gosh
;; Configuring paradoc
;; 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 "paradoc" "0.1" "dico.leque.comicron@gmail.com")
;; 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_CONFIG "gauche-config")
(cf-path-prog 'GAUCHE_PACKAGE "gauche-package")
(cf-path-prog 'GAUCHE_INSTALL "gauche-install")
(cf-path-prog 'GAUCHE_CESCONV "gauche-cesconv")
;; Some common parameters
(cf-subst 'SOEXT (gauche-config "--so-suffix"))
(cf-subst 'OBJEXT (gauche-config "--object-suffix"))
(cf-subst 'EXEEXT (gauche-config "--executable-suffix"))
(cf-subst 'GAUCHE_PKGINCDIR (gauche-config "--pkgincdir"))
(cf-subst 'GAUCHE_PKGLIBDIR (gauche-config "--pkglibdir"))
(cf-subst 'GAUCHE_PKGARCHDIR (gauche-config "--pkgarchdir"))
;; Output
;; Gauche-0.9.4 does not have cf-make-gpd.
;; See: http://blog.practical-scheme.net/gauche/20140720a-configure
;;(cf-make-gpd)
(use gauche.package)
(let1 gpd-file #"~(cf$ 'PACKAGE_NAME).gpd"
(with-output-to-file gpd-file
(cut write-gauche-package-description
(make <gauche-package-description>
:name (cf$ 'PACKAGE_NAME)
:version (cf$ 'PACKAGE_VERSION)
:configure (string-join (command-line))))))
(cf-echo (cf$ 'PACKAGE_VERSION) > "VERSION")
(cf-output "Makefile")
;; Local variables:
;; mode: scheme
;; end: