Author: wyoung
Date: Fri Jan 12 19:51:30 2007
New Revision: 1400

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1400&view=rev
Log:
Moved the thread type check above the test for the MySQL library test,
so we can properly test for libmysqlclient_r.  Bug reported by David
McLaughlin <[EMAIL PROTECTED]>

Modified:
    trunk/configure.ac

Modified: trunk/configure.ac
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/configure.ac?rev=1400&r1=1399&r2=1400&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri Jan 12 19:51:30 2007
@@ -42,6 +42,19 @@
 AC_HEADER_STDC
 
 
+# Figure out whether/how to handle threading support, if available.
+AC_ARG_ENABLE(thread-check,
+               [  --enable-thread-check  Check for threads, and use if 
available. ],
+               [ thread_check=yes ])
+if test "x$thread_check" = "xyes"
+then
+       ACX_PTHREAD
+       LIBS="$PTHREAD_LIBS $LIBS"
+       CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+       CC="$PTHREAD_CC"
+fi
+
+
 # Checks for libraries and local system features
 AC_CHECK_HEADERS(zlib.h, AC_CHECK_LIB(z, gzread, [],
                [ AC_MSG_ERROR([zlib is required]) ]))
@@ -60,19 +73,6 @@
 STL_SLIST_EXTENSION
 
 
-# Figure out whether/how to handle threading support, if available.
-AC_ARG_ENABLE(thread-check,
-               [  --enable-thread-check  Check for threads, and use if 
available. ],
-               [ thread_check=yes ])
-if test "x$thread_check" = "xyes"
-then
-       ACX_PTHREAD
-       LIBS="$PTHREAD_LIBS $LIBS"
-       CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-       CC="$PTHREAD_CC"
-fi
-
-
 # If this is Cygwin, add a linker flag to suppress a silly link message.
 case "${host}" in
        *cygwin*)


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to