From 571199434c616deb176a3fff9e5bb05bcc96f53b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Thu, 29 Jul 1999 12:57:23 +0000 Subject: [PATCH] Always use buildinf.h, which now includes the mk1mfinf.h data. Using different files caused problems because the dependencies in the Makefiles produced by mk1mf.pl were for the standard case, i.e. mentioned buildinf.h and not mk1mfinf.h. --- CHANGES | 5 ++--- Configure | 13 +++++++------ crypto/.cvsignore | 1 - crypto/Makefile.ssl | 13 +++++++------ crypto/cversion.c | 6 +----- util/mk1mf.pl | 17 ++++++++--------- 6 files changed, 25 insertions(+), 30 deletions(-) diff --git a/CHANGES b/CHANGES index 4f516ffd5d..8ae1483db4 100644 --- a/CHANGES +++ b/CHANGES @@ -46,9 +46,8 @@ (both in crypto/Makefile.ssl for use by crypto/cversion.c) caused problems not only on Windows, but also on some Unix platforms. To avoid problematic command lines, these definitions are now in an - auto-generated file, which also defines DATE and thus replaces - crypto/date.h. Standard "make" builds use crypto/buildinf.h, - mk1mf.pl builds use crypto/mk1mfinf.h (created by mk1mf.pl). + auto-generated file crypto/buildinf.h (created by crypto/Makefile.ssl + for standard "make" builds, by util/mk1mf.pl for "mk1mf" builds). [Bodo Moeller] *) MIPS III/IV assembler module is reimplemented. diff --git a/Configure b/Configure index fbac48e399..30927aeed7 100755 --- a/Configure +++ b/Configure @@ -708,13 +708,14 @@ print "BF_PTR2 used\n" if $bf_ptr == 2; if($IsWindows) { open (OUT,">crypto/buildinf.h") || die "Can't open buildinf.h"; printf OUT <crypto/objects/obj_dat.h"; diff --git a/crypto/.cvsignore b/crypto/.cvsignore index b8d2cb1da2..6b86a0a8dc 100644 --- a/crypto/.cvsignore +++ b/crypto/.cvsignore @@ -1,5 +1,4 @@ lib buildinf.h -mk1mfinf.h opensslconf.h Makefile.save diff --git a/crypto/Makefile.ssl b/crypto/Makefile.ssl index c27a69d5e1..930dd02a9b 100644 --- a/crypto/Makefile.ssl +++ b/crypto/Makefile.ssl @@ -50,11 +50,12 @@ top: all: buildinf.h lib subdirs buildinf.h: ../Makefile.ssl - ( echo "/* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \ - echo "/* (mk1mf builds use mk1mfinf.h instead) */"; \ - echo "#define CFLAGS \"$(CC) $(CFLAG)\""; \ - echo "#define PLATFORM \"$(PLATFORM)\""; \ - echo "#define DATE \"`date`\"" ) >buildinf.h + ( echo "#ifndef MK1MF_BUILD"; \ + echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \ + echo " #define CFLAGS \"$(CC) $(CFLAG)\""; \ + echo " #define PLATFORM \"$(PLATFORM)\""; \ + echo " #define DATE \"`date`\""; \ + echo "#endif" ) >buildinf.h subdirs: @for i in $(SDIRS) ;\ @@ -129,7 +130,7 @@ depend: done; clean: - rm -f buildinf.h mk1mfinf.h *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff + rm -f buildinf.h *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff @for i in $(SDIRS) ;\ do \ (cd $$i; echo "making clean in crypto/$$i..."; \ diff --git a/crypto/cversion.c b/crypto/cversion.c index 428def3081..297f8843f5 100644 --- a/crypto/cversion.c +++ b/crypto/cversion.c @@ -61,11 +61,7 @@ #include "cryptlib.h" #include -#ifdef MK1MF_BUILD -# include "mk1mfinf.h" -#else -# include "buildinf.h" -#endif +#include "buildinf.h" const char *SSLeay_version(int t) { diff --git a/util/mk1mf.pl b/util/mk1mf.pl index e4596bebb2..f3f17074f4 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -404,11 +404,11 @@ EOF my $platform_cpp_symbol = "MK1MF_PLATFORM_$platform"; $platform_cpp_symbol =~ s/-/_/; -if (open(IN,"crypto/mk1mfinf.h")) +if (open(IN,"crypto/buildinf.h")) { - # Remove entry for this platform in existing file mk1mfinf.h. + # Remove entry for this platform in existing file buildinf.h. - my $old_mk1mfinf_h = ""; + my $old_buildinf_h = ""; while () { if (/^\#ifdef $platform_cpp_symbol$/) @@ -417,21 +417,20 @@ if (open(IN,"crypto/mk1mfinf.h")) } else { - $old_mk1mfinf_h .= $_; + $old_buildinf_h .= $_; } } close(IN); - open(OUT,">crypto/mk1mfinf.h") || die "Can't open mk1mfinf.h"; - print OUT $old_mk1mfinf_h; + open(OUT,">crypto/buildinf.h") || die "Can't open buildinf.h"; + print OUT $old_buildinf_h; close(OUT); } -open (OUT,">>crypto/mk1mfinf.h") || die "Can't open mk1mfinf.h"; +open (OUT,">>crypto/buildinf.h") || die "Can't open buildinf.h"; printf OUT <