-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure
54 lines (45 loc) · 2 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
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env gosh
;; Configuring gauche-clipboard
;; 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 "gauche-clipboard" "1.0" "[email protected]")
;; 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 'default_prefix (gauche-config "--prefix"))
(cf-subst 'GAUCHE_PKGINCDIR (gauche-config "--pkgincdir"))
(cf-subst 'GAUCHE_PKGLIBDIR (gauche-config "--pkglibdir"))
(cf-subst 'GAUCHE_PKGARCHDIR (gauche-config "--pkgarchdir"))
;; Output
(cf-make-gpd)
(cf-echo (cf$ 'PACKAGE_VERSION) > "VERSION")
(cf-output "Makefile")
;; Local variables:
;; mode: scheme
;; end: