[Box Backup-commit] COMMIT r3093 - box/trunk/infrastructure/m4

subversion at boxbackup.org subversion at boxbackup.org
Sat Apr 28 19:07:43 BST 2012


Author: chris
Date: 2012-04-28 19:07:42 +0100 (Sat, 28 Apr 2012)
New Revision: 3093

Modified:
   box/trunk/infrastructure/m4/boxbackup_tests.m4
Log:
Move libdl tests before boxbackup tests in configure.ac to fix OpenSSL link errors.


Modified: box/trunk/infrastructure/m4/boxbackup_tests.m4
===================================================================
--- box/trunk/infrastructure/m4/boxbackup_tests.m4	2012-04-15 13:11:59 UTC (rev 3092)
+++ box/trunk/infrastructure/m4/boxbackup_tests.m4	2012-04-28 18:07:42 UTC (rev 3093)
@@ -97,6 +97,10 @@
   AX_SPLIT_VERSION([BDB_VERSION], [$BDB_VERSION])
 ])
 
+# need to find libdl before trying to link openssl, apparently
+AC_SEARCH_LIBS([dlsym], ["dl"])
+AC_CHECK_FUNCS([dlsym dladdr])
+
 ## Check for Open SSL, use old versions only if explicitly requested
 AC_SEARCH_LIBS([gethostbyname], [nsl socket resolv])
 AC_SEARCH_LIBS([shutdown], [nsl socket resolv])
@@ -167,9 +171,6 @@
   have_regex_support=no
 fi
 
-AC_SEARCH_LIBS([dlsym], ["dl"])
-AC_CHECK_FUNCS([dlsym dladdr])
-
 ### Checks for typedefs, structures, and compiler characteristics.
 
 AC_CHECK_TYPES([u_int8_t, u_int16_t, u_int32_t, u_int64_t])




More information about the Boxbackup-commit mailing list