-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·29 lines (22 loc) · 814 Bytes
/
configure
File metadata and controls
executable file
·29 lines (22 loc) · 814 Bytes
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
#!/usr/bin/env gosh
;; Configuring gauche-json
;; Run ./configure (or gosh ./configure) to generate Makefiles.
(use gauche.configure)
(load "configure-compat"
:paths `(,(sys-dirname (current-load-path)))
:error-if-not-found #f)
;; Here you can define handlers of configure arguments by cf-arg-enable
;; and cf-arg-with. Note that --with-local is handled implicitly if you use
;; cf-init-gauche-extension.
;; Initialize configure. This creates the global context, parses
;; command-line args and sets up default values.
(cf-init-gauche-extension)
(cf-subst-append 'CFLAGS "-I/usr/include/json-c")
(cf-subst-append 'LIBS "-ljson-c")
;; Here you can add feature tests and other cf-define's.
(cf-check-headers '("json.h"))
;; Output
(cf-output-default)
;; Local variables:
;; mode: scheme
;; end: