X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=94e545720ba07c80d9dce57411b149070aebbed3;hb=6b7e644e5c5ca8fd501303a812293a00d830cd32;hp=a089c9aaa6d8ef6f73f16d7be054564f8709e6cc;hpb=d268866d294f8ab94e14881caf5d0126e5b77a91;p=libsigrok.git diff --git a/configure.ac b/configure.ac index a089c9aa..94e54572 100644 --- a/configure.ac +++ b/configure.ac @@ -174,18 +174,6 @@ AM_CONDITIONAL([NEED_RPC], [test "x$sr_cv_have_rpc" = xyes]) # Check for compiler support of 128 bit integers AC_CHECK_TYPES([__int128_t, __uint128_t], [], [], []) -# Linker flag to retain the objects of a static lib that are not referenced -AX_CHECK_LINK_FLAG([-Wl,--whole-archive -Wl,--no-whole-archive], - [SR_LINK_BEFORE_LIB=-Wl,--whole-archive - SR_LINK_AFTER_LIB=-Wl,--no-whole-archive], [ -AX_CHECK_LINK_FLAG([-Wl,-force_load], - [SR_LINK_BEFORE_LIB=-Wl,-force_load - SR_LINK_AFTER_LIB=], - [SR_LINK_BEFORE_LIB= - SR_LINK_AFTER_LIB=])]) -AC_SUBST(SR_LINK_BEFORE_LIB) -AC_SUBST(SR_LINK_AFTER_LIB) - ######################## ## Hardware drivers ## ######################## @@ -223,7 +211,7 @@ m4_define([_SR_DRIVER], [ sr_driver_summary_append "$2" "$sr_hw_info" AM_CONDITIONAL([$3], [test "x[$]$3" = xyes]) - AM_COND_IF([$3], [AC_DEFINE([HAVE_$3], [1], [Whether to support $1 device.])]) + AM_COND_IF([$3], [AC_DEFINE([HAVE_$3], [1], [Whether to support $1 device.]) AC_DEFINE([HAVE_DRIVERS], [1], [Whether at least one driver is enabled.])]) ]) ## SR_DRIVER(Device name, driver-name, [dependencies...])