libpng adjustment

Keep error if no "libpng" is found.
This commit is contained in:
Matthew Flatt 2013-05-15 20:38:40 -06:00
parent 332c863e78
commit f97a7cf177

View File

@ -12,10 +12,9 @@
;; variants often have just "libpng", etc.
(let loop ([alts '(("libpng16" ("16" ""))
("libpng15" ("15" ""))
("libpng12" ("0" ""))
("libpng"))])
("libpng12" ("0" "")))])
(cond
[(null? alts) #f]
[(null? alts) (ffi-lib "libpng")]
[else (apply ffi-lib (car alts)
#:fail (lambda ()
(loop (cdr alts))))]))]