POSIX thread conf check: preserve LIBS
[yaz-moved-to-github.git] / configure.ac
index 421a4b9..c25249f 100644 (file)
@@ -1,7 +1,7 @@
 dnl This file is part of the YAZ toolkit.
-dnl Copyright (C) 1995-2009 Index Data
+dnl Copyright (C) 1995-2010 Index Data
 AC_PREREQ([2.60])
-AC_INIT([yaz],[3.0.45],[yaz-help@indexdata.dk])
+AC_INIT([yaz],[4.0.3],[yaz-help@indexdata.dk])
 AC_CONFIG_SRCDIR([configure.ac])
 AC_CONFIG_AUX_DIR([config])
 AM_INIT_AUTOMAKE([1.9])
@@ -333,8 +333,9 @@ if test "$enable_threads" = "yes" -a "$HAVETHREADS" = "0"; then
                done
                LIBS=$OLIBS
            fi
-           CFLAGS=$OCFLAGS
-           PTHREAD_CFLAGS="$PTHREAD_CFLAGS -DYAZ_POSIX_THREADS=1"
+           LIBS="$LIBS $PTHREAD_LIBS"
+           CFLAGS="$CFLAGS -DYAZ_POSIX_THREADS=1"
+           YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_POSIX_THREADS=1"
            ])
 fi