]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
guile: Include <config.h>, not "config.h".
authorLudovic Courtès <ludo@gnu.org>
Fri, 7 Mar 2008 10:29:20 +0000 (11:29 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 7 Mar 2008 10:29:20 +0000 (11:29 +0100)
guile/src/make-enum-header.scm
guile/src/utils.h

index d7e7aeede8719b19e523d08d75f9c382fe158204..041527dd6e04aa45c993420f6221f581bcc19bea 100644 (file)
@@ -1,7 +1,7 @@
 ;;; Help produce Guile wrappers for GnuTLS types.
 ;;;
 ;;; GNUTLS --- Guile bindings for GnuTLS.
-;;; Copyright (C) 2007  Free Software Foundation
+;;; Copyright (C) 2007, 2008  Free Software Foundation
 ;;;
 ;;; GNUTLS is free software; you can redistribute it and/or
 ;;; modify it under the terms of the GNU Lesser General Public
@@ -17,7 +17,7 @@
 ;;; License along with GNUTLS; if not, write to the Free Software
 ;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
-;;; Written by Ludovic Courtès <ludo@chbouib.org>.
+;;; Written by Ludovic Courtès <ludo@gnu.org>.
 
 
 (use-modules (gnutls build enums))
@@ -40,7 +40,9 @@
     (format port "#define GUILE_GNUTLS_~aENUMS_H~%"
             (if extra? "EXTRA_" ""))
 
-    (format port "#include \"config.h\"~%")
+    (format port "#ifdef HAVE_CONFIG_H~%")
+    (format port "# include <config.h>~%")
+    (format port "#endif~%~%")
     (format port "#include <gnutls/gnutls.h>~%")
     (format port "#include <gnutls/x509.h>~%")
 
index 8a30ff59877ea955eba901f0a5f8998a7fa31bb0..17e3655d580556974ec8ed2a5de4d077d0888b92 100644 (file)
@@ -1,5 +1,5 @@
 /* GNUTLS --- Guile bindings for GnuTLS.
-   Copyright (C) 2007  Free Software Foundation
+   Copyright (C) 2007, 2008  Free Software Foundation
 
    GNUTLS is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
 
 /* Common utilities.  */
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include <libguile.h>
 
 \f