From 8366326cee6ccea6e977e7cd0cad2a1366344cb4 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 17 Apr 2008 22:51:42 +0000 Subject: [PATCH] Added config.h --- Makefile | 1 + project.conf | 3 ++- src/configure.c | 7 ++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fed0622..4f88460 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,7 @@ dist: $(PACKAGE)-$(VERSION)/BUGS \ $(PACKAGE)-$(VERSION)/CHANGES \ $(PACKAGE)-$(VERSION)/COPYING \ + $(PACKAGE)-$(VERSION)/config.h \ $(PACKAGE)-$(VERSION)/configure.txt \ $(PACKAGE)-$(VERSION)/INSTALL \ $(PACKAGE)-$(VERSION)/README \ diff --git a/project.conf b/project.conf index bbb4560..1dbf7cc 100644 --- a/project.conf +++ b/project.conf @@ -1,5 +1,6 @@ package=configure version=0.0.5 +config=h subdirs=src -dist=Makefile,AUTHORS,BUGS,CHANGES,COPYING,configure.txt,INSTALL,README +dist=Makefile,AUTHORS,BUGS,CHANGES,COPYING,config.h,configure.txt,INSTALL,README diff --git a/src/configure.c b/src/configure.c index 32c4303..e0df6cb 100644 --- a/src/configure.c +++ b/src/configure.c @@ -26,6 +26,11 @@ #include #include "makefile.h" #include "configure.h" +#include "../config.h" + +#ifndef PACKAGE +# define PACKAGE "configure" +#endif /* configure */ @@ -81,7 +86,7 @@ String * _source_extension(String * source) /* functions */ int configure_error(char const * message, int ret) { - fputs("configure: ", stderr); + fputs(PACKAGE ": ", stderr); perror(message); return ret; }