Fix: check for socket lib before function checks
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 9 Feb 2016 23:50:22 +0000 (18:50 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Feb 2016 15:54:28 +0000 (10:54 -0500)
On platforms that require extra libraries to link socket apps,
running this macro before the function checks will lead to
socket functions being correctly detected.

Signed-off by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac

index c2307b57b98edfc5819944f0dbf54894261cf6d9..42698e757baa0065db1cf21d4d8a25fe01091a5c 100644 (file)
@@ -84,6 +84,9 @@ fi
 
 AM_PATH_GLIB_2_0(2.22.0, ,AC_MSG_ERROR([glib is required in order to compile BabelTrace - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule)
 
+# Check what libraries are required on this platform to link sockets programs.
+AX_LIB_SOCKET_NSL
+
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_INLINE
 AC_TYPE_PID_T
@@ -145,9 +148,6 @@ esac
 
 AM_CONDITIONAL([BABELTRACE_BUILD_WITH_MINGW], [test "x$MINGW32" = "xyes"])
 
-# Check what libraries are required on this platform to link sockets programs.
-AX_LIB_SOCKET_NSL
-
 # Check for uuid in system libs
 AC_CHECK_FUNCS([uuid_generate],
 [
This page took 0.024952 seconds and 4 git commands to generate.