From: Adam Dickmeiss Date: Mon, 15 Oct 2001 20:37:08 +0000 (+0000) Subject: Fix for --libs when pthread was selected on OpenBSD. X-Git-Tag: YAZ.1.8~25 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=1252daa48c1303465e00fccb7f7287d2d6b179ed Fix for --libs when pthread was selected on OpenBSD. --- diff --git a/yaz-config.in b/yaz-config.in index 53578bb..6f2cd24 100644 --- a/yaz-config.in +++ b/yaz-config.in @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: yaz-config.in,v 1.9 2001-10-05 13:55:17 adam Exp $ +# $Id: yaz-config.in,v 1.10 2001-10-15 20:37:08 adam Exp $ yazprefix=@prefix@ yaz_echo_cflags=no yaz_echo_libs=no @@ -79,7 +79,7 @@ while test $# -gt 0; do shift done -if test "$lib_thread" = "yes" -a -n "@LIBTHREAD@"; then +if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then yazextralibs="@LIBTHREAD@ $yazextralibs" lyaz="-lyazthread -lyaz" else @@ -89,7 +89,7 @@ if test "$yaz_echo_source" = "yes"; then YAZTAB=${yaz_src_root}/tab YAZBIN=${yaz_build_root}/bin YAZLIB="-L${yaz_build_root}/lib/.libs $lyaz $yazextralibs" - if test "$lib_thread" = "yes"; then + if test "$lib_thread" = "yes" -a -n "@CFLAGSTHREADS@"; then YAZLALIB="${yaz_build_root}/lib/libyazthread.la ${yaz_build_root}/lib/libyaz.la $yazextralibs" else YAZLALIB="${yaz_build_root}/lib/libyaz.la $yazextralibs"