diff options
author | Norbert Preining <preining@logic.at> | 2024-03-10 07:24:30 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2024-03-10 07:24:30 +0000 |
commit | 8f74a59443a5608a40d59883bdbfe4e486a6ca4a (patch) | |
tree | 1eca735708a09cd02b8c9914072103134392f65a /Build/source/utils | |
parent | 49624437dcb466ba342dd2c5a1055d4d1789cd51 (diff) |
asy: try fixing readline link errors (patch from John Bowman)
git-svn-id: svn://tug.org/texlive/trunk@70548 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils')
-rw-r--r-- | Build/source/utils/asymptote/configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/configure.ac b/Build/source/utils/asymptote/configure.ac index 98b56ab1f6b..b35ace10435 100644 --- a/Build/source/utils/asymptote/configure.ac +++ b/Build/source/utils/asymptote/configure.ac @@ -331,7 +331,11 @@ AC_CHECK_HEADERS(editline/readline.h) ]) AC_DEFUN([AC_CHECK_LIB_STATIC],[ -PKGFLAGS=`pkg-config --libs $1` +PKGFLAGS=`pkg-config --silence-errors --libs $1` +if test "x$PKGFLAGS" == "x"; then +PKGFLAGS=-l"$2 " +echo Will try linking with $PKGFLAGS +fi LDFLAGS_SAVE=$LDFLAGS LDFLAGS="$LDFLAGS ""$STATIC ""$PKGFLAGS""$DYNAMIC " AC_CHECK_LIB($2,$3,AC_DEFINE($4,1,DEFINE_LIB($2)), @@ -418,7 +422,7 @@ AC_ARG_ENABLE(gsl, if test "x$enable_gsl" != "xno"; then CPPFLAGS="$CPPFLAGS "`pkg-config --cflags gsl` - LDFLAGS="$LDFLAGS "`pkg-config --libs gsl` + LDFLAGS="$LDFLAGS "`pkg-config --silence-errors --libs gsl` AC_CHECK_HEADER(gsl/gsl_sf.h, AC_CHECK_LIB([gsl], gsl_sf_debye_6, [AC_DEFINE(HAVE_LIBGSL,1, DEFINE_LIB[gsl]) LIBS=$LIBS"-lgsl -lgslcblas "], |