Author: mysqlpp
Date: Wed Apr 5 05:28:55 2006
New Revision: 1287
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1287&view=rev
Log:
Abstracted away the library name prefix for autoconf systems. Most of
the world uses 'lib', but Cygwin uses 'cyg' for generated DLLs.
Modified:
trunk/configure.ac
trunk/examples/examples.bkl
Modified: trunk/configure.ac
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/configure.ac?rev=1287&r1=1286&r2=1287&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Wed Apr 5 05:28:55 2006
@@ -73,6 +73,20 @@
fi
+# Check whether this is Cygwin. It names dlls with a 'cyg' prefix
+# instead of 'lib' used by the rest of the world for shared libraries.
+case "${host}" in
+ *cygwin*)
+ MYSQLPP_LIB_PREFIX=cyg
+ ;;
+
+ *)
+ MYSQLPP_LIB_PREFIX=lib
+esac
+AC_SUBST(MYSQLPP_LIB_PREFIX)
+AC_MSG_RESULT(library prefix is $MYSQLPP_LIB_PREFIX)
+
+
#
# Configure process complete; write out files generated from *.in.
#
Modified: trunk/examples/examples.bkl
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/examples.bkl?rev=1287&r1=1286&r2=1287&view=diff
==============================================================================
--- trunk/examples/examples.bkl (original)
+++ trunk/examples/examples.bkl Wed Apr 5 05:28:55 2006
@@ -35,7 +35,7 @@
<sys-lib>@MYSQL_C_LIB@</sys-lib>
<warnings>max</warnings>
- <ldlibs>../lib/libmysqlpp.$(SO_SUFFIX)</ldlibs>
+ <ldlibs>../lib/@[EMAIL PROTECTED](SO_SUFFIX)</ldlibs>
<if cond="ZLIB=='yes'">
<sys-lib>z</sys-lib>
</if>
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits