diff options
author | Werner Koch <[email protected]> | 2005-08-26 12:38:57 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-08-26 12:38:57 +0000 |
commit | 82a0c97250995ef82144422a48cc066018790020 (patch) | |
tree | 5913647abab3f668ff2fddcd77d5d1e09381eb20 /configure.ac | |
parent | Added missing files and fixed stuff from the recent merged. I did only (diff) | |
download | gpgme-82a0c97250995ef82144422a48cc066018790020.tar.gz gpgme-82a0c97250995ef82144422a48cc066018790020.zip |
* configure.ac (SEPCONSTANTS): New to define DIRSEP_C et al.
* w32-util.c (read_w32_registry_string): Updated from code used by
GnuPG. This allows for expanding strings and features the
implicit fallback key.
(w32_shgetfolderpath, find_program_at_standard_place): New.
(_gpgme_get_gpg_path, _gpgme_get_gpgsm_path): With no registry
entry, locate the programs at the standard place.
(dlopen, dlsym, dlclose): New, so that we can keep on using what
we are accustomed to.
* debug.c (debug_init): Use PATHSEP_C so that under W32 a
semicolon is used which allows us to create files with drive
letters.
* w32-io.c (_gpgme_io_read, _gpgme_io_write): Print content in
debug mode too.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 801a4c43..de35e787 100644 --- a/configure.ac +++ b/configure.ac @@ -458,6 +458,29 @@ fi AC_SUBST(BUILD_TIMESTAMP) AC_SUBST(BUILD_FILEVERSION) +# Add a few constants to help porting to W32 +AH_VERBATIM([SEPCONSTANTS], +[ +/* Separators as used in file names and $PATH. 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 "." +#define PATHSEP_C ';' +#define PATHSEP_S ";" +#else +#define DIRSEP_C '/' +#define EXTSEP_C '.' +#define DIRSEP_S "/" +#define EXTSEP_S "." +#define PATHSEP_C ':' +#define PATHSEP_S ":" +#endif +]) + # Substitution used for gpgme-config GPGME_CONFIG_LIBS="-lgpgme" |