aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-05-03 14:42:49 +0000
committerDavid Shaw <[email protected]>2002-05-03 14:42:49 +0000
commit154c4c3000e3454c5e76933afa83c15cbb645233 (patch)
tree01038fc0023396a2f1f042da9da90253ed96a77b
parent* argparse.c (optfile_parse): Remove quotes only if they totally enclose (diff)
downloadgnupg-154c4c3000e3454c5e76933afa83c15cbb645233.tar.gz
gnupg-154c4c3000e3454c5e76933afa83c15cbb645233.zip
configure.ac: In g10defs.h, use \ for the directory separator when
HAVE_DOSISH_SYSTEM is on.
-rw-r--r--ChangeLog3
-rw-r--r--configure.ac9
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ee2657a36..c0f7db2c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2002-05-03 David Shaw <[email protected]>
+ * configure.ac: In g10defs.h, use \ for the directory separator
+ when HAVE_DOSISH_SYSTEM is on.
+
* configure.ac: Add --disable-exec flag to disable all remote
program execution. --disable-exec implies --disable-ldap and
--disable-mailto. Also look in /usr/lib for sendmail. If
diff --git a/configure.ac b/configure.ac
index f645ef9ff..d5979cb6c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -860,6 +860,8 @@ if test "$GCC" = yes; then
fi
fi
+# Note the \\\\ for backslashes. Autoconf eats one layer, leaving \\
+
AC_CONFIG_COMMANDS(g10defs.h,[[
cat >g10defs.tmp <<G10EOF
/* Generated automatically by configure */
@@ -881,10 +883,17 @@ cat >g10defs.tmp <<G10EOF
/* those are here to be redefined by handcrafted g10defs.h.
Please note that the string version must not contain more
than one character because the using code assumes strlen()==1 */
+#ifdef HAVE_DOSISH_SYSTEM
+#define DIRSEP_C '\\\\'
+#define EXTSEP_C '.'
+#define DIRSEP_S "\\\\"
+#define EXTSEP_S "."
+#else
#define DIRSEP_C '/'
#define EXTSEP_C '.'
#define DIRSEP_S "/"
#define EXTSEP_S "."
+#endif
G10EOF
cat mpi/mpi-asm-defs.h >>g10defs.tmp
if cmp -s g10defs.h g10defs.tmp 2>/dev/null; then