From: oes <oes@users.sourceforge.net>
Date: Tue, 9 Apr 2002 16:38:49 +0000 (+0000)
Subject: Added detection of missing config.h.in
X-Git-Tag: v_2_9_14~106
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/developer-manual/static/@default-cgi@edit-actions-remove-url?a=commitdiff_plain;h=9302208e97645de2dff08d9bc0af6fdc7434c897;p=privoxy.git

Added detection of missing config.h.in
---

diff --git a/configure.in b/configure.in
index 83d30197..0fdb28c0 100644
--- a/configure.in
+++ b/configure.in
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 dnl 
-dnl $Id: configure.in,v 1.58 2002/04/04 20:49:20 swa Exp $
+dnl $Id: configure.in,v 1.59 2002/04/06 20:23:55 jongfoster Exp $
 dnl 
 dnl Written by and Copyright (C) 2001, 2002 the SourceForge
 dnl Privoxy team. http://www.privoxy.org/
@@ -28,6 +28,9 @@ dnl or write to the Free Software Foundation, Inc., 59
 dnl Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 dnl 
 dnl $Log: configure.in,v $
+dnl Revision 1.59  2002/04/06 20:23:55  jongfoster
+dnl Removing unnessacery tests (C++, ranlib)
+dnl
 dnl Revision 1.58  2002/04/04 20:49:20  swa
 dnl attempt to consolidate the
 dnl different dokbook versions.
@@ -331,8 +334,20 @@ dnl =================================================================
 dnl AutoConf Initialization
 dnl =================================================================
 
-AC_REVISION($Revision: 1.58 $)
+AC_REVISION($Revision: 1.59 $)
 AC_INIT(jcc.c)
+
+if test ! -f config.h.in; then
+   echo "You need to run autoheader first. "
+   echo -n "Shall I do this for you now? (y/n) "
+   read answer
+   if test $answer != "y"; then
+      exit 1
+   else
+      autoheader
+  fi
+fi  
+
 AC_CONFIG_HEADER([config.h])
 AC_CANONICAL_HOST