diff options
author | Werner Koch <wk@gnupg.org> | 1999-04-07 20:58:34 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1999-04-07 20:58:34 +0200 |
commit | 9f40263e56cc9ebe28016bb4588da3846342ba79 (patch) | |
tree | 1ca711569d0878d441798bf4f185036eda8fceda /configure.in | |
parent | See ChangeLog: Tue Apr 6 19:58:12 CEST 1999 Werner Koch (diff) | |
download | gnupg2-9f40263e56cc9ebe28016bb4588da3846342ba79.tar.xz gnupg2-9f40263e56cc9ebe28016bb4588da3846342ba79.zip |
See ChangeLog: Wed Apr 7 20:51:39 CEST 1999 Werner Koch
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/configure.in b/configure.in index e4760fbd5..a792ec00c 100644 --- a/configure.in +++ b/configure.in @@ -50,7 +50,7 @@ case "$use_static_rnd" in esac dnl -dnl See whether the user wants to disable checking for 7dev/random +dnl See whether the user wants to disable checking for /dev/random AC_MSG_CHECKING([whether use of /dev/random is requested]) AC_ARG_ENABLE(dev-random, @@ -392,17 +392,17 @@ dnl And build the constructor file dnl test -d cipher || mkdir cipher -cat <<EOF >cipher/construct.c +cat <<G10EOF >cipher/construct.c /* automatically generated by configure - do not edit */ -EOF +G10EOF GNUPG_MSG_PRINT([statically linked cipher modules:]) for name in $STATIC_CIPHER_NAMES; do echo "void ${name}_constructor(void);" >>cipher/construct.c GNUPG_MSG_PRINT([$name]) done AC_MSG_RESULT() -cat <<EOF >>cipher/construct.c +cat <<G10EOF >>cipher/construct.c void cipher_modules_constructor(void) @@ -412,7 +412,7 @@ cipher_modules_constructor(void) return; done = 1; -EOF +G10EOF for name in $STATIC_CIPHER_NAMES; do echo " ${name}_constructor();" >>cipher/construct.c done @@ -483,6 +483,36 @@ fi GNUPG_DO_LINK_FILES +AC_OUTPUT_COMMANDS([ +cat >g10defs.tmp <<G10EOF +/* Generated automatically by configure */ +#ifdef HAVE_DRIVE_LETTERS + #define G10_LOCALEDIR "c:/lib/gnupg/locale" + #define GNUPG_LIBDIR "c:/lib/gnupg" + #define GNUPG_DATADIR "c:/lib/gnupg" +#else + #define G10_LOCALEDIR "${prefix}/${DATADIRNAME}/locale" + #define GNUPG_LIBDIR "${libdir}/gnupg" + #define GNUPG_DATADIR "${datadir}/gnupg" +#endif +G10EOF +if cmp -s g10defs.h g10defs.tmp 2>/dev/null; then + echo "g10defs.h is unchanged" + rm -f g10defs.tmp +else + rm -f g10defs.h + mv g10defs.tmp g10defs.h + echo "g10defs.h created" +fi +],[ +prefix=$prefix +exec_prefix=$exec_prefix +libdir=$libdir +datadir=$datadir +DATADIRNAME=$DATADIRNAME +]) + + AC_OUTPUT([ Makefile intl/Makefile |