File: config.w32

package info (click to toggle)
php-yaml 2.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 584 kB
  • sloc: ansic: 2,399; xml: 580; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// vim:ft=javascript

ARG_WITH("yaml", "The YAML parser and emitter PHP extension", "no");

if (PHP_YAML != "no") {
	if ((lib=CHECK_LIB("libyaml_a.lib;libyaml.lib;yaml.lib", "yaml", PHP_YAML)) && CHECK_HEADER_ADD_INCLUDE("yaml.h", "CFLAGS_YAML")) {
		AC_DEFINE("HAVE_YAML", 1, "Yaml support");

		if (lib.substr(lib.length - 6, 6) == '_a.lib') {
			ADD_FLAG("CFLAGS_YAML", "/D YAML_DECLARE_STATIC");
		}
		EXTENSION("yaml", "yaml.c parse.c emit.c detect.c");
	} else {
		WARNING("yaml not enabled; library or header not found");
	}
}