FS-11104: [Build] check for libldns-fs.pc first when detecting libldns to allow for custom package

This commit is contained in:
Mike Jerris 2018-04-10 18:19:06 -05:00
parent 192a232c23
commit b43442a2f2
1 changed files with 3 additions and 1 deletions

View File

@ -1320,6 +1320,8 @@ PKG_CHECK_MODULES([YAML], [yaml-0.1 >= 0.1.4],[
PKG_CHECK_MODULES([PORTAUDIO], [portaudio-2.0 >= 19],[
AM_CONDITIONAL([HAVE_PORTAUDIO],[true])],[
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_PORTAUDIO],[false])])
PKG_CHECK_MODULES([LDNS], [libldns-fs >= 1.6.6],[
AM_CONDITIONAL([HAVE_LDNS],[true])],[
PKG_CHECK_MODULES([LDNS], [libldns >= 1.6.6],[
AM_CONDITIONAL([HAVE_LDNS],[true])],[
AC_CHECK_LIB([ldns], [ldns_str2rdf_a], [LDNS_LIBS=-lldns])
@ -1329,7 +1331,7 @@ PKG_CHECK_MODULES([LDNS], [libldns >= 1.6.6],[
else
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_LDNS],[false])
fi],[
AM_CONDITIONAL([HAVE_LDNS],[true])])])
AM_CONDITIONAL([HAVE_LDNS],[true])])])])
PKG_CHECK_MODULES([SNDFILE], [sndfile >= 1.0.20],[
AM_CONDITIONAL([HAVE_SNDFILE],[true])],[
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_SNDFILE],[false])])