# $Id$ # vim: syntax=plain have_config_h() init() # You must write this - or it won't parse arguments. probe_cc("gcc", "clang", "cc") probe_cxx("g++", "clang++", "c++") c_check_headers("stdio.h", "stdlib.h", "string.h", "math.h", "time.h") cxx_check_headers("iostream") cond_c_check_header("string.h") if() print("string.h exists") define("HAVE_STRING_H") else() undef("HAVE_STRING_H") endif() cond_c_check_header("abc.h") ifnot() print("abc.h does not exist") undef("HAVE_ABC_H") else() define("HAVE_ABC_H") endif() cond_c_check_header("png.h") if() print("png.h exists") define("HAVE_PNG_H") else() print("png.h does not exist") undef("HAVE_PNG_H") endif() output("Makefile")