r19461 - gnucash/trunk - [Bug 560052] Force use of internal strptime to work around bug in the Leopard libc.
John Ralls
jralls at code.gnucash.org
Sat Aug 21 19:52:28 EDT 2010
Author: jralls
Date: 2010-08-21 19:52:27 -0400 (Sat, 21 Aug 2010)
New Revision: 19461
Trac: http://svn.gnucash.org/trac/changeset/19461
Modified:
gnucash/trunk/configure.ac
Log:
[Bug 560052] Force use of internal strptime to work around bug in the Leopard libc.
Modified: gnucash/trunk/configure.ac
===================================================================
--- gnucash/trunk/configure.ac 2010-08-21 23:39:40 UTC (rev 19460)
+++ gnucash/trunk/configure.ac 2010-08-21 23:52:27 UTC (rev 19461)
@@ -1226,7 +1226,14 @@
###-------------------------------------------------------------------------
AC_CHECK_FUNCS(pthread_mutex_init)
-AC_REPLACE_FUNCS(strptime localtime_r gmtime_r)
+case $host_os in
+ darwin*)
+ AC_REPLACE_FUNCS(localtime_r gmtime_r)
+ AC_LIBOBJ(strptime)
+ ;;
+ *) AC_REPLACE_FUNCS(strptime localtime_r gmtime_r) ;;
+esac
+
#AC_REPLACE_FUNCS(scm_strptime)
if test x$am_cv_val_LC_MESSAGES = "xno"; then
More information about the gnucash-changes
mailing list