@@ -412,42 +412,6 @@ AS_CASE([${with_tests}], [yes],
412412 AC_MSG_NOTICE ( [ boost_unit_test_framework_LIBS : ${boost_unit_test_framework_LIBS}] ) ] ,
413413 [ AC_SUBST ( [ boost_unit_test_framework_LIBS] , [ ] ) ] )
414414
415- # Require pthread if not on android and output ${pthread_CPPFLAGS/LIBS}.
416- # ------------------------------------------------------------------------------
417- # Hard wired -lpthread because AX_PTHREAD does not do it.
418- AS_CASE ( [ ${host_os}] ,
419- [ *android*] ,
420- [ AC_SUBST ( [ pthread_LIBS] , [ ] ) ] ,
421- [ AX_PTHREAD (
422- [ AC_SUBST ( [ pthread_CPPFLAGS] , [ ${PTHREAD_CPPFLAGS}] )
423- AC_SUBST ( [ pthread_ISYS_CPPFLAGS] , [ `echo ${PTHREAD_CPPFLAGS} | $SED s/^-I/-isystem/g | $SED s/' -I'/' -isystem'/g`] )
424- AC_SUBST ( [ pthread_LIBS] , [ -lpthread] )
425- AC_MSG_NOTICE ( [ pthread_CPPFLAGS : ${pthread_CPPFLAGS}] )
426- AC_MSG_NOTICE ( [ pthread_ISYS_CPPFLAGS : ${pthread_ISYS_CPPFLAGS}] ) ] ,
427- [ AC_MSG_ERROR ( [ pthread library is required but was not found.] ) ] )
428-
429- AS_CASE ( [ ${enable_isystem}] ,[ yes] ,
430- [ AC_SUBST ( [ pthread_BUILD_CPPFLAGS] , [ ${pthread_ISYS_CPPFLAGS}] ) ] ,
431- [ AC_SUBST ( [ pthread_BUILD_CPPFLAGS] , [ ${pthread_CPPFLAGS}] ) ] )
432-
433- AC_MSG_NOTICE ( [ pthread_BUILD_CPPFLAGS : ${pthread_BUILD_CPPFLAGS}] ) ] )
434-
435- AC_MSG_NOTICE ( [ pthread_LIBS : ${pthread_LIBS}] )
436-
437- # Require rt if on linux if not on android and output ${rt_LIBS}.
438- # ------------------------------------------------------------------------------
439-
440- AS_CASE ( [ ${host_os}] ,
441- [ *android*] ,
442- [ AC_SUBST ( [ rt_LIBS] , [ ] ) ] ,
443- [ *linux*] ,
444- [ AC_CHECK_LIB ( [ rt] , [ clock_gettime] ,
445- [ AC_SUBST ( [ rt_LIBS] , [ -lrt] ) ] ,
446- [ AC_MSG_ERROR ( [ rt library is required but was not found.] ) ] ) ] ,
447- [ AC_SUBST ( [ rt_LIBS] , [ ] ) ] )
448-
449- AC_MSG_NOTICE ( [ rt_LIBS : ${rt_LIBS}] )
450-
451415# Require icu-i18n of at least version 55.2 and output ${icu_i18n_CPPFLAGS/LIBS/PKG}.
452416# ------------------------------------------------------------------------------
453417AS_CASE ( [ ${with_icu}] , [ yes] ,
@@ -471,18 +435,6 @@ AS_CASE([${enable_isystem}],[yes],
471435
472436AC_MSG_NOTICE ( [ icu_i18n_BUILD_CPPFLAGS : ${icu_i18n_BUILD_CPPFLAGS}] )
473437
474- # Require dl if on linux and output ${dl_LIBS}.
475- # ------------------------------------------------------------------------------
476-
477- AS_CASE ( [ ${host_os}] ,
478- [ *linux*] ,
479- [ AC_CHECK_LIB ( [ dl] , [ dlopen] ,
480- [ AC_SUBST ( [ dl_LIBS] , [ -ldl] ) ] ,
481- [ AC_MSG_ERROR ( [ dl library is required but was not found.] ) ] ) ] ,
482- [ AC_SUBST ( [ dl_LIBS] , [ ] ) ] )
483-
484- AC_MSG_NOTICE ( [ dl_LIBS : ${dl_LIBS}] )
485-
486438# Require secp256k1 of at least version 0.5.1.0 and output ${secp256k1_CPPFLAGS/LIBS/PKG}.
487439# ------------------------------------------------------------------------------
488440PKG_CHECK_MODULES([ secp256k1] , [ libsecp256k1 >= 0.5.1.0] , [ ] ,
0 commit comments