You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jb...@apache.org on 2005/06/08 00:33:39 UTC

svn commit: r189462 - in /xerces/c/branches/jberry/3.0-unstable: config.h.in configure.ac m4/xerces_path_delimiters.m4

Author: jberry
Date: Tue Jun  7 15:33:38 2005
New Revision: 189462

URL: http://svn.apache.org/viewcvs?rev=189462&view=rev
Log:
Add autoconf support for configuring path delimiter characters

Added:
    xerces/c/branches/jberry/3.0-unstable/m4/xerces_path_delimiters.m4   (with props)
Modified:
    xerces/c/branches/jberry/3.0-unstable/config.h.in
    xerces/c/branches/jberry/3.0-unstable/configure.ac

Modified: xerces/c/branches/jberry/3.0-unstable/config.h.in
URL: http://svn.apache.org/viewcvs/xerces/c/branches/jberry/3.0-unstable/config.h.in?rev=189462&r1=189461&r2=189462&view=diff
==============================================================================
--- xerces/c/branches/jberry/3.0-unstable/config.h.in (original)
+++ xerces/c/branches/jberry/3.0-unstable/config.h.in Tue Jun  7 15:33:38 2005
@@ -269,6 +269,9 @@
 /* Define if there is no native bool support in this environment */
 #undef XERCES_NO_NATIVE_BOOL
 
+/* Define to use backslash as an extra path delimiter character */
+#undef XERCES_PATH_DELIMITER_BACKSLASH
+
 /* Define as the platform's export attribute */
 #undef XERCES_PLATFORM_EXPORT
 

Modified: xerces/c/branches/jberry/3.0-unstable/configure.ac
URL: http://svn.apache.org/viewcvs/xerces/c/branches/jberry/3.0-unstable/configure.ac?rev=189462&r1=189461&r2=189462&view=diff
==============================================================================
--- xerces/c/branches/jberry/3.0-unstable/configure.ac (original)
+++ xerces/c/branches/jberry/3.0-unstable/configure.ac Tue Jun  7 15:33:38 2005
@@ -105,42 +105,12 @@
 AC_REPLACE_FUNCS([stricmp strnicmp iswspace towlower towupper])
 
 
-
-
-# Things we've got to conditionally compile:
-#
-#	Transcoder
-#	MsgLoader
-#	NetAccessor
-#	File
-#	Mutex
-#	Timer
-#
-#	Specify location of libraries
-#	--with-curl=<location>
-#	--with-icu=<location>
-#	--with-libwww=<location>
-#
-#	Enable netaccessor selection:
-#	--enable-netaccessor-curl
-#	--enable-netaccessor-libwww
-#	--enable-netaccessor-socket
-#	--enable-netaccessor-cfurlaccessor
-#	--enable-netaccessor-winsock
-#
-#	Enable msgloader selection:
-#	--enable-msgloader-memory
-#	--enable-msgloader-icu
-#	--enable-msgloader-msgcatalog
-#	--enable-msgloader-msgfile
-#	--enable-msgloader-win32
-#
-
 ######################################################
 # Look for availability of available packages
 ######################################################
 
 XERCES_PRETTY_MAKE
+XERCES_PATH_DELIMITERS
 
 XERCES_CURL_PREFIX
 XERCES_LIBWWW_PREFIX

Added: xerces/c/branches/jberry/3.0-unstable/m4/xerces_path_delimiters.m4
URL: http://svn.apache.org/viewcvs/xerces/c/branches/jberry/3.0-unstable/m4/xerces_path_delimiters.m4?rev=189462&view=auto
==============================================================================
--- xerces/c/branches/jberry/3.0-unstable/m4/xerces_path_delimiters.m4 (added)
+++ xerces/c/branches/jberry/3.0-unstable/m4/xerces_path_delimiters.m4 Tue Jun  7 15:33:38 2005
@@ -0,0 +1,30 @@
+dnl @synopsis XERCES_PATH_DELIMITERS
+dnl
+dnl Configures the path delimiter characters.
+dnl
+dnl @category C
+dnl @author James Berry
+dnl @version 2005-06-07
+dnl @license AllPermissive
+dnl
+dnl $Id$
+
+AC_DEFUN([XERCES_PATH_DELIMITERS],
+	[
+		AC_MSG_CHECKING([for which path delimiter characters to accept])
+		
+		dnl We accept / in all cases.
+		path_delims=/
+		
+		case $host_os in
+		msdos* | windows* | cygwin* | mingw*)
+			AC_DEFINE([XERCES_PATH_DELIMITER_BACKSLASH], 1, [Define to use backslash as an extra path delimiter character])
+			path_delims="${path_delims}\\"
+			;;
+		esac
+
+		AC_MSG_RESULT($path_delims)
+	]
+)
+
+

Propchange: xerces/c/branches/jberry/3.0-unstable/m4/xerces_path_delimiters.m4
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: xerces/c/branches/jberry/3.0-unstable/m4/xerces_path_delimiters.m4
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org