folly: fix gflags<->glog configure check ordering
authorWez Furlong <wez@fb.com>
Sat, 12 Mar 2016 00:36:37 +0000 (16:36 -0800)
committerFacebook Github Bot 0 <facebook-github-bot-0-bot@fb.com>
Sat, 12 Mar 2016 00:50:21 +0000 (16:50 -0800)
commit4bdddb9e15bf1b742a070ef34424fffc2284a816
treed7a6b7f4b2ec6bfe10079d1865f622d4d05238b6
parent5ae81138c02ec6e14b34ab1f383acf70546abbb8
folly: fix gflags<->glog configure check ordering

Summary:On systems that do not have gflags or glog installed globally,
but only locally as static libraries, our configure check failed for
glog because we were checking it prior to gflags.

glog depends on gflags, but when the libraries are static, there is
no explicit dependency information available and the linker fails.

This resolves the issue by checking for gflags first; this causes
configure to add an implicit `-lgflags` for the subsequent glog
tests.

Reviewed By: yfeldblum

Differential Revision: D3044138

fb-gh-sync-id: 5e07ce52842c6e4cff796560672bf950e2fafe6c
shipit-source-id: 5e07ce52842c6e4cff796560672bf950e2fafe6c
folly/configure.ac