From 56a7c644e777377dcfb9e543ecd8bb2fdc93eaf3 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Mon, 18 Aug 2014 15:41:17 +0400 Subject: Fixed order in configure.ac --- configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index c51b2ef9..5ee6c60c 100644 --- a/configure.ac +++ b/configure.ac @@ -5,12 +5,6 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES]) AC_CONFIG_HEADERS([config.h]) -AC_LANG_PUSH([C++]) -AC_CHECK_HEADER(gtest/gtest.h,, - AC_MSG_ERROR([failed: I need gtest to build tests]), -) -AC_LANG_POP([C++]) - __apt_macros_h="apt-pkg/contrib/macros.h" ap_maj=`$AWK '/^\#define APT_PKG_MAJOR/ {print $3}' $srcdir/$__apt_macros_h` ap_min=`$AWK '/^\#define APT_PKG_MINOR/ {print $3}' $srcdir/$__apt_macros_h` @@ -57,6 +51,12 @@ AC_SEARCH_LIBS([connect], [socket]) AC_SEARCH_LIBS([pthread_create], [pthread]) AC_SEARCH_LIBS([openpty], [util libutil]) +AC_LANG_PUSH([C++]) +AC_CHECK_HEADER(gtest/gtest.h,, + AC_MSG_ERROR([failed: I need gtest to build tests]), +) +AC_LANG_POP([C++]) + have_curl="no" AC_CHECK_HEADER([curl/curl.h], [ AC_CHECK_LIB([curl], [curl_easy_init], [have_curl="yes"]) ], -- cgit v1.2.3