From 2ef2f06125e19f57d5366c8fe4210deaa3e5bfd4 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 1 Sep 2003 04:19:37 +0000 Subject: [PATCH] Enable the use of a config.h file and autoheader. At this point we don't actually *use* the resulting configuration file, but it keeps autoconf from creating an insanely long compiler command line, which can cause problems all by itself. Eventually we can do: #ifdef HAVE_CONFIG_H #include "config.h" #endif ... to get the same information. --- INSTALL | 1 + Makefile.in | 1 + configure.in | 1 + misc/release | 4 +++- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/INSTALL b/INSTALL index 992b470d..db9fcadc 100644 --- a/INSTALL +++ b/INSTALL @@ -7,6 +7,7 @@ and GNU tools installed. If you checked out source from CVS you will need to run autoconf to generate configure, otherwise you don't have to. +$ autoheader $ autoconf Then run configure to detect your platform settings and generate makefiles. diff --git a/Makefile.in b/Makefile.in index ae63cb93..c07b6fb0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -160,6 +160,7 @@ everything: all doc rdf install_everything: everything install install_doc install_rdf dist: spotless perlreq spec + autoheader autoconf rm -rf ./autom4te*.cache diff --git a/configure.in b/configure.in index 36ca7fac..5ab86962 100644 --- a/configure.in +++ b/configure.in @@ -3,6 +3,7 @@ dnl a configure script. AC_PREREQ(2.53) AC_REVISION([$Id$]) AC_INIT(nasm.c) +AC_CONFIG_HEADERS(config.h) dnl Check for broken VPATH handling on older NetBSD makes. AC_DEFUN(AC_PROG_MAKE_VPATHOK, diff --git a/misc/release b/misc/release index 5624a196..fb16996f 100755 --- a/misc/release +++ b/misc/release @@ -29,7 +29,9 @@ work=`pwd`/nasm-release.$$ mkdir "$work" cd "$work" -if $real; then +# SF uses a mirror server for anonymous CVS now. Therefore, use a real +# identity if we have one; otherwise, change the "true" below to "$real". +if true; then # Need to tag the tree, use real account CVS="cvs -z3 -d ${sfuser}@cvs.nasm.sourceforge.net:/cvsroot/nasm" else